:root {
    --bg-color: #0a0a1a;
    --accent-color: #bfaee3;
    --dark-accent: #7c60b7;
    --text-color: #e0e0e0;
    --card-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing:  border-box;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a1a 100%);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

.hidden { display: none !important; }

/* --- LOADING SCREEN --- */
#loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
    align-items: center;
    z-index: 9999999999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader-wrapper.fade-out { opacity: 0; visibility: hidden; }
.loader-text {
    color: var(--accent-color);
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-weight: 600;
    animation: pulseText 2s ease-in-out infinite alternate;
}
@keyframes pulseText {
    0% { 
        opacity: 0.3; 
        text-shadow: none;
    }
    100% { 
        opacity: 1; 
        text-shadow: 0 0 15px rgba(191, 174, 227, 0.6); 
    }
}
.glowing-ring {
    width: 60px; height: 60px;
    border: 2px solid rgba(191, 174, 227, 0.1);
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spinRing 1s linear infinite, pulseGlow 2s ease-in-out infinite alternate;
}
@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulseGlow {
    0% { 
        box-shadow: 0 0 10px rgba(191, 174, 227, 0.1),
            inset 0 0 10px rgba(191, 174, 227, 0.1); 
    }
    100% { 
        box-shadow: 0 0 25px rgba(191, 174, 227, 0.6), 
            inset 0 0 25px rgba(191, 174, 227, 0.6); 
    }
}

/* --- SPA VISBILITY --- */
.portfolio-section {
    min-height: 100vh;
    padding: 120px 5% 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
        
.close-btn {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    z-index: 99999999 !important;
    transition: color 0.3s;
}
.close-btn:hover { color: white; }

/* Grainy Effect */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Dissolve_Noise_Texture.png');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.card, .glass-panel, .archive-half, .app-card { will-change: transform, backdrop-filter; }
.cursor-dot, .cursor-outline { will-change: transform; }

/* Logo Image */
.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}
.logo img:hover { transform: scale(1.05); }

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10,10,26,0.9) 0%, rgba(10,10,26,0) 100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.nav-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}
.nav-pill {
    position: absolute;
    top: 8px; left: 0;
    height: calc(100% - 16px);
    background: var(--accent-color);
    border-radius: 30px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    z-index: 0;
    box-shadow: 0 0 15px rgba(191, 174, 227, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
}
.nav-links li { z-index: 1; }
.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    z-index: 1;
}
.nav-links li a:hover {
    background: #e0e0e0E6;
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(191, 174, 227, 0.4);
}
.nav-links li a.active {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(191, 174, 227, 0.4);
}
/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 80px;
}
.hero-content {
    position: relative;
    z-index: 10;
    padding: 20px;
}
.hero-content h1 {
    font-size: 5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(191, 174, 227, 0.5);
    font-weight: 700;
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.25, 1, 0.5, 1) 1s forwards;
}
.hero-subtitle {
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    color: #d1d1d1;
    margin-top: 15px;
    line-height: 1.6;
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.25, 1, 0.5, 1) 1.5s forwards;
}
/* Hero Typing Animation */
.dynamic-text {
    color: white;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}
