/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
    /* Color Palette matching screenshot and adding premium dark vibe */
    --bg-dark: #030305;
    --bg-darker: #010102;
    --bg-card: rgba(10, 10, 14, 0.45);
    --bg-glass: rgba(255, 255, 255, 0.025);

    /* Pinterest Warm Charcoal Theme Gradients */
    --color-terracotta: rgba(224, 114, 82, 0.07);
    --color-warm-amber: rgba(212, 163, 89, 0.05);
    --color-deep-plum: rgba(128, 55, 117, 0.06);
    --color-slate-blue-muted: rgba(74, 96, 219, 0.05);

    /* Primary / Accent colors from the screenshot */
    --color-electric-blue: #0056ff;
    /* Aaryan */
    --color-slate-blue: #002b80;
    /* sama */
    --color-violet-glow: #4f3beb;
    /* UI/UX */
    --color-cream-white: #eae6df;
    /* WEB DESIGNER */

    /* Global Semantic Colors */
    --text-primary: #f6f5f4;
    --text-secondary: rgba(246, 245, 244, 0.7);
    --text-muted: rgba(246, 245, 244, 0.45);

    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-glow: rgba(79, 59, 235, 0.25);

    /* Shadow & Glow Effects */
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
    --glow-violet: 0 0 40px rgba(79, 59, 235, 0.45);
    --glow-blue: 0 0 40px rgba(0, 86, 255, 0.35);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Animations & Transitions */
    --transition-smooth: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-reveal: 350ms;

    /* Layout Constants */
    --nav-height: 72px;
    --section-padding: 120px;
}

/* ==========================================================================
   RESET & SYSTEM BASICS
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scroll-behavior: smooth; -- Commented out to prevent double-scrolling conflict with custom JS luxury smooth scroll */
    scroll-padding-top: var(--nav-height);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide Scrollbar */
::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none; /* Firefox */
}

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

/* Global Responsive Utilities */
.show-mobile {
    display: none;
}
.hide-mobile {
    display: inline;
}

.portrait-arc {
    display: none;
}

/* ==========================================================================
   AMBIENT GLOWING BACKGROUND
   ========================================================================== */
/* ==========================================================================
   PINTEREST-INSPIRED MOOD BOARD BACKGROUND
   ========================================================================== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(3, 3, 5, 0.65), rgba(1, 1, 2, 0.72)), url('cinematic_tech_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Scroll-Driven Video Background */
.bg-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.18;
    pointer-events: none;
    filter: brightness(0.55) saturate(0.6);
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* organic floating blur blobs */
.pinterest-blobs-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
    opacity: 0.45;
}

.pinterest-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
    animation: floatBlob 24s ease-in-out infinite alternate;
}

.blob-peach {
    width: 60vw;
    height: 60vw;
    top: -20vw;
    left: -10vw;
    background: radial-gradient(circle, var(--color-terracotta) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-amber {
    width: 50vw;
    height: 50vw;
    top: 30vh;
    right: -15vw;
    background: radial-gradient(circle, var(--color-warm-amber) 0%, transparent 70%);
    animation-delay: -6s;
    animation-duration: 28s;
}

.blob-plum {
    width: 55vw;
    height: 55vw;
    bottom: -10vw;
    left: -10vw;
    background: radial-gradient(circle, var(--color-deep-plum) 0%, transparent 70%);
    animation-delay: -12s;
    animation-duration: 32s;
}

.blob-slate {
    width: 45vw;
    height: 45vw;
    top: 15vh;
    left: 35vw;
    background: radial-gradient(circle, var(--color-slate-blue-muted) 0%, transparent 70%);
    animation-delay: -18s;
    animation-duration: 20s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5vw, -6vh) scale(1.08);
    }
    100% {
        transform: translate(-4vw, 5vh) scale(0.94);
    }
}

/* draft dot grid backing board */
.pinterest-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
    z-index: 1;
}

#ambient-particles {
    position: absolute;
    inset: 0;
    opacity: 0.15; /* Soft glowing dust particles */
    mix-blend-mode: screen;
    z-index: 1;
}

