/* ==========================================================================
   Rajesh Kumar — PREMIUM 3D PORTFOLIO STYLES
   Minimal, Futuristic, Dark/Light Mode Theme System & Localized 3D Hover
   ========================================================================== */

/* --- CSS VARIABLES & THEMES --- */
:root {
    --bg-dark: #02090B;
    --bg-secondary: #061315;
    --primary-teal: #00E5E5;
    --secondary-teal: #00B8B8;
    --text-white: #FFFFFF;
    --text-muted: #9AAEB0;
    --marquee-text: #DDE7E8;
    --border-teal: rgba(0, 229, 229, 0.30);
    --border-subtle: rgba(0, 229, 229, 0.15);
    --glow-teal: rgba(0, 229, 229, 0.4);
    --nav-bg: rgba(2, 9, 11, 0.82);
    --card-bg: rgba(3, 18, 20, 0.92);
    --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.8);
    --radial-glow: radial-gradient(circle, rgba(0, 229, 229, 0.20) 0%, rgba(0, 184, 184, 0.06) 50%, transparent 75%);
    
    --font-heading: 'Space Grotesk', 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --theme-transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* --- LIGHT MODE THEME --- */
[data-theme="light"] {
    --bg-dark: #F4FAFA;
    --bg-secondary: #FFFFFF;
    --primary-teal: #00A8A8;
    --secondary-teal: #00CFCF;
    --text-white: #071719;
    --text-muted: #526568;
    --marquee-text: #26383A;
    --border-teal: rgba(0, 130, 130, 0.20);
    --border-subtle: rgba(0, 130, 130, 0.12);
    --glow-teal: rgba(0, 168, 168, 0.25);
    --nav-bg: rgba(244, 250, 250, 0.86);
    --card-bg: rgba(255, 255, 255, 0.94);
    --shadow-3d: 0 30px 70px rgba(0, 100, 100, 0.14);
    --radial-glow: radial-gradient(circle, rgba(0, 168, 168, 0.14) 0%, rgba(0, 207, 207, 0.04) 50%, transparent 75%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    transition: var(--theme-transition);
}

body {
    background-color: var(--bg-dark);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--theme-transition);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* --- ATMOSPHERE & BACKGROUND --- */
.bg-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.radial-glow-bg {
    position: absolute;
    top: 30%;
    right: 15%;
    width: 650px;
    height: 650px;
    background: var(--radial-glow);
    filter: blur(60px);
    border-radius: 50%;
    transition: background 0.4s ease;
}

.bg-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35vh;
    background-image: 
        linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-particle {
    position: absolute;
    background: var(--primary-teal);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-teal);
    opacity: 0.3;
    pointer-events: none;
    animation: particleFloat 18s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0.8);
        opacity: 0;
    }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; }
    100% {
        transform: translateY(-20vh) scale(1.2);
        opacity: 0;
    }
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.4s var(--transition-smooth);
    animation: fadeInDown 0.8s var(--transition-smooth) forwards;
}

.navbar.scrolled {
    padding: 14px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- TOP-LEFT NAVBAR PERSONAL BRAND IDENTITY EMBLEM ("DIGITAL IDENTITY EMBLEM") --- */
.nav-brand-emblem {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 105;
}

/* Emblem Visual Frame */
.emblem-visual {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Corner Technical Markers */
.corner-marker {
    position: absolute;
    font-family: var(--font-code);
    font-size: 10px;
    line-height: 1;
    color: var(--primary-teal);
    opacity: 0.6;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    z-index: 4;
}

.corner-marker.top-left { top: -2px; left: -2px; }
.corner-marker.top-right { top: -2px; right: -2px; }
.corner-marker.bottom-left { bottom: -2px; left: -2px; }
.corner-marker.bottom-right { bottom: -2px; right: -2px; }

/* Technical Sub-tags */
.emblem-tag {
    position: absolute;
    font-family: var(--font-code);
    font-size: 7px;
    font-weight: 700;
    color: var(--primary-teal);
    opacity: 0.55;
    pointer-events: none;
    letter-spacing: 0.5px;
    z-index: 4;
}
.emblem-tag.tag-tl { top: -6px; left: 5px; }
.emblem-tag.tag-br { bottom: -6px; right: 5px; }

/* SVG Orbit & Technical Ring */
.emblem-orbit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.orbit-track {
    fill: none;
    stroke: var(--border-teal);
    stroke-width: 1;
    stroke-dasharray: 4 3;
    opacity: 0.45;
}

.orbit-segment {
    fill: none;
    stroke: var(--primary-teal);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 24 120;
    stroke-dashoffset: 0;
    transform-origin: center;
    animation: orbitSpin 10s linear infinite;
    opacity: 0.9;
}

.orbit-node {
    fill: var(--primary-teal);
    opacity: 0.65;
    transition: opacity 0.35s ease;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Portrait Crop Frame */
.portrait-frame {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-teal);
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

[data-theme="light"] .portrait-frame {
    background: #ffffff;
}

.emblem-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scanning Line Effect */
.emblem-scanline {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 229, 229, 0.3) 50%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}

/* Personal Brand Info Text Stack */
.emblem-brand-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
    line-height: 1.15;
    transition: color 0.3s ease;
}

.name-short {
    display: none;
}

.brand-title {
    font-family: var(--font-code);
    font-size: 8.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.15;
    transition: color 0.3s ease;
}

.brand-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-teal);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-text {
    font-family: var(--font-code);
    font-size: 7.5px;
    font-weight: 600;
    color: var(--primary-teal);
    letter-spacing: 0.8px;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Hover State Interactions (Strictly scoped to hover over the brand emblem) */
@media (hover: hover) {
    .nav-brand-emblem:hover .portrait-frame {
        transform: scale(1.04);
        border-color: var(--primary-teal);
    }

    .nav-brand-emblem:hover .orbit-segment {
        animation-duration: 5s;
        stroke-width: 2;
    }

    .nav-brand-emblem:hover .orbit-node {
        opacity: 1;
    }

    .nav-brand-emblem:hover .brand-name {
        color: var(--primary-teal);
    }

    .nav-brand-emblem:hover .brand-title {
        color: var(--text-white);
    }

    .nav-brand-emblem:hover .corner-marker.top-left { transform: translate(-2px, -2px); opacity: 1; }
    .nav-brand-emblem:hover .corner-marker.top-right { transform: translate(2px, -2px); opacity: 1; }
    .nav-brand-emblem:hover .corner-marker.bottom-left { transform: translate(-2px, 2px); opacity: 1; }
    .nav-brand-emblem:hover .corner-marker.bottom-right { transform: translate(2px, 2px); opacity: 1; }

    .nav-brand-emblem:hover .emblem-scanline {
        animation: scanlineSweep 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
    }
}

@keyframes scanlineSweep {
    0% { top: -100%; opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-link {
    position: relative;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link.active {
    color: var(--primary-teal);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: var(--primary-teal);
    box-shadow: 0 0 8px var(--primary-teal);
    border-radius: 2px;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-teal);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary-teal);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(0, 229, 229, 0.03);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.theme-toggle-btn:hover {
    color: var(--primary-teal);
    border-color: var(--primary-teal);
    box-shadow: 0 0 15px var(--glow-teal);
    transform: scale(1.08);
}

.theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    transition: transform 0.4s var(--transition-smooth), color 0.3s ease;
}

.btn-talk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border: 1px solid var(--border-teal);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-white);
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.btn-talk i {
    font-size: 12px;
    color: var(--primary-teal);
}

.btn-talk:hover {
    background: rgba(0, 229, 229, 0.1);
    border-color: var(--primary-teal);
    box-shadow: 0 0 15px var(--glow-teal);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    font-size: 20px;
    color: var(--text-white);
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0 60px;
    scroll-margin-top: 80px;
    overflow: hidden;
}

.hero-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    gap: 20px;
}

/* LEFT COLUMN (STABLE) */
.hero-left {
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.2s forwards;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background-color: var(--primary-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-teal);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 16px var(--primary-teal); }
}

.badge-text {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary-teal);
    text-shadow: 0 0 10px var(--glow-teal);
    text-transform: uppercase;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(38px, 4.2vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.4s forwards;
}

.name-first {
    color: var(--text-white);
    transition: color 0.4s ease;
}

