/* =========================================
   TUNJIX PORTFOLIO — BIG RIDZY STYLE
   Colors: Blue & Black (User Request)
   Fonts: Bebas Neue + Darker Grotesque
   ========================================= */

:root {
    /* Dark Mode (Default) */
    --bg: #050507;
    --primary: #007BFF;        /* Blue */
    --primary-glow: rgba(0, 123, 255, 0.25);
    --accent: #FF6B00;         /* Orange */
    --accent-glow: rgba(255, 107, 0, 0.25);
    --red: #E63946;            /* Red */
    --red-glow: rgba(230, 57, 70, 0.25);
    --text: #ffffff;
    --muted: #888888;
    --border: rgba(255,255,255,0.08);
    --card-bg: rgba(255,255,255,0.03);
    --nav-bg: rgba(5,5,7,0.85);
}

body.light-mode {
    --bg: #FAFBFE;
    --text: #101828;
    --muted: #667085;
    --border: rgba(16, 24, 40, 0.08);
    --card-bg: #FFFFFF;
    --nav-bg: rgba(250, 251, 254, 0.85);
    --primary-glow: rgba(0, 123, 255, 0.15);
    --accent-glow: rgba(255, 107, 0, 0.15);
    --red-glow: rgba(230, 57, 70, 0.15);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Darker Grotesque', sans-serif;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

a { text-decoration: none; color: inherit; }

h1, h2, h3, .nav-logo, .footer-logo, .splash-name {
    font-family: 'Bebas Neue', sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== SPLASH ===== */
.splash {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.splash.gone {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-40px);
}

.splash-inner {
    text-align: center;
}

.splash-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 3px solid var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.splash-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.splash-name {
    font-size: 5rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.splash-name span { color: var(--primary); }

.splash-sub {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 8px;
    margin-bottom: 3rem;
    font-weight: 600;
}

.enter-btn {
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
    padding: 1rem 3rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 3px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.enter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    transition: transform 0.35s ease, background 0.4s ease;
}

.navbar.hidden { transform: translateY(-100%); }

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.6rem;
    letter-spacing: 2px;
    z-index: 1001;
}
.nav-logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    padding: 0.5rem 0;
}
.nav-links a:hover, .nav-links a.active-link { color: var(--text); }

.nav-links a.active-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    z-index: 1001;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: rotate(15deg);
}

.pulse-dot {
    width: 8px; height: 8px;
    background: #00cc44;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0,204,68,0.5);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,204,68,0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(0,204,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,204,68,0); }
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

/* subtle blue + red radial glow background like Big Ridzy's ambient light */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 40%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 5px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero-title span { color: var(--primary); }

.hero-desc {
    font-size: 1.3rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 500;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    border-radius: 3px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 1rem 2.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    border-radius: 3px;
    transition: border-color 0.3s, transform 0.3s;
}

.btn-outline:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* ===== SECTION LABEL ===== */
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--muted);
    margin-bottom: 3rem;
    text-transform: uppercase;
    border-left: 3px solid var(--red);
    padding-left: 1rem;
}

/* ===== BENTO GRID ===== */
.bento-section {
    padding: 8rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: border-color 0.3s, transform 0.3s, background 0.4s ease;
    overflow: hidden;
}

body.light-mode .bento-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.bento-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-accent {
    background: var(--accent);
    border-color: var(--accent);
}

.bento-red {
    background: var(--red);
    border-color: var(--red);
}

.bento-red p { color: rgba(255,255,255,0.85); }
.bento-red .bento-num { color: rgba(255,255,255,0.5); }

.bento-accent p { color: rgba(255,255,255,0.8); }

.bento-num {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.bento-accent .bento-num { color: rgba(255,255,255,0.5); }

.bento-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.bento-wide h3 { font-size: 2.5rem; }

.bento-card p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 500;
}

/* ===== WORKS LIST — Big Ridzy Style ===== */
.works-section { padding: 8rem 0; }

.works-list { border-top: 1px solid var(--border); }

.work-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.35s ease;
    border-radius: 0 8px 8px 0;
}

