/* ========================================
   PORTFOLIO - BHARATHI B
   Full Stack Developer Portfolio
   Optimized for Performance & Accessibility
   ======================================== */

/* ========================================
   RESET & BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
    width: 100%;
    height: auto;
    scroll-snap-type: none;
    scroll-padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #f5f5f7;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: ambientMove 20s ease-in-out infinite alternate;
}

@keyframes ambientMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(5%, 5%) rotate(3deg); }
}

::selection {
    background: rgba(99, 102, 241, 0.4);
    color: #fff;
}

/* ========================================
   SCENE STRUCTURE
   ======================================== */

.scene {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.scene.visible {
    opacity: 1;
    transform: translateY(0);
}

.scene-content {
    max-width: 1200px;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    will-change: transform, opacity;
}

.scene-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 30%, #d2d2d7 60%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.scene-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    border-radius: 2px;
}

/* ========================================
   SCENE 1: HERO
   ======================================== */

.scene-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, #1a1a1f 0%, #0a0a0a 100%);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-content {
    text-align: center;
    perspective: 1000px;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    will-change: transform, opacity;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e7 40%, #8b5cf6 80%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateZ(100px) scale(0.8);
    animation: heroNameAppear 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    filter: drop-shadow(0 0 60px rgba(99, 102, 241, 0.2));
}

@keyframes heroNameAppear {
    to {
        opacity: 1;
        transform: translateZ(0) scale(1);
    }
}

.hero-role {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateZ(80px) translateY(20px);
    animation: heroRoleAppear 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
    position: relative;
}

.hero-role::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

@keyframes heroRoleAppear {
    to {
        opacity: 1;
        transform: translateZ(0) translateY(0);
    }
}

.hero-location {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #86868b;
    margin-top: 1rem;
    opacity: 0;
    transform: translateZ(60px) translateY(20px);
    animation: heroLocationAppear 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
}

@keyframes heroLocationAppear {
    to {
        opacity: 1;
        transform: translateZ(0) translateY(0);
    }
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateZ(40px) translateY(20px);
    animation: heroSocialsAppear 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards;
}