.name-last {
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-teal) 50%, var(--secondary-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px var(--glow-teal));
}

.dynamic-role {
    font-family: var(--font-code);
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 500;
    color: var(--primary-teal);
    text-shadow: 0 0 10px var(--glow-teal);
    margin-bottom: 20px;
    min-height: 32px;
    max-width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.6s forwards;
}

.role-text {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.blinking-cursor {
    display: inline-block;
    color: var(--primary-teal);
    font-weight: 300;
    margin-left: 2px;
    animation: cursorBlink 0.8s step-end infinite;
}

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

.hero-description {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 32px;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.8s forwards;
    transition: color 0.4s ease;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 1.0s forwards;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    z-index: 1;
    transition: color 0.4s var(--transition-smooth), border-color 0.4s ease;
}

.btn span,
.btn .arrow-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* --- CHANGE 2: EXPLORE PROJECTS (LEFT -> RIGHT FILL HOVER) --- */
.btn-primary {
    background: transparent;
    border: 1px solid var(--primary-teal);
    color: var(--primary-teal);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-teal);
    z-index: 1;
    transform: translateX(-100%);
    transition: transform 0.4s var(--transition-smooth);
    pointer-events: none;
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary:hover {
    border-color: var(--primary-teal);
    color: #02090B;
}

.btn-primary:hover span,
.btn-primary:hover .arrow-icon {
    color: #02090B;
}

[data-theme="light"] .btn-primary:hover span,
[data-theme="light"] .btn-primary:hover .arrow-icon {
    color: #FFFFFF;
}

.btn-primary:hover .arrow-icon {
    transform: translateX(3px);
}

/* --- CHANGE 3 & 4: OPEN CV (BOTTOM -> TOP FILL HOVER) --- */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-teal);
    color: var(--text-white);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-teal);
    z-index: 1;
    transform: translateY(100%);
    transition: transform 0.4s var(--transition-smooth);
    pointer-events: none;
}

.btn-secondary:hover::before {
    transform: translateY(0);
}

.btn-secondary:hover {
    border-color: var(--primary-teal);
    color: #02090B;
}

.btn-secondary:hover span,
.btn-secondary:hover .arrow-icon {
    color: #02090B;
}

[data-theme="light"] .btn-secondary:hover span,
[data-theme="light"] .btn-secondary:hover .arrow-icon {
    color: #FFFFFF;
}

.social-section {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 1.2s forwards;
}

.social-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(0, 229, 229, 0.02);
}

.social-btn:hover {
    color: var(--primary-teal);
    border-color: var(--primary-teal);
    box-shadow: 0 0 16px var(--glow-teal);
    transform: scale(1.08) translateY(-2px);
    background: rgba(0, 229, 229, 0.06);
}


/* ==========================================================================
   RIGHT COLUMN — PREMIUM FLOATING DEVELOPER POD (.hero-mascot-visual)
   ========================================================================== */

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-mascot-visual {
    position: relative;
    width: 100%;
    max-width: 540px;
    height: 505px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    margin: 0 auto;
}

/* Main Character Scene Wrapper with Rich 3D Levitation */
.mascot-scene-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    animation: heroMascotLevitate 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Combined float + gentle sway + breathing scale for a premium, organic motion */
@keyframes heroMascotLevitate {
    0% {
        transform: translateY(0px) rotate(-1.4deg) scale(1);
    }
    25% {
        transform: translateY(-6px) rotate(0.4deg) scale(1.008);
    }
    50% {
        transform: translateY(-11px) rotate(1.6deg) scale(1.016);
    }
    75% {
        transform: translateY(-5px) rotate(0.2deg) scale(1.008);
    }
    100% {
        transform: translateY(0px) rotate(-1.4deg) scale(1);
    }
}

/* 6. Ambient Background Atmosphere Breathing (0.20 -> 0.28 -> 0.20, 6s) */
.mascot-ambient-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 230, 0.14) 0%, rgba(0, 184, 184, 0.03) 55%, transparent 75%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.24;
    animation: atmosphereBreathe 6s ease-in-out infinite;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mascot-pod-atmosphere {
    position: absolute;
    width: 420px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(3, 24, 28, 0.65) 0%, rgba(2, 15, 18, 0.3) 45%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(20px);
    opacity: 0.24;
    animation: atmosphereBreathe 6s ease-in-out infinite;
}

@keyframes atmosphereBreathe {
    0%, 100% { opacity: 0.20; }
    50% { opacity: 0.28; }
}