/* tactile matte paper / film grain overlay */
.noise-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Pinterest Board Pins Layout */
.pinterest-mood-board {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.pinterest-pin {
    position: absolute;
    width: clamp(170px, 13vw, 220px);
    z-index: 2;
    pointer-events: auto;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-inner {
    background: rgba(10, 10, 14, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 8px;
}

.pin-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e07252;
    box-shadow: 0 0 8px rgba(224, 114, 82, 0.6);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.pin-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.4s ease;
}

.pin-svg {
    width: 100%;
    height: auto;
    stroke: currentColor;
    transition: stroke 0.4s ease, filter 0.4s ease;
}

.pinterest-pin:hover {
    transform: translateY(-8px) scale(1.04) rotate(1.5deg) !important;
    z-index: 10;
}

.pinterest-pin:hover .pin-inner {
    background: rgba(15, 15, 20, 0.65);
    border-color: rgba(224, 114, 82, 0.35);
    box-shadow: 0 20px 48px rgba(224, 114, 82, 0.15),
                0 0 25px rgba(224, 114, 82, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.pinterest-pin:hover .pin-dot {
    background: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.pinterest-pin:hover .pin-label {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pulseGlow {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(40px) scale(1.1);
    }
}

/* ==========================================================================
   SCROLL-ANIMATED GEOMETRIC BACKGROUND ELEMENTS
   ========================================================================== */
.scroll-geo-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    color: var(--color-electric-blue);
    will-change: transform;
    transition: color 0.6s ease;
}

/* Size variants per shape type */
.geo-ring {
    width: clamp(60px, 10vw, 120px);
    height: auto;
}

.geo-cross {
    width: clamp(20px, 3.5vw, 40px);
    height: auto;
    animation: geoSpinSlow 45s linear infinite;
}

.geo-diamond {
    width: clamp(24px, 3.5vw, 45px);
    height: auto;
    animation: geoSpinSlow 60s linear infinite reverse;
}

.geo-bracket {
    width: clamp(16px, 2.5vw, 30px);
    height: auto;
}

.geo-dots {
    width: clamp(30px, 5vw, 60px);
    height: auto;
    animation: geoPulse 8s ease-in-out infinite alternate;
}

.geo-line {
    width: clamp(40px, 7vw, 100px);
    height: auto;
}

.geo-triangle {
    width: clamp(28px, 4vw, 50px);
    height: auto;
    animation: geoSpinSlow 55s linear infinite;
}

.geo-arc {
    width: clamp(40px, 6vw, 80px);
    height: auto;
    animation: geoSpinSlow 50s linear infinite reverse;
}

/* Subtle idle animations */
@keyframes geoSpinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes geoPulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.08); }
}

/* Hide on small screens to preserve performance */
@media (max-width: 768px) {
    .scroll-geo-layer {
        display: none;
    }
}

/* ==========================================================================
   HEADER & NAVIGATION — PREMIUM REDESIGN
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.5s ease,
                box-shadow 0.5s ease;
    will-change: transform;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    height: 62px;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.nav-container {
    max-width: 1340px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* --- Premium Branded Logo --- */
.nav-logo {
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    pointer-events: auto;
    transition: transform 0.35s var(--ease-premium);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo:hover {
    transform: scale(1.04);
}

.nav-logo:hover .logo-accent {
    text-shadow: 0 0 24px rgba(0, 86, 255, 0.8),
                 0 0 48px rgba(0, 86, 255, 0.3);
}

.logo-text {
    font-weight: 800;
}

.logo-accent {
    color: var(--color-electric-blue);
    font-weight: 900;
    font-size: 28px;
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 86, 255, 0.5);
    transition: text-shadow 0.4s ease;
}

/* --- Centered Navigation Capsule --- */
.nav-pills {
    display: flex;
    gap: 4px;
    padding: 0;
    border-radius: 100px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    overflow: visible;
    pointer-events: auto;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* --- Sliding Pill Indicator --- */
.nav-indicator {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 86, 255, 0.14);
    border: 1px solid rgba(0, 86, 255, 0.30);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 0 16px rgba(0, 86, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 100px;
    pointer-events: none;
    z-index: 1;
    will-change: transform, width, height;
}

/* --- Individual Nav Pill Links --- */
.nav-pill {
    display: inline-block;
    padding: 9px 22px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-radius: 100px;
    transition: color 0.35s ease;
    border: 1px solid transparent;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.nav-pill:hover {
    color: rgba(255, 255, 255, 0.92);
}

.nav-pill.active {
    color: #fff;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* --- Resume CTA Button (Right Side) --- */
.nav-resume-btn {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient sweep on hover */
.nav-resume-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(0, 86, 255, 0.25) 0%, rgba(79, 59, 235, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-resume-btn:hover::before {
    opacity: 1;
}

.nav-resume-btn:hover {
    border-color: rgba(0, 86, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 0 28px rgba(0, 86, 255, 0.35),
                0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.nav-resume-btn span,
.nav-resume-btn i {
    position: relative;
    z-index: 1;
}

.nav-resume-btn i {
    font-size: 11px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-resume-btn:hover i {
    transform: translateY(3px);
}

/* --- Premium Hero Resume CTA Button --- */
.hero-cta {
    margin-top: 35px;
    display: inline-block;
    animation: textRevealAccent 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 0.58s;
}

.hero-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.hero-resume-btn i {
    font-size: 14px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-resume-btn:hover {
    background: rgba(0, 86, 255, 0.14);
    border-color: rgba(0, 86, 255, 0.45);
    box-shadow:
        0 15px 40px rgba(0, 86, 255, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.hero-resume-btn:hover i {
    transform: translateY(3px);
}

.hero-projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    margin-left: 16px;
}

.hero-projects-btn i {
    font-size: 14px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-projects-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-3px);
}

.hero-projects-btn:hover i {
    transform: translateX(3px);
}

.hero-mobile-roles {
    display: none;
}

/* --- Mobile Toggle Hamburger --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    pointer-events: auto;
    position: absolute;
    right: 40px;
    padding: 6px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Mobile Toggle active X state */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Fullscreen Drawer --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(2, 2, 4, 0.97);
    backdrop-filter: blur(30px) saturate(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(1.2);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-drawer.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s ease;
}

/* Stagger mobile link entrance */
.mobile-drawer.active .mobile-link[data-index="0"] { transition-delay: 0.08s; }
.mobile-drawer.active .mobile-link[data-index="1"] { transition-delay: 0.14s; }
.mobile-drawer.active .mobile-link[data-index="2"] { transition-delay: 0.20s; }
.mobile-drawer.active .mobile-link[data-index="3"] { transition-delay: 0.26s; }
.mobile-drawer.active .mobile-link[data-index="4"] { transition-delay: 0.32s; }

.mobile-link:hover,
.mobile-link.active {
    color: #fff;
}

/* Hover underline sweep for mobile links */
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-electric-blue);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(0, 86, 255, 0.5);
}

.mobile-link:hover::after,
.mobile-link.active::after {
    width: 100%;
}

.mobile-resume-btn {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    text-decoration: none;
    opacity: 0;
    transform: translateY(15px);
}

.mobile-drawer.active .mobile-resume-btn {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.38s,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.38s,
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.mobile-resume-btn:hover {
    background: rgba(0, 86, 255, 0.15);
    border-color: rgba(0, 86, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 86, 255, 0.25);
    transform: translateY(-2px);
}

/* Hero Page Load Keyframes */
@keyframes slidePopUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.92);
    }

    60% {
        transform: translateY(-8px) scale(1.02);
    }

    85% {
        transform: translateY(3px) scale(0.99);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textRevealAccent {
    0% {
        opacity: 0;
        transform: translateY(40px) skewY(2deg);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) skewY(0deg);
        filter: blur(0px);
    }
}

@keyframes portraitRevealAccent {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(40px) skewY(2deg);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) skewY(0deg);
        filter: blur(0px);
    }
}

@keyframes scrollHintSlidePop {
    0% {
        opacity: 0;
        transform: translate(-50%, 40px) scale(0.9);
    }

    60% {
        transform: translate(-50%, -5px) scale(1.02);
    }

    85% {
        transform: translate(-50%, 2px) scale(0.99);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes portraitReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, 80px) scale(0.88);
    }

    60% {
        transform: translate(-50%, -10px) scale(1.03);
    }

    85% {
        transform: translate(-50%, 4px) scale(0.99);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0px) scale(1);
    }
}

/* ==========================================================================
   HERO SECTION (Cloned Layout)
   ========================================================================== */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow: hidden;
}

.hero-container {
    max-width: 1300px;
    width: 100%;
    height: calc(100vh - 150px);
    min-height: 550px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Left Column content */
.hero-left-content {
    position: relative;
    z-index: 5;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.hero-top-text {
    margin-top: 20px;
}

.hero-greeting {
    font-family: var(--font-heading);
    font-size: clamp(38px, 5.5vw, 64px);
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 5px;
    animation: textRevealAccent 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 0.15s;
}

.greeting-hi {
    font-weight: 900;
}

.greeting-im {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(52px, 8.5vw, 98px);
    line-height: 0.9;
    letter-spacing: -2.5px;
    animation: textRevealAccent 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.name-first {
    font-weight: 900;
    color: var(--color-electric-blue);
    text-shadow: 0 0 40px rgba(0, 86, 255, 0.25);
}

.name-last {
    font-weight: 700;
    font-size: clamp(32px, 5vw, 58px);
    color: #ffffff;
}

.hero-description-text {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.8vw, 15px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-top: 30px;
    max-width: 440px;
    animation: textRevealAccent 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 0.45s;
}

/* Portrait Wrapper aligned centered-right */
.hero-portrait-layer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 100%;
    max-width: 850px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    pointer-events: none;
    animation: portraitRevealAccent 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 0.25s;
}

.portrait-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    will-change: transform, opacity;
}

/* Studio violet rim lighting backing glow */
.portrait-glow {
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: radial-gradient(circle at 50% 50%, rgba(79, 59, 235, 0.18) 0%, rgba(0, 86, 255, 0.08) 50%, transparent 80%);
    filter: blur(60px);
    z-index: 0;
    transform: scale(0.9);
    animation: floatGlow 8s ease-in-out infinite alternate;
    will-change: transform;
}

/* Outer wrapper to isolate scroll parallax vectors from mouse parallax */
.hero-bg-heading-wrapper {
    position: absolute;
    top: 36%;
    left: 53%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* Faded background hero heading behind profile image */
.hero-bg-heading {
    font-family: var(--font-heading);
    font-size: clamp(55px, 14vw, 220px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    white-space: nowrap;
    text-align: center;
    width: 100%;

    /* Beautiful vertical text gradient fade */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
    will-change: transform, opacity;
}

.portrait-image {
    position: relative;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    z-index: 2;
    mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 88%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 88%);
    transform: translateY(0);
    scale: 1.22;
    transition: var(--transition-smooth);
}

.portrait-wrapper:hover .portrait-image {
    transform: translateY(-8px) scale(1.22);
}

/* ─────────────────────────────────────────────
   PORTRAIT SHAPE OPTION 1 — Organic Blob
   Apply class "portrait-blob" to .portrait-wrapper
   ───────────────────────────────────────────── */
.portrait-blob .portrait-image {
    mask-image: none;
    -webkit-mask-image: none;
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
    scale: 1.08;
    filter: drop-shadow(0 0 32px rgba(0, 86, 255, 0.35))
            drop-shadow(0 20px 48px rgba(0, 0, 0, 0.75));
    transition: border-radius 800ms var(--ease-premium),
                transform 400ms var(--ease-premium),
                filter 400ms var(--ease-premium);
}

/* Blob subtly morphs on hover */
.portrait-blob:hover .portrait-image {
    transform: translateY(-8px);
    border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
}

/* ─────────────────────────────────────────────
   PORTRAIT SHAPE OPTION 2 — Angular Geometric
   Apply class "portrait-geo" to .portrait-wrapper
   ───────────────────────────────────────────── */
.portrait-geo .portrait-image {
    mask-image: none;
    -webkit-mask-image: none;
    scale: 1.08;
    clip-path: polygon(
        12% 0%,
        88% 0%,
        100% 18%,
        100% 88%,
        82% 100%,
        0%  100%,
        0%  14%
    );
    filter: drop-shadow(0 0 24px rgba(0, 86, 255, 0.5))
            drop-shadow(0 16px 40px rgba(0, 0, 0, 0.8));
    transition: clip-path 500ms var(--ease-premium),
                transform 400ms var(--ease-premium),
                filter 400ms var(--ease-premium);
}

.portrait-geo:hover .portrait-image {
    transform: translateY(-8px);
    clip-path: polygon(
        8%  0%,
        92% 0%,
        100% 14%,
        100% 92%,
        86% 100%,
        0%  100%,
        0%  10%
    );
    filter: drop-shadow(0 0 36px rgba(0, 86, 255, 0.65))
            drop-shadow(0 16px 40px rgba(0, 0, 0, 0.8));
}



@keyframes floatGlow {
    0% {
        transform: scale(0.9) translate(0px, 0px);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.05) translate(10px, -10px);
        opacity: 1;
    }
}

/* Right content (Role typography bottom right) */
.hero-right-content {
    position: absolute;
    right: 40px;
    bottom: 80px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 5;
    will-change: transform, opacity;
}

.role-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(18px, 3vw, 30px);
    font-weight: 800;
    color: var(--color-violet-glow);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    /* Pull them closer together */
    text-shadow: 0 0 35px rgba(79, 59, 235, 0.4);
    animation: textRevealAccent 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.role-main {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    /* Beautifully tight line height for cohesive grouping */
    animation: textRevealAccent 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 0.72s;
}

.role-word {
    font-family: var(--font-heading);
    font-size: clamp(34px, 5.6vw, 56px);
    /* Balanced, highly integrated sizing */
    font-weight: 900;
    color: var(--color-cream-white);
    letter-spacing: -1.5px;
}

/* Scroll indicator */
.scroll-down-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    justify-content: center;
    animation: scrollHintSlidePop 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    animation-delay: 0.9s;
    will-change: transform, opacity;
}

.scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    transition: var(--transition-smooth);
    animation: subtleBounce 2s ease-in-out infinite;
}

@keyframes subtleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.scroll-btn:hover {
    opacity: 1;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollScroll 1.8s ease-in-out infinite;
}

.scroll-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes scrollScroll {
    0% {
        top: 6px;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* ==========================================================================
   GLOBAL SECTION PATTERNS (Under the Fold)
   ========================================================================== */
section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow-x: clip;
}

/* Luxury Scrolling Backdrop Parallax Typography */
.parallax-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 15%;
    font-family: var(--font-heading);
    font-size: clamp(90px, 16vw, 220px);
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.02);
    user-select: none;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    opacity: 0.75;
    will-change: transform;
    max-width: 100vw;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 60px;
}

.tagline {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0056ff;
    /* Directly matched to primary accent blue hex code */
    opacity: 1;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 80px;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

/* Glassmorphism Cards (Projects) */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-premium);
    transition: border-color 350ms var(--ease-premium), box-shadow 350ms var(--ease-premium), transform 350ms var(--ease-premium);
    transform-style: preserve-3d;
    will-change: transform, opacity;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: rgba(79, 59, 235, 0.5);
    box-shadow: var(--glow-violet), 0 0 80px rgba(79, 59, 235, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    transform: translateY(-10px) scale(1.03);
}

/* Dedicated Premium Glassmorphism for Skills, Achievement, & Contact Cards */
.skills-card,
.achievement-card,
.contact-form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.012) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: border-color 350ms var(--ease-premium), box-shadow 350ms var(--ease-premium), transform 350ms var(--ease-premium);
    transform-style: preserve-3d;
    will-change: transform, opacity;
    position: relative;
    overflow: hidden;
}

.skills-card:hover,
.achievement-card:hover,
.contact-form-container:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(79, 59, 235, 0.5);
    box-shadow: 
        var(--glow-violet), 
        0 25px 60px rgba(0, 0, 0, 0.45), 
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transform: translateY(-10px) scale(1.03);
}



/* ==========================================================================
   ABOUT SECTION — REDESIGNED
   ========================================================================== */

/* ── Outer section ── */
.about {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    overflow: visible;
    background: transparent;
    perspective: 1500px;
    transform-style: preserve-3d;
}

/* Drifting Background Title */
.about-bg-title-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.about-bg-title {
    font-family: var(--font-heading);
    font-size: clamp(60px, 15vw, 240px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    white-space: nowrap;
    text-align: center;
    width: 100%;

    /* Vertical text gradient fade matching Hero Title */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.01) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.7;
    will-change: transform, opacity;
}

/* ── LEFT PANEL — absolute portrait background ── */
.about-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 38%;
    height: 100%;
    z-index: 1;
    overflow: visible;
    transform-style: preserve-3d;
}

/* Section number */
.about-section-num {
    position: absolute;
    top: 48px;
    left: 28px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
    z-index: 4;
}

/* Vertical "ABOUT ME" label */
.about-vertical-label {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    white-space: nowrap;
    z-index: 4;
}

/* Portrait wrapper — fills the entire left panel */
.about-portrait-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
}