.work-item:hover {
    padding-left: 2rem;
    background: rgba(0, 123, 255, 0.04);
    border-left-color: var(--primary);
}

.work-item:hover .work-arrow {
    color: var(--primary);
    transform: rotate(45deg);
}

.work-item:hover h3 { color: var(--primary); }

.work-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: var(--muted);
    letter-spacing: 3px;
    min-width: 40px;
    padding-top: 0.4rem;
}

.work-info { flex: 1; }

.work-info h3 {
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.work-tags {
    display: flex;
    gap: 1rem;
}

.work-tags span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.work-arrow {
    font-size: 1.5rem;
    color: var(--muted);
    transition: color 0.3s, transform 0.4s ease;
    padding-top: 0.5rem;
    flex-shrink: 0;
}

/* ===== WORK BULLETS (Animated Dropdown) ===== */
.work-bullets {
    list-style: none;
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
}

.work-item:hover .work-bullets, .work-item.item-active .work-bullets {
    max-height: 400px;
    opacity: 1;
    margin-top: 1.5rem;
}

.work-item.item-active h3 { color: var(--primary); }
.work-item.item-active .work-arrow { transform: rotate(45deg); color: var(--primary); }

.work-bullets li {
    font-size: 1.05rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.6;
    padding-left: 1.2rem;
    position: relative;
}

.work-bullets li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ===== MARQUEE ===== */
.marquee-wrap {
    overflow: hidden;
    background: var(--red);
    padding: 1.5rem 0;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    gap: 3rem;
    animation: marquee 25s linear infinite;
}

.marquee-track span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    letter-spacing: 3px;
    flex-shrink: 0;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== IMPACT / CTA BLOCK ===== */
.impact-section {
    padding: 6rem 2rem;
}

.impact-inner {
    max-width: 1280px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--red), var(--primary), var(--accent));
    border-radius: 16px;
    padding: 6rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.impact-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.95;
    color: white;
    max-width: 700px;
}

.impact-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex-shrink: 0;
}

.impact-btn {
    background: black;
    color: white;
    padding: 1rem 2.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    border-radius: 3px;
    text-align: center;
    transition: background 0.3s;
}

.impact-btn:hover { background: #111; }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 2rem;
    letter-spacing: 3px;
}
.footer-logo span { color: var(--red); }

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.footer-links a:hover { color: var(--text); }

.footer p {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ===== PROFESSIONAL SUMMARY ===== */
.summary-section {
    padding: 6rem 0 0;
}

.summary-text {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 500;
    font-style: italic;
    color: var(--muted);
    border-left: 4px solid var(--red);
    padding-left: 2.5rem;
    line-height: 1.6;
    max-width: 900px;
}

/* ===== WORK BULLETS ===== */
.work-bullets {
    margin-top: 1rem;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.work-item:hover .work-bullets {
    max-height: 200px;
}

.work-bullets li {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.5;
}

/* ===== EDUCATION ===== */
.education-section {
    padding: 8rem 0;
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.edu-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: border-color 0.3s, transform 0.3s, background 0.4s ease;
}

.edu-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.edu-cert {
    border-color: rgba(255, 107, 0, 0.3);
    border-top: 3px solid var(--accent);
}

.edu-year {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.edu-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    line-height: 1.1;
}

.edu-school {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.edu-desc {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active { right: 0; }
    
    .mobile-menu-btn { display: block; }
    
    .nav-links a { font-size: 1.5rem; }
    
    .available-badge { display: none; }
    
    .hero-title { font-size: clamp(3rem, 15vw, 5rem); }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .bento-wide { grid-column: span 1; }
    .bento-card { height: auto; min-height: 250px; }
    
    .work-info h3 { font-size: 1.8rem; }
    .work-item:hover { padding-left: 1rem; }
    
    .impact-inner {
        padding: 4rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .impact-links {
        width: 100%;
        flex-direction: column;
    }
    
    .edu-grid { grid-template-columns: 1fr; }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .summary-text {
        font-size: 1.35rem;
        padding-left: 1.5rem;
    }
}