[data-theme="light"] .mascot-ambient-glow {
    background: radial-gradient(circle, rgba(0, 168, 168, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .mascot-pod-atmosphere {
    background: radial-gradient(ellipse at center, rgba(230, 250, 250, 0.7) 0%, transparent 70%);
}

/* 3. Multi-Ring Orbit System (Independent Ring Rotations) */
.mascot-ellipse-orbit {
    position: absolute;
    width: 460px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.orbit-ring-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Outer Ring (18s Rotation) */
.ring-outer-wrapper {
    animation: orbitSpinOuter 18s linear infinite;
}

/* Inner Ring (24s Reverse Rotation) */
.ring-inner-wrapper {
    animation: orbitSpinInner 24s linear reverse infinite;
}

@keyframes orbitSpinOuter {
    0% { transform: rotate(-6deg); }
    100% { transform: rotate(354deg); }
}

@keyframes orbitSpinInner {
    0% { transform: rotate(10deg); }
    100% { transform: rotate(370deg); }
}

.orbit-ring-svg {
    width: 100%;
    height: 100%;
}

.orbit-ring-track {
    fill: none;
    stroke: var(--border-teal);
    stroke-width: 1;
    stroke-dasharray: 6 6;
    opacity: 0.25;
    transition: opacity 0.5s ease;
}

.orbit-ring-track.inner {
    stroke-dasharray: 4 5;
    opacity: 0.2;
}

/* 4. Orbit Light Signal Particle (Smooth travelling digital signal) */
.orbit-ring-pulse {
    fill: none;
    stroke: var(--primary-teal);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 35 330;
    stroke-dashoffset: 0;
    opacity: 0.75;
    transition: stroke-width 0.5s ease, opacity 0.5s ease;
}

.outer-signal {
    animation: orbitSignalTravelOuter 12s linear infinite;
}

.inner-signal {
    stroke-width: 1.2;
    stroke-dasharray: 25 270;
    animation: orbitSignalTravelInner 16s linear infinite;
}

@keyframes orbitSignalTravelOuter {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -365; }
}

@keyframes orbitSignalTravelInner {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 295; }
}

.orbit-node {
    fill: var(--primary-teal);
    opacity: 0.75;
    filter: drop-shadow(0 0 3px var(--primary-teal));
}

/* Curved Connector Line Linking Platform to Orbit System */
.pod-connector-line {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.connector-line-svg {
    width: 100%;
    height: 100%;
}

/* 5. Platform Pulse Animation (opacity: 0.45 -> 0.7 -> 0.45, 4s ease-in-out) */
.hero-mascot-platform {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    height: 45px;
    pointer-events: none;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed var(--border-teal);
    opacity: 0.35;
    transform: scaleY(0.32);
}

.platform-ring-inner {
    position: absolute;
    width: 74%;
    height: 74%;
    border-radius: 50%;
    border: 1.5px solid var(--primary-teal);
    opacity: 0.45;
    transform: scaleY(0.32);
    box-shadow: 0 0 8px rgba(0, 229, 230, 0.15);
    transition: opacity 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.platform-reflection-line {
    position: absolute;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-teal) 50%, transparent 100%);
    bottom: 22px;
    opacity: 0.5;
}

.platform-light-node {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-teal);
    box-shadow: 0 0 6px var(--primary-teal);
    bottom: 20px;
    animation: nodePlatformOrbit 6s ease-in-out infinite alternate;
}

@keyframes nodePlatformOrbit {
    0% { transform: translateX(-70px); opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { transform: translateX(70px); opacity: 0.3; }
}

.platform-glow-shadow {
    position: absolute;
    width: 65%;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 229, 230, 0.14);
    filter: blur(12px);
    transform: scaleY(0.4);
    animation: platformGlowPulse 4s ease-in-out infinite;
}

@keyframes platformGlowPulse {
    0%, 100% { opacity: 0.45; transform: scaleY(0.38) scaleX(0.96); }
    50% { opacity: 0.70; transform: scaleY(0.42) scaleX(1.04); }
}

[data-theme="light"] .platform-glow-shadow {
    background: rgba(0, 130, 130, 0.1);
}

/* Rising Platform Micro Particles */
.platform-rising-particles {
    position: absolute;
    inset: 0;
}

.p-rise {
    position: absolute;
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: var(--primary-teal);
    bottom: 20px;
    opacity: 0;
    animation: riseUpParticle 4.5s infinite linear;
}

.pr1 { left: 35%; animation-delay: 0s; }
.pr2 { left: 65%; animation-delay: 2.2s; }

@keyframes riseUpParticle {
    0% { transform: translateY(0); opacity: 0; }
    40% { opacity: 0.6; }
    100% { transform: translateY(-26px); opacity: 0; }
}

/* Main Character Image Container & Silhouette Drop Shadow */
.mascot-character-container {
    position: relative;
    width: 100%;
    max-width: 415px;
    height: auto;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-character-img {
    width: 100%;
    height: auto;
    max-height: 445px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 8px rgba(0, 229, 230, 0.08));
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] .mascot-character-img {
    filter: drop-shadow(0 10px 20px rgba(0, 100, 100, 0.12));
}

/* 7. Code Elements Floating: translateY(-3px) -> translateY(3px) -> translateY(-3px) (5s - 7s) */
.mascot-ui-accents {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
}

.ui-code-tag {
    position: absolute;
    font-family: var(--font-code);
    font-weight: 700;
    color: var(--primary-teal);
    background: rgba(3, 18, 20, 0.85);
    border: 1px solid var(--border-teal);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    letter-spacing: 0.5px;
    opacity: 0.8;
    backdrop-filter: blur(4px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, border-color 0.5s ease;
}

[data-theme="light"] .ui-code-tag {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 130, 130, 0.25);
}

.ui-code-tag.tag-code {
    top: 45px;
    left: 15px;
    animation: codeTagFloat 5.5s ease-in-out infinite alternate;
}

.ui-code-tag.tag-braces {
    top: 75px;
    right: 20px;
    animation: codeTagFloat 6s ease-in-out 0.8s infinite alternate;
}

.ui-code-tag.tag-js {
    bottom: 110px;
    left: 20px;
    animation: codeTagFloat 6.5s ease-in-out 1.6s infinite alternate;
}

.ui-code-tag.tag-dot {
    bottom: 85px;
    right: 40px;
  animation: codeTagFloat 5s ease-in-out 1s infinite alternate;
}

@keyframes codeTagFloat {
    0% { transform: translateY(-3px); }
    100% { transform: translateY(3px); }
}

/* Ambient Depth Micro Particles (2 Particles) */
.mascot-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.m-particle {
    position: absolute;
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: var(--primary-teal);
    opacity: 0.45;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.m-particle.mp1 { top: 25%; left: 14%; animation: particleFloatSlow 6s ease-in-out infinite alternate; }
.m-particle.mp2 { bottom: 25%; right: 18%; animation: particleFloatSlow 7s ease-in-out 1s infinite alternate; }

@keyframes particleFloatSlow {
    0% { transform: translate(0, 0); opacity: 0.3; }
    100% { transform: translate(4px, -5px); opacity: 0.7; }
}

/* 8. HOVER INTERACTION (Strictly when cursor is over .hero-mascot-visual) */
@media (hover: hover) {
    .hero-mascot-visual:hover .mascot-scene-wrapper {
        transform: scale(1.045) rotateY(4deg) rotateX(-2deg);
    }

    .hero-mascot-visual:hover .mascot-character-img {
        transform: scale(1.035) translateY(-4px);
        filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px rgba(0, 229, 230, 0.35));
    }

    [data-theme="light"] .hero-mascot-visual:hover .mascot-character-img {
        filter: drop-shadow(0 16px 26px rgba(0, 168, 168, 0.25));
    }

    .hero-mascot-visual:hover .mascot-ambient-glow {
        opacity: 0.4;
        transform: scale(1.08);
    }

    .hero-mascot-visual:hover .mascot-pod-atmosphere {
        opacity: 0.34;
    }

    .hero-mascot-visual:hover .orbit-ring-track {
        opacity: 0.5;
    }

    .hero-mascot-visual:hover .orbit-ring-pulse {
        stroke-width: 2.2;
        opacity: 1;
        animation-duration: 5.5s;
    }

    .hero-mascot-visual:hover .ring-outer-wrapper {
        animation-duration: 9s;
    }

    .hero-mascot-visual:hover .ring-inner-wrapper {
        animation-duration: 12s;
    }

    .hero-mascot-visual:hover .platform-ring-inner {
        opacity: 0.8;
        border-color: var(--primary-teal);
        box-shadow: 0 0 16px rgba(0, 229, 230, 0.4);
    }

    .hero-mascot-visual:hover .platform-glow-shadow {
        opacity: 0.8;
    }

    .hero-mascot-visual:hover .ui-code-tag {
        opacity: 1;
        border-color: var(--primary-teal);
        box-shadow: 0 0 12px var(--glow-teal);
        transform: translateY(-6px) scale(1.06);
    }

    .hero-mascot-visual:hover .m-particle {
        opacity: 0.9;
        transform: scale(1.3);
    }
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 1.4s forwards;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--border-teal);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    box-shadow: 0 0 10px var(--glow-teal);
}

.mouse-dot {
    width: 4px;
    height: 6px;
    background-color: var(--primary-teal);
    border-radius: 3px;
    position: absolute;
    top: 6px;
    box-shadow: 0 0 6px var(--primary-teal);
    animation: mouseScroll 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes mouseScroll {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}


/* ==========================================================================
   PREMIUM ANIMATED TECH STACK MARQUEE SECTION
   ========================================================================== */

.tech-marquee-section {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 0 40px rgba(0, 229, 229, 0.05);
    transition: var(--theme-transition);
}

.marquee-border-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
}

.top-line { top: 0; }
.bottom-line { bottom: 0; }

.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
    will-change: transform;
}

.tech-marquee-section:hover .marquee-track {
    animation-play-state: paused;
}

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

.marquee-set {
    display: flex;
    align-items: center;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--marquee-text);
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-icon {
    font-size: 20px;
    color: var(--primary-teal);
    filter: drop-shadow(0 0 6px var(--glow-teal));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.tech-separator {
    color: var(--primary-teal);
    margin: 0 28px;
    font-size: 14px;
    opacity: 0.75;
    text-shadow: 0 0 8px var(--primary-teal);
}

.tech-item:hover {
    color: var(--text-white);
    text-shadow: 0 0 12px var(--glow-teal);
}

.tech-item:hover .tech-icon {
    transform: scale(1.18);
    filter: drop-shadow(0 0 10px var(--primary-teal));
}


/* ==========================================================================
   ABOUT ME SECTION — FINAL ENLARGED TRANSPARENT PORTRAIT & 100VH FIT
   ========================================================================== */

.about-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 50px 0 30px;
    scroll-margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-dark);
    transition: var(--theme-transition);
    overflow: hidden;
}

.about-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;
    gap: 32px;
}

/* LEFT COLUMN: ENLARGED TRANSPARENT PORTRAIT COMPOSITION */
.about-left {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.about-portrait-visual {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
}

.portrait-ambient-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--radial-glow);
    filter: blur(55px);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.4s ease;
}

.portrait-hud-rings {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    pointer-events: none;
}

.p-hud-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.ring-outer-thin {
    border: 1.5px solid var(--border-teal);
    box-shadow: 0 0 18px var(--glow-teal);
}

.ring-segmented-teal {
    border: 8px solid transparent;
    border-top-color: var(--primary-teal);
    border-right-color: var(--secondary-teal);
    filter: drop-shadow(0 0 16px var(--primary-teal));
    animation: ringRotate3D 40s linear infinite;
}

.ring-inner-dots {
    top: 24px;
    left: 24px;
    right: 24px;
    bottom: 24px;
    border: 1.5px dashed rgba(0, 229, 229, 0.35);
}

.ring-hud-tech {
    top: 50px;
    left: 50px;
    right: 50px;
    bottom: 50px;
    border: 1px solid rgba(0, 229, 229, 0.18);
}