/* Large circular arc behind the portrait */
.about-arc {
    position: absolute;
    top: 50%;
    left: 58%;
    transform: translate(-50%, -50%);
    width: min(85%, 520px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid transparent;
    background:
        linear-gradient(rgba(3,3,5,0), rgba(3,3,5,0)) padding-box,
        linear-gradient(
            160deg,
            rgba(0, 100, 255, 0.45) 0%,
            rgba(0, 50, 180, 0.28) 30%,
            rgba(0, 25, 120, 0.12) 55%,
            transparent 75%
        ) border-box;
    box-shadow:
        0 0 30px rgba(0, 86, 255, 0.08),
        0 0 60px rgba(0, 86, 255, 0.04);
    z-index: 2;
    pointer-events: none;
    animation: aboutArcPulse 6s ease-in-out infinite alternate;
}

@keyframes aboutArcPulse {
    0%   { opacity: 0.65; transform: translate(-50%, -50%) scale(1);     }
    100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.03);  }
}

/* Deep blue orb glow behind portrait */
.about-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    max-width: 480px;
    max-height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 60, 200, 0.55) 0%, rgba(0, 30, 120, 0.35) 40%, transparent 72%);
    filter: blur(32px);
    z-index: 1;
    pointer-events: none;
    animation: aboutOrbPulse 6s ease-in-out infinite alternate;
}

@keyframes aboutOrbPulse {
    0%   { opacity: 0.75; transform: translate(-50%, -50%) scale(1);    }
    100% { opacity: 1;    transform: translate(-50%, -50%) scale(1.08); }
}

/* Portrait image — always fills panel, anchored bottom */
.about-portrait {
    position: absolute;
    bottom: 20%;
    left: 62%;
    transform: translateX(-50%);
    z-index: 3;
    height: 90%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.9));
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 94%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 94%);
    transition: transform 400ms var(--ease-premium);
}

.about-portrait:hover {
    transform: translateX(-50%) translateY(-6px);
}


/* ── CENTRED CONTENT CONTAINER — matches hero-container exactly ── */
.about-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 0;
    transform-style: preserve-3d;
}

/* Invisible spacer that sits over the portrait area */
.about-spacer {
    width: 38%;
    flex-shrink: 0;
}

/* ── RIGHT CONTENT COLUMN ── */
.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 0 60px 40px;
    gap: 18px;
    overflow: visible;
    transform-style: preserve-3d;
}

/* Heading + tagline row */
.about-heading-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 2px;
}

.about-title-block {
    line-height: 0.95;
    flex-shrink: 0;
    overflow: visible;
    padding: 20px;
    margin: -20px;
}

.about-title-line1 {
    font-family: var(--font-heading);
    font-size: clamp(48px, 6.5vw, 88px);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -3px;
    text-transform: uppercase;
    display: block;
    padding-right: 0.15em;
}

.about-title-line2 {
    font-family: var(--font-heading);
    font-size: clamp(48px, 6.5vw, 88px);
    font-weight: 900;
    color: var(--color-electric-blue);
    letter-spacing: -3px;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(0, 86, 255, 0.35);
    display: block;
    padding-right: 0.15em;
}

.about-tagline-block {
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.about-tagline-block p {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
}

/* Rotating fade-reveal typography */
.about-rotating-text {
    position: relative;
    height: 28px;
    overflow: hidden;
}

.rotating-word {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rotating-word.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.rotating-word.exit {
    opacity: 0;
    transform: translateY(-14px);
    filter: blur(4px);
}

.about-tagline-bar {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-electric-blue);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0,86,255,0.5);
}

/* Paragraph */
.about-para {
    font-family: 'Courier New', monospace;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    max-width: 500px;
    border-left: 2px solid rgba(0,86,255,0.3);
    padding-left: 14px;
}

/* ── 4 Skill cards ── */
.about-skill-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.about-skill-card {
    background: rgba(6, 8, 18, 0.72);
    border: 1px solid rgba(0, 86, 255, 0.15);
    border-radius: 12px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 350ms var(--ease-premium), box-shadow 350ms var(--ease-premium), transform 350ms var(--ease-premium);
    cursor: default;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-skill-card:hover {
    border-color: rgba(0, 86, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 86, 255, 0.3), 0 0 40px rgba(0, 86, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-10px) translateZ(30px) rotateX(10deg) rotateY(-8deg);
}

.about-skill-icon {
    font-size: 20px;
    color: var(--color-electric-blue);
    margin-bottom: 2px;
    transition: transform 350ms var(--ease-premium);
    transform: translateZ(0);
}

.about-skill-card:hover .about-skill-icon {
    transform: translateZ(40px);
}

.about-skill-card h4 {
    font-family: var(--font-heading);
    font-size: 10.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 350ms var(--ease-premium);
    transform: translateZ(0);
}

.about-skill-card:hover h4 {
    transform: translateZ(25px);
}

.about-skill-card p {
    font-family: var(--font-body);
    font-size: 10.5px;
    color: rgba(255,255,255,0.42);
    line-height: 1.6;
    transition: transform 350ms var(--ease-premium);
    transform: translateZ(0);
}

.about-skill-card:hover p {
    transform: translateZ(15px);
}

/* ── Quote block ── */
.about-quote {
    position: relative;
    background: rgba(6, 8, 18, 0.78);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 16px 80px 16px 46px;
    display: flex;
    align-items: center;
    overflow: visible;
    transform-style: preserve-3d;
    transition: border-color 350ms var(--ease-premium), box-shadow 350ms var(--ease-premium), transform 350ms var(--ease-premium);
}

.about-quote:hover {
    border-color: rgba(0, 86, 255, 0.45);
    box-shadow: 0 15px 35px rgba(0, 86, 255, 0.15), var(--glow-blue);
    transform: translateY(-5px) translateZ(20px) rotateX(4deg) rotateY(-2deg);
}

.about-quote-mark {
    position: absolute;
    left: 14px;
    top: 10px;
    font-size: 42px;
    line-height: 1;
    color: var(--color-electric-blue);
    font-family: Georgia, serif;
    opacity: 0.9;
    transition: transform 350ms var(--ease-premium);
    transform: translateZ(0);
}

.about-quote:hover .about-quote-mark {
    transform: translateZ(35px) scale(1.1);
}

.about-quote p {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.62);
    line-height: 1.7;
    font-style: italic;
    transition: transform 350ms var(--ease-premium);
    transform: translateZ(0);
}

.about-quote:hover p {
    transform: translateZ(20px);
}

/* Dot grid decoration */
.about-quote-dots {
    position: absolute;
    right: 16px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(3, 5px);
    gap: 4px;
}

.about-quote-dots span {
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: rgba(0, 86, 255, 0.45);
}

/* ── Stats row ── */
.about-stats {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
    transform-style: preserve-3d;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    transition: transform 350ms var(--ease-premium);
    transform-style: preserve-3d;
}

.about-stat:hover {
    transform: scale(1.08) translateZ(15px);
}

.about-stat-num {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    color: var(--color-electric-blue);
    line-height: 1;
    transition: transform 350ms var(--ease-premium);
    transform: translateZ(0);
}

.about-stat:hover .about-stat-num {
    transform: translateZ(25px);
    text-shadow: 0 0 15px rgba(0, 86, 255, 0.4);
}

.about-stat-label {
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    transition: transform 350ms var(--ease-premium);
    transform: translateZ(0);
}

.about-stat:hover .about-stat-label {
    transform: translateZ(15px);
}

.about-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    margin: 0 16px;
    flex-shrink: 0;
}

/* ── Languages I Speak ── */
.about-languages {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
    transform-style: preserve-3d;
}

.about-languages-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-languages-title i {
    color: var(--color-electric-blue);
    font-size: 16px;
}

.about-languages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.about-lang-item {
    background: rgba(6, 8, 18, 0.72);
    border: 1px solid rgba(0, 86, 255, 0.12);
    border-radius: 12px;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 350ms var(--ease-premium),
                box-shadow 350ms var(--ease-premium),
                transform 350ms var(--ease-premium);
    cursor: default;
    transform-style: preserve-3d;
}

.about-lang-item:hover {
    border-color: rgba(0, 86, 255, 0.6);
    box-shadow: 0 12px 30px rgba(0, 86, 255, 0.2),
                0 0 35px rgba(0, 86, 255, 0.25),
                inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-6px) translateZ(20px);
}

.about-lang-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: transform 350ms var(--ease-premium);
    transform: translateZ(0);
}

.about-lang-item:hover .about-lang-name {
    transform: translateZ(20px);
}

.about-lang-bar {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}

.about-lang-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-lang-bar.native::after {
    width: 100%;
    background: linear-gradient(90deg, var(--color-electric-blue), #38bdf8);
    box-shadow: 0 0 8px rgba(0, 86, 255, 0.5);
}

.about-lang-bar.fluent::after {
    width: 88%;
    background: linear-gradient(90deg, var(--color-electric-blue), rgba(0, 86, 255, 0.6));
    box-shadow: 0 0 6px rgba(0, 86, 255, 0.35);
}

.about-lang-level {
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    transition: transform 350ms var(--ease-premium);
    transform: translateZ(0);
}

.about-lang-item:hover .about-lang-level {
    color: rgba(255,255,255,0.55);
    transform: translateZ(12px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .bg-video-wrapper {
        display: none !important;
    }
    .about {
        height: auto;
        min-height: auto;
        flex-direction: column;
        display: block;
        overflow: visible;
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .about-left {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 440px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        margin-bottom: 50px;
    }
    .about-portrait-wrap {
        position: relative;
        width: 100%;
        max-width: 380px;
        height: 380px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    .about-portrait {
        position: relative;
        left: auto;
        transform: none !important;
        height: 100%;
        width: auto;
        bottom: -40px;
        object-fit: contain;
    }
    .about-arc {
        top: 55% !important;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        width: 100%;
        max-width: 350px;
        aspect-ratio: 1;
    }
    .about-orb {
        top: 55% !important;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        width: 90%;
        max-width: 330px;
        height: 90%;
    }
    .about-container {
        flex-direction: column;
        height: auto;
        padding: 0 40px;
        gap: 0;
        display: flex;
    }
    .about-spacer {
        display: none !important;
    }
    .about-right {
        padding: 0;
        width: 100%;
        gap: 24px;
        flex: none;
    }
    .about-skill-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Simplify animations on tablet/mobile to avoid 3D rotations and clipping */
    #about .about-portrait {
        transform: translateY(30px) !important;
        opacity: 0;
        filter: blur(4px);
        transition: all 1s var(--ease-premium);
    }
    #about.reveal-active .about-portrait {
        transform: translateY(0) !important;
        opacity: 1;
        filter: blur(0);
    }
    #about .about-title-block,
    #about .about-tagline-block,
    #about .about-para,
    #about .about-quote,
    #about .about-stats {
        transform: translateY(30px) !important;
        opacity: 0;
        filter: blur(4px);
        transition: all 1s var(--ease-premium);
    }
    #about.reveal-active .about-title-block,
    #about.reveal-active .about-tagline-block,
    #about.reveal-active .about-para,
    #about.reveal-active .about-quote,
    #about.reveal-active .about-stats {
        transform: translateY(0) !important;
        opacity: 1;
        filter: blur(0);
    }
}