.cursor {
    color: var(--accent-color);
    font-weight: 700;
    animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.scroll-indicator {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    animation:  fadeInPlanet 1s ease forwards, bounce 2s infinite 3s;
}
.scroll-indicator i {
    font-size: 1.8rem forwards;
    margin-top: 5px;
    color: var(--accent-color)
}
@keyframes fadeInPlanet { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

#canvas-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    animation: fadeInPlanet 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Guidemap Cards (Monoline/Glassmorphism) */
.guidemap {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 50px 10%;
    flex-wrap: wrap;
}
/* Staggered loading animations */
.spa-page.active-page .guidemap .card:nth-child(1) { animation: cardFadeIn 0.6s ease 0.2s forwards; opacity: 0; }
.spa-page.active-page .guidemap .card:nth-child(2) { animation: cardFadeIn 0.6s ease 0.4s forwards; opacity: 0; }
.spa-page.active-page .guidemap .card:nth-child(3) { animation: cardFadeIn 0.6s ease 0.6s forwards; opacity: 0; }
.spa-page.active-page .guidemap .card:nth-child(4) { animation: cardFadeIn 0.6s ease 0.8s forwards; opacity: 0; }
@keyframes cardFadeIn {
    from { opacity: 0; top: 20px; }
    to { opacity: 1; top: 0; }
}

.card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255,0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding: 35px 35px 60px 35px; /* Added extra bottom padding for the arrow */
    border-radius: 20px;
    width: 100%;
    max-width: 320px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 150%; height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}
.card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(191, 174, 227, 0.2);
    transform: translateY(-10px);
}
.card:hover::before { opacity: 0.12; }
.card h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(30px);
    position: relative;
    z-index: 2;
}
.card p {
    font-size: 0.95rem;
    color: #d1d1d1;
    opacity: 0.9;
    line-height: 1.6;
    transform: translateZ(20px);
    position: relative;
    z-index: 2;
}
.card p em {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.card .arrow {
    position: absolute;
    bottom: 35px;
    right: 35px;
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.card:hover .arrow { transform: translateX(10px); }
.js-tilt-glare { border-radius: 20px; }

/* --- AMBIENT ICONS --- */
.card .bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 10rem;
    opacity: 0.03;
    z-index: 1; 
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    color: white;
}
.card:hover .bg-icon {
    opacity: 0.12;
    transform: scale(1.1) rotate(-10deg);
    color: var(--accent-color);
}

/* --- STAGGERED GRID --- */
@media (min-width: 769px) {
    .guidemap .card:nth-child(even) { transform: translateY(40px); }
    .guidemap .card:nth-child(even):hover { transform: translateY(30px); }
}

/* --- ABOUT SECTION --- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .pronunciation {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 3px;
    margin: 15px 0 10px 0;
    text-shadow: 0 0 20px rgba(191, 174, 227, 0.8);
}

.portrait-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}
.magic-portrait {
    position: relative;
    width: 320px; height: 420px;
    background: #0a0a1a;
    padding: 12px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), insert 0 0 20px rgba(0,0,0,0.5);
    border: 2px solid rgba(191, 174, 227, 0.4);
    cursor: crosshair;
}
.magic-portrait::before {
    content: '';
    position: absolute;
    top: 12px; left: 12px; right: 12px; bottom: 12px;
    border: 1px solid rgba(191, 174, 227, 0.15);
    z-index: 3;
    pointer-events: none;
}
.portrait-bottom {
    position: absolute;
    top: 12px; left: 12px;
    width: calc(100% - 24px); height: calc(100% - 24px);
    object-fit: cover;
    z-index: 1;
}
.portrait-top {
    position: absolute;
    top: 12px; left: 12px;
    width: calc(100% - 24px); height: calc(100% - 24px);
    object-fit: cover;
    z-index: 2;
    -webkit-mask-image: radial-gradient(circle 120px at var(--x, 50%) var(--y, 50%), black 10%, rgba(0,0,0,0.8) 35%, transparent 75%);
    mask-image: radial-gradient(circle 120px at var(--x, 50%) var(--y, 50%), black 10%, rgba(0,0,0,0.8) 35%, transparent 75%);
    -webkit-mask-size: var(--radius, 0px) var(--radius, 0px);
    mask-size: var(--radius, 0px) var(--radius, 0px);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    filter: url(#water-ripple);
    transition: -webkit-mask-size 0.3s cubic-bezier(0.25, 1, 0.5, 1), mask-size 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.portrait-hint {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    font-style: italic;
    letter-spacing: 2px;
    transition: opacity 0.5s ease;
}
.portrait-wrapper:hover .portrait-hint { opacity: 0.05; }

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 25px;
    margin-bottom: 40px;
}
.bento-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.pill-label {
    background: white;
    color: #0a0a1a;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 18px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Resume Thumbnail */
.bento-resume { align-items: center; justify-content: center; grid-column: 1 / -1; }
.resume-thumbnail {
    width: 100%;
    max-width: 820px;
    aspect-ratio: 26/9;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.resume-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* --- INFINITE SKILLS ROLLER --- */
.bento-skills {
    overflow: hidden;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
.bento-skills .pill-label { margin-left: 35px; }

.skills-roller-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-top: 10px;
}
.skills-roller-container::before {
    left: 0;
    background: linear-gradient(to right, #131326 0%, transparent 100%);
}
.skills-roller-container::after {
    right: 0;
    background: linear-gradient(to left, #131326 0%, transparent 100%);
}
.skills-roller {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
}
.skills-roller-container:hover .skills-roller { animation-play-state: paused; }
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.skill-item-roller {
    display: inline-flex; align-items: center; justify-content: center;
    width: 70px; height: 70px; margin: 0 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1); transition: 0.3s;
}
.skill-item-roller:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}
.skill-item-roller img {
    width: 40px; height: 40px;
    object-fit: contain;
}

/* --- CERTIFICATIONS --- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.cert-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: 0.3s;
}
.cert-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.cert-img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: zoom-in;
}
.cert-box p { font-size: 0.85rem; line-height: 1.4; color: #ccc; }

/* VERTICAL TIMELINE */
.v-timeline {
    position: relative;
    margin: 20px 0 50px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    width: 100%;
    margin-left: auto; margin-right: auto;
}
.v-timeline::before {
    content: '';
    position: absolute;
    left: 64px; top: 0; bottom: 0; width: 2px;
    background: rgba(255,255,255,0.1);
}
#experience-list .v-timeline::before { left: 84px; }
.v-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    cursor: pointer;
}
.v-timeline-item.no-hover { cursor: default; }
.v-timeline-left {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    flex-shrink: 0;
}
.v-timeline-icon {
    width: 50px; height: 50px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 15px rgba(191, 174, 227, 0.2);
    transition: 0.3s ease;
}
.v-timeline-date {
    margin-top: 12px;
    color: #aaa;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.3;
    font-weight: 600;
}
.v-timeline-content {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
    padding: 30px;
    flex-grow: 1;
}
.v-timeline-item:not(.no-hover):hover .v-timeline-icon {
    background: var(--accent-color);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(191,174,227,0.6);
}
.v-timeline-item:not(.no-hover):hover .v-timeline-content {
    transform: translateX(10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.v-timeline-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.v-timeline-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}
.v-timeline-content p {
    color: #d1d1d1;
    font-size: 0.95rem;
    line-height: 1.5;
}
.v-timeline-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}
.view-details-txt {
    color: #888;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
}
.v-timeline-item:not(.no-hover):hover .view-details-txt {
    color: var(--accent-color);
    transform: translateX(5px);
}

.forage-tag {
    background: #2563eb;
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}
.forage-tag.large { font-size: 0.9rem; padding: 5px 12px; margin-bottom: 15px; }

/* --- PARTICIPATED CONTESTS --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px; padding: 20px 0 40px 0;
}

.app-card {
    border-radius: 20px;
    overflow: hidden;
    cursor:pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

.contest-card { justify-content: flex-end; }
.contest-card .neon-icon {
    position: absolute;
    top: 35%; left: 50%;
    transform: translate(-50%, -50%);
    width: 240px; height: auto;
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}
.contest-card:hover .neon-icon {
    opacity: 0.05;
    transform: translate(-50%, -60%) scale(0.8);
}
.contest-card .app-card-inner {
    flex-grow: 0;
    justify-content: flex-end;
}
.contest-card .contest-title {
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}
.contest-card .card-slide-up {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.contest-card:hover .card-slide-up {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 15px;
}

/* --- CONTEST CARD GRADIENTS --- */
.card-contest-gold { background: linear-gradient(135deg, rgba(178,142,0,0.15), rgba(212,175,55,0.02)); backdrop-filter: blur(10px); border-color: rgba(212,175,55,0.3); }
.card-contest-blue { background: linear-gradient(135deg, rgba(0,92,151,0.15), rgba(54,55,149,0.02)); backdrop-filter: blur(10px); border-color: rgba(0,168,255,0.3); }
.card-contest-green { background: linear-gradient(135deg, rgba(17,153,142,0.15), rgba(13,99,53,0.02)); backdrop-filter: blur(10px); border-color: rgba(56,239,125,0.3); }
.card-contest-purple { background: linear-gradient(135deg, rgba(101,78,163,0.15), rgba(60,25,90,0.02)); backdrop-filter: blur(10px); border-color: rgba(142,45,226,0.3); }

/* --- PROJECT CARD GRADIENTS --- */
.card-nova { background: linear-gradient(135deg, rgba(42,8,69,0.15) 0%, rgba(100,65,165,0.5) 100%); backdrop-filter: blur(10px); border-color: rgba(177,75,244,0.3); }
.card-lead { background: linear-gradient(135deg, rgba(0,51,160,0.15) 0%, rgba(200,29,17,0.5) 100%); backdrop-filter: blur(10px); border-color: rgba(255,77,77,0.3); }
.card-tedx { background: linear-gradient(135deg, rgba(17,17,17,0.15) 0%, rgba(139,0,0,0.5) 100%); backdrop-filter: blur(10px); border-color: rgba(230,43,30,0.3); }
.card-xmas { background: linear-gradient(135deg, rgba(11,43,27,0.15) 0%, rgba(27,94,32,0.5) 100%); backdrop-filter: blur(10px); border-color: rgba(46,125,50,0.3); }
.card-tiktok { background: linear-gradient(135deg, rgba(17,17,17,0.15) 0%, rgba(254,9,121,0.5) 50%, rgba(0,242,254,0.6) 100%); backdrop-filter: blur(10px); border-color: rgba(0,242,254,0.3); }
.card-blead { background: linear-gradient(135deg, rgba(2,0,36,0.15) 0%, rgba(9,9,121,0.5) 50%, rgba(0,212,255,0.8) 100%); backdrop-filter: blur(10px); border-color: rgba(252,163,17,0.3); }
.card-others { background: linear-gradient(135deg, rgba(43,16,8,0.15) 0%, rgba(255,126,95,0.5) 100%); backdrop-filter: blur(10px); border-color: rgba(255,126,95,0.3); }
.card-github { background: linear-gradient(135deg, rgba(13,17,23,0.25) 0%, rgba(22,27,34,0.6) 100%); backdrop-filter: blur(10px); border-color: #30363d; }

.project-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1;
}
.project-card .project-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) blur(3px);
    opacity: 0.3;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}