/* Transparent PNG Portrait Wrapper */
.portrait-img-wrapper {
    position: relative;
    width: 420px;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 3;
    background: transparent;
    border: none;
    box-shadow: none;
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: contrast(1.04) brightness(1.02) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    animation: portraitFloat 6s ease-in-out infinite alternate;
}

@keyframes portraitFloat {
    0% { transform: translateY(-4px); }
    100% { transform: translateY(4px); }
}

/* Floating HUD Badges */
.floating-badge {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-teal);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 10px 25px var(--glow-teal);
    transition: transform 0.3s ease, border-color 0.3s ease;
    z-index: 5;
}

.badge-experience {
    top: 25px;
    right: -10px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-num {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-teal);
    line-height: 1;
    text-shadow: 0 0 10px var(--primary-teal);
}

.badge-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.25;
}

.badge-developer {
    bottom: 40px;
    left: -15px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-code-icon {
    font-family: var(--font-code);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-teal);
    text-shadow: 0 0 10px var(--primary-teal);
}

.badge-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.25;
}

/* RIGHT COLUMN: ABOUT CONTENT */
.about-right {
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.heading-first {
    color: var(--text-white);
    transition: color 0.4s ease;
}

.heading-last {
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-teal) 50%, var(--secondary-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px var(--glow-teal));
}

.about-description {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 18px;
    font-weight: 400;
    transition: color 0.4s ease;
}

/* Personal Information Panel */
.info-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-teal);
    border-radius: 14px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--theme-transition);
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
}

.info-column .info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 12px;
    background: rgba(0, 229, 229, 0.04);
    flex-shrink: 0;
}

.info-data {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.info-label {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.info-val {
    font-size: 13px;
    color: var(--text-white);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.4s ease;
}

/* Feature Cards Grid & Personal Quality Cards */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.feature-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-teal);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: none;
}

/* Sophisticated Animated Border Sweep Pseudo-element */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 65%,
        rgba(0, 229, 229, 0.35) 85%,
        var(--primary-teal) 96%,
        rgba(255, 255, 255, 0.95) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 2;
}

[data-theme="light"] .feature-card::before {
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 65%,
        rgba(0, 168, 168, 0.25) 85%,
        var(--primary-teal) 96%,
        #00E5E5 100%
    );
}

.card-corner-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: var(--primary-teal);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0.8;
    transform-origin: top right;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    z-index: 3;
}

.feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0, 229, 229, 0.08);
    border: 1px solid var(--border-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 12px;
    margin-bottom: 2px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.35s ease,
                border-color 0.35s ease;
}

.feature-icon i {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
    transition: color 0.3s ease;
}

.feature-title-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-teal);
    border-radius: 1px;
    opacity: 0.45;
    margin: 2px 0 3px 0;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.feature-desc {
    font-size: 10.5px;
    line-height: 1.35;
    color: var(--text-muted);
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Hover State Interactions (strictly scoped to @media (hover: hover) on individual cards) */
@media (hover: hover) {
    .feature-card:hover {
        transform: translateY(-6px);
        border-color: rgba(0, 229, 229, 0.45);
        box-shadow: none;
    }

    [data-theme="light"] .feature-card:hover {
        border-color: rgba(0, 168, 168, 0.45);
        box-shadow: none;
    }

    .feature-card:hover::before {
        opacity: 1;
        animation: featureBorderSweep 2.2s linear infinite;
    }

    .feature-card:hover .card-corner-accent {
        opacity: 1;
        transform: scale(1.22);
    }

    .feature-card:hover .feature-icon {
        transform: translateY(-2px) scale(1.08);
        background: rgba(0, 229, 229, 0.14);
        border-color: var(--primary-teal);
    }

    .feature-card:hover .feature-title {
        color: var(--primary-teal);
    }

    .feature-card:hover .feature-title-line {
        width: 45px;
        opacity: 1;
    }

    .feature-card:hover .feature-desc {
        color: var(--text-white);
    }

    /* CARD-SPECIFIC ICON MICRO-INTERACTIONS (Runs ONCE when entering hover) */
    
    /* Card 1 — Detail Oriented: subtle 360° rotation ONCE */
    .feature-card:nth-child(1):hover .feature-icon i {
        animation: card1IconSpin 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
    }

    /* Card 2 — Fast Learner: small upward movement / bounce */
    .feature-card:nth-child(2):hover .feature-icon i {
        animation: card2IconBounce 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
    }

    /* Card 3 — Problem Solver: small 3° rotation followed by return */
    .feature-card:nth-child(3):hover .feature-icon i {
        animation: card3IconTilt 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
    }

    /* Card 4 — Clean Coder: small horizontal movement translateX(2px) */
    .feature-card:nth-child(4):hover .feature-icon i {
        animation: card4IconShift 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
    }
}

/* Keyframes for Border Sweep & Card-Specific Icon Micro Animations */
@keyframes featureBorderSweep {
    0% {
        --border-angle: 0deg;
    }
    100% {
        --border-angle: 360deg;
    }
}

@keyframes card1IconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1.08);
    }
}

@keyframes card2IconBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.12);
    }
    100% {
        transform: translateY(-2px) scale(1.08);
    }
}

@keyframes card3IconTilt {
    0% {
        transform: rotate(0deg) scale(1);
    }
    40% {
        transform: rotate(12deg) scale(1.12);
    }
    70% {
        transform: rotate(-4deg) scale(1.06);
    }
    100% {
        transform: rotate(3deg) scale(1.08);
    }
}

@keyframes card4IconShift {
    0% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(4px) scale(1.1);
    }
    100% {
        transform: translateX(2px) scale(1.08);
    }
}


/* ==========================================================================
   PREMIUM EDUCATION TIMELINE SECTION — TIMELINE ENERGY FLOW & BORDER DRAW
   ========================================================================== */

.education-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 60px 0 40px;
    scroll-margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-dark);
    transition: var(--theme-transition);
    overflow: hidden;
}

.education-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.education-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    max-width: 620px;
    width: 100%;
}

.education-heading {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.education-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.4s ease;
}

/* Timeline Wrapper */
.timeline-wrapper {
    position: relative;
    width: 100%;
    max-width: 1160px;
    margin-top: 10px;
}

/* Connecting Line Track (Desktop Horizontal) */
.timeline-line-track {
    position: absolute;
    top: 50%;
    left: 80px;
    right: 80px;
    height: 2px;
    background: var(--border-subtle);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
}

.timeline-line-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-teal), var(--secondary-teal));
    border-radius: 2px;
    transition: width 1.5s var(--transition-smooth);
}

.timeline-line-progress.active {
    width: 100%;
}

/* Timeline Light Particle Moving 2019 -> 2021 -> 2023 (Subtle energy pulse, NO heavy neon glow) */
.timeline-particle {
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 2px;
    background: var(--primary-teal);
    border-radius: 2px;
    box-shadow: none;
    opacity: 0.85;
    animation: timelineParticleMoveHorizontal 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes timelineParticleMoveHorizontal {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 0.9; }
    90% { opacity: 0.9; }
    100% { left: 100%; opacity: 0; }
}

@keyframes timelineParticleMoveVertical {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 0.9; }
    90% { opacity: 0.9; }
    100% { top: 100%; opacity: 0; }
}

/* Timeline Milestones Grid & Scroll Reveal */
.timeline-milestones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.milestone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(25px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.milestone-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Zig-zag arrangement on desktop */
.card-top {
    flex-direction: column-reverse;
}

.card-bottom {
    flex-direction: column;
}

.card-top .edu-card {
    margin-bottom: 24px;
}

.card-bottom .edu-card {
    margin-top: 24px;
}

/* Timeline Node Styling (Sits above timeline line) */
.timeline-node {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 16px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                background-color 0.35s ease;
    z-index: 10;
}

.timeline-node i {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.node-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed var(--border-teal);
    opacity: 0.4;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, border-color 0.4s ease;
}

.node-year {
    position: absolute;
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-teal);
    white-space: nowrap;
    background: #031214;
    padding: 4px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-teal);
    transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 11;
}

[data-theme="light"] .node-year {
    background: #ffffff;
}

/* Year Underline Expansion Line */
.node-year::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-teal);
    border-radius: 1px;
    margin-top: 3px;
    opacity: 0.45;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.card-top .node-year {
    bottom: -32px;
}