@media (max-width: 768px) {
    .about-title-line1,
    .about-title-line2 {
        font-size: clamp(44px, 10vw, 72px);
    }
    .about-container {
        padding: 0 24px;
    }
    .about-right {
        padding: 0;
        gap: 20px;
    }
    .about-skill-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .about-stats {
        flex-wrap: wrap;
        row-gap: 20px;
    }
    .about-stat-divider {
        display: none;
    }
    .about-stat {
        min-width: 45%;
        text-align: center;
    }
    .about-vertical-label {
        display: none;
    }
    .about-quote {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .about-quote-dots {
        position: static;
        margin-top: 10px;
        justify-content: flex-start;
    }
}




/* ==========================================================================
   BEYOND THE CODE SECTION - DEDICATED ACCORDION SWIPER (Expanding Passions)
   ========================================================================== */
.beyond-code {
    position: relative;
}

.interests-accordion {
    display: flex;
    width: 100%;
    height: 320px;
    gap: 15px;
    align-items: stretch;
    position: relative;
    padding: 10px 0;
}

.interest-accordion-item {
    flex: 0.6;
    /* Collapsed state matched to projects */
    min-width: 80px;
    /* Collapsed width matched to projects */
    border-radius: 40px;
    /* Border radius matched to projects */
    background: rgba(10, 10, 14, 0.35);
    /* Dark glassmorphic background */
    border: 1px solid var(--border-glass);
    /* Crisp visible outline */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    /* Subtle inset glass highlight */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 350ms var(--ease-premium), border-color 350ms var(--ease-premium), box-shadow 350ms var(--ease-premium), background 350ms var(--ease-premium);
    will-change: flex, transform, opacity;
}

.interest-accordion-item.active {
    flex: 3.2;
    /* Expanded active state matched to projects */
    cursor: default;
    background: rgba(6, 6, 9, 0.7);
    /* Darker glass when expanded to enhance text contrast */
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.08), var(--glow-violet);
}

/* Beautiful custom CSS glass gradients for each collapsed and expanded Passion card (eliminating images) */
.interest-accordion-item[data-index="0"] {
    background: linear-gradient(135deg, rgba(79, 59, 235, 0.08) 0%, rgba(10, 10, 14, 0.3) 100%);
}

.interest-accordion-item[data-index="0"]:hover {
    border-color: rgba(79, 59, 235, 0.75);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 28px rgba(79, 59, 235, 0.55), 0 0 60px rgba(79, 59, 235, 0.2);
}

.interest-accordion-item[data-index="0"].active {
    background: linear-gradient(135deg, rgba(79, 59, 235, 0.18) 0%, rgba(6, 6, 9, 0.75) 100%);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 0 40px rgba(79, 59, 235, 0.15);
}

.interest-accordion-item[data-index="1"] {
    background: linear-gradient(135deg, rgba(0, 86, 255, 0.08) 0%, rgba(10, 10, 14, 0.3) 100%);
}

.interest-accordion-item[data-index="1"]:hover {
    border-color: rgba(0, 86, 255, 0.75);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 28px rgba(0, 86, 255, 0.55), 0 0 60px rgba(0, 86, 255, 0.2);
}

.interest-accordion-item[data-index="1"].active {
    background: linear-gradient(135deg, rgba(0, 86, 255, 0.18) 0%, rgba(6, 6, 9, 0.75) 100%);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 0 40px rgba(0, 86, 255, 0.15);
}

.interest-accordion-item[data-index="2"] {
    background: linear-gradient(135deg, rgba(235, 59, 150, 0.08) 0%, rgba(10, 10, 14, 0.3) 100%);
}

.interest-accordion-item[data-index="2"]:hover {
    border-color: rgba(235, 59, 150, 0.75);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 28px rgba(235, 59, 150, 0.55), 0 0 60px rgba(235, 59, 150, 0.2);
}

.interest-accordion-item[data-index="2"].active {
    background: linear-gradient(135deg, rgba(235, 59, 150, 0.18) 0%, rgba(6, 6, 9, 0.75) 100%);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 0 40px rgba(235, 59, 150, 0.15);
}

.interest-accordion-item[data-index="3"] {
    background: linear-gradient(135deg, rgba(235, 120, 59, 0.08) 0%, rgba(10, 10, 14, 0.3) 100%);
}

.interest-accordion-item[data-index="3"]:hover {
    border-color: rgba(235, 120, 59, 0.75);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 28px rgba(235, 120, 59, 0.55), 0 0 60px rgba(235, 120, 59, 0.2);
}

.interest-accordion-item[data-index="3"].active {
    background: linear-gradient(135deg, rgba(235, 120, 59, 0.18) 0%, rgba(6, 6, 9, 0.75) 100%);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 0 40px rgba(235, 120, 59, 0.15);
}

.interest-accordion-item[data-index="4"] {
    background: linear-gradient(135deg, rgba(59, 235, 150, 0.08) 0%, rgba(10, 10, 14, 0.3) 100%);
}

.interest-accordion-item[data-index="4"]:hover {
    border-color: rgba(59, 235, 150, 0.75);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 28px rgba(59, 235, 150, 0.55), 0 0 60px rgba(59, 235, 150, 0.2);
}

.interest-accordion-item[data-index="4"].active {
    background: linear-gradient(135deg, rgba(59, 235, 150, 0.18) 0%, rgba(6, 6, 9, 0.75) 100%);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 0 40px rgba(59, 235, 150, 0.15);
}

.interest-accordion-item[data-index="5"] {
    background: linear-gradient(135deg, rgba(180, 59, 235, 0.08) 0%, rgba(10, 10, 14, 0.3) 100%);
}

.interest-accordion-item[data-index="5"]:hover {
    border-color: rgba(180, 59, 235, 0.75);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 28px rgba(180, 59, 235, 0.55), 0 0 60px rgba(180, 59, 235, 0.2);
}

.interest-accordion-item[data-index="5"].active {
    background: linear-gradient(135deg, rgba(180, 59, 235, 0.18) 0%, rgba(6, 6, 9, 0.75) 100%);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 0 40px rgba(180, 59, 235, 0.15);
}

.interest-accordion-content {
    width: 100%;
    height: 100%;
    padding: 25px 30px;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: justify-content 0.75s cubic-bezier(0.16, 1, 0.3, 1), padding 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.interest-accordion-item:not(.active) .interest-accordion-content {
    justify-content: center;
    padding: 0;
}

.interest-icon-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 100%;
    transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.interest-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.interest-accordion-item.active .interest-details {
    pointer-events: auto;
}

/* Staggered Content Reveals for Interest Card Details */
.interest-details>* {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 350ms var(--ease-premium), transform 350ms var(--ease-premium);
    will-change: transform, opacity;
}

.interest-accordion-item.active .interest-details>* {
    opacity: 1;
    transform: translateX(0);
}

.interest-accordion-item.active .interest-details h3 {
    transition-delay: 50ms;
}

.interest-accordion-item.active .interest-details p {
    transition-delay: 100ms;
}

.interest-details h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.interest-details p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.interest-icon-side .interest-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--color-electric-blue);
    transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Perfect centering inside vertical collapsed capsule slide without absolute layout breaking jumps */
.interest-accordion-item:not(.active) .interest-icon-side {
    width: auto;
    height: auto;
}

.interest-accordion-item:not(.active) .interest-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.interest-accordion-item.active .interest-icon {
    transform: scale(1.0);
}

/* Responsive Overrides for Beyond the Code (<= 820px) */
@media (max-width: 820px) {
    .interests-accordion {
        flex-direction: column !important;
        height: auto !important;
        gap: 15px !important;
    }

    .interest-accordion-item {
        flex: none !important;
        width: 100% !important;
        border-radius: 20px !important;
        cursor: default !important;

        /* Mobile Collapsed State Height */
        max-height: 90px !important;
        transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
        overflow: hidden !important;
    }

    .interest-accordion-item.active {
        max-height: 300px !important;
        background: rgba(14, 14, 22, 0.82) !important;
        border-color: rgba(79, 59, 235, 0.5) !important;
        box-shadow: var(--shadow-premium), var(--glow-violet) !important;
    }

    .interest-accordion-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 24px !important;
    }

    .interest-accordion-item:not(.active) .interest-accordion-content {
        padding: 16px 24px !important;
    }

    .interest-icon-side {
        width: 100% !important;
        height: auto !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .interest-accordion-item:not(.active) .interest-icon-side {
        position: static !important;
        transform: none !important;
    }

    .interest-accordion-item:not(.active) .interest-icon {
        transform: none !important;
        box-shadow: none !important;
    }

    .interest-details {
        width: 100% !important;
    }

    .interest-accordion-item:not(.active) .interest-details {
        gap: 0 !important;
    }

    .interest-accordion-item:not(.active) .interest-details h3 {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        transition: opacity 0.4s ease, transform 0.4s ease !important;
    }

    /* Hide descriptions on collapsed mobile interest cards */
    .interest-accordion-item:not(.active) .interest-details p {
        opacity: 0 !important;
        transform: translateY(20px) !important;
        pointer-events: none !important;
        height: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease, margin 0.4s ease !important;
    }

    /* Reveal description on scroll active mobile interest cards */
    .interest-accordion-item.active .interest-details p {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        height: auto !important;
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* Make background image full-width with low opacity for premium card texture */
    .interest-accordion-item .project-bg-image,
    .interest-accordion-item.active .project-bg-image {
        width: 100% !important;
        opacity: 0.12 !important;
        background-position: center !important;
        transform: scale(1) !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
}

/* ==========================================================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.skills-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skills-header i {
    font-size: 22px;
    color: var(--color-electric-blue);
}

.skills-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: 100px;
    transition: var(--transition-smooth);
    will-change: transform;
}

.skills-card:hover .skill-tag {
    border-color: rgba(79, 59, 235, 0.15);
    background: rgba(79, 59, 235, 0.05);
}

.skill-tag:hover {
    color: #fff;
    background: var(--color-electric-blue) !important;
    border-color: var(--color-electric-blue) !important;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
/* PROJECTS SECTION - PREMIUM HORIZONTAL ACCORDION SWIPER (Expanding Cards) */
.projects-accordion {
    display: flex;
    width: 100%;
    height: 480px;
    gap: 20px;
    align-items: stretch;
    position: relative;
    padding: 10px 0;
}

.accordion-item {
    flex: 0.6;
    /* Collapsed state */
    min-width: 80px;
    border-radius: 40px;
    background: rgba(18, 18, 26, 0.55);
    /* Dark glassmorphic background */
    border: 1px solid rgba(255, 255, 255, 0.10);
    /* Crisp visible outline */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.10);
    /* Subtle inset glass highlight */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 350ms var(--ease-premium), border-color 350ms var(--ease-premium), box-shadow 350ms var(--ease-premium), background 350ms var(--ease-premium), opacity 400ms var(--ease-premium), transform 400ms var(--ease-premium), width 400ms var(--ease-premium), margin 400ms var(--ease-premium);
    will-change: flex, transform, opacity, width, margin;
}

.accordion-item.active {
    flex: 3.2;
    /* Expanded active state */
    cursor: default;
    background: rgba(14, 14, 22, 0.82);
    /* Darker glass when expanded to enhance text contrast */
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.14), var(--glow-violet);
}