@keyframes heroSocialsAppear {
    to {
        opacity: 1;
        transform: translateZ(0) translateY(0);
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    color: #86868b;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: visible;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.social-link::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05), rgba(99, 102, 241, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.4),
        0 0 30px rgba(99, 102, 241, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: #86868b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: scrollIndicatorPulse 2s ease-in-out 2s infinite;
}

@keyframes scrollIndicatorPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ========================================
   SCENE 2: OBJECTIVE
   ======================================== */

.scene-objective {
    background: radial-gradient(ellipse at top left, #141418 0%, #0a0a0a 100%);
}

.objective-text {
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
}

.objective-primary {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #f5f5f7;
    font-weight: 400;
    opacity: 0;
    transform: translateZ(50px) translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.scene-objective.visible .objective-primary {
    opacity: 1;
    transform: translateZ(0) translateY(0);
}

.objective-primary .highlight {
    background: linear-gradient(120deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.objective-secondary {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    color: #a1a1a6;
    line-height: 1.6;
    opacity: 0;
    transform: translateZ(30px) translateY(30px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.scene-objective.visible .objective-secondary {
    opacity: 1;
    transform: translateZ(0) translateY(0);
}

/* ========================================
   SCENE 3: EDUCATION
   ======================================== */

.scene-education {
    background: radial-gradient(ellipse at center, #16161a 0%, #0a0a0a 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #6366f1 0%, #8b5cf6 50%, rgba(99, 102, 241, 0.2) 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scene-education.visible .timeline-item[data-timeline="1"] {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateX(0);
}

.scene-education.visible .timeline-item[data-timeline="2"] {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateX(0);
}

.scene-education.visible .timeline-item[data-timeline="3"] {
    transition-delay: 0.8s;
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #0a0a0a, 0 0 0 7px rgba(99, 102, 241, 0.3), 0 0 20px rgba(99, 102, 241, 0.6);
    animation: markerPulse 2s ease-in-out infinite;
    transform: translateX(-50%);
}

@keyframes markerPulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.15); 
        box-shadow: 0 0 0 4px #0a0a0a, 0 0 0 7px rgba(99, 102, 241, 0.5), 0 0 30px rgba(99, 102, 241, 0.8); 
    }
}

.timeline-content h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f5f5f7;
    line-height: 1.3;
}

.timeline-period {
    font-size: 1rem;
    color: #6366f1;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-institution {
    font-size: 1.1rem;
    color: #a1a1a6;
    line-height: 1.5;
}

/* ========================================
   SCENE 4: SKILLS
   ======================================== */

.scene-skills {
    background: radial-gradient(ellipse at bottom right, #141418 0%, #0a0a0a 100%);
}

.skills-compact {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.skills-compact::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.skill-row:last-child {
    border-bottom: none;
}

.scene-skills.visible .skill-row:nth-child(1) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
.scene-skills.visible .skill-row:nth-child(2) { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }
.scene-skills.visible .skill-row:nth-child(3) { transition-delay: 0.6s; opacity: 1; transform: translateX(0); }
.scene-skills.visible .skill-row:nth-child(4) { transition-delay: 0.8s; opacity: 1; transform: translateX(0); }

.skill-category {
    min-width: 140px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(120deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1;
}

.skill-item {
    background: rgba(20, 20, 30, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #f5f5f7;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.skill-item:hover::before {
    left: 100%;
}

/* ========================================
   SCENE 5: PROJECTS
   ======================================== */

.scene-projects {
    background: radial-gradient(ellipse at top left, #16161a 0%, #0a0a0a 100%);
}

.scene-subtitle {
    font-size: 1.1rem;
    color: #86868b;
    text-align: center;
    margin: -1rem auto 3rem;
    max-width: 600px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 2rem;
    justify-items: center;
}

.project-item {
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform, opacity;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

.project-item::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05), rgba(99, 102, 241, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-item:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(15, 15, 25, 0.6);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.3),
        0 0 60px rgba(99, 102, 241, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.project-item:hover::before {
    opacity: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-index {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    opacity: 0.5;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f5f7;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-description {
    font-size: 0.95rem;
    color: #a1a1a6;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.85rem;
    color: #f5f5f7;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    letter-spacing: 0.02em;
}

.project-item:hover .tech-tag {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(99, 102, 241, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #6366f1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateX(4px);
}

.link-arrow {
    transition: transform 0.3s ease;
}

.project-link:hover .link-arrow {
    transform: translateX(4px);
}

/* ========================================
   SCENE 6: EXPERIENCE
   ======================================== */

.scene-experience {
    background: radial-gradient(ellipse at bottom left, #141418 0%, #0a0a0a 100%);
}

.experience-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.experience-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 1.2rem;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.experience-duration {
    font-size: 1rem;
    color: #86868b;
    margin-bottom: 2rem;
}

.experience-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scene-experience.visible .experience-item[data-exp="1"] { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
.scene-experience.visible .experience-item[data-exp="2"] { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }
.scene-experience.visible .experience-item[data-exp="3"] { transition-delay: 0.6s; opacity: 1; transform: translateX(0); }
.scene-experience.visible .experience-item[data-exp="4"] { transition-delay: 0.8s; opacity: 1; transform: translateX(0); }

.exp-bullet {
    color: #6366f1;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.experience-item p {
    font-size: 1.05rem;
    color: #d2d2d7;
    line-height: 1.6;
}

/* ========================================
   SCENE 7: CERTIFICATIONS
   ======================================== */

.scene-certifications {
    background: radial-gradient(ellipse at center, #16161a 0%, #0a0a0a 100%);
    overflow: hidden;
}

.certificates-gallery {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    margin-top: 2rem;
    overflow: visible;
    position: relative;
}

.certificates-track {
    display: flex;
    gap: 2rem;
    animation: scrollCertificates 40s linear infinite;
    will-change: transform;
}

.certificates-track:hover {
    animation-play-state: paused;
}

@keyframes scrollCertificates {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.certificate-item {
    flex: 0 0 400px;
    opacity: 1;
    will-change: transform;
}

.certificate-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1.414 / 1;
    border-radius: 16px;
    overflow: visible;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.certificate-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05), rgba(99, 102, 241, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.certificate-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(15, 15, 25, 0.6);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.4),
        0 0 50px rgba(99, 102, 241, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.certificate-card:hover .certificate-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.view-certificate {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background: rgba(99, 102, 241, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.certificate-card:hover .view-certificate {
    background: rgba(99, 102, 241, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

/* Lightbox Modal */
.certificate-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding: 60px 20px 20px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
}

.certificate-lightbox.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.2);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    padding: 0;
    color: white;
    font-weight: 300;
    font-size: 50px;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #6366f1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1rem;
}

/* ========================================
   SCENE 8: EXTRAS
   ======================================== */

.scene-extras {
    background: radial-gradient(ellipse at top right, #141418 0%, #0a0a0a 100%);
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.extra-item {
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, background 0.3s ease;
}

.extra-item:hover {
    background: rgba(15, 15, 25, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(99, 102, 241, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.scene-extras.visible .extra-item[data-extra="1"] { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.scene-extras.visible .extra-item[data-extra="2"] { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.scene-extras.visible .extra-item[data-extra="3"] { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.scene-extras.visible .extra-item[data-extra="4"] { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

.extra-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6366f1;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.extra-item p {
    font-size: 1rem;
    color: #d2d2d7;
    line-height: 1.6;
}

/* ========================================
   SCENE 9: CONTACT
   ======================================== */

.scene-contact {
    background: radial-gradient(ellipse at center, #16161a 0%, #0a0a0a 100%);
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.terminal {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(15, 15, 20, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.6),
        0 15px 45px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.terminal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05), rgba(99, 102, 241, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.terminal-header {
    background: #2a2a2f;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red { background: #ff5f57; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #28ca42; }

.terminal-title {
    font-size: 0.875rem;
    color: #a1a1a6;
}

.terminal-body {
    padding: 2rem;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #f5f5f7;
}

.terminal-line {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.terminal-prompt {
    color: #6366f1;
}

.terminal-command {
    color: #a1a1a6;
}

.terminal-output {
    margin: 2rem 0;
    padding-left: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.contact-label {
    color: #6366f1;
    min-width: 100px;
}

.contact-value {
    color: #f5f5f7;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #6366f1;
}

.terminal-cursor {
    display: flex;
    gap: 0.5rem;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.contact-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-footer p {
    font-size: 0.9rem;
    color: #86868b;
    margin-bottom: 0.5rem;
}

.website-inquiry {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #a1a1a6;
}

.website-inquiry a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.1);
}

.website-inquiry a:hover {
    color: #8b5cf6;
    background: rgba(99, 102, 241, 0.2);
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    body::before {
        animation: none;
        transform: scale(1);
    }

    html {
        scroll-snap-type: y proximity;
    }

    body {
        -webkit-overflow-scrolling: touch;
    }

    .scene {
        min-height: 80vh;
        padding: 2rem 1.25rem;
    }

    .scene-project {
        min-height: 90vh;
        padding: 2rem 1.25rem;
    }

    .scene-projects-intro {
        min-height: 40vh;
    }

    .scene-projects {
        min-height: auto;
        padding: 2rem 1.25rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        min-height: 240px;
        padding: 1.75rem;
    }

    .project-number {
        font-size: 2.5rem;
    }

    .projects-stack-container {
        height: auto;
        min-height: 500px;
        perspective: 1500px;
    }

    .project-card {
        position: relative;
        transform: none !important;
        opacity: 1 !important;
        filter: brightness(1) !important;
        margin-bottom: 2rem;
        left: 0;
    }

    .project-card[data-project-index="1"] {
        margin-top: 2rem;
    }

    .scene-hero {
        min-height: 85vh;
    }

    .hero-name {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .hero-role {
        font-size: 1.1rem;
    }

    .hero-location {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }

    .hero-socials {
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }

    .scroll-indicator {
        bottom: 2rem;
        font-size: 0.75rem;
    }

    .scene-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .objective-text {
        max-width: 100%;
    }

    .objective-primary {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .objective-secondary {
        font-size: 1rem;
        line-height: 1.5;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2rem;
        width: 12px;
        height: 12px;
    }

    .timeline-item {
        margin-bottom: 2.5rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-period {
        font-size: 0.9rem;
    }

    .timeline-institution {
        font-size: 0.95rem;
    }

    .skills-compact {
        padding: 2rem;
        gap: 1.5rem;
    }

    .skill-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .skill-category {
        min-width: auto;
        font-size: 0.9rem;
    }

    .skill-item {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }

    .skills-clusters {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .skill-cluster {
        padding: 1.5rem;
        transform: none !important;
    }

    .skill-cluster:hover {
        transform: translateY(-4px) !important;
    }

    .cluster-label {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .scene-projects-intro {
        padding: 2rem 1.25rem;
    }

    .project-card {
        padding: 1.75rem;
        transform: none !important;
    }

    .project-card:hover {
        transform: translateY(-4px) scale(1.01) !important;
    }

    .project-name {
        font-size: 1.6rem;
    }

    .project-subtitle {
        font-size: 1rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .project-role,
    .project-timeline,
    .project-tech {
        font-size: 0.875rem;
    }

    .project-description li {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
        padding-left: 1.25rem;
    }

    .experience-card {
        padding: 2rem;
    }

    .experience-title {
        font-size: 1.4rem;
    }

    .experience-company {
        font-size: 1.05rem;
    }

    .experience-duration {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .experience-details {
        gap: 1.25rem;
    }

    .experience-item p {
        font-size: 0.95rem;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .cert-badge {
        padding: 1.5rem;
    }

    .cert-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .cert-name {
        font-size: 1rem;
    }

    .cert-level {
        font-size: 0.85rem;
    }

    /* Certificate Gallery Mobile */
    .certificates-track {
        animation-duration: 50s;
    }

    .certificate-item {
        flex: 0 0 320px;
    }

    .view-certificate {
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 35px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .certificate-lightbox {
        padding: 80px 10px 10px 10px;
    }

    .extras-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1.25rem;
    }

    .project-item {
        max-width: 100%;
        width: 100%;
    }

    .extra-item {
        padding: 1.5rem;
    }

    .extra-label {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .extra-item p {
        font-size: 0.95rem;
    }

    .terminal {
        max-width: 100%;
    }

    .terminal-body {
        padding: 1.5rem;
        font-size: 0.85rem;
    }

    .contact-label {
        min-width: 80px;
        font-size: 0.85rem;
    }

    .contact-value {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .contact-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .contact-footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    body::before {
        display: none;
    }

    html {
        scroll-snap-type: none;
        scroll-behavior: auto;
    }

    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: auto;
    }

    .scene {
        min-height: 70vh;
        padding: 1.5rem 1rem;
    }

    .scene-project {
        min-height: 85vh;
        padding: 1.5rem 1rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .scene-projects-intro {
        padding: 1.5rem 1rem;
    }

    .scene-projects {
        padding: 1.5rem 1rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .project-item {
        padding: 1.5rem;
        max-width: 100%;
        width: 100%;
    }

    .projects-stack-container {
        height: auto;
        min-height: 450px;
    }

    .project-card {
        padding: 1.5rem;
    }

    .scene-hero {
        min-height: 75vh;
    }

    .hero-name {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }

    .hero-role {
        font-size: 0.95rem;
    }

    .hero-location {
        font-size: 0.8rem;
    }

    .hero-socials {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .scene-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .objective-primary {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .objective-secondary {
        font-size: 0.9rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline::before {
        width: 2px;
    }

    .timeline-marker {
        left: -1.5rem;
        width: 10px;
        height: 10px;
        animation: none;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-period,
    .timeline-institution {
        font-size: 0.875rem;
    }

    .skills-compact {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .skill-row {
        padding: 1rem 0;
    }

    .skill-category {
        font-size: 0.85rem;
    }

    .skill-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .skill-cluster {
        padding: 1.25rem;
    }

    .cluster-label {
        font-size: 0.75rem;
    }

    .skill-tag {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-name {
        font-size: 1.4rem;
    }

    .project-subtitle {
        font-size: 0.95rem;
    }

    .project-description li {
        font-size: 0.875rem;
        margin-bottom: 0.6rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .experience-title {
        font-size: 1.25rem;
    }

    .experience-company {
        font-size: 1rem;
    }

    .experience-item p {
        font-size: 0.875rem;
    }

    .cert-badge {
        padding: 1.25rem;
    }

    .cert-icon {
        font-size: 1.75rem;
    }

    .cert-name {
        font-size: 0.95rem;
    }

    .cert-level {
        font-size: 0.8rem;
    }

    /* Certificate Gallery Mobile Small */
    .certificates-track {
        animation-duration: 60s;
        gap: 1.5rem;
    }

    .certificate-item {
        flex: 0 0 280px;
    }

    .certificate-card {
        border-radius: 12px;
    }

    .view-certificate {
        font-size: 0.75rem;
        padding: 0.5rem 1.25rem;
        letter-spacing: 0.05em;
    }

    .certificate-overlay {
        padding: 1.5rem;
    }

    .lightbox-close {
        top: 5px;
        right: 5px;
        font-size: 35px;
        width: 35px;
        height: 35px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 75vh;
    }

    .certificate-lightbox {
        padding: 70px 5px 5px 5px;
    }

    .lightbox-caption {
        font-size: 0.85rem;
        padding: 10px 0;
    }

    .extra-item {
        padding: 1.25rem;
    }

    .extra-item p {
        font-size: 0.875rem;
    }

    .terminal-body {
        padding: 1.25rem;
        font-size: 0.8rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-bottom: 1.25rem;
    }

    .contact-label {
        min-width: auto;
        font-size: 0.8rem;
    }

    .contact-value {
        font-size: 0.8rem;
    }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .timeline-marker {
        animation: none;
    }
    
    body::before {
        animation: none;
    }
    
    @keyframes markerPulse {
        0%, 100% { transform: scale(1); }
    }
}

/* Fix for Safari backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .skill-cluster,
    .project-card,
    .experience-card,
    .cert-badge,
    .extra-item,
    .terminal {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* ========================================
   FLOATING RESUME BUTTON
   ======================================== */

.floating-resume {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
}

.resume-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -1px 1px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: visible;
}

.resume-toggle::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.resume-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1.5px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.resume-toggle:hover::before {
    opacity: 1;
}

.resume-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(0, 0, 0, 0.15);
}

.resume-toggle svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.resume-toggle span {
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ========================================
   RESPONSIVE - FLOATING RESUME
   ======================================== */

@media (max-width: 768px) {
    .floating-resume {
        top: 1.5rem;
        right: 1.5rem;
    }

    .resume-toggle {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .resume-toggle svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .floating-resume {
        top: 1rem;
        right: 1rem;
    }

    .resume-toggle {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .resume-toggle svg {
        width: 18px;
        height: 18px;
    }

    .resume-toggle span {
        display: none;
    }
}