.card-bottom .node-year {
    top: -32px;
}

/* 1. Matric Node */
.node-matric {
    animation: nodeBreathing 3s ease-in-out infinite alternate;
}

@keyframes nodeBreathing {
    0% { transform: scale(1); border-color: var(--border-teal); }
    100% { transform: scale(1.05); border-color: var(--primary-teal); }
}

/* 2. Intermediate Node */
.node-intermediate .node-ring {
    opacity: 0.6;
}

/* 3. BS Computer Science Node (Current Prominent Node) */
.node-bs {
    border-color: var(--primary-teal);
}

.node-bs .node-ring {
    opacity: 0.85;
    border: 1px solid var(--primary-teal);
}

/* SHARP CLEAN EDUCATION CARDS (Positioned above timeline line with opaque background) */
.edu-card {
    position: relative;
    z-index: 5;
    width: 100%;
    background: #031214;
    border: 1px solid var(--border-teal);
    border-radius: 16px;
    padding: 20px 18px;
    text-align: left;
    box-shadow: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.35s ease;
    overflow: hidden;
}

[data-theme="light"] .edu-card {
    background: #ffffff;
}

/* Ensure inner card elements sit above pseudo-elements and timeline line */
.edu-card-header,
.edu-institution,
.edu-desc,
.card-corner-accent {
    position: relative;
    z-index: 6;
}

/* Animated Border Draw Pseudo-element */
.edu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 65%,
        rgba(0, 229, 229, 0.35) 85%,
        var(--primary-teal) 96%,
        rgba(255, 255, 255, 0.95) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 2;
}

[data-theme="light"] .edu-card::before {
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 65%,
        rgba(0, 168, 168, 0.25) 85%,
        var(--primary-teal) 96%,
        #00E5E5 100%
    );
}

/* Card Current (BS Computer Science) Opaque Active Highlight */
.edu-card.card-current {
    border-color: rgba(0, 229, 229, 0.45);
    background: #031214;
}

[data-theme="light"] .edu-card.card-current {
    border-color: rgba(0, 168, 168, 0.45);
    background: #ffffff;
}

.edu-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}

.edu-degree-group {
    display: flex;
    flex-direction: column;
}

.edu-degree {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.edu-field {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-teal);
    font-family: var(--font-code);
    letter-spacing: 0.5px;
}

.grade-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-teal);
    background: rgba(0, 229, 229, 0.08);
    border: 1px solid var(--border-teal);
    padding: 3px 9px;
    border-radius: 8px;
    white-space: nowrap;
}

.current-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-teal);
    background: rgba(0, 229, 229, 0.12);
    border: 1px solid var(--primary-teal);
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
}

.c-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-teal);
    border-radius: 50%;
    animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

.edu-institution {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.inst-icon {
    color: var(--primary-teal);
    font-size: 13px;
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.edu-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* EDUCATION HOVER INTERACTIONS (Strictly scoped to mouse hover) */
@media (hover: hover) {
    .milestone-item:hover .edu-card {
        transform: translateX(6px);
        border-color: rgba(0, 229, 229, 0.5);
        box-shadow: none;
    }

    [data-theme="light"] .milestone-item:hover .edu-card {
        border-color: rgba(0, 168, 168, 0.5);
        box-shadow: none;
    }

    .milestone-item:hover .edu-card::before {
        opacity: 1;
        animation: eduBorderDraw 2.4s linear infinite;
    }

    .milestone-item:hover .timeline-node {
        transform: scale(1.15);
        border-color: var(--primary-teal);
    }

    .milestone-item:hover .timeline-node i {
        transform: translateY(-2px) scale(1.08) rotate(3deg);
    }

    .milestone-item:hover .node-ring {
        transform: scale(1.35);
        opacity: 0.85;
        border-color: var(--primary-teal);
    }

    .milestone-item:hover .node-year {
        color: var(--text-white);
        border-color: var(--primary-teal);
    }

    .milestone-item:hover .node-year::after {
        width: 45px;
        opacity: 1;
    }

    .milestone-item:hover .edu-degree {
        color: var(--primary-teal);
    }

    .milestone-item:hover .edu-desc {
        color: var(--text-white);
    }

    .milestone-item:hover .inst-icon {
        transform: translateY(-2px) scale(1.08) rotate(3deg);
    }
}

@keyframes eduBorderDraw {
    0% {
        --border-angle: 0deg;
    }
    100% {
        --border-angle: 360deg;
    }
}


/* ==========================================================================
   MINIMAL PREMIUM PROJECTS SHOWCASE — CURATED DIGITAL WORKSPACE (ROWS)
   ========================================================================== */

.projects-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 60px 0 50px;
    scroll-margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-dark);
    transition: var(--theme-transition);
    overflow: hidden;
}

.projects-container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    margin-bottom: 30px;
}

.projects-heading {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.projects-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: left;
    transition: color 0.4s ease;
}

/* Vertical Project Directory List */
.project-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

/* Project Row Base (NO HUGE CARDS) */
.project-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 16px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.35s ease, border-color 0.35s ease, opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(15px);
    cursor: pointer;
}

.project-row.active {
    opacity: 1;
    transform: translateY(0);
}

.project-row:first-child {
    border-top: 1px solid var(--border-subtle);
}

.project-row:hover {
    background-color: rgba(0, 229, 229, 0.035);
    border-bottom-color: var(--primary-teal);
}

[data-theme="light"] .project-row:hover {
    background-color: rgba(0, 130, 130, 0.035);
    border-bottom-color: var(--primary-teal);
}

/* Animated Border Light Beam across Row Bottom */
.project-row::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--primary-teal), transparent);
    transition: width 0.4s ease;
    box-shadow: 0 0 8px var(--primary-teal);
    pointer-events: none;
}

.project-row:hover::after {
    width: 100%;
}

/* Left Group */
.row-left-group {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.row-number-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 4px;
    flex-shrink: 0;
}

.row-number {
    font-family: var(--font-code);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.project-row:hover .row-number {
    color: var(--primary-teal);
}

.row-featured-tag {
    font-family: var(--font-code);
    font-size: 9px;
    font-weight: 700;
    color: var(--primary-teal);
    background: rgba(0, 229, 229, 0.12);
    border: 1px solid var(--border-teal);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.row-title-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.row-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-row:hover .row-title {
    color: var(--primary-teal);
    transform: translateX(4px);
}

/* Description (Reveals Subtly on Row Hover) */
.row-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(4px);
    transition: opacity 0.35s ease, max-height 0.35s ease, transform 0.35s ease;
}

.project-row:hover .row-desc {
    opacity: 1;
    max-height: 60px;
    transform: translateY(0);
    margin-top: 4px;
    margin-bottom: 2px;
}

.row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-top: 2px;
}

.row-category {
    font-weight: 600;
    color: var(--primary-teal);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.row-separator {
    color: var(--border-teal);
    font-size: 10px;
}

.row-tech {
    color: var(--text-muted);
    font-weight: 400;
}

/* Right Group (Compact Image Preview & GitHub Action) */
.row-right-group {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.row-preview-wrapper {
    position: relative;
    width: 200px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-teal);
    opacity: 0;
    transform: translateX(18px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.project-row:hover .row-preview-wrapper {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.row-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05);
}

.row-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.row-arrow {
    font-size: 11px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.project-row:hover .row-action-link {
    color: var(--primary-teal);
    background: rgba(0, 229, 229, 0.06);
    border-color: var(--border-teal);
}

.project-row:hover .row-arrow {
    transform: translateX(4px) rotate(-15deg);
    color: var(--primary-teal);
}

/* MINIMAL GITHUB CTA ROW */
.github-cta-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding: 20px 16px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.35s ease, opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(15px);
}

.github-cta-row.active {
    opacity: 1;
    transform: translateY(0);
}

.github-cta-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.github-cta-label {
    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-teal);
    letter-spacing: 1.5px;
}

.github-cta-sub {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

.btn-github-minimal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border: 1px solid var(--border-teal);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    transition: all 0.3s ease;
    background: transparent;
}

.btn-github-minimal .cta-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-github-minimal:hover {
    background: var(--primary-teal);
    border-color: var(--primary-teal);
    color: #02090B;
    box-shadow: 0 0 15px var(--glow-teal);
}

.btn-github-minimal:hover .cta-arrow {
    transform: translate(2px, -2px);
}


/* ==========================================================================
   PREMIUM EXPERIENCE / CAREER JOURNEY SECTION
   ========================================================================== */

.experience-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 60px 0 50px;
    scroll-margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-dark);
    transition: var(--theme-transition);
    overflow: hidden;
}