.accordion-item.hidden-card {
    opacity: 0 !important;
    pointer-events: none !important;
    flex: 0 0 0px !important;
    min-width: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}


.accordion-content {
    width: 100%;
    height: 100%;
    padding: 35px;
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.accordion-header-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 80px;
    height: 100%;
    transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    overflow: hidden;
    width: 540px;
    flex-shrink: 0;
}

.accordion-item.active .accordion-details {
    pointer-events: auto;
}

/* Staggered Content Reveals for Project Card Details */
.accordion-details>* {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 350ms var(--ease-premium), transform 350ms var(--ease-premium);
    will-change: transform, opacity;
}

.accordion-item.active .accordion-details>* {
    opacity: 1;
    transform: translateX(0);
}

.accordion-item.active .accordion-details h3 {
    transition-delay: 50ms;
}

.accordion-item.active .accordion-details p {
    transition-delay: 100ms;
}

.accordion-item.active .accordion-details .project-tech {
    transition-delay: 150ms;
}

.accordion-item.active .accordion-details .project-links {
    transition-delay: 200ms;
}

.accordion-details h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.accordion-details p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Premium Decorative Project Background Images */
.project-bg-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.22;
    /* Beautifully dim translucent preview in collapsed capsules */
    transform: scale(1.03);
    transition:
        opacity 350ms var(--ease-premium),
        transform 350ms var(--ease-premium),
        width 350ms var(--ease-premium),
        background-position 350ms var(--ease-premium);
    will-change: opacity, transform, width;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.accordion-item.active .project-bg-image,
.interest-accordion-item.active .project-bg-image {
    opacity: 0.32;
    /* Elegant balanced glow when expanded */
    width: 50%;
    /* Slide right to prevent text overlap */
    background-position: center right;
    transform: scale(1);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 90%);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 90%);
}

.accordion-header-side .project-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: var(--color-electric-blue);
    transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Perfect centering inside vertical collapsed capsule slide */
.accordion-item:not(.active) .accordion-header-side {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
}