.project-card:hover .project-bg {
    filter: grayscale(0%) blur(0px);
    transform: scale(1.1);
    opacity: 0.25;
}
.project-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 80%;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.95) 0%, rgba(10, 10, 26, 0) 100%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.project-card:hover::after { background: linear-gradient(to top, rgba(10, 10, 26, 1) 0%, rgba(10, 10, 26, 0.4) 100%); }
.project-card h3, .project-card p, .project-card .date { text-shadow: 0 2px 8px rgba(0,0,0,0.8); }

.app-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.5);
}
.app-card-inner {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; z-index: 2;
}     
.app-card .tags {
    display: flex;
    gap: 8px; margin-bottom: 25px;
    flex-wrap: wrap;
}
.app-card .tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.app-card h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.app-card p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 30px;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.app-footer .date {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.app-footer .view-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: white;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- PROJECT INTRO: GLASS BENTO GRID --- */
.project-info-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
    margin-bottom: 50px;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.2);
    border-left: 3px solid var(--project-color);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.glass-panel h4 {
    color: white;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.7;
}
.glass-panel p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Role Tags */
.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.role-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--project-color);
    padding: 6px 14px;
    border-radius: 0.8rem;
    font-weight:700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

/* Contest Detail: Key Learning Points & Media */
.brief-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--project-color);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--project-color);
    padding-bottom: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.brief-link:hover {
    color: white;
    border-color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.learning-grid {
    display: grid;
    grid-template-columns:  repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 25px;
}
.learning-card {
    background: white;
    color: #111;
    padding: 40px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.learning-card:hover { transform: translateY(-8px); }
.learning-num {
    display: block;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    letter-spacing: -2px;
}
.learning-card h5 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}
.learning-card ul {
    text-align: left;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}
.learning-card li { margin-bottom: 10px; }

/* --- VIDEO WRAPPER --- */
.video-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.contest-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- REAL ROLE: TIMELINES & KPIs --- */
.exp-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.exp-header h3 { font-size: 2.5rem; color: white; margin-bottom: 5px; }

.role-progression { display: flex; flex-direction: column; align-items: center; margin-bottom: 50px; }
.role-node { background: rgba(255,255,255,0.05); padding: 20px 40px; border-radius: 16px; text-align: center; width: 100%; max-width: 600px; border: 1px solid rgba(255,255,255,0.1); }
.role-node.promoted { border-color: var(--accent-color); background: rgba(191, 174, 227, 0.1); box-shadow: 0 10px 30px rgba(191,174,227,0.1) }
.role-node h4 { color: white; font-size: 1.2rem; margin-bottom: 5px; }
.role-node span { font-size: 0.9rem; color: #d1d1d1; }
.role-arrow { margin: 15px 0; color: var(--accent-color); font-size: 2rem; }

/* KPI Highlight Boxes */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 50px; }
.kpi-box { background: #1a1a2e; border-radius: 16px; padding: 30px 20px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.kpi-box.highlight { background: linear-gradient(135deg, rgba(191,174,227,0.2) 0%, rgba(10,10,26,1) 100%); border-color: var(--accent-color); }
.kpi-box h2 { font-size: 3.5rem; color: var(--accent-color); margin-bottom: 10px; font-weight: 700; line-height: 1; }
.kpi-box p { color: #ccc; font-size: 0.95rem; line-height: 1.4; }

.exp-details-split { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; margin-bottom: 50px; }
.exp-text h4 { font-size: 1.4rem; color: white; margin-bottom: 20px; }
.exp-text ul { padding-left: 20px; color: #ccc; line-height: 1.7; }
.exp-text li { margin-bottom: 12px; }
.exp-cert { text-align: center; }
.exp-cert img { width: 100%; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); margin-bottom: 10px; cursor: zoom-in; }
.exp-cert span { font-size: 0.8rem; color: #aaa; }

/* --- COMPANY LINKS --- */
.company-links {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.company-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* --- FORCING THE DETAIL VIEW TO BE VISIBLE --- */
.detail-view { padding-bottom: 40px; position: relative;}
.detail-view::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 600px;
    background: radial-gradient(ellipse at top, var(--project-color), transparent 70%);
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}
.detail-view.active-detail {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CASE STUDY TYPOGRAPHY --- */
.cs-section { margin-bottom: 50px; text-align: left; }
.cs-section h4 {
    color: var(--project-color), var(--accent-color);
    margin-bottom: 12px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.cs-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* --- THE CAROUSEL SLIDER --- */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    outline: none;
}
.carousel-container:focus-within { border-color: var(--accent-color); box-shadow: 0 0 15px rgba(191,174,227,0.3); }
.carousel-track-container { overflow: hidden; width: 100%; }
.carousel-track { display: flex; list-style: none; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.carousel-slide { min-width: 100%; flex: 0 0 100%; width: 100%; }
.carousel-slide img {
    width: 100%;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.3s;
}
.carousel-slide img:hover {
    opacity: 0.9;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 26, 0.8);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px; height: 50px; padding: 0;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.prev-btn { left: 15px; }
.next-btn { right: 15px; }
.carousel-btn:hover {
    background: var(--accent-color);
    color: #0a0a1a;
    transform: translateY(-50%) scale(1.1);
}

/* --- THE GLOBAL LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(5, 5, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-close {
    position: absolute;
    top: 30px; right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}
.lightbox-close:hover { color: var(--accent-color); }
.keyboard-hint {
    position: absolute;
    bottom: 30px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem; letter-spacing: 1px;
}

/* --- SIMULATED ROLES --- */
.forage-theme h3 { margin-top: 10px; }

.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.task-card {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.task-card:hover { transform: translateY(-8px); transition: all 0.3s; }
.task-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: zoom-in;
}
.task-card > p {
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.action-section {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.primary-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #0a0a1a;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}
.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(191,174,227,0.3);
}

/* --- STICKY STACK LAYOUT --- */
.sticky-stack-container {
    position: relative;
    width: 100%;
    max-width: 950px;
    margin: 60px auto 0 auto;
    padding-bottom: 50px;
}
.sticky-card {
    position: sticky;
    top: 80px;
    margin-bottom: 60vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 -15px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,155,0.15);
    background: var(--bg-color);
    transform-origin: top center;
    transition: transform 0.3s ease;
}
.sticky-card:last-child {
    margin-bottom: 0;
}
.sticky-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- EXTERNAL ARTIFACTS LINKS --- */
.task-grid.three-col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.external-artifact {text-decoration: none; display: block; }
.external-artifact .task-card { transition: all 0.3s; position: relative; }
.external-artifact:hover .task-card { transform: translateY(-8px); border-color: var(--accent-color); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }

.artifact-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}
.artifact-img-wrapper img {
    margin-bottom: 0;
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    cursor: pointer;
}

/* --- HOVER LINK OVERLAY (PROJECT ARCHIVE) --- */
.hover-link-wrapper {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 15px;
    background: #000;
}
.hover-link-wrapper img {
    display: block;
    width: 100%; height: auto;
    transition: opacity 0.3s ease, transform 0.4s ease;
}
.hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.hover-link-wrapper:hover img {
    opacity: 0.4;
    transform: scale(1.03);
}
.hover-link-wrapper:hover .hover-overlay { opacity: 1; }
.hover-overlay span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hover-overlay span.small-cta { font-size: 0.7rem; padding: 5px 10px; }

.multi-img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}
.multi-img-grid .hover-link-wrapper { margin-bottom: 0; }

.task-card .grid-caption {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.3;
    margin-top: 8px;
    margin-bottom: 0;
    font-weight: 400;
    word-wrap: break-word;
    hyphens: auto;
}

/* --- PLATFORM BADGES ON TASK CARD --- */
.platform-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 10;
    text-transform: uppercase;
}
/* Brand Colors for the Badges */
.fb-badge { background-color: #1877f2; }
.ig-badge { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.li-badge { background-color: #0a66c2; }

/* --- SINGLE PAGE SHOWCASE --- */
.single-page-showcase {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-page-showcase img {
    width: 100%;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.single-page-showcase img:hover {
    opacity: 0.85;
    transform: scale(1.01);
}

/* --- SPA TAB ROUTING --- */
.spa-page {
    display: none;
    animation: fadePageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.spa-page.active-page { display: block; }

@keyframes fadePageIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ARCHIVE SPLIT-SCREEN --- */
.archive-split-container {
    display: flex;
    gap: 40px;
    height: 60vh;
    min-height: 450px;
    margin-top: 50px;
    padding: 0 2%;
}
.archive-half {
    flex: 1;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}
.archive-half:hover {
    flex: 1.15;
    border-color: rgba(255, 126, 95, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.archive-split-container:hover .archive-half:not(:hover) {
    opacity: 0.4;
    filter: grayscale(100%) blur(3px);
}
.archive-half::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 150%; height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 60%);
    opacity: 0.08;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}
.archive-half:hover::before { opacity: 0.25; }
.archive-half:hover .archive-watermark {
    color: rgba(255, 255, 255, 0.08);
    transform: scale(1.05) translateY(-10px);
}

.contest-half { --glow-color: #00f2fe; }
.project-half { --glow-color: #b14bf4; }

.archive-watermark {
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-family: 'Playfair Display', serif;
    font-size: 18rem;
    font-weight: 800;
    font-style: italic;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    transition: color 0.5s ease, transform 0.5s ease;
}

.archive-content {
    z-index: 2;
    position: relative;
    transform: translateZ(30px);
}
.archive-content i {
    font-size: 5rem;
    color: white;
    margin-bottom: 25px;
    display: block;
    opacity: 0.8;
    text-shadow: 0 0 20px var(--glow-color);
}
.archive-content h3 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
}
.archive-content p {
    color: #ccc;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 85%;
    margin: 0 auto;
}

.nav-back-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}
.nav-back-btn:hover {
    background: var(--accent-color);
    color: #0a0a1a;
    transform: translateX(-5px);
}

/* --- CUSTOM THEMES FOR DETAIL VIEWS --- */
/* Base Styles for Themed Headers */
.themed-header {
    padding: 50px 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.themed-header h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.themed-header p { font-size: 1.1rem; opacity: 0.9; }

/* Specific colors for each detailed page */
.theme-work { --project-color: #bfaee3;}
.theme-vyl { --project-color: #26d0ce; }
.theme-peaking {--project-color: #2ecc71; }
.theme-hive { --project-color: #ff8c00; }
.theme-loreal { --project-color: #ff0090; }
.theme-nova { --project-color: #b14bf4; }
.theme-lead { --project-color: #c62127; }
.theme-tedx { --project-color: #e62b1e;}
.theme-xmas { --project-color: #2e7d32; }
.theme-tiktok { --project-color: #00f2fe; }
.theme-blead { --project-color: #fca311; }
.theme-others { --project-color: #ff7e5f; }
.theme-github { --project-color: #2ea043; }

/* Theme: Working Experience */
.theme-work .company-links a { color: var(--project-color); }
.theme-work .company-links a:hover, .theme-work .company-links a:hover .ph-light {
    color: white;
    transform: translateY(-2px);
}

/* Theme: Vietnam Young Lions (VYL) */
.theme-vyl .themed-header {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}
.theme-vyl .back-btn { color: #26d0ce; border-color: #26d0ce; }
.theme-vyl .back-btn:hover { background: #26d0ce; color: white; }
.theme-vyl .cs-section h4, .theme-vyl .glass-panel h4 { color: #8da4ff; letter-spacing: 2px; opacity: 0.9; }
.theme-vyl a:hover .ph-light,  .theme-vyl button:hover .ph-light { transform: scale(1.1); opacity: 1; color: white; }

/* Theme: Peaking Point 2024 (PEAKING) */
.theme-peaking .themed-header {
    background: linear-gradient(135deg, #0b2b1b 0%, #175433 100%);
    border: 1px solid #d4af37;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.theme-peaking .themed-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;  bottom: 0;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Dissolve_Noise_Texture.png');
    opacity: 0.15;
    pointer-events: none;
}
.theme-peaking .back-btn { color: #d4af37; border-color: #d4af37; }
.theme-peaking .back-btn:hover { background: #d4af37; color: #0b2b1b; }
.theme-peaking .cs-section h4, .theme-peaking .glass-panel h4 { color: #6ee7b7; opacity: 0.9; text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
.theme-peaking .ph-light { color: #d4af37; }
.theme-peaking a:hover .ph-light,  .theme-peaking button:hover .ph-light { transform: scale(1.1); opacity: 1; color: #0b2b1b; }

/* Theme: Marketing Hive 2024 (HIVE) */
.theme-hive .themed-header {
    background: linear-gradient(135deg, #ff4500 0%, #ff8c00 50%, #ffd700 100%);
    color: #1a1a1a;
    text-shadow: none;
    border: 1px solid rgba(255, 69, 0, 0.5);
}
.theme-hive .back-btn { color: #ff8c00; border-color: #ff8c00; }
.theme-hive .back-btn:hover { background: #ff8c00; color: white; }
.theme-hive .cs-section h4, .theme-hive .glass-panel h4 { color: #ff4500; }
.theme-hive .ph-light { color: #ff8c00; }
.theme-hive a:hover .ph-light,  .theme-hive button:hover .ph-light { transform: scale(1.1); opacity: 1; color: white; }

/* Theme: L'Oréal Brandstorm 2024 (LOREAL) */
.theme-loreal .themed-header {
    background: linear-gradient(135deg, #ff0090 0%, #7b2cbf 50%, #00d2ff 100%);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 0, 144, 0.3);
}
.theme-loreal .back-btn { color: #ff0090; border-color: #ff0090; }
.theme-loreal .back-btn:hover { background: #ff0090; color: white; }
.theme-loreal .cs-section h4, .theme-loreal .glass-panel h4 { color: #00d2ff; }
.theme-loreal a:hover .ph-light,  .theme-loreal button:hover .ph-light { transform: scale(1.1); opacity: 1; color: white; }

.back-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 10px 0 50px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.back-btn:hover {
    background: var(--accent-color);
    color: black;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}
/* Theme: Nova City (NOVA) */
.theme-nova .themed-header {
    background: linear-gradient(135deg, #2a0845 0%, #6441a5 100%);
    border: 1px solid rgba(177, 75, 244, 0.3);
}
.theme-nova .back-btn { color: #b14bf4; border-color: #b14bf4; }
.theme-nova .back-btn:hover { background: #b14bf4; color: white; }
.theme-nova .cs-section h4, .theme-nova .glass-panel { color: #d08cff; }
.theme-nova a:hover .ph-light,  .theme-nova button:hover .ph-light { transform: scale(1.1); opacity: 1; color: white; }

/* Theme: Lead You-nique (LEAD) */
.theme-lead .themed-header {
    background: linear-gradient(135deg, #037ef3 0%, #db1a11 100%);
    border: 1px solid rgba(255, 77, 77, 0.3);
}
.theme-lead .back-btn { color: #c62127; border-color: #c62127; }
.theme-lead .back-btn:hover { background: #c62127; color: white; }
.theme-lead .cs-section h4, .theme-lead .glass-panel { color: #ff7373; }
.theme-lead a:hover .ph-light,  .theme-lead button:hover .ph-light { transform: scale(1.1); opacity: 1; color: white; }
.theme-lead .glass-panel .brief-link.aiesec { color: #037ef3; border-bottom: 2px solid #037ef3; }
.theme-lead .glass-panel .brief-link .ph-light.aiesec { color: #037ef3; }
.theme-lead .glass-panel .brief-link:hover.aiesec, .theme-lead .glass-panel .brief-link:hover .ph-light.aiesec {
    color: white;
    border-color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Theme: TEDx FTU (TEDX) */
.theme-tedx .themed-header {
    background: linear-gradient(135deg, #111111 0%, #8b0000 100%);
    border: 1px solid rgba(230, 43, 30, 0.3);
}
.theme-tedx .back-btn { color: #e62b1e; border-color: #e62b1e; }
.theme-tedx .back-btn:hover { background: #e62b1e; color: white; }
.theme-tedx .cs-section h4, .theme-tedx .glass-panel { color: #ff6666; }
.theme-tedx a:hover .ph-light,  .theme-tedx button:hover .ph-light { transform: scale(1.1); opacity: 1; color: white; }
.theme-tedx .company-links a, .theme-tedx .company-links .ph-light { color: white; }
.theme-tedx .company-links a:hover, .theme-tedx .company-links a:hover .ph-light {
    color: black;
    transform: translateY(-2px);
}

/* Theme: BEC Christmas Special Project (XMAS) */
.theme-xmas .themed-header {
    background: linear-gradient(135deg, #0b2b1b 0%, #1b5e20 100%);
    border: 1px solid rgba(46, 125, 50, 0.3);
}
.theme-xmas .back-btn { color: #4caf50; border-color: #4caf50; }
.theme-xmas .back-btn:hover { background: #4caf50; color: white; }
.theme-xmas .cs-section h4, .theme-xmas .glass-panel h4 { color: #81c784; }
.theme-xmas a:hover .ph-light,  .theme-xmas button:hover .ph-light { transform: scale(1.1); opacity: 1; color: white; }

/* Theme: BEC TikTok Channel (TIKTOK) */
.theme-tiktok .themed-header {
    background: linear-gradient(135deg, #111111 0%, #fe0979 50%, #00f2fe 100%);
    border: 1px solid rgba(0, 242, 254, 0.3);
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.theme-tiktok .back-btn { color: #00f2fe; border-color: #00f2fe; }
.theme-tiktok .back-btn:hover { background: #00f2fe; color: #111; font-weight: bold; }
.theme-tiktok .cs-section h4, .theme-tiktok .glass-panel { color: #fe0979; }
.theme-tiktok a:hover .ph-light,  .theme-tiktok button:hover .ph-light { transform: scale(1.1); opacity: 1; color: #111; }
.theme-tiktok .company-links a, .theme-tiktok .company-links .ph-light { color: #00f2fe; }
.theme-tiktok .company-links a:hover, .theme-tiktok .company-links a:hover .ph-light {
    color: white;
    transform: translateY(-2px);
}

/* Theme: Young Business Leader 2023 (BLEAD) */
.theme-blead .themed-header {
    background: linear-gradient(135deg, #020024 0%, #090979 50%, #00d4ff 100%);
    border: 1px solid rgba(252, 163, 17, 0.3);
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.theme-blead .back-btn { color: #fca311; border-color: #fca311; }
.theme-blead .back-btn:hover { background: #fca311; color: #111; font-weight: bold; }
.theme-blead .cs-section h4, .theme-blead .glass-panel h4 { color: #fca311; }
.theme-blead a:hover .ph-light,  .theme-blead button:hover .ph-light { transform: scale(1.1); opacity: 1; color: #111; }
.theme-blead .company-links a, .theme-blead .company-links .ph-light { color: #fca311; }
.theme-blead .company-links a:hover, .theme-blead .company-links a:hover .ph-light {
    color: white;
    transform: translateY(-2px);
}
.theme-blead .platform-badge {
    background: linear-gradient(135deg, #090979 0%, #fca311 100%);
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    border: 1px solid rgba(252, 163, 17, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}
/* PR Tactic Grid */
.pr-logo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}
.task-card .pr-logo {
    height: 38px; width: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 8px;
    opacity: 0.85;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    margin-bottom: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.pr-logo img {
    width: 30px; width: auto;
    object-fit: contain;
}
.task-card .pr-logo:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Theme: Short-Term Campaigns (OTHERS) */
.theme-others .themed-header {
    background: linear-gradient(135deg, #2b1008 0%, #ff7e5f 100%);
    border: 1px solid rgba(255, 126, 95, 0.3);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.theme-others .back-btn { color: #ff7e5f; border-color: #ff7e5f; }
.theme-others .back-btn:hover { background: #ff7e5f; color: white; }
.theme-others .cs-section h4, .theme-others .glass-panel h4 { color: #ff9e88; }
.theme-others a:hover .ph-light,  .theme-others button:hover .ph-light { transform: scale(1.1); opacity: 1; color: white; }

/* Theme: GitHub Open Source (GITHUB) */
.theme-github .themed-header {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    border: 1px solid rgba(46, 160, 67, 0.4);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.theme-github .back-btn { color: #2ea043; border-color: #2ea043; }
.theme-github .back-btn:hover { background: #2ea043; color: white; }
.theme-github .cs-section h4, .theme-github .glass-panel h4 { color: #3fb950; }
.theme-github a:hover .ph-light,  .theme-github button:hover .ph-light { transform: scale(1.1); opacity: 1; color: white; }

/* GitHub Repo Cards */
.repo-card {
    position: relative;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-decoration: none;
}
.repo-card:hover {
    border-color: var(--project-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(46, 160, 67, 0.15);
}
.repo-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #58a6ff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.repo-desc {
    color: #8b949e;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.repo-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #8b949e;
    align-items: center;
}
/* Language Color Dots */
.lang-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}
.lang-js { background-color: #f1e05a; }
.lang-html { background-color: #e34c26; }
.lang-css { background-color: #563d7c; }
.lang-py { background-color: #3572a5; }
/* Repo Links */
.main-repo-link { color: inherit; text-decoration: none; }
.main-repo-link:hover { text-decoration: none; color: var(--project-color); }
.main-repo-link::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
}
.secondary-demo-link {
    margin-left: auto;
    color: #3fb950;
    text-decoration: none;
    position: relative;
    z-index: 2;
}
.secondary-demo-link:hover { text-decoration: none; color: #58a6ff; }

/* --- MONOLINE ICONS --- */
.ph-light {
    font-size: 1.3rem;
    vertical-align: middle;
    color: var(--project-color, --accent-color, white);
    opacity: 0.9;
    transition: transform 0.2s ease;
}
a:hover .ph-light,  button:hover .ph-light {
    transform: scale(1.1);
    opacity: 1;
    color: black;
}

.scroll-top-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 40px auto;
}
.scroll-top-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* --- CONTACT SECTION --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}
.contact-title {
    font-size: 4.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 20px;
}
.contact-list { list-style: none; width: 100%; }
.contact-list li {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.social-btn:hover {
    background: var(--accent-color);
    color: #0a0a1a;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { color: white; font-weight: 600; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }
.input-group input, .input-group textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.input-group input:focus, .input-group textarea:focus {
    color: var(--accent-color);
    box-shadow: 0 0 10px rgba(191, 174, 227, 0.2);
}
.submit-btn {
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}
.submit-btn .ph-light { color: var(--bg-color); margin: 0; }
.submit-btn:hover, .submit-btn:hover .ph-light { transform: scale(1.1); color: var(--text-color); }

/* --- STARDUST CURSOR --- */
@media (pointer: fine) {
    body, a, button, .card, .task-card, .lightbox-trigger, .scroll-indicator, .logo, .router-trigger, .social-btn {
        cursor: none !important;
    }
    .cursor-dot, .cursor-outline {
        position: fixed;
        top: 0; left: 0;
        pointer-events: none;
        z-index: 999999999;
    }
    .cursor-dot {
        width: 6px; height: 6px;
        background-color: var(--accent-color);
        box-shadow: 0 0 10px var(--accent-color);
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }
    .cursor-outline {
        width: 40px; height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .sparkle-shape {
        width: 100%; height: 100%;
        background: rgba(191, 174, 227, 0.4);
        clip-path: polygon(50% 0, 55% 45%, 100% 50%, 50% 55%, 50% 100%, 45% 55%, 0 50%, 45% 45%);
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
        animation: spinSparkle 4s linear infinite;
    }
    .cursor-outline.hovering .sparkle-shape {
        transform: scale(1.8);
        background: var(--dark-accent);
    }
    @keyframes spinSparkle {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); } 
    }
}

/* --- READING PROGRESS BAR --- */
#reading-progress-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: transparent;
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
#reading-progress-container.visible { opacity: 1; visibility: visible; }
#reading-progress-bar {
    height: 100%; width: 0%;
    background: var(--progress-color, var(--accent-color));
    box-shadow: 0 0 10px var(--progress-color, var(--accent-color)),
                0 0 20px var(--progress-color, var(--accent-color));
    border-radius: 0 2px 2px 0;
    will-change: width;
}

/* --- FLOATING CLOSE BUTTON --- */
.global-close-btn {
    position: fixed;
    top: 30px; right: 30px;
    width: 50px; height: 50px;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --hover-bg: var(--accent-color);
}
.global-close-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.global-close-btn:hover {
    background: var(--hover-bg);
    border-color: var(--hover-bg);
    color: #0a0a1a;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px var(--hover-bg);
}

/* --- PROJECTS CATEGORY FILTER --- */
.filter-menu {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.filter-btn:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }
.filter-btn.active {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(191, 174, 227, 0.4);
}
/* Filter Animations for Cards */
.project-card.hide-card { display: none !important; }
.project-card.show-card { animation: fadeInFilter 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;}
@keyframes fadeInFilter {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hamburger-btn, .mobile-menu-overlay, .mobile-nav-panel { display: none; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .nav-links { display: none !important; }
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        z-index: 1001;
    }
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(5, 5, 15, 0.8);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 10000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }
    .mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }
    .mobile-nav-panel {
        display: block;
        position: fixed;
        top: 0; right: 0;
        width: 75%; max-width: 300px; height: 100vh;
        background: linear-gradient(135deg, rgba(20, 20, 40, 0.95) 0%, rgba(10, 10, 26, 0.98) 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 10001;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        padding: 80px 30px 30px 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    .mobile-nav-panel.active { transform: translateX(0); }

    .close-mobile-menu {
        position: absolute;
        top: 25px; right: 25px;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 2rem;
        cursor: pointer;
        transition: color 0.3s;
    }
    .close-mobile-menu:hover { color: var(--accent-color); }

    .mobile-nav-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top: 20px;
    }
    .mobile-nav-links li a {
        display: flex;
        align-items: center;
        gap: 15px;
        color: white;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: color 0.3s, transform 0.3s;
    }
    .mobile-nav-links li a i {
        font-size: 1.6rem;
        color: var(--accent-color);
        opacity: 0.8;
        transition: opacity 0.3s;
    }
    .mobile-nav-links li a:active, .mobile-nav-links li a:focus {
        color: var(--accent-color);
        transform: translateX(-5px);
    }

    .portfolio-section { padding: 100px 5% 40px 5%; }
    
    nav { padding: 15px 5%; }
    .nav-links {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 8px 10px;
    }
    .nav-links::-webkit-scrollbar { display: none; }

    .global-close-btn {
        top: 15px; right: 15px; width: 40px; height: 40px;
        font-size: 1.2rem;
    }
    .lightbox-close {
        top: 15px; right: 20px;
        font-size: 2.5rem;
    }

    .hero-content h1 { font-size: 3rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-header .pronunciation { font-size: 2.2rem; }
    .exp-header h3, .themed-header h3 { font-size: 2rem; }

    .card, .magic-portrait { width: 100%; max-width: 320px; }
    .project-grid { grid-template-columns: 1fr; gap: 30px; }

    .bento-grid, .exp-details-split, .project-info-grid, .multi-img-grid { grid-template-columns: 1fr !important; gap: 25px; }

    .archive-split-container {
        flex-direction: column;
        height: auto; min-height: auto;
        gap: 25px;
    }
    .archive-half { padding: 40px 20px; }
    .archive-content h3 { font-size: 2.2rem; }
    .archive-watermark {
        font-size: 10rem;
        bottom: 15px; right: -10px;
    }

    .bento-card .v-timeline::before { left: 30px !important; }
    #experience-list .v-timeline::before { left: 45px; }
    .bento-card .v-timeline-left { width: 60px !important; }
    .bento-card .v-timeline-icon { width: 35px !important; height: 35px !important; font-size: 1.1rem; }
    .v-timeline-date { font-size: 0.75rem; }
    .bento-card .v-timeline-content { padding: 10px 0 10px 15px !important; }
    .v-timeline-content h3 { font-size: 1.2rem; }
    .v-timeline-subtitle { font-size: 0.9rem; }
    .v-timeline-content p { font-size: 0.85rem; }
    .bento-card .v-timeline-item { gap: 15px !important; }

    .filter-menu { gap: 10px; }
    .filter-btn { padding: 8px 16px; font-size: 0.8rem; }
    
    .sticky-card {
        top: 60px;
        margin-bottom: 20px;
        position: relative;
    }
}

@media (max-width: 850px) {
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .contact-title { font-size: 3rem; }
}

@media (max-width: 480px) {
    .kpi-grid, .learning-grid, .task-grid { grid-template-columns: 1fr; }
    .kpi-box h2 { font-size: 2.8rem; }
}