.experience-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.experience-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    max-width: 620px;
    width: 100%;
}

.experience-heading {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.experience-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.4s ease;
}

/* Timeline Wrapper (Desktop Horizontal) */
.exp-timeline-wrapper {
    position: relative;
    width: 100%;
    max-width: 1160px;
    margin-top: 20px;
}

/* Connecting Line Track */
.exp-line-track {
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--border-subtle);
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
}

.exp-line-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-teal), var(--secondary-teal));
    border-radius: 2px;
    transition: width 1.5s var(--transition-smooth);
}

.exp-line-progress.active {
    width: 100%;
}

/* Experience Entries Grid */
.exp-entries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.exp-entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.exp-entry-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Node Styling & 3 Distinct Animations */
.exp-node {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    margin-bottom: 24px;
    z-index: 3;
    transition: all 0.35s ease;
}

.exp-node-num {
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-teal);
}

/* Node 01: Enigmatix Breathing Pulse */
.node-enigmatix {
    animation: nodeBreathing 2.8s ease-in-out infinite alternate;
}

.node-enigmatix .node-ring {
    animation: ringPulse 2.8s ease-in-out infinite alternate;
}

/* Node 02: Adeeb Tech Lab Slow Rotating Micro-Ring */
.node-adeeb .node-ring {
    opacity: 0.8;
    animation: ringRotate3D 5.5s linear infinite;
}

/* Node 03: Self Learning Active Prominent Node */
.node-self {
    border-color: var(--primary-teal);
    animation: nodeActivePulse 2.4s ease-in-out infinite alternate;
}

.node-self .node-ring {
    opacity: 1;
    border: 1px solid var(--primary-teal);
    animation: ringRotate3D 4s linear infinite;
}

/* Experience Cards Base (NO SHADOWS) */
.exp-card {
    position: relative;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-teal);
    border-radius: 16px;
    padding: 22px 20px;
    text-align: left;
    box-shadow: none;
    transition: transform 0.35s var(--transition-smooth), border-color 0.35s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exp-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1.5px;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, transparent 75%, var(--primary-teal) 92%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.exp-card:hover::before {
    opacity: 1;
    animation: borderLightTravel 2.8s linear infinite;
}

.exp-card-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.exp-company-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.exp-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 229, 229, 0.08);
    border: 1px solid var(--border-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary-teal);
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.exp-company {
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-teal);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.exp-role {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    transition: color 0.4s ease;
}

.exp-date {
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    width: fit-content;
    background: rgba(0, 229, 229, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 3px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ongoing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-teal);
    background: rgba(0, 229, 229, 0.12);
    border: 1px solid var(--primary-teal);
    padding: 3px 10px;
    border-radius: 12px;
    width: fit-content;
}

.exp-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

.exp-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.exp-tag {
    font-family: var(--font-code);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--primary-teal);
    background: rgba(0, 229, 229, 0.06);
    border: 1px solid var(--border-subtle);
    padding: 3px 9px;
    border-radius: 6px;
}

/* CARD HOVER INTERACTIONS */
.exp-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-teal);
}

.exp-card:hover .exp-company {
    color: var(--text-white);
}

.exp-card:hover .exp-icon-box {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(0, 229, 229, 0.15);
}

.exp-card:hover .exp-date {
    color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.exp-entry-item:hover .exp-node {
    border-color: var(--primary-teal);
    transform: scale(1.14);
}


/* ==========================================================================
   PREMIUM CONTACT / LET'S CONNECT SECTION
   ========================================================================== */

.contact-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 60px 0 60px;
    scroll-margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-dark);
    transition: var(--theme-transition);
    overflow: hidden;
}

.contact-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

/* Decorative Orbit Visual Background */
.contact-orbit-bg {
    position: absolute;
    top: 5%;
    left: -40px;
    width: 440px;
    height: 440px;
    pointer-events: none;
    opacity: 0.05;
    z-index: 1;
}

.contact-orbit-ring {
    width: 100%;
    height: 100%;
    border: 1.5px dashed var(--primary-teal);
    border-radius: 50%;
    animation: orbitRotate 28s linear infinite;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Two-Column Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 46% 54%;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

/* Left Column */
.contact-left {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-left.active {
    opacity: 1;
    transform: translateX(0);
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.4vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.contact-description {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 28px;
    transition: color 0.4s ease;
}

/* Primary WhatsApp Direct Action CTA */
.whatsapp-cta-wrapper {
    margin-bottom: 32px;
    width: 100%;
}

.btn-whatsapp-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    border: 1px solid var(--border-teal);
    background: rgba(0, 229, 229, 0.04);
    backdrop-filter: blur(8px);
    transition: all 0.35s var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp-primary::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 10px;
    padding: 1.5px;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, transparent 75%, var(--primary-teal) 92%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-whatsapp-primary:hover::before {
    opacity: 1;
    animation: borderLightTravel 2.8s linear infinite;
}

.whatsapp-icon {
    font-size: 20px;
    color: #25D366;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.4));
}

.btn-whatsapp-primary:hover {
    transform: translateY(-3px);
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    background: rgba(0, 229, 229, 0.08);
}

.btn-whatsapp-primary:hover .whatsapp-icon {
    transform: scale(1.15) rotate(-5deg);
}

.btn-whatsapp-primary:hover .cta-arrow {
    transform: translateX(4px);
    color: var(--primary-teal);
}

/* Contact Info Stack */
.contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.info-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 229, 229, 0.06);
    border: 1px solid var(--border-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-info-item:hover .info-icon-box {
    transform: scale(1.1) rotate(-3deg);
    background: rgba(0, 229, 229, 0.12);
}

.info-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.info-meta-label {
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-teal);
    letter-spacing: 1.5px;
    margin-bottom: 2px;
    display: block;
}

.info-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-white);
    transition: color 0.3s ease;
    text-decoration: none;
}

.info-action-link:hover {
    color: var(--primary-teal);
}

.link-arrow {
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.3s ease, color 0.3s ease;
}

.info-action-link:hover .link-arrow {
    transform: translateX(4px);
    opacity: 1;
    color: var(--primary-teal);
}

.info-val-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-white);
    transition: color 0.4s ease;
}

/* Right Column Contact Form */
.contact-right {
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-right.active {
    opacity: 1;
    transform: translateX(0);
}

.contact-form {
    position: relative;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-teal);
    border-radius: 16px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    transition: color 0.4s ease;
}

.form-group {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-input, .form-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-teal);
    padding: 12px 0 8px 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-white);
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.form-input:focus, .form-textarea:focus {
    border-bottom-color: var(--primary-teal);
}

.form-label {
    position: absolute;
    top: 12px;
    left: 0;
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    font-size: 10px;
    color: var(--primary-teal);
}

.field-error {
    font-family: var(--font-code);
    font-size: 10.5px;
    color: #ff5f56;
    margin-top: 2px;
    min-height: 15px;
    display: block;
}

.btn-submit-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    background: var(--primary-teal);
    color: #02090B;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--transition-smooth);
    width: 100%;
    margin-top: 4px;
    box-shadow: 0 0 15px var(--glow-teal);
}

.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-teal);
}

.btn-submit-icon {
    font-size: 16px;
    color: #25D366;
    transition: transform 0.3s ease;
}

.btn-submit-form:hover .btn-submit-icon {
    transform: scale(1.18) rotate(-4deg);
}

.form-status {
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--primary-teal);
    text-align: center;
    margin-top: 4px;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* ==========================================================================
   PREMIUM FUTURISTIC DEVELOPER FOOTER
   ========================================================================== */

.footer-section {
    position: relative;
    width: 100%;
    padding: 70px 0 25px;
    background-color: var(--bg-dark);
    transition: var(--theme-transition);
    overflow: hidden;
    font-family: var(--font-body);
}

.footer-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
    overflow: hidden;
}

.footer-beam-highlight {
    position: absolute;
    top: 0;
    left: -20%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-teal), transparent);
    animation: footerBeam 3s linear infinite;
    box-shadow: 0 0 8px var(--primary-teal);
}