.accordion-item:not(.active) .project-icon {
    transform: scale(1.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.accordion-item.active .project-icon {
    transform: scale(1.0);
}

/* Stretched Badge Overlay */
.project-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 6px 14px;
    background: var(--color-electric-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.accordion-item.active .project-badge {
    opacity: 1;
}

/* Responsive Overrides (<= 820px) - Stack vertically to preserve readability on mobile */
@media (max-width: 820px) {

    .accordion-item,
    .accordion-item.hidden-card {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex: none !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        border: 1px solid var(--border-glass) !important;
        border-radius: 24px !important;
        cursor: default !important;
        background: rgba(18, 18, 26, 0.55) !important;
        box-shadow: var(--shadow-premium) !important;
        
        /* Mobile Collapsed State Height */
        max-height: 90px !important;
        transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
        overflow: hidden !important;
    }

    .accordion-item.active,
    .accordion-item.hidden-card.active {
        max-height: 480px !important;
        background: rgba(14, 14, 22, 0.82) !important;
        border-color: rgba(79, 59, 235, 0.5) !important;
        box-shadow: var(--shadow-premium), var(--glow-violet) !important;
    }

    .projects-accordion {
        flex-direction: column !important;
        height: auto !important;
        gap: 20px !important;
    }

    .accordion-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        padding: 24px !important;
    }

    .accordion-item:not(.active) .accordion-content {
        padding: 16px 24px !important;
    }

    .accordion-header-side {
        width: 100% !important;
        height: auto !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .accordion-item:not(.active) .accordion-header-side,
    .accordion-item .accordion-header-side {
        position: static !important;
        transform: none !important;
    }

    .accordion-item:not(.active) .project-icon,
    .accordion-item .project-icon {
        transform: none !important;
        box-shadow: none !important;
    }

    .accordion-details {
        width: 100% !important;
    }

    .accordion-item:not(.active) .accordion-details {
        gap: 0 !important;
    }

    .accordion-item:not(.active) .accordion-details h3 {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        transition: opacity 0.4s ease, transform 0.4s ease !important;
    }

    /* Hide descriptions, tags, and links on collapsed mobile project cards */
    .accordion-item:not(.active) .accordion-details p,
    .accordion-item:not(.active) .accordion-details .project-tech,
    .accordion-item:not(.active) .accordion-details .project-links {
        opacity: 0 !important;
        transform: translateY(20px) !important;
        pointer-events: none !important;
        height: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease, margin 0.4s ease !important;
    }

    /* Reveal details on scroll active mobile project cards */
    .accordion-item.active .accordion-details p,
    .accordion-item.active .accordion-details .project-tech,
    .accordion-item.active .accordion-details .project-links {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        height: auto !important;
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .project-badge {
        position: static !important;
        display: inline-block !important;
        margin-bottom: 15px !important;
        opacity: 1 !important;
    }

    /* Make background image full-width with low opacity for premium card texture */
    .accordion-item .project-bg-image,
    .accordion-item.active .project-bg-image {
        width: 100% !important;
        opacity: 0.12 !important;
        background-position: center !important;
        transform: scale(1) !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    background: var(--color-electric-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
}

.project-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: var(--color-electric-blue);
    transition: var(--transition-bounce);
}

.project-card:hover .project-icon {
    background: var(--color-electric-blue);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-info p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.project-tech span {
    font-size: 12px;
    font-weight: 600;
    color: #6faeff;
    background: rgba(0, 86, 255, 0.15);
    border: 1px solid rgba(0, 86, 255, 0.25);
    padding: 3px 11px;
    border-radius: 100px;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 10px 22px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-link:hover {
    color: #fff;
    background: var(--color-electric-blue);
    border-color: var(--color-electric-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.proj-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.proj-link:hover i {
    transform: translate(2px, -2px);
}

/* Achievements section style */
.achievements-section {
    margin-top: var(--section-padding);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.achievement-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
}

.achievement-card i {
    font-size: 32px;
    color: var(--color-electric-blue);
}

.achievement-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.achievement-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-intro {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 35px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.012) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transition: border-color 350ms var(--ease-premium), box-shadow 350ms var(--ease-premium), transform 350ms var(--ease-premium);
    will-change: transform, opacity;
}

.method-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(0, 86, 255, 0.5);
    box-shadow: 
        var(--glow-blue), 
        0 20px 45px rgba(0, 86, 255, 0.20), 
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    transform: translateY(-5px) scale(1.03);
}

.method-card i {
    font-size: 24px;
    color: var(--color-electric-blue);
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-details span:first-child {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.method-details a,
.method-details span:last-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.method-details a:hover {
    color: var(--color-electric-blue);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--text-primary);
    transition: var(--transition-bounce);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: var(--color-electric-blue);
    border-color: var(--color-electric-blue);
    color: #fff;
    transform: translateY(-4px) rotate(-5deg);
    box-shadow: var(--glow-blue);
}

/* Contact Form */
.contact-form-container {
    padding: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    outline: none;
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    pointer-events: none;
    background: transparent;
}

/* Floating Label Logic */
.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-electric-blue);
    background: #060608;
    padding: 0 8px;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-electric-blue);
    background: rgba(0, 86, 255, 0.02);
    box-shadow: 0 0 15px rgba(0, 86, 255, 0.1);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--color-electric-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 86, 255, 0.3);
    transition: var(--transition-bounce);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 86, 255, 0.5);
}

.submit-btn i {
    font-size: 14px;
    transition: var(--transition-smooth);
}

.submit-btn:hover i {
    transform: translate(3px, -2px);
}

.form-feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition-smooth);
}

.form-feedback.success {
    background: rgba(0, 200, 100, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 200, 100, 0.2);
}

.form-feedback.error {
    background: rgba(255, 50, 50, 0.1);
    color: #ff5252;
    border: 1px solid rgba(255, 50, 50, 0.2);
}

.hidden {
    display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-darker);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 900;
    color: var(--color-electric-blue);
    letter-spacing: -0.5px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom i {
    color: #ff3366;
    margin: 0 2px;
}

/* ==========================================================================
   RESPONSIVE STYLING (Mobile & Tablet Optimization)
   ========================================================================== */
@media (max-width: 1100px) {
    .hero-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: auto;
        min-height: auto;
        padding-top: 50px;
        padding-bottom: 20px;
    }

    .hero-left-content {
        max-width: 100%;
        text-align: center;
        align-items: center;
        margin-bottom: 40px;
    }

    .hero-description-text {
        text-align: center;
        margin: 24px auto 0;
    }

    .hero-portrait-layer {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        height: 380px;
        margin: 0 auto 30px;
    }

    .portrait-wrapper {
        height: 100%;
        max-width: 380px;
    }

    .portrait-image {
        scale: 1;
    }

    .hero-right-content {
        position: relative;
        bottom: 0;
        right: 0;
        text-align: center;
        align-items: center;
        margin-top: 20px;
    }

    .role-main {
        align-items: center;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-card.featured {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .pinterest-mood-board {
        display: none !important;
    }

    .nav-container {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        padding: 0 24px;
        height: 100%;
    }

    .nav-pills,
    .nav-cta,
    .nav-resume-btn {
        display: none !important;
    }

    .nav-logo {
        display: flex !important;
        font-family: var(--font-heading);
        font-size: 20px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #ffffff;
        align-items: baseline;
    }
    .nav-logo .logo-accent {
        font-size: 24px;
    }

    .mobile-toggle {
        display: flex;
        position: static;
        order: 1;
        padding: 6px 0;
    }

    .section-container {
        padding: 0 24px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

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

    .project-card.featured {
        grid-column: span 1;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skills-card,
    .project-card,
    .achievement-card,
    .contact-form-container {
        padding: 24px !important;
        border-radius: 20px !important;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Prevent backdrop text from overflowing */
    .hero-bg-heading-wrapper {
        top: 48% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: none !important;
    }

    .hero {
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        padding: 80px 0 50px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    /* Redesigned Mobile Hero Section */
    .hero-container {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        height: auto !important;
        width: 100% !important;
        padding: 0 24px !important;
        position: relative !important;
        gap: 0 !important;
    }

    .hero-portrait-layer {
        position: relative !important;
        top: auto !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: 60vh !important;
        max-height: 480px !important;
        min-height: 320px !important;
        margin: 10px auto 10px !important;
        order: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important;
        z-index: 1 !important;
        animation: none !important;
        opacity: 1 !important;
        pointer-events: none !important;
    }

    .portrait-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 420px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .portrait-image {
        position: relative !important;
        height: 100% !important;
        width: auto !important;
        object-fit: contain !important;
        z-index: 2 !important;
        border-radius: 0 !important;
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 95%) !important;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 95%) !important;
        scale: 1.3 !important;
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
        bottom: -30px !important;
    }

    .portrait-glow {
        position: absolute !important;
        width: 300px !important;
        height: 300px !important;
        border-radius: 50% !important;
        background: radial-gradient(circle, rgba(0, 86, 255, 0.25) 0%, rgba(0, 43, 128, 0.05) 70%, transparent 100%) !important;
        border: 2px solid rgba(0, 86, 255, 0.6) !important;
        box-shadow: 0 0 30px rgba(0, 86, 255, 0.4), inset 0 0 30px rgba(0, 86, 255, 0.2) !important;
        z-index: 1 !important;
        left: 50% !important;
        top: 51% !important;
        transform: translate(-50%, -50%) !important;
        animation: floatGlow 8s ease-in-out infinite alternate !important;
    }

    .portrait-arc {
        display: block !important;
        position: absolute;
        top: 51% !important;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        height: 300px;
        border-radius: 50%;
        border: 2px solid transparent;
        background:
            linear-gradient(rgba(3,3,5,0), rgba(3,3,5,0)) padding-box,
            linear-gradient(
                160deg,
                rgba(0, 100, 255, 0.45) 0%,
                rgba(0, 50, 180, 0.28) 30%,
                rgba(0, 25, 120, 0.12) 55%,
                transparent 75%
            ) border-box;
        box-shadow:
            0 0 24px rgba(0, 86, 255, 0.1),
            inset 0 0 24px rgba(0, 86, 255, 0.05);
        z-index: 1;
        pointer-events: none;
    }

    .hero-left-content {
        position: relative !important;
        z-index: 3 !important;
        max-width: 100% !important;
        text-align: center !important;
        align-items: center !important;
        order: 2 !important;
        margin-top: 10px !important;
        margin-bottom: 30px !important;
        padding: 0 10px !important;
        display: flex !important;
        flex-direction: column !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-right-content {
        display: none !important;
    }

    .show-mobile {
        display: inline !important;
    }
    .hide-mobile {
        display: none !important;
    }

    .hero-greeting {
        font-family: var(--font-heading) !important;
        font-size: 20px !important;
        font-weight: 500 !important;
        color: #ffffff !important;
        margin-bottom: 6px !important;
        line-height: 1.2 !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .greeting-hi::after {
        content: ',' !important;
    }

    .hero-name {
        font-family: var(--font-heading) !important;
        font-size: 48px !important;
        font-weight: 900 !important;
        line-height: 1.05 !important;
        letter-spacing: -1.5px !important;
        margin-bottom: 12px !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .name-first {
        display: inline-block !important;
        color: var(--color-electric-blue) !important;
        text-shadow: 0 0 30px rgba(0, 86, 255, 0.4) !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .name-last {
        display: inline-block !important;
        font-size: 48px !important;
        color: #ffffff !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-mobile-roles {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        margin-top: 5px !important;
    }
    .role-pill {
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 100px !important;
        padding: 5px 12px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .role-pill::before {
        content: '' !important;
        display: inline-block !important;
        width: 5px !important;
        height: 5px !important;
        border-radius: 50% !important;
        background-color: var(--color-electric-blue) !important;
        box-shadow: 0 0 8px var(--color-electric-blue) !important;
    }
    .role-pill-separator {
        color: var(--color-electric-blue) !important;
        font-size: 12px !important;
        text-shadow: 0 0 8px var(--color-electric-blue) !important;
    }

    .hero-description-text {
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: rgba(255, 255, 255, 0.72) !important;
        max-width: 330px !important;
        margin: 4px auto 0 !important;
        text-align: center !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-cta {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 330px !important;
        gap: 10px !important;
        margin-top: 24px !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-resume-btn,
    .hero-projects-btn {
        display: inline-flex !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 14px 28px !important;
        border-radius: 14px !important;
        font-family: var(--font-body) !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        transition: all 0.4s var(--ease-premium) !important;
        margin: 0 !important;
        text-decoration: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-resume-btn {
        background: linear-gradient(90deg, #0052ff 0%, #003cd2 100%) !important;
        border: 1px solid var(--color-electric-blue) !important;
        color: #ffffff !important;
        box-shadow: 0 8px 25px rgba(0, 86, 255, 0.35) !important;
    }
    .hero-resume-btn:hover {
        box-shadow: 0 12px 25px rgba(0, 86, 255, 0.5) !important;
    }
    .hero-projects-btn {
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    }
    .hero-projects-btn:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
    }

    .scroll-down-hint {
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin: 15px auto 10px !important;
        display: flex !important;
        justify-content: center !important;
        order: 3 !important;
        z-index: 5 !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .scroll-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .scroll-mouse {
        width: 26px !important;
        height: 42px !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        border-radius: 100px !important;
        position: relative !important;
    }
    .scroll-wheel {
        width: 4px !important;
        height: 8px !important;
        background: var(--color-electric-blue) !important;
        border-radius: 100px !important;
        position: absolute !important;
        top: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        animation: scrollScroll 1.8s ease-in-out infinite !important;
        box-shadow: 0 0 6px var(--color-electric-blue) !important;
    }
    .scroll-text {
        font-size: 10px !important;
        font-weight: 600 !important;
        letter-spacing: 2px !important;
        color: rgba(255, 255, 255, 0.4) !important;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .skills-card,
    .project-card,
    .achievement-card,
    .contact-form-container {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .hero-container {
        padding: 0 16px !important;
        gap: 0 !important;
    }

    .hero-portrait-layer {
        height: 50vh !important;
        max-height: 380px !important;
        min-height: 270px !important;
        margin: 5px auto 10px !important;
    }
    .portrait-wrapper {
        max-width: 320px !important;
        height: 100% !important;
    }
    .portrait-glow {
        width: 250px !important;
        height: 250px !important;
    }
    .portrait-arc {
        width: 250px !important;
        height: 250px !important;
    }
    .hero-left-content {
        margin-top: 5px !important;
        margin-bottom: 20px !important;
    }

    .hero-greeting {
        font-size: 18px !important;
    }

    .hero-name {
        font-size: 44px !important;
        letter-spacing: -1.5px;
    }

    .name-last {
        font-size: 44px !important;
    }

    .hero-mobile-roles {
        flex-wrap: wrap;
        gap: 8px;
    }
    .role-pill {
        padding: 6px 14px;
        font-size: 10px;
    }
    .role-pill-separator {
        display: none;
    }

    /* Small screen method cards adjustments to prevent text wrapping/cutoffs */
    .method-card {
        padding: 14px !important;
        gap: 12px !important;
        border-radius: 14px !important;
    }
    .method-card i {
        font-size: 18px !important;
    }
    .method-details span:first-child {
        font-size: 9px !important;
    }
    .method-details a,
    .method-details span:last-child {
        font-size: 13px !important;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ==========================================================================
   LIQUID GLASSMORPHISM BLOBS
   ========================================================================== */
.liquid-glass-blob {
    position: absolute;
    width: clamp(200px, 25vw, 350px);
    height: clamp(200px, 25vw, 350px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.002));
    border: 1px solid rgba(255, 255, 255, 0.04);
    /* Ultra-minimal borders */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        inset 0 15px 30px rgba(255, 255, 255, 0.02),
        inset 0 -15px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 25px 50px rgba(0, 0, 0, 0.35);
    z-index: 1;
    /* Floating directly above canvas background, but below card containers */
    pointer-events: none;
    will-change: transform, border-radius;
    animation: morphLiquid 14s ease-in-out infinite alternate;
    opacity: 0.85;
}

.blob-skills {
    top: 25%;
    right: 5%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.002) 100%) !important;
    border: 1px solid rgba(0, 86, 255, 0.28) !important;
    box-shadow: 
        0 0 30px rgba(0, 86, 255, 0.12),
        inset 0 10px 20px rgba(255, 255, 255, 0.05),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.blob-skills-2 {
    bottom: 10%;
    left: -5%;
    width: clamp(150px, 16vw, 240px);
    height: clamp(150px, 16vw, 240px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.002) 100%) !important;
    border: 1px solid rgba(79, 59, 235, 0.28) !important;
    box-shadow: 
        0 0 30px rgba(79, 59, 235, 0.12),
        inset 0 10px 20px rgba(255, 255, 255, 0.05),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.blob-projects {
    bottom: 5%;
    right: -5%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.002) 100%) !important;
    border: 1px solid rgba(79, 59, 235, 0.28) !important;
    box-shadow: 
        0 0 30px rgba(79, 59, 235, 0.12),
        inset 0 10px 20px rgba(255, 255, 255, 0.05),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.blob-projects-2 {
    top: 10%;
    left: -8%;
    width: clamp(160px, 18vw, 260px);
    height: clamp(160px, 18vw, 260px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.002) 100%) !important;
    border: 1px solid rgba(0, 86, 255, 0.28) !important;
    box-shadow: 
        0 0 30px rgba(0, 86, 255, 0.12),
        inset 0 10px 20px rgba(255, 255, 255, 0.05),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.blob-projects-3 {
    top: 50%;
    left: 45%;
    width: clamp(220px, 26vw, 360px);
    height: clamp(220px, 26vw, 360px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.002) 100%) !important;
    border: 1px solid rgba(0, 240, 255, 0.28) !important;
    box-shadow: 
        0 0 30px rgba(0, 240, 255, 0.12),
        inset 0 10px 20px rgba(255, 255, 255, 0.05),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.blob-contact {
    top: 20%;
    right: 10%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.002) 100%) !important;
    border: 1px solid rgba(0, 86, 255, 0.28) !important;
    box-shadow: 
        0 0 30px rgba(0, 86, 255, 0.12),
        inset 0 10px 20px rgba(255, 255, 255, 0.05),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.blob-contact-2 {
    bottom: -5%;
    left: 5%;
    width: clamp(180px, 20vw, 280px);
    height: clamp(180px, 20vw, 280px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.002) 100%) !important;
    border: 1px solid rgba(79, 59, 235, 0.28) !important;
    box-shadow: 
        0 0 30px rgba(79, 59, 235, 0.12),
        inset 0 10px 20px rgba(255, 255, 255, 0.05),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.blob-beyond {
    top: 30%;
    left: -10%;
    width: clamp(220px, 28vw, 380px);
    height: clamp(220px, 28vw, 380px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.002) 100%) !important;
    border: 1px solid rgba(180, 59, 235, 0.28) !important;
    box-shadow: 
        0 0 30px rgba(180, 59, 235, 0.12),
        inset 0 10px 20px rgba(255, 255, 255, 0.05),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.blob-hero {
    top: 30%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: clamp(250px, 35vw, 450px);
    height: clamp(250px, 35vw, 450px);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.blob-global-1 {
    top: 25%;
    left: 8%;
}

.blob-global-2 {
    top: 75%;
    left: 8%;
}

.blob-global-3 {
    top: 50%;
    left: 5%;
}

.blob-global-4 {
    top: 90%;
    right: 30%;
}



@keyframes morphLiquid {
    0% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    }

    33% {
        border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    }

    66% {
        border-radius: 50% 50% 30% 70% / 55% 45% 65% 35%;
    }

    100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    }
}

/* Graceful degradation for low performance or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .liquid-glass-blob {
        animation: none !important;
        border-radius: 50% !important;
    }
}

/* ==========================================================================
   MINIMALIST NEON HORIZON BACKGROUND (Reference Aligned)
   ========================================================================== */

/* Container for the glowing neon horizon */
.neon-horizon {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 38vh;
    /* Confined to bottom of viewport just like reference */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

/* The soft upward-radiating deep blue dome glow */
.horizon-glow-up {
    position: absolute;
    bottom: 30%;
    /* Centered around the laser line */
    left: 50%;
    transform: translate(-50%, 0);
    width: 150vw;
    height: 120vh;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 100%,
            rgba(0, 86, 255, 0.48) 0%,
            rgba(0, 30, 160, 0.22) 25%,
            rgba(0, 8, 70, 0.08) 55%,
            transparent 75%);
    filter: blur(100px);
    will-change: transform;
    opacity: 0.95;
    animation: neonBreathingGlowUp 12s ease-in-out infinite alternate;
}

/* The intense bright sky blue/cyan glow right above the line */
.horizon-glow-sky {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 110vw;
    height: 35vh;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 100%,
            rgba(0, 240, 255, 0.65) 0%,
            rgba(0, 86, 255, 0.28) 35%,
            transparent 65%);
    filter: blur(55px);
    will-change: transform;
    opacity: 0.9;
    animation: neonBreathingGlowSky 8s ease-in-out infinite alternate;
}

/* The actual neon laser line (Razor sharp white-hot core) */
.horizon-laser {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 82vw;
    /* Tapers off at left and right margins */
    height: 3px;
    /* Precise laser thickness */
    background: #ffffff;
    border-radius: 100px;
    box-shadow:
        0 0 10px #ffffff,
        0 0 20px #00f0ff,
        0 0 35px #00f0ff,
        0 0 50px rgba(0, 86, 255, 0.9),
        0 0 80px rgba(0, 86, 255, 0.6);
    z-index: 2;
    opacity: 0.96;
}

/* Faded reflection below the line (reflective dark floor illusion) */
.horizon-glow-down {
    position: absolute;
    top: 70%;
    /* Radiates downwards from line */
    left: 50%;
    transform: translate(-50%, 0);
    width: 120vw;
    height: 30vh;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 0%,
            rgba(0, 240, 255, 0.48) 0%,
            rgba(0, 86, 255, 0.18) 30%,
            transparent 70%);
    filter: blur(60px);
    will-change: transform;
    opacity: 0.88;
    animation: neonBreathingGlowDown 10s ease-in-out infinite alternate;
}

/* Cinematic Noise Grain Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* HIGH-END NEON BREATHING EFFECTS */
@keyframes neonBreathingGlowUp {
    0% {
        transform: translate(-50%, 0) scale(1);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -10px) scale(1.05);
        opacity: 1;
    }
}

@keyframes neonBreathingGlowSky {
    0% {
        transform: translate(-50%, 0) scale(0.98);
        opacity: 0.82;
    }

    100% {
        transform: translate(-50%, 0) scale(1.02);
        opacity: 0.95;
    }
}

@keyframes neonBreathingGlowDown {
    0% {
        transform: translate(-50%, 0) scale(1);
        opacity: 0.82;
    }

    100% {
        transform: translate(-50%, 5px) scale(1.04);
        opacity: 0.94;
    }
}

/* ==========================================================================
   INTERACTIVE PARALLAX MESH GRID STYLES
   ========================================================================== */

.parallax-mesh-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
}

/* Base mesh SVG stretches fully across viewport space */
.mesh-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Viewport-tracking large radial spotlight blur */
.glow-tracker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80vw, 900px);
    height: min(80vw, 900px);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 86, 255, 0.28) 0%, rgba(0, 86, 255, 0.08) 40%, transparent 70%);
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    will-change: transform, top, left;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Styles for circuits and connections */
.about-circuit-path,
.skills-circuit-path,
.footer-funnel-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    will-change: stroke-dashoffset, opacity, stroke;
    transition: stroke 0.4s ease;
}

/* Active lighting state for skills circuit and nodes */
.skills-circuit-path.active {
    stroke: rgba(0, 240, 255, 0.4) !important;
    filter: drop-shadow(0 0 2px rgba(0, 240, 255, 0.5));
}

.skills-circuit-node.active {
    opacity: 0.9 !important;
    filter: drop-shadow(0 0 4px #00ffff);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Add custom active glowing borders to the active skill category card */
.skills-card {
    position: relative;
    transition: border-color 350ms var(--ease-premium), box-shadow 350ms var(--ease-premium), transform 350ms var(--ease-premium);
    will-change: transform, opacity;
}

.skills-card.glow-active {
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(0, 240, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-4px) scale(1.01);
}

/* Active lighting project card spotlight state */
.accordion-item {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.accordion-item.active-spotlight {
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(0, 86, 255, 0.15) !important;
}

/* Floating animation for constellation star nodes */
.beyond-node {
    animation: driftStar 14s ease-in-out infinite alternate;
}

.beyond-line {
    will-change: transform, opacity;
}

@keyframes driftStar {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(4px, -6px);
    }

    100% {
        transform: translate(-3px, 5px);
    }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS FOR SUBSEQUENT PAGES
   ========================================================================== */

@media (min-width: 1025px) {
    /* About Section Reveal (Matching Landing Page Animation) */
    #about .about-portrait {
        opacity: 0;
        transform: translateX(calc(-50% - 150px)) translateZ(-100px) rotateY(25deg);
        filter: blur(8px) drop-shadow(0 20px 50px rgba(0,0,0,0.9));
        will-change: transform, opacity, filter;
        transition: opacity 1.6s var(--ease-premium),
                    transform 1.6s var(--ease-premium),
                    filter 1.6s var(--ease-premium);
    }

    #about.reveal-active .about-portrait {
        opacity: 1;
        transform: translateX(-50%) translateZ(0) rotateY(0deg);
        filter: blur(0px) drop-shadow(0 20px 50px rgba(0,0,0,0.9));
    }

    #about.revealed .about-portrait {
        transition: transform 400ms var(--ease-premium), filter 400ms var(--ease-premium);
    }

    #about .about-title-block,
    #about .about-tagline-block,
    #about .about-para,
    #about .about-quote,
    #about .about-stats {
        opacity: 0;
        transform: translateX(120px) translateZ(-100px) rotateY(-20deg);
        filter: blur(8px);
        will-change: transform, opacity, filter;
        transition: opacity 1.5s var(--ease-premium),
                    transform 1.5s var(--ease-premium),
                    filter 1.5s var(--ease-premium);
    }

    #about.reveal-active .about-title-block {
        opacity: 1;
        transform: translateX(0) translateZ(0) rotateY(0deg);
        filter: blur(0px);
        transition-delay: 0.1s;
    }

    #about.reveal-active .about-tagline-block {
        opacity: 1;
        transform: translateX(0) translateZ(0) rotateY(0deg);
        filter: blur(0px);
        transition-delay: 0.2s;
    }

    #about.reveal-active .about-para {
        opacity: 1;
        transform: translateX(0) translateZ(0) rotateY(0deg);
        filter: blur(0px);
        transition-delay: 0.3s;
    }

    #about.reveal-active .about-quote {
        opacity: 1;
        transform: translateX(0) translateZ(0) rotateY(0deg);
        filter: blur(0px);
        transition-delay: 0.7s;
    }

    #about.reveal-active .about-stats {
        opacity: 1;
        transform: translateX(0) translateZ(0) rotateY(0deg);
        filter: blur(0px);
        transition-delay: 0.8s;
    }

    /* Staggered Skill Cards in About Section */
    #about .about-skill-card {
        opacity: 0;
        transform: translateY(60px) translateZ(-120px) rotateX(-25deg) rotateY(15deg);
        filter: blur(8px);
        will-change: transform, opacity, filter;
        transition: opacity 1.3s var(--ease-premium),
                    transform 1.3s var(--ease-premium),
                    filter 1.3s var(--ease-premium),
                    border-color 350ms var(--ease-premium),
                    box-shadow 350ms var(--ease-premium);
    }

    #about.reveal-active .about-skill-card {
        opacity: 1;
        transform: translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg);
        filter: blur(0px);
    }

    #about.reveal-active .about-skill-card:nth-child(1) { transition-delay: 0.4s; }
    #about.reveal-active .about-skill-card:nth-child(2) { transition-delay: 0.48s; }
    #about.reveal-active .about-skill-card:nth-child(3) { transition-delay: 0.56s; }
    #about.reveal-active .about-skill-card:nth-child(4) { transition-delay: 0.64s; }

    #about.revealed .about-skill-card {
        transition: border-color 350ms var(--ease-premium),
                    box-shadow 350ms var(--ease-premium),
                    transform 350ms var(--ease-premium);
    }
}