@keyframes footerBeam {
    0% { left: -40%; }
    100% { left: 100%; }
}

.footer-watermark {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: clamp(80px, 16vw, 240px);
    font-weight: 700;
    color: var(--primary-teal);
    opacity: 0.07;
    letter-spacing: 20px;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    user-select: none;
    max-width: 100%;
    overflow-wrap: normal;
}

[data-theme="light"] .footer-watermark {
    opacity: 0.065;
    color: var(--primary-teal);
}

.footer-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    gap: 26px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-container.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- FOOTER 3-COLUMN MAIN GRID & DIGITAL SIGNATURE PORTRAIT --- */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
    margin-bottom: 10px;
}

.footer-grid-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
}

.footer-grid-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 18px;
}

.footer-portrait-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    z-index: 2;
}

.footer-portrait-card {
    position: relative;
    width: 144px;
    height: 144px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: transform 0.4s var(--transition-smooth);
}

.footer-portrait-frame {
    position: relative;
    width: 114px;
    height: 114px;
    border-radius: 20px 8px 20px 8px;
    border: 1.5px solid var(--border-teal);
    overflow: hidden;
    background: rgba(0, 229, 229, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 2;
}

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

/* Corner Markers */
.frame-corner {
    position: absolute;
    width: 6px;
    height: 6px;
    border-color: var(--primary-teal);
    border-style: solid;
    z-index: 4;
    pointer-events: none;
    transition: border-color 0.35s ease;
}

.corner-tl { top: 2px; left: 2px; border-width: 1.5px 0 0 1.5px; }
.corner-tr { top: 2px; right: 2px; border-width: 1.5px 1.5px 0 0; }
.corner-bl { bottom: 2px; left: 2px; border-width: 0 0 1.5px 1.5px; }
.corner-br { bottom: 2px; right: 2px; border-width: 0 1.5px 1.5px 0; }

/* Orbital Lines */
.footer-orbit {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.orbit-1 {
    width: 132px;
    height: 132px;
    border: 1px solid var(--border-subtle);
    opacity: 0.6;
}

.orbit-2 {
    width: 144px;
    height: 144px;
    border: 1px dashed var(--border-teal);
    opacity: 0.45;
    animation: orbitRotate 16s linear infinite;
}

/* Portrait Hover Interaction (Desktop) */
.footer-portrait-card:hover {
    transform: scale(1.03);
}

.footer-portrait-card:hover .footer-portrait-frame {
    border-color: var(--primary-teal);
}

.footer-portrait-card:hover .footer-portrait-img {
    filter: contrast(1.06) brightness(1.03);
}

.footer-portrait-card:hover .orbit-2 {
    opacity: 0.85;
    border-color: var(--primary-teal);
}

.footer-identity-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
    transition: color 0.4s ease;
}

.footer-brand-role {
    font-family: var(--font-code);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary-teal);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.footer-brand-tagline {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    transition: color 0.4s ease;
    font-style: italic;
}

/* Quick Navigation Links */
.footer-nav {
    width: 100%;
    margin: 4px 0;
}

.footer-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-nav-link {
    position: relative;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    padding: 4px 0;
    text-decoration: none;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: var(--primary-teal);
    transition: width 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--primary-teal);
}

.footer-nav-link:hover::after {
    width: 100%;
}

/* STRICT TRANSPARENT SOCIAL ICONS (BRAND COLOR HOVER ONLY) */
.footer-social-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--text-muted);
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: transform 0.25s ease, color 0.25s ease;
    text-decoration: none;
    position: relative;
}

.social-icon-btn i {
    font-size: 21px;
    transition: color 0.25s ease;
}

.social-icon-btn:hover {
    transform: scale(1.08);
}

/* BRAND COLORS ONLY ON HOVER (TRANSPARENT BACKGROUND MANDATORY) */
.social-github:hover i { color: #FFFFFF !important; }
.social-facebook:hover i { color: #1877F2 !important; }
.social-tiktok:hover i { color: #FFFFFF !important; }
.social-instagram:hover i { color: #E4405F !important; }
.social-linkedin:hover i { color: #0A66C2 !important; }
.social-x:hover i { color: #FFFFFF !important; }
.social-snapchat:hover i { color: #FFFC00 !important; }

/* Light Mode Social Muted Color */
[data-theme="light"] .social-icon-btn {
    color: #526568;
}

[data-theme="light"] .social-github:hover i { color: #071719 !important; }
[data-theme="light"] .social-facebook:hover i { color: #1877F2 !important; }
[data-theme="light"] .social-tiktok:hover i { color: #071719 !important; }
[data-theme="light"] .social-instagram:hover i { color: #E4405F !important; }
[data-theme="light"] .social-linkedin:hover i { color: #0A66C2 !important; }
[data-theme="light"] .social-x:hover i { color: #071719 !important; }
[data-theme="light"] .social-snapchat:hover i { color: #D4B000 !important; }

/* Bottom Signature & Copyright */
.footer-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    width: 100%;
    max-width: 600px;
}

.footer-signature {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-white);
    transition: color 0.4s ease;
}

.footer-heart {
    display: inline-block;
    color: var(--primary-teal);
    margin: 0 4px;
    animation: heartPulse 1.8s ease-in-out infinite;
    text-shadow: 0 0 8px var(--primary-teal);
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.16); }
}

.footer-copyright {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.4s ease;
}


/* --- GLOBAL ANIMATION KEYFRAMES --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn3D {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- ACCESSIBILITY: REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-track {
        animation: none !important;
        transform: none !important;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .holographic-ring,
    .ring-segmented-teal,
    .energy-ribbon-3d,
    .laptop-workstation-container,
    .platform-container,
    .portrait-img,
    .bg-particle,
    .timeline-line-progress,
    .timeline-particle,
    .node-ring,
    .node-matric,
    .node-intermediate,
    .node-bs,
    .c-dot,
    .edu-card::before,
    .project-row,
    .row-preview-wrapper,
    .github-cta-row,
    .exp-line-progress,
    .exp-node,
    .node-enigmatix,
    .node-adeeb,
    .node-self,
    .exp-card::before,
    .exp-entry-item,
    .btn-whatsapp-primary::before,
    .contact-orbit-ring,
    .contact-left,
    .contact-right,
    .footer-beam-highlight,
    .footer-heart,
    .social-icon-btn,
    .footer-container {
        animation: none !important;
        transition: none !important;
        width: 100% !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- RESPONSIVE MEDIA QUERIES SYSTEM --- */

/* 1. TABLET & LAPTOP (<= 1024px) */
@media (max-width: 1024px) {
    .nav-container,
    .hero-container,
    .about-container,
    .education-container,
    .projects-container,
    .experience-container,
    .contact-container,
    .footer-container {
        width: min(100% - 48px, 1024px);
        padding-left: 0;
        padding-right: 0;
    }

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-left,
    .about-right {
        align-items: center;
        text-align: center;
    }

    .dynamic-role {
        width: 100%;
        justify-content: center;
    }

    .hero-description,
    .about-description {
        max-width: 580px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-right,
    .about-left {
        order: 2;
    }

    .hero-mascot-visual {
        max-width: 450px;
        height: 425px;
    }

    .mascot-ellipse-orbit {
        width: 88%;
        height: 66%;
    }

    .mascot-pod-atmosphere {
        width: 82%;
        height: 68%;
    }

    .mascot-ambient-glow {
        width: 66%;
        height: 66%;
    }

    .hero-mascot-platform {
        width: 78%;
    }

    .about-portrait-visual {
        max-width: 400px;
        height: 440px;
    }

    .portrait-ambient-glow {
        width: 78%;
        height: 74%;
    }

    .portrait-hud-rings {
        width: 86%;
        height: 82%;
    }

    .portrait-img-wrapper {
        width: 86%;
        height: 88%;
    }

    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1b. TABLET VERTICAL TIMELINE TRANSITION (<= 920px) */
@media (max-width: 920px) {
    /* Education Vertical Switch */
    .timeline-wrapper {
        padding-left: 15px;
    }

    .timeline-line-track {
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: 100%;
        right: auto;
        transform: none;
    }

    .timeline-line-progress {
        width: 100%;
        height: 0%;
        transition: height 1.5s var(--transition-smooth);
    }

    .timeline-line-progress.active {
        height: 100%;
    }

    .timeline-particle {
        display: block;
        width: 2px;
        height: 14px;
        left: 0;
        top: 0;
        animation: timelineParticleMoveVertical 8s linear infinite;
    }

    .timeline-milestones {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .milestone-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
    }

    .card-top .edu-card,
    .card-bottom .edu-card {
        margin: 0;
    }

    .timeline-node {
        width: 40px;
        height: 40px;
        font-size: 14px;
        flex-shrink: 0;
        margin-top: 4px;
    }

    .node-year {
        position: static;
        margin-top: 6px;
        font-size: 11px;
        padding: 2px 8px;
        display: inline-block;
    }

    .card-top .node-year,
    .card-bottom .node-year {
        top: auto;
        bottom: auto;
    }

    /* Experience Vertical Switch */
    .exp-timeline-wrapper {
        padding-left: 15px;
    }

    .exp-line-track {
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: 100%;
        right: auto;
        transform: none;
    }

    .exp-line-progress {
        width: 100%;
        height: 0%;
        transition: height 1.5s var(--transition-smooth);
    }

    .exp-line-progress.active {
        height: 100%;
    }

    .exp-entries-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .exp-entry-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
    }

    .exp-node {
        width: 40px;
        height: 40px;
        font-size: 13px;
        margin-bottom: 0;
        margin-top: 4px;
        flex-shrink: 0;
    }
}

/* 2. MOBILE PORTRAIT (<= 768px) */
@media (max-width: 768px) {
    .nav-container,
    .hero-container,
    .about-container,
    .education-container,
    .projects-container,
    .experience-container,
    .contact-container,
    .footer-container {
        width: min(100% - 32px, 768px);
    }

    .navbar {
        padding: 14px 0;
    }

    .nav-brand-emblem {
        gap: 8px;
    }

    .brand-title,
    .brand-status {
        display: none;
    }

    .name-main {
        display: none;
    }

    .name-short {
        display: inline-block;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--text-white);
        letter-spacing: 0.5px;
    }

    .emblem-visual {
        width: 38px;
        height: 38px;
    }

    .portrait-frame {
        width: 30px;
        height: 30px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 24px 0;
        gap: 18px;
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        border: 1px solid var(--border-teal);
        color: var(--text-white);
        font-size: 16px;
        background: rgba(0, 229, 229, 0.03);
    }

    .hero-name {
        font-size: clamp(30px, 7.5vw, 44px);
    }

    .about-heading,
    .education-heading,
    .projects-heading,
    .experience-heading,
    .contact-heading {
        font-size: clamp(26px, 6vw, 36px);
    }

    .dynamic-role {
        font-size: 17px;
    }

    .hero-cta-group {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        max-width: 440px;
    }

    .btn {
        min-height: 46px;
        padding: 12px 22px;
    }

    .about-section,
    .education-section,
    .projects-section,
    .experience-section,
    .contact-section {
        min-height: auto;
        height: auto;
        padding: 60px 0 40px;
    }

    .about-portrait-visual {
        max-width: 340px;
        height: 380px;
    }

    .portrait-img-wrapper {
        width: 280px;
        height: 350px;
    }

    .badge-experience { right: 0; }
    .badge-developer { left: 0; }

    .info-panel {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }

    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* EDUCATION SECTION RESPONSIVE POLISH */
    .edu-card {
        width: 100%;
        flex: 1;
        min-width: 0;
        padding: 18px 16px;
    }

    .edu-degree {
        font-size: 16px;
    }

    .edu-institution {
        font-size: 12.5px;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .edu-desc {
        font-size: 12.5px;
        line-height: 1.6;
        white-space: normal;
        overflow-wrap: break-word;
    }

    /* COMPACT PROJECT ROWS ON MOBILE */
    .project-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 0;
    }

    .row-left-group {
        width: 100%;
        gap: 14px;
    }

    .row-title {
        font-size: 20px;
    }

    .row-desc {
        opacity: 1;
        max-height: none;
        transform: none;
        margin-top: 6px;
        font-size: 12px;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .row-right-group {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
    }

    .row-preview-wrapper {
        opacity: 1;
        transform: none;
        width: 120px;
        height: 78px;
        flex-shrink: 0;
        pointer-events: auto;
        border-radius: 6px;
    }

    .github-cta-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px 0;
        gap: 14px;
    }

    /* EXPERIENCE SECTION RESPONSIVE POLISH */
    .exp-card {
        width: 100%;
        flex: 1;
        min-width: 0;
        padding: 18px 16px;
    }

    .exp-role {
        font-size: 15px;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .exp-company {
        white-space: normal;
        overflow-wrap: break-word;
    }

    .exp-date {
        font-size: 10.5px;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .exp-desc {
        font-size: 12.5px;
        line-height: 1.6;
        white-space: normal;
        overflow-wrap: break-word;
    }

    /* CONTACT SECTION ON MOBILE */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .btn-whatsapp-primary {
        width: 100%;
        justify-content: center;
        min-height: 50px;
    }

    .contact-form {
        padding: 22px 18px;
    }

    .form-input, .form-textarea {
        min-height: 44px;
    }

    .btn-submit-form {
        min-height: 48px;
    }

    /* FOOTER ON MOBILE */
    .footer-watermark {
        font-size: clamp(65px, 14vw, 180px);
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-grid-left {
        order: 2;
        align-items: center;
        text-align: center;
    }

    .footer-portrait-block {
        order: 1;
    }

    .footer-grid-right {
        order: 3;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-nav-links {
        justify-content: center;
        gap: 14px 20px;
    }

    .footer-social-row {
        justify-content: center;
        gap: 16px;
    }
}

/* 3. SMALL MOBILE (<= 480px, INCLUDING 320px, 360px, 375px, 390px, 414px) */
@media (max-width: 480px) {
    .nav-container,
    .hero-container,
    .about-container,
    .education-container,
    .projects-container,
    .experience-container,
    .contact-container,
    .footer-container {
        width: min(100% - 24px, 480px);
    }

    .nav-logo {
        font-size: 20px;
    }

    .btn-talk {
        padding: 7px 12px;
        font-size: 11.5px;
        gap: 5px;
    }

    .btn-talk i {
        font-size: 11px;
    }

    .nav-right {
        gap: 8px;
    }

    .hero-name {
        font-size: clamp(26px, 8.5vw, 36px);
    }

    .dynamic-role {
        font-size: 15px;
        height: 28px;
    }

    .hero-description {
        font-size: 13.5px;
        line-height: 1.55;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .hero-mascot-visual {
        max-width: 335px;
        height: 345px;
        margin: 20px auto 0 auto;
    }

    .mascot-ellipse-orbit {
        width: 88%;
        height: 66%;
    }

    .hero-mascot-platform {
        width: 260px;
        height: 35px;
    }

    .mascot-pod-atmosphere {
        width: 82%;
        height: 68%;
    }

    .mascot-ambient-glow {
        width: 66%;
        height: 66%;
    }

    .laptop-workstation-container {
        width: 290px;
        height: 220px;
    }

    .holographic-ring-container {
        width: 290px;
        height: 290px;
    }

    .energy-core-container {
        width: 280px;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr;
    }

    .about-portrait-visual {
        max-width: 290px;
        height: 340px;
    }

    .portrait-img-wrapper {
        width: 240px;
        height: 310px;
    }

    .badge-experience {
        top: 10px;
        right: -8px;
        padding: 6px 12px;
    }

    .badge-num {
        font-size: 20px;
    }

    .badge-developer {
        bottom: 20px;
        left: -8px;
        padding: 8px 12px;
    }

    .row-right-group {
        flex-direction: row;
        align-items: center;
    }

    .row-preview-wrapper {
        width: 100px;
        height: 65px;
    }

    /* Small Mobile Specific Timeline Tweaks for 320px - 390px */
    .timeline-wrapper,
    .exp-timeline-wrapper {
        padding-left: 10px;
    }

    .timeline-line-track,
    .exp-line-track {
        left: 18px;
    }

    .milestone-item,
    .exp-entry-item {
        gap: 12px;
    }

    .timeline-node,
    .exp-node {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }

    .exp-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .exp-date {
        align-self: flex-start;
    }
}