/* Section Header & Subtitle Reveal */
.section-header,
.subsection-title {
    opacity: 0;
    transform: translateY(30px) skewY(1deg);
    filter: blur(6px);
    will-change: transform, opacity, filter;
    transition: opacity var(--duration-reveal) var(--ease-premium),
                transform var(--duration-reveal) var(--ease-premium),
                filter var(--duration-reveal) var(--ease-premium);
}

section.reveal-active .section-header,
section.reveal-active .subsection-title {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
    filter: blur(0px);
}

/* 1. Skills Section - Staggered 3D Card Reveal */
#skills .skills-card {
    opacity: 0;
    transform: translateY(50px) rotateX(12deg) scale(0.96);
    filter: blur(6px);
    will-change: transform, opacity, filter;
    transition: opacity var(--duration-reveal) var(--ease-premium),
                transform var(--duration-reveal) var(--ease-premium),
                filter var(--duration-reveal) var(--ease-premium),
                border-color 350ms var(--ease-premium),
                box-shadow 350ms var(--ease-premium);
}

#skills.reveal-active .skills-card {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0px);
}

#skills .skills-card:nth-child(1) { transition-delay: 30ms; }
#skills .skills-card:nth-child(2) { transition-delay: 60ms; }
#skills .skills-card:nth-child(3) { transition-delay: 90ms; }
#skills .skills-card:nth-child(4) { transition-delay: 120ms; }
#skills .skills-card:nth-child(5) { transition-delay: 150ms; }
#skills .skills-card:nth-child(6) { transition-delay: 180ms; }

#skills.revealed .skills-card {
    transition: border-color 350ms var(--ease-premium),
                box-shadow 350ms var(--ease-premium),
                transform 350ms var(--ease-premium);
}

/* 2. Projects Section - Staggered Slide, Blur, & Skew Reveal */
#projects .accordion-item {
    opacity: 0;
    transform: translateY(60px) skewX(-2deg) scale(0.98);
    filter: blur(8px);
    will-change: transform, opacity, filter;
    transition: opacity var(--duration-reveal) var(--ease-premium),
                transform var(--duration-reveal) var(--ease-premium),
                filter var(--duration-reveal) var(--ease-premium);
}

#projects.reveal-active .accordion-item {
    opacity: 1;
    transform: translateY(0) skewX(0deg) scale(1);
    filter: blur(0px);
}

#projects .accordion-item:nth-child(1) { transition-delay: 40ms; }
#projects .accordion-item:nth-child(2) { transition-delay: 80ms; }
#projects .accordion-item:nth-child(3) { transition-delay: 120ms; }
#projects .accordion-item:nth-child(4) { transition-delay: 160ms; }
#projects .accordion-item:nth-child(5) { transition-delay: 200ms; }
#projects .accordion-item:nth-child(6) { transition-delay: 240ms; }

#projects.revealed .accordion-item {
    transition: flex 350ms var(--ease-premium),
                border-color 350ms var(--ease-premium),
                box-shadow 350ms var(--ease-premium),
                background 350ms var(--ease-premium);
}

#projects .achievement-card {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(6px);
    will-change: transform, opacity, filter;
    transition: opacity var(--duration-reveal) var(--ease-premium),
                transform var(--duration-reveal) var(--ease-premium),
                filter var(--duration-reveal) var(--ease-premium),
                border-color 350ms var(--ease-premium),
                box-shadow 350ms var(--ease-premium);
}

#projects.reveal-active .achievement-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

#projects .achievement-card:nth-child(1) { transition-delay: 30ms; }
#projects .achievement-card:nth-child(2) { transition-delay: 60ms; }
#projects .achievement-card:nth-child(3) { transition-delay: 90ms; }
#projects .achievement-card:nth-child(4) { transition-delay: 120ms; }

#projects.revealed .achievement-card {
    transition: border-color 350ms var(--ease-premium),
                box-shadow 350ms var(--ease-premium),
                transform 350ms var(--ease-premium);
}

/* 3. Beyond The Code Section - Staggered Rotate & 3D Tilt Reveal */
#interests .interest-accordion-item {
    opacity: 0;
    transform: translateY(60px) rotateY(-10deg) scale(0.95);
    filter: blur(8px);
    will-change: transform, opacity, filter;
    transition: opacity var(--duration-reveal) var(--ease-premium),
                transform var(--duration-reveal) var(--ease-premium),
                filter var(--duration-reveal) var(--ease-premium);
}

#interests.reveal-active .interest-accordion-item {
    opacity: 1;
    transform: translateY(0) rotateY(0) scale(1);
    filter: blur(0px);
}

#interests .interest-accordion-item:nth-child(1) { transition-delay: 30ms; }
#interests .interest-accordion-item:nth-child(2) { transition-delay: 60ms; }
#interests .interest-accordion-item:nth-child(3) { transition-delay: 90ms; }
#interests .interest-accordion-item:nth-child(4) { transition-delay: 120ms; }
#interests .interest-accordion-item:nth-child(5) { transition-delay: 150ms; }
#interests .interest-accordion-item:nth-child(6) { transition-delay: 180ms; }

#interests.revealed .interest-accordion-item {
    transition: flex 350ms var(--ease-premium),
                border-color 350ms var(--ease-premium),
                box-shadow 350ms var(--ease-premium),
                background 350ms var(--ease-premium);
}

/* 4. Contact Section - Split Column Slide reveal */
#contact .contact-info {
    opacity: 0;
    transform: translateX(-50px) skewY(-1deg);
    filter: blur(8px);
    will-change: transform, opacity, filter;
    transition: opacity var(--duration-reveal) var(--ease-premium) 40ms,
                transform var(--duration-reveal) var(--ease-premium) 40ms,
                filter var(--duration-reveal) var(--ease-premium) 40ms;
}

#contact.reveal-active .contact-info {
    opacity: 1;
    transform: translateX(0) skewY(0deg);
    filter: blur(0px);
}

#contact .contact-form-container {
    opacity: 0;
    transform: translateX(50px) skewY(1deg);
    filter: blur(8px);
    will-change: transform, opacity, filter;
    transition: opacity var(--duration-reveal) var(--ease-premium) 80ms,
                transform var(--duration-reveal) var(--ease-premium) 80ms,
                filter var(--duration-reveal) var(--ease-premium) 80ms;
}

#contact.reveal-active .contact-form-container {
    opacity: 1;
    transform: translateX(0) skewY(0deg);
    filter: blur(0px);
}

#contact.revealed .contact-form-container {
    transition: border-color 350ms var(--ease-premium),
                box-shadow 350ms var(--ease-premium),
                transform 350ms var(--ease-premium);
}

/* ==========================================================================
   SCROLL PROGRESS INDICATOR
   ========================================================================== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-electric-blue) 0%, var(--color-violet-glow) 50%, #00f0ff 100%);
    z-index: 10000;
    transition: width 60ms linear;
    box-shadow:
        0 0 8px var(--color-electric-blue),
        0 0 18px rgba(0, 86, 255, 0.4);
    border-radius: 0 2px 2px 0;
    pointer-events: none;
}

/* ==========================================================================
   THEME ACCENT SWITCHER
   ========================================================================== */
.theme-switcher {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
}

.theme-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(10, 10, 14, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.theme-toggle-btn:hover {
    border-color: var(--color-electric-blue);
    box-shadow:
        0 8px 28px rgba(0, 86, 255, 0.25),
        0 0 20px rgba(0, 86, 255, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
    transform: scale(1.08) rotate(-15deg);
}

.theme-toggle-btn.active {
    border-color: var(--color-electric-blue);
    background: rgba(0, 86, 255, 0.12);
    transform: rotate(45deg);
}

.theme-palette {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px) scale(0.85);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-palette.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.theme-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: var(--swatch);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
}

.theme-swatch:hover {
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 12px var(--swatch);
}

.theme-swatch.active {
    border-color: #ffffff;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 18px var(--swatch);
    transform: scale(1.12);
}

.theme-swatch.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   NAV RESUME CTA BUTTON (Desktop)
   ========================================================================== */
.nav-resume-btn {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-resume-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(0, 86, 255, 0.25) 0%, rgba(79, 59, 235, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-resume-btn:hover::before {
    opacity: 1;
}

.nav-resume-btn:hover {
    border-color: rgba(0, 86, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 0 28px rgba(0, 86, 255, 0.35),
                0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.nav-resume-btn span,
.nav-resume-btn i {
    position: relative;
    z-index: 1;
}

.nav-resume-btn i {
    font-size: 11px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-resume-btn:hover i {
    transform: translate(2px, -2px);
}

/* Theme Switcher and Progress Bar mobile tweaks */
@media (max-width: 768px) {
    .theme-switcher {
        bottom: 20px;
        right: 20px;
    }
    .theme-toggle-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .theme-swatch {
        width: 28px;
        height: 28px;
    }
    .nav-resume-btn {
        display: none !important;
    }
}

/* ==========================================================================
   MOBILE HORIZONTAL OVERFLOW FIX
   Blobs with negative left/right offsets, wide parallax text, and the about
   section's overflow:visible all push the document wider than the viewport.
   overflow-x:clip on html/body catches most cases, but iOS Safari can still
   allow bounce-scroll to reveal the extra width.  These rules eliminate the
   sources on small screens.
   ========================================================================== */
@media (max-width: 820px) {
    /* 1. Hide decorative liquid-glass blobs that extend outside the viewport
          (negative left/right offsets like -5%, -8% cause horizontal overflow) */
    .liquid-glass-blob {
        display: none !important;
    }

    /* 2. Clip the about section — desktop uses overflow:visible for portrait
          parallax, but on mobile the portrait is repositioned so clip is safe */
    .about {
        overflow: hidden !important;
        overflow-x: clip !important;
    }

    /* 3. Constrain the about-bg-title which is a wide white-space:nowrap text */
    .about-bg-title-wrapper,
    .about-bg-title {
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    /* 4. Constrain the hero-bg-heading-wrapper */
    .hero-bg-heading-wrapper {
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    /* 5. Keep the ambient background strictly within the viewport */
    .ambient-bg {
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    /* 6. Prevent the pinterest pin mood board from causing overflow */
    .pinterest-mood-board {
        overflow: hidden !important;
        max-width: 100vw !important;
    }

    /* 7. Ensure the main element clips its children */
    main {
        overflow-x: clip !important;
    }
}
/* Contact form delivery note */
.form-note{display:block;margin-top:16px;color:rgba(246,245,244,.5);font-family:var(--font-body);font-size:11px;line-height:1.5}
