:root {
    /* Typography & Core Layout */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dark Theme (Default) */
    --bg-color: #000000;
    --bg-secondary: #050505;
    --bg-surface: #0a0a0f;
    --card-bg: #0a0a0f;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #23887e;
    --accent-secondary: #45b4a8;
    --glass-bg: rgba(10, 10, 15, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(69, 180, 168, 0.4);
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.8);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);

    /* ID Card Shadows */
    --card-shadow-color: rgba(0, 0, 0, 0.6);
    --card-shadow-inset: rgba(255, 255, 255, 0.08);

    /* Theme Switch Toggle Outline */
    --toggle-outline: #1a1a1a;
    --toggle-shadow: rgba(26, 26, 26, 0.22);
}

[data-theme="light"] {
    /* Light Theme (Minimal Warm Creamish White) */
    --bg-color: #F5F4F0;
    --bg-secondary: #EFECE6;
    --bg-surface: #FAF9F5;
    --card-bg: #FAF9F5;
    --text-primary: #111111;
    --text-secondary: #525252;
    --text-muted: #7A7A7A;
    --accent: #23887e;           /* Preserved Deep Mint */
    --accent-secondary: #45b4a8; /* Preserved Soft Mint */
    --glass-bg: #FAF9F5;
    --glass-border: #E4E2DC;
    --border-color: #E4E2DC;
    --border-hover: #D0CE8C;
    --divider-color: #E8E5DF;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 1);

    /* ID Card Shadows */
    --card-shadow-color: rgba(0, 0, 0, 0.05);
    --card-shadow-inset: rgba(255, 255, 255, 1);

    /* Theme Switch Toggle Outline */
    --toggle-outline: #E7E7E7;
    --toggle-shadow: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .background-mesh {
    background: none;
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Global Theme Transition */
body, main, section, footer, .navbar, .cb-feature-item, .kb-card, .bb-cell, .skill-tag, .sk-node, .physics-id-card, .card-clip-hole, .card-header-minimal, .card-brand-matte, .card-status-matte, .card-photo-wrapper-matte, .card-photo-matte, .card-name-matte, .card-role-matte, .card-tech-stack, .card-social-links a, .card-footer-matte, .card-signature, .card-id-matte, .card-qr-code {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (overflow: clip) {

    html,
    body {
        overflow-x: clip;
    }
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Background Mesh Gradient */
.background-mesh {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(35, 136, 126, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(69, 180, 168, 0.15), transparent 25%);
    filter: blur(60px);
    animation: pulseMesh 10s infinite alternate;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

@keyframes pulseMesh {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

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


/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-width: 0;
}



.section-padding {
    padding: 100px 0;
    scroll-margin-top: 100px;
}

.highlight {
    color: var(--accent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Buttons (Uiverse Effect) */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 15px 25px;
    border: unset;
    border-radius: 15px;
    color: #212121;
    z-index: 1;
    background: #e8e8e8;
    position: relative;
    font-weight: 700;
    font-size: 17px;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    transition: all 250ms;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn::before,
.btn-primary::before,
.btn-secondary::before,
.btn-outline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 15px;
    background-color: #212121;
    z-index: -1;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    transition: all 250ms;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover {
    color: #e8e8e8;
    background: #e8e8e8;
    border-color: transparent;
}

.btn:hover::before,
.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-outline:hover::before {
    width: 100%;
}

.btn-block {
    width: 100%;
}

#enterPortfolioBtn {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(35, 136, 126, 0.3);
}

#enterPortfolioBtn:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(35, 136, 126, 0.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(97%, 1280px);
    max-width: calc(100vw - 16px);
    padding: 0.9rem 0;
    z-index: 9999;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    isolation: isolate;
}


.navbar.loading {
    transform: translateX(-50%) translateY(-20px) scale(0.9);
    opacity: 0;
}

.navbar.loaded {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

[data-theme="light"] .navbar {
    background: rgba(250, 249, 246, 0.85);
    border-color: rgba(35, 136, 126, 0.2);
    box-shadow: 12px 0 15px rgba(35, 136, 126, 0.12);
}

.navbar.scrolled {
    padding: 0.7rem 0;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    box-shadow: 15px 0 20px rgba(35, 136, 126, 0.15);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1.5px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-secondary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--accent-secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    padding-bottom: 40px;
    min-width: 0;
}

.hero-content,
.hero-visual,
.about-text,
.experience-timeline,
.contact-info,
.contact-form-container,
.project-card {
    min-width: 0;
}

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

.greeting .line {
    width: 40px;
    height: 2px;
    background: var(--accent-secondary);
}

.greeting p {
    color: var(--accent-secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-aliases {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    opacity: 0.7;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    min-width: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
}

.social-links a:hover {
    color: var(--accent-secondary);
    transform: translateY(-3px);
}

/* ─── Premium Profile Frame ─────────────────────────────── */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: -240px;
}

.profile-frame-outer {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    isolation: isolate;
}

.profile-aura {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, rgba(0, 210, 255, 0.24), transparent 34%),
        radial-gradient(circle at 35% 70%, rgba(255, 51, 51, 0.18), transparent 32%),
        radial-gradient(circle at 68% 68%, rgba(108, 92, 231, 0.22), transparent 34%);
    filter: blur(18px);
    opacity: 0.9;
    z-index: -2;
    animation: profileAura 6s ease-in-out infinite;
}

@keyframes profileAura {

    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Halo rings */
.halo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.halo-ring-1 {
    width: 350px;
    height: 350px;
    border-width: 3px;
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85)) padding-box,
        conic-gradient(from 0deg, #23887e, #00d2ff, #6c5ce7, #ff3333, #23887e) border-box;
    box-shadow: 0 0 42px rgba(0, 210, 255, 0.14);
    animation: rotateConic 6s linear infinite;
}

.halo-ring-2 {
    width: 390px;
    height: 390px;
    border: 1.5px dashed rgba(108, 92, 231, 0.4);
    animation: pulseRing 3s ease-in-out infinite;
}

.halo-ring-3 {
    width: 420px;
    height: 420px;
    border: 1px solid rgba(35, 136, 126, 0.22);
    animation: pulseRing 3s ease-in-out infinite 0.8s;
}

@keyframes rotateConic {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulseRing {

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

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.02);
    }
}

/* Orbiting dots */
.orbit-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary), 0 0 20px var(--accent-secondary);
}

.orbit-dot-1 {
    animation: orbit1 5s linear infinite;
}

.orbit-dot-2 {
    width: 7px;
    height: 7px;
    background: #6c5ce7;
    box-shadow: 0 0 10px #6c5ce7, 0 0 20px #6c5ce7;
    animation: orbit2 7s linear infinite;
}

.orbit-dot-3 {
    width: 6px;
    height: 6px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent);
    animation: orbit3 9s linear infinite reverse;
}

@keyframes orbit1 {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(195px) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(195px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    0% {
        transform: translate(-50%, -50%) rotate(120deg) translateX(205px) rotate(-120deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(480deg) translateX(205px) rotate(-480deg);
    }
}

@keyframes orbit3 {
    0% {
        transform: translate(-50%, -50%) rotate(240deg) translateX(215px) rotate(-240deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(600deg) translateX(215px) rotate(-600deg);
    }
}

/* Profile tilt wrapper (3D tilt handled by JS) */
.profile-tilt-wrapper {
    width: 304px;
    height: 304px;
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    cursor: pointer;
    z-index: 2;
}

.profile-tilt-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 28%),
        conic-gradient(from 140deg, #23887e, #00d2ff, #6c5ce7, #ff3333, #23887e);
    filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.45));
    z-index: -1;
}

.profile-tilt-wrapper::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 38%, rgba(0, 0, 0, 0.28));
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 3;
}

.uiverse-profile-card,
.uiverse-profile-card .card {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}

.uiverse-profile-card .profile-card-image {
    display: block;
    border-radius: 50%;
    z-index: 1 !important;
    transition: transform 0.5s ease, filter 0.4s ease, opacity 0.4s ease !important;
    border: 10px solid rgba(10, 10, 10, 0.92);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14),
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(35, 136, 126, 0.15) inset;
}

.uiverse-profile-card .fl,
.uiverse-profile-card .card_content,
.uiverse-profile-card .card_back,
.uiverse-profile-card .data,
.uiverse-profile-card .btns {
    display: none;
}

.profile-tilt-wrapper:hover .profile-card-image {
    filter: brightness(1.05) contrast(1.05);
    transform: scale(1.06);
}

/* Profile circle image */
.profile-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #111;
    box-shadow:
        0 0 0 3px rgba(35, 136, 126, 0.6),
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(35, 136, 126, 0.15) inset;
    transition: box-shadow 0.4s ease;
}

.profile-tilt-wrapper:hover .profile-circle {
    box-shadow:
        0 0 0 3px rgba(108, 92, 231, 0.8),
        0 30px 80px rgba(0, 0, 0, 0.9),
        0 0 100px rgba(108, 92, 231, 0.2) inset;
}

.profile-img-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
}

.profile-tilt-wrapper:hover .profile-img-circle {
    transform: scale(1.06);
    filter: brightness(1.05) contrast(1.05);
}

/* Shine overlay */
.profile-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    transition: opacity 0.3s;
}

.profile-tilt-wrapper:hover .profile-shine {
    opacity: 0;
}

/* Floating badges */
.profile-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: floatBadge 3.5s ease-in-out infinite;
}

.badge-top {
    top: -10px;
    right: -20px;
    border-color: rgba(35, 136, 126, 0.4);
    animation-delay: 0s;
}

.badge-bottom {
    bottom: -10px;
    left: -20px;
    border-color: rgba(108, 92, 231, 0.4);
    animation-delay: 1.75s;
}

.badge-icon {
    color: var(--accent-secondary);
    font-size: 0.9rem;
}

.profile-badge .badge-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.profile-badge .badge-icon::before {
    font-family: "Font Awesome 6 Free";
    font-size: 0.82rem;
    font-weight: 900;
}

.badge-top .badge-icon::before {
    content: "\f121";
}

.badge-bottom .badge-icon::before {
    content: "\f0e7";
}

.badge-bottom .badge-icon {
    color: #6c5ce7;
}

@keyframes floatBadge {

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

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

[data-theme="light"] .profile-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(35, 136, 126, 0.3);
    color: #1a1a1a;
}

.profile-nameplate {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 225px;
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.72);
    color: var(--text-primary);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
    z-index: 6;
}

.profile-nameplate strong,
.profile-nameplate span {
    display: block;
}

.profile-nameplate strong {
    font-size: 0.9rem;
    line-height: 1.15;
}

.profile-nameplate div span {
    color: var(--text-secondary);
    font-size: 0.76rem;
    margin-top: 2px;
}

.profile-status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #43ce7c;
    box-shadow: 0 0 0 6px rgba(67, 206, 124, 0.13), 0 0 18px rgba(67, 206, 124, 0.8);
}

[data-theme="light"] .profile-nameplate {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(35, 136, 126, 0.18);
    color: #16201f;
}

@media (max-width: 768px) {
    .profile-frame-outer {
        width: min(330px, 90vw);
        height: clamp(320px, 90vw, 370px);
    }

    .profile-tilt-wrapper {
        width: min(244px, 68vw);
        height: min(244px, 68vw);
    }

    .halo-ring-1 {
        width: min(280px, 78vw);
        height: min(280px, 78vw);
    }

    .halo-ring-2 {
        width: min(310px, 86vw);
        height: min(310px, 86vw);
    }

    .halo-ring-3 {
        width: min(336px, 92vw);
        height: min(336px, 92vw);
    }

    .orbit-dot {
        display: none;
    }

    .profile-nameplate {
        bottom: 20px;
        min-width: 180px;
        max-width: 90%;
    }
}


/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text .lead {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.skills-container {
    margin-top: 3rem;
}

.skills-title {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-secondary);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.timeline-date {
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-role {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.timeline-company {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Projects Section */
.projects-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 20vh;
}

.stack-text-indicator {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 6rem;
    opacity: 0.6;
    text-align: center;
    position: relative;
}

.stack-text-indicator::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-secondary), transparent);
    margin-top: 10px;
}

.project-card-wrapper {
    position: sticky;
    top: calc(15vh + (var(--index) * 20px));
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30vh;
    transform-origin: top center;
    will-change: transform;
}

.project-card-wrapper:last-child {
    margin-bottom: 5vh;
}

.project-card {
    width: 100%;
    max-width: 900px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 1);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(35, 136, 126, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 1), 0 0 40px rgba(35, 136, 126, 0.3);
}

.project-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transform: translateY(20px);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover .placeholder-img {
    transform: scale(1.1);
}

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

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-info {
    padding: 2rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tags span {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    background: rgba(0, 210, 255, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.contact-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(35, 136, 126, 0.1);
    border: 1px solid rgba(35, 136, 126, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.contact-method h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-method p {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-secondary);
}

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

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--accent-secondary);
}







/* ---- Advanced Animations ---- */

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

/* Staggered Entrance */
.stagger-container>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.stagger-container.active>*:nth-child(1) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(2) {
    transition-delay: 0.55s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(3) {
    transition-delay: 0.8s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(4) {
    transition-delay: 1.05s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(5) {
    transition-delay: 1.3s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(6) {
    transition-delay: 1.55s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(7) {
    transition-delay: 1.8s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(8) {
    transition-delay: 2.05s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(9) {
    transition-delay: 2.3s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(10) {
    transition-delay: 2.55s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(11) {
    transition-delay: 2.8s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(12) {
    transition-delay: 3.05s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(13) {
    transition-delay: 3.3s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(14) {
    transition-delay: 3.55s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-container.active>*:nth-child(15) {
    transition-delay: 3.8s;
    opacity: 1;
    transform: translateY(0);
}


/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

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

.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* Shine Effect for Cards */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 55%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
    opacity: 0;
}

.shine-effect:hover::after {
    animation: shine 0.8s ease forwards;
    opacity: 1;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Particle Canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Navbar Indicator Animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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



/* Hero "Insane" Entrance */
.hero-section {
    opacity: 1;
    /* Removed conflicting entrance styles that cause glitches with GSAP */
}

.hero-title .name {
    display: inline-block;
    overflow: hidden;
}

.hero-title .name span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 1.4s cubic-bezier(0.23, 1, 0.32, 1);
}

body.loaded .hero-title .name span {
    transform: translateY(0);
}

/* Staggered entrance for hero elements */
.hero-content>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.4s cubic-bezier(0.23, 1, 0.32, 1);
}

body.loaded .hero-content>*:nth-child(1) {
    transition-delay: 1.1s;
    opacity: 1;
    transform: translateY(0);
}

body.loaded .hero-content>*:nth-child(2) {
    transition-delay: 1.2s;
    opacity: 1;
    transform: translateY(0);
}

body.loaded .hero-content>*:nth-child(3) {
    transition-delay: 1.3s;
    opacity: 1;
    transform: translateY(0);
}

body.loaded .hero-content>*:nth-child(4) {
    transition-delay: 1.4s;
    opacity: 1;
    transform: translateY(0);
}

body.loaded .hero-content>*:nth-child(5) {
    transition-delay: 1.5s;
    opacity: 1;
    transform: translateY(0);
}

.hero-visual {
    opacity: 0;
    transform: translateX(50px) scale(0.9);
    transition: all 2.0s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 1.3s;
}

body.loaded .hero-visual {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* ===========================================
   RESPONSIVE DESIGN - rewritten
   Breakpoints: 1200 | 900 | 720 | 540 | 390
   =========================================== */

img,
video,
canvas {
    max-width: 100%;
}

.hero-title,
.section-title,
.contact-title,
.timeline-role,
.project-title,
.contact-method p,
.footer-content p {
    overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding-inline: clamp(1.5rem, 4vw, 3rem);
    }

    .hero-container {
        gap: clamp(2.5rem, 5vw, 4rem);
    }

    .hero-title {
        font-size: clamp(3.7rem, 7vw, 5rem);
    }

    .image-wrapper {
        max-width: min(380px, 34vw);
    }
}

@media (max-width: 900px) {
    .section-padding {
        padding: 82px 0;
        scroll-margin-top: 92px;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: clamp(2.25rem, 7vw, 3rem);
    }

    .navbar {
        top: 10px;
        width: calc(100% - 24px);
        border-radius: 28px;
        padding-block: 0.65rem;
    }

    .navbar.scrolled {
        padding-block: 0.55rem;
    }

    .nav-content {
        padding-inline: 1rem;
    }

    .logo {
        font-size: clamp(1.35rem, 4vw, 1.65rem);
    }

    .nav-controls {
        gap: 0.65rem;
    }

    .theme-toggle,
    .menu-toggle {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
    }

    .theme-toggle {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
    }

    [data-theme="light"] .theme-toggle {
        background: rgba(35, 136, 126, 0.08);
    }

    .menu-toggle {
        background: var(--accent);
        color: #fff;
        border: 0;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.9rem;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        list-style: none;
        text-align: left;
        background: rgba(7, 10, 12, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top center;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    [data-theme="light"] .nav-links {
        background: rgba(250, 249, 246, 0.96);
        border-color: rgba(35, 136, 126, 0.2);
        box-shadow: 0 24px 60px rgba(35, 136, 126, 0.18);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: 0.85rem 1rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-primary);
    }

    [data-theme="light"] .nav-links a {
        background: rgba(35, 136, 126, 0.08);
    }

    .nav-links a::after {
        display: none;
    }

    .hero-section {
        min-height: auto;
        align-items: flex-start;
        padding-top: 120px;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: center;
        padding-bottom: 18px;
    }

    .hero-content {
        display: contents;
    }

    .greeting {
        order: 1;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .hero-visual {
        order: 2;
        transform: none !important;
        margin-top: 0;
        margin-bottom: 2.5rem;
        align-self: center;
        width: 100%;
    }

    body.loaded .hero-visual {
        transform: none !important;
    }

    .hero-title {
        order: 3;
        font-size: clamp(2.8rem, 9vw, 4.2rem);
    }

    .hero-aliases {
        order: 4;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        order: 5;
        max-width: 640px;
        margin-inline: auto;
        margin-bottom: 2rem;
    }

    .hero-actions {
        order: 6;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 2.5rem;
    }

    .social-links {
        order: 7;
        justify-content: center;
    }

    .image-wrapper {
        max-width: min(340px, 58vw);
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-content {
        max-width: 760px;
        margin-inline: auto;
    }

    .contact-wrapper {
        padding: clamp(2rem, 6vw, 3.25rem);
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container {
        padding-inline: 1.15rem;
    }

    .section-padding {
        padding: 68px 0;
    }

    .section-header {
        margin-bottom: 2.25rem;
    }

    .section-subtitle,
    .hero-aliases,
    .greeting p {
        letter-spacing: 1px;
    }

    .hero-section {
        padding-top: 108px;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(2.15rem, 12vw, 3.15rem);
        line-height: 1.06;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1.02rem;
        line-height: 1.75;
        margin-bottom: 1.8rem;
    }

    .hero-actions {
        width: min(100%, 430px);
        margin-inline: auto;
        margin-bottom: 2rem;
        flex-direction: column;
        gap: 0.85rem;
    }

    .btn {
        width: 100%;
        min-height: 48px;
        padding: 0.85rem 1.1rem;
        white-space: normal;
        text-align: center;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1.2rem;
    }

    .image-wrapper {
        max-width: min(285px, 76vw);
        border-radius: 24px;
    }

    .about-text .lead {
        font-size: 1.3rem;
    }

    .skills-grid,
    .project-tags {
        gap: 0.65rem;
    }

    .skill-tag,
    .project-tags span {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .experience-timeline {
        padding-left: 1.35rem;
    }

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

    .timeline-dot {
        left: -1.75rem;
    }

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

    .project-img-container {
        height: clamp(180px, 54vw, 230px);
    }

    .project-info {
        padding: 1.35rem;
    }

    .contact-wrapper {
        border-radius: 24px;
        padding: 1.35rem;
        gap: 2rem;
    }

    .contact-title {
        font-size: clamp(1.85rem, 9vw, 2.35rem);
    }

    .contact-desc {
        margin-bottom: 2rem;
    }

    .contact-method {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 1rem;
        align-items: start;
    }

    .icon-box {
        width: 46px;
        height: 46px;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }

    .terminal-window {
        width: min(92vw, 460px);
        height: min(72vh, 520px);
    }

    .terminal-widget {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .terminal-toggle {
        width: 48px;
        height: 48px;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body {
        cursor: default !important;
    }

    a,
    button,
    input,
    textarea {
        cursor: pointer !important;
    }
}

@media (max-width: 540px) {
    .navbar {
        width: calc(100% - 18px);
        border-radius: 22px;
    }

    .nav-content {
        padding-inline: 0.8rem;
    }

    .theme-toggle,
    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .hero-section {
        padding-top: 100px;
    }

    .greeting {
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .greeting .line {
        width: 30px;
    }

    .hero-aliases {
        font-size: 0.78rem;
    }

    .hero-title {
        font-size: clamp(1.9rem, 13vw, 2.45rem);
    }

    .image-wrapper {
        max-width: min(245px, 78vw);
        border-radius: 20px;
    }

    .section-title {
        font-size: clamp(1.75rem, 9vw, 2.1rem);
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .contact-method p {
        font-size: 0.95rem;
    }

    .terminal-title {
        display: none;
    }
}

@media (max-width: 390px) {
    .container {
        padding-inline: 0.9rem;
    }

    .logo {
        font-size: 1.25rem;
        letter-spacing: 0.3px;
    }

    .nav-controls {
        gap: 0.45rem;
    }

    .theme-toggle,
    .menu-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.78rem;
    }

    .hero-description {
        font-size: 0.96rem;
    }

    .btn {
        font-size: 0.88rem;
    }

    .contact-wrapper {
        padding: 1rem;
    }
}

/* ----------------------------------------
   Shepherd.js Tour Custom Theme
---------------------------------------- */
.custom-shepherd-theme {
    background: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #d4d4d4 !important;
    font-family: var(--font-sans) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5) !important;
    padding: 0 !important;
}

[data-theme="light"] .custom-shepherd-theme {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #333333 !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12) !important;
}

.custom-shepherd-theme .shepherd-header {
    background: transparent !important;
    padding: 1rem 1rem 0 !important;
    border: none !important;
}

.custom-shepherd-theme .shepherd-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
}

.custom-shepherd-theme .shepherd-cancel-icon {
    color: #888 !important;
}

.custom-shepherd-theme .shepherd-text {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    padding: 1rem !important;
    color: inherit !important;
}

.custom-shepherd-theme .shepherd-footer {
    background: transparent !important;
    padding: 0 1rem 1rem !important;
    border-top: none !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.custom-shepherd-theme .shepherd-button {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    font-family: var(--font-sans) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.custom-shepherd-theme .shepherd-button.shepherd-btn-secondary {
    background: transparent !important;
    color: #d4d4d4 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="light"] .custom-shepherd-theme .shepherd-button.shepherd-btn-secondary {
    color: #333 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.custom-shepherd-theme .shepherd-button:hover {
    transform: translateY(-2px) !important;
    opacity: 0.9 !important;
}

.custom-shepherd-theme .shepherd-arrow::before {
    background: rgba(30, 30, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="light"] .custom-shepherd-theme .shepherd-arrow::before {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================
   LIGHT BUTTON COMPONENT (Uiverse.io effect)
   ========================================== */
.light-button {
    --btn-width: 80px;
    --btn-height: 110px;
    --holder-size: 64px;
    --icon-size: 22px;
    --text-size: 0.72rem;

    display: inline-block;
    position: relative;
}

.light-button a.bt {
    position: relative;
    height: var(--btn-height);
    width: var(--btn-width);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    outline: none;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.light-button a.bt .button-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: var(--holder-size);
    width: var(--holder-size);
    background-color: #0d0d12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #8a8f98;
    font-weight: 600;
    transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .light-button a.bt .button-holder {
    background-color: #ffffff;
    border-color: rgba(35, 136, 126, 0.15);
    color: #555555;
    box-shadow: 0 4px 15px rgba(35, 136, 126, 0.08);
}

.light-button a.bt .button-holder i {
    font-size: var(--icon-size);
    color: #8a8f98;
    transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
}

[data-theme="light"] .light-button a.bt .button-holder i {
    color: #555555;
}

.light-button a.bt .button-holder p {
    font-size: var(--text-size);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
    font-family: var(--font-sans, 'Outfit', sans-serif);
    transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.light-button a.bt .light-holder {
    position: absolute;
    height: var(--btn-height);
    width: var(--btn-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 0;
    pointer-events: none;
}

.light-button a.bt .light-holder .dot {
    position: absolute;
    top: 0;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color, #ff3333);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--accent-color, #ff3333);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.light-button a.bt .light-holder .light {
    position: absolute;
    top: 0;
    width: calc(var(--btn-width) * 1.5);
    height: var(--btn-height);
    clip-path: polygon(50% 0%, 20% 100%, 80% 100%);
    background: transparent;
    transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Color Brand Presets */
.light-button.github {
    --accent-color: #a855f7;
    /* Purple glow */
    --hover-color: #ffffff;
    --hover-color-glow: rgba(168, 85, 247, 0.45);
}

[data-theme="light"] .light-button.github {
    --hover-color: #24292e;
}

.light-button.linkedin {
    --accent-color: #0077b5;
    --hover-color: #0077b5;
    --hover-color-glow: rgba(0, 119, 181, 0.45);
}

.light-button.instagram {
    --accent-color: #e1306c;
    --hover-color: #e1306c;
    --hover-color-glow: rgba(225, 48, 108, 0.45);
}

.light-button.email {
    --accent-color: #ff3333;
    --hover-color: #ff3333;
    --hover-color-glow: rgba(255, 51, 51, 0.45);
}

/* Hover Actions */
.light-button a.bt:hover {
    transform: translateY(-2px);
}

.light-button a.bt:hover .button-holder {
    color: var(--hover-color);
    border-color: var(--hover-color);
    box-shadow: 0 8px 24px var(--hover-color-glow);
    outline: var(--hover-color) 1px solid;
    outline-offset: 2px;
}

.light-button a.bt:hover .button-holder i {
    color: var(--hover-color);
    transform: scale(1.1);
}

.light-button a.bt:hover .light-holder .dot {
    opacity: 1;
    box-shadow: 0 0 15px var(--accent-color);
}

.light-button a.bt:hover .light-holder .light {
    background: linear-gradient(180deg,
            var(--hover-color-glow) 0%,
            rgba(255, 255, 255, 0) 75%,
            rgba(255, 255, 255, 0) 100%);
}

/* Footer-specific Light Button size adjustments */
.footer-links .light-button {
    --btn-width: 60px;
    --btn-height: 80px;
    --holder-size: 46px;
    --icon-size: 16px;
    --text-size: 0.55rem;
}

/* --- Custom Theme Toggle --- */

/* From Uiverse.io by mamyapro123 */
.theme-switch {
    --toggle-size: 16px;
    /* Adjusted to fit the navbar nicely */
    --container-width: 5.625em;
    --container-height: 2.5em;
    --container-radius: 0.38em;
    --container-light-bg: #F7F7F7;
    --container-night-bg: #1b1e36;
    --circle-container-diameter: 3.375em;
    --sun-moon-diameter: 2.125em;
    --sun-bg: #f5c518;
    --moon-bg: #d8d4c0;
    --spot-color: #9b9787;
    --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
    --stars-color: #fff8e1;
    --clouds-color: #f4f4f4;
    --back-clouds-color: #e5e5e5;
    --transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
    --circle-transition: 0.3s cubic-bezier(0, -0.02, 0.35, 1.17);
    display: inline-block;
    cursor: pointer;
}

.theme-switch,
.theme-switch *,
.theme-switch *::before,
.theme-switch *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: var(--toggle-size);
}

.theme-switch__container {
    width: var(--container-width);
    height: var(--container-height);
    background-color: var(--container-light-bg);
    border-radius: var(--container-radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background-image: linear-gradient(to bottom,
            var(--container-light-bg) 0%,
            #e7e7e7 100%);
    transition: all var(--transition);
    box-shadow:
        0 0 0 2.5px var(--toggle-outline),
        3px 4px 0 2.5px var(--toggle-shadow);
    transform: rotate(-0.7deg);
}

.theme-switch__container::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background-image: repeating-linear-gradient(-50deg,
            transparent,
            transparent 7px,
            rgba(255, 255, 255, 0.04) 7px,
            rgba(255, 255, 255, 0.04) 8px);
    border-radius: inherit;
    pointer-events: none;
}

.theme-switch__checkbox {
    display: none;
}

.theme-switch__circle-container {
    width: var(--circle-container-diameter);
    height: var(--circle-container-diameter);
    background-color: rgba(255, 255, 255, 0.1);
    position: absolute;
    left: var(--circle-container-offset);
    top: var(--circle-container-offset);
    border-radius: var(--container-radius);
    box-shadow:
        inset 0 0 0 3.375em rgba(255, 255, 255, 0.1),
        inset 0 0 0 3.375em rgba(255, 255, 255, 0.1),
        0 0 0 0.625em rgba(255, 255, 255, 0.1),
        0 0 0 1.25em rgba(255, 255, 255, 0.1);
    display: flex;
    transition: var(--circle-transition);
    pointer-events: none;
}

.theme-switch__circle-container::before {
    content: "";
    position: absolute;
    width: calc(var(--circle-container-diameter) + 1.5em);
    height: calc(var(--circle-container-diameter) + 1.5em);
    left: -0.75em;
    top: -0.75em;
    border-radius: 50%;
    background: conic-gradient(transparent 0deg,
            transparent 8deg,
            rgba(245, 197, 24, 0.52) 8deg,
            rgba(245, 197, 24, 0.52) 22deg,
            transparent 22deg,
            transparent 53deg,
            rgba(245, 197, 24, 0.52) 53deg,
            rgba(245, 197, 24, 0.52) 67deg,
            transparent 67deg,
            transparent 98deg,
            rgba(245, 197, 24, 0.52) 98deg,
            rgba(245, 197, 24, 0.52) 112deg,
            transparent 112deg,
            transparent 143deg,
            rgba(245, 197, 24, 0.52) 143deg,
            rgba(245, 197, 24, 0.52) 157deg,
            transparent 157deg,
            transparent 188deg,
            rgba(245, 197, 24, 0.52) 188deg,
            rgba(245, 197, 24, 0.52) 202deg,
            transparent 202deg,
            transparent 233deg,
            rgba(245, 197, 24, 0.52) 233deg,
            rgba(245, 197, 24, 0.52) 247deg,
            transparent 247deg,
            transparent 278deg,
            rgba(245, 197, 24, 0.52) 278deg,
            rgba(245, 197, 24, 0.52) 292deg,
            transparent 292deg,
            transparent 323deg,
            rgba(245, 197, 24, 0.52) 323deg,
            rgba(245, 197, 24, 0.52) 337deg,
            transparent 337deg,
            transparent 360deg);
    animation: rotateSunRays 14s linear infinite;
    opacity: 1;
    transition: opacity var(--transition);
    pointer-events: none;
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__circle-container::before {
    opacity: 0;
}

@keyframes rotateSunRays {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.theme-switch__sun-moon-container {
    pointer-events: auto;
    position: relative;
    z-index: 2;
    width: var(--sun-moon-diameter);
    height: var(--sun-moon-diameter);
    margin: auto;
    border-radius: var(--container-radius);
    background-color: var(--sun-bg);
    box-shadow:
        0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset,
        0em -0.062em 0.062em 0em #a1872a inset,
        0.1em 0.13em 0 0.04em #1a1a1a;
    filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
    overflow: hidden;
    transition: var(--transition);
    transform: scale(1);
}

.theme-switch__sun-moon-container:hover {
    transform: scale(1.1) rotate(5deg);
}

.theme-switch__moon {
    transform: translateX(100%);
    width: 100%;
    height: 100%;
    background-color: var(--moon-bg);
    border-radius: inherit;
    box-shadow:
        0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset,
        0em -0.062em 0.062em 0em #969696 inset;
    transition:
        all var(--transition),
        transform 0.3s ease;
    position: relative;
}

.theme-switch__moon:hover {
    transform: rotate(15deg);
}

.theme-switch__spot {
    position: absolute;
    top: 0.75em;
    left: 0.312em;
    width: 0.75em;
    height: 0.75em;
    border-radius: var(--container-radius);
    background-color: var(--spot-color);
    box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
    transition: background-color 0.3s ease;
}

.theme-switch__spot:nth-of-type(2) {
    width: 0.375em;
    height: 0.375em;
    top: 0.937em;
    left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
    width: 0.25em;
    height: 0.25em;
    top: 0.312em;
    left: 0.812em;
}

.theme-switch__moon:hover .theme-switch__spot {
    background-color: #7a7f8c;
}

.theme-switch__clouds {
    width: 1.25em;
    height: 1.25em;
    background-color: var(--clouds-color);
    border-radius: var(--container-radius);
    position: absolute;
    bottom: -0.625em;
    left: 0.312em;
    box-shadow:
        0.937em 0.312em var(--clouds-color),
        -0.312em -0.312em var(--back-clouds-color),
        1.437em 0.375em var(--clouds-color),
        0.5em -0.125em var(--back-clouds-color),
        2.187em 0 var(--clouds-color),
        1.25em -0.062em var(--back-clouds-color),
        2.937em 0.312em var(--clouds-color),
        2em -0.312em var(--back-clouds-color),
        3.625em -0.062em var(--clouds-color),
        2.625em 0em var(--back-clouds-color),
        4.5em -0.312em var(--clouds-color),
        3.375em -0.437em var(--back-clouds-color),
        4.625em -1.75em 0 0.437em var(--clouds-color),
        4em -0.625em var(--back-clouds-color),
        4.125em -2.125em 0 0.437em var(--back-clouds-color);
    transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
    position: absolute;
    color: var(--stars-color);
    top: -100%;
    left: 0.312em;
    width: 2.75em;
    height: auto;
    transition: var(--transition);
}

.theme-switch__checkbox:checked+.theme-switch__container {
    background-color: var(--container-night-bg);
    background-image: linear-gradient(to bottom,
            var(--container-night-bg) 0%,
            #252a4a 100%);
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__circle-container {
    left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__circle-container:hover {
    left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em);
}

.theme-switch__circle-container:hover {
    left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__moon {
    transform: translate(0);
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__clouds {
    bottom: -4.062em;
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__stars-container {
    top: 50%;
    transform: translateY(-50%);
}

.theme-switch__container:hover .theme-switch__clouds {
    transform: translateX(15px) scale(1.02);
}

.theme-switch__sun-moon-container::after {
    content: "";
    position: absolute;
    inset: -5px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-switch__sun-moon-container:hover::after {
    opacity: 1;
}

.theme-switch__shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    top: 20%;
    left: -10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-switch__shooting-star-2 {
    position: absolute;
    width: 1px;
    height: 1px;
    background: white;
    top: 35%;
    left: -10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-switch__meteor {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffd700;
    border-radius: 50%;
    top: -10%;
    left: 50%;
    opacity: 0;
    filter: blur(1px);
    transition: opacity 0.3s ease;
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__shooting-star {
    animation: shootingStar 2s linear infinite;
    opacity: 1;
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__shooting-star-2 {
    animation: shootingStar 3s linear infinite 1s;
    opacity: 1;
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__meteor {
    animation: meteor 4s linear infinite 2s;
    opacity: 1;
}

@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 1;
    }

    100% {
        transform: translateX(150px) translateY(150px) rotate(45deg);
        opacity: 0;
    }
}

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

    100% {
        transform: translateY(150px) scale(0.3);
        opacity: 0;
    }
}

.theme-switch__stars-cluster {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-switch__stars-cluster .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px 1px white;
}

.theme-switch__stars-cluster .star:nth-child(1) {
    top: 20%;
    left: 20%;
    animation: twinkle 1s infinite ease-in-out;
}

.theme-switch__stars-cluster .star:nth-child(2) {
    top: 30%;
    left: 55%;
    animation: twinkle 1s infinite ease-in-out 0.3s;
}

.theme-switch__stars-cluster .star:nth-child(3) {
    top: 40%;
    left: 80%;
    animation: twinkle 1s infinite ease-in-out 0.6s;
}

.theme-switch__stars-cluster .star:nth-child(4) {
    top: 60%;
    left: 30%;
    animation: twinkle 1s infinite ease-in-out 0.9s;
}

.theme-switch__stars-cluster .star:nth-child(5) {
    top: 70%;
    left: 65%;
    animation: twinkle 1s infinite ease-in-out 1.2s;
}

.theme-switch__aurora {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg,
            rgba(0, 255, 255, 0) 0%,
            rgba(0, 255, 255, 0.2) 25%,
            rgba(128, 0, 255, 0.2) 50%,
            rgba(0, 255, 255, 0.2) 75%,
            rgba(0, 255, 255, 0) 100%);
    opacity: 0;
    filter: blur(4px);
    transform: translateY(-100%);
    transition: opacity 0.3s ease;
}

.theme-switch__comets {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-switch__comets .comet {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(90deg, white 0%, transparent 90%);
    border-radius: 50%;
    filter: blur(1px);
}

.theme-switch__comets .comet:nth-child(1) {
    top: 30%;
    left: -10%;
    animation: cometMove 4s linear infinite;
}

.theme-switch__comets .comet:nth-child(2) {
    top: 50%;
    left: -10%;
    animation: cometMove 6s linear infinite 2s;
}

@keyframes twinkle {

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

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes cometMove {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(200px) translateY(200px) rotate(-45deg) scale(0.2);
        opacity: 0;
    }
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__stars-cluster {
    opacity: 1;
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__aurora {
    opacity: 1;
    animation: auroraWave 8s linear infinite;
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__comets {
    opacity: 1;
}

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

    100% {
        transform: translateY(-100%) translateX(50%);
    }
}

/* --- Launch Button (3D Workspace) --- */

/* --- Launch Button (3D Workspace) --- */
.launch-btn {
    display: flex;
    align-items: center;
    font-family: inherit;
    cursor: pointer;
    font-weight: 500;
    font-size: 17px;
    padding: 0.8em 1.3em 0.8em 0.9em;
    color: white;
    background: #ad5389;
    background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
    border: none;
    letter-spacing: 0.05em;
    border-radius: 16px;
    text-decoration: none;
}

.launch-btn svg {
    margin-right: 5px;
    transform: rotate(30deg);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.launch-btn span {
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.launch-btn:hover svg {
    transform: translateX(5px) rotate(90deg);
}

.launch-btn:hover span {
    transform: translateX(7px);
}

/* ==========================================================================
   1. DENNIS SNELLENBERG INTRO PRELOADER
   ========================================================================== */
.dennis-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #141517;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    pointer-events: all;
    transition: visibility 0.4s ease;
}

.dennis-preloader.completed {
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.greeting-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 2.8rem;
    font-weight: 500;
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.greeting-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent);
    animation: pulseDot 1.2s infinite ease-in-out alternate;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

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

.greeting-text {
    display: inline-block;
    min-width: 180px;
    text-align: left;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    pointer-events: none;
    transform: translateY(99%);
}

.preloader-svg path {
    fill: #141517;
}

/* Hide scrollbar when preloader active */
body.preloading {
    overflow: hidden !important;
}


/* ==========================================================================
   2. OFFICIAL CUBERTO cb-feature-items SHOWCASE & ACCORDION REVEAL
   ========================================================================== */
.cuberto-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(35, 136, 126, 0.12);
    border: 1px solid var(--accent);
    color: var(--accent-secondary);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.cb-feature-items {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .cb-feature-items {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.cb-feature-item {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.5s ease, padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
}

[data-theme="light"] .cb-feature-item {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Background image fill on hover */
.cb-feature-item-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
}

.cb-feature-item-bg picture,
.cb-feature-item-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4) contrast(1.1);
    transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cb-feature-item-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 10, 0.2) 0%, rgba(5, 5, 10, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.cb-feature-item:hover .cb-feature-item-bg {
    opacity: 1;
    transform: scale(1);
}

.cb-feature-item:hover .cb-feature-item-bg img {
    filter: brightness(0.8) contrast(1.15) saturate(1.25);
}

.cb-feature-item:hover .cb-feature-item-fill {
    opacity: 0.65;
}

/* Head section */
.cb-feature-item-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cb-feature-item-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-secondary);
    font-family: monospace;
    opacity: 0.8;
    transition: color 0.3s ease;
}

.cb-feature-item-title h3 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, letter-spacing 0.3s ease, text-shadow 0.3s ease;
}

.cb-feature-item:hover .cb-feature-item-title h3 {
    transform: translateX(16px);
    letter-spacing: -0.01em;
}

/* Custom Vibrant Project Theme Colors on Hover */

/* 01. StadiumIQ — Electric Cyan / Blue */
.project-stadiumiq:hover .cb-feature-item-title h3 {
    color: #00d2ff !important;
    text-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
}

.project-stadiumiq:hover .cb-feature-item-num {
    color: #00d2ff !important;
}

.project-stadiumiq:hover .cb-btn_more {
    background: #00d2ff !important;
    color: #000000 !important;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6) !important;
}

/* 02. Fleet Flow — Neon Amber / Fire Orange */
.project-fleetflow:hover .cb-feature-item-title h3 {
    color: #ff6b00 !important;
    text-shadow: 0 0 25px rgba(255, 107, 0, 0.6);
}

.project-fleetflow:hover .cb-feature-item-num {
    color: #ff6b00 !important;
}

.project-fleetflow:hover .cb-btn_more {
    background: #ff6b00 !important;
    color: #ffffff !important;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.6) !important;
}

/* 03. Tarika Lippan Art — Kutch Royal Gold */
.project-tarika:hover .cb-feature-item-title h3 {
    color: #ffb800 !important;
    text-shadow: 0 0 25px rgba(255, 184, 0, 0.6);
}

.project-tarika:hover .cb-feature-item-num {
    color: #ffb800 !important;
}

.project-tarika:hover .cb-btn_more {
    background: #ffb800 !important;
    color: #000000 !important;
    box-shadow: 0 0 30px rgba(255, 184, 0, 0.6) !important;
}

/* 04. Rzen Music — Cyberpunk Purple / Pink */
.project-rzen:hover .cb-feature-item-title h3 {
    color: #c084fc !important;
    text-shadow: 0 0 25px rgba(192, 132, 252, 0.6);
}

.project-rzen:hover .cb-feature-item-num {
    color: #c084fc !important;
}

.project-rzen:hover .cb-btn_more {
    background: #c084fc !important;
    color: #ffffff !important;
    box-shadow: 0 0 30px rgba(192, 132, 252, 0.6) !important;
}

/* 05. Roast My Resume — Flame Red */
.project-roast:hover .cb-feature-item-title h3 {
    color: #ff334b !important;
    text-shadow: 0 0 25px rgba(255, 51, 75, 0.6);
}

.project-roast:hover .cb-feature-item-num {
    color: #ff334b !important;
}

.project-roast:hover .cb-btn_more {
    background: #ff334b !important;
    color: #ffffff !important;
    box-shadow: 0 0 30px rgba(255, 51, 75, 0.6) !important;
}

/* 06. Verified Certifications — Emerald Mint */
.project-certifications:hover .cb-feature-item-title h3 {
    color: #10b981 !important;
    text-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

.project-certifications:hover .cb-feature-item-num {
    color: #10b981 !important;
}

.project-certifications:hover .cb-btn_more {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6) !important;
}

/* Accordion Content Section */
.cb-feature-item-accordion {
    position: relative;
    z-index: 2;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, margin 0.5s ease;
    margin-top: 0;
}

.cb-feature-item:hover .cb-feature-item-accordion {
    max-height: 250px;
    opacity: 1;
    margin-top: 1.2rem;
}

.cb-feature-item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    padding-left: 4.8rem;
}

.cb-feature-item-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .cb-feature-item-text p {
    color: rgba(255, 255, 255, 0.95);
}

/* Action button */
.cb-feature-item-action {
    display: flex;
    align-items: center;
}

.cb-btn_more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 26px;
    background: #ffffff;
    color: #000000 !important;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.cb-btn_more:hover {
    transform: scale(1.05);
}

.cb-btn_more-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.cb-btn_more:hover .cb-btn_more-icon {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .cb-feature-item {
        padding: 1.8rem 1rem;
    }

    .cb-feature-item-title h3 {
        font-size: 1.8rem;
    }

    .cb-feature-item-content {
        padding-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .cb-feature-item-accordion {
        max-height: none;
        opacity: 1;
        margin-top: 1rem;
    }
}

font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
letter-spacing: 0.05em;
backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .cb-feature-item {
        padding: 1.5rem 0.5rem;
    }

    .cb-item-title {
        font-size: 1.5rem;
    }

    .cb-item-left {
        gap: 1rem;
    }

    .cb-item-tag {
        display: none;
    }

    .cb-hover-preview {
        display: none !important;
    }
}


/* ==========================================================================
   3. BASEMENT.STUDIO INTERACTIVE CANVAS LAB
   ========================================================================== */
.basement-section {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.6) 0%, var(--bg-color) 100%);
    overflow: hidden;
}

.basement-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(35, 136, 126, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent-secondary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffcc;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.basement-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #08090a;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 20px 40px rgba(0, 0, 0, 0.5);
    margin-top: 1.5rem;
}

#basementCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.basement-overlay-ui {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 24px;
    z-index: 5;
}

.basement-stats {
    display: flex;
    gap: 20px;
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

.stat-item .label {
    color: var(--accent-secondary);
    font-weight: 600;
}

.stat-item .val {
    color: #ffffff;
    font-weight: 700;
}

.basement-controls {
    display: flex;
    gap: 12px;
    pointer-events: all;
    align-self: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
}

.basement-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   FLOATING INTERACTIVE TERMINAL BOT WIDGET
   ========================================================================== */
/* ==========================================================================
   ORIGINAL MATRIX CLI TERMINAL BOT WIDGET
   ========================================================================== */
.terminal-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'JetBrains Mono', 'Fira Code', 'Ubuntu Mono', monospace;
}

.terminal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 600px;
    height: 400px;
    background: #0c0c0c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 30px rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 10001;
}

.terminal-window.active {
    display: flex;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.terminal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.terminal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

[data-theme="light"] .terminal-window {
    background: #ffffff;
    border-color: #d1d5da;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15);
}

.terminal-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 2px 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.4;
}

[data-theme="light"] .terminal-window::before {
    display: none;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    cursor: move;
}

[data-theme="light"] .terminal-header {
    background: #f6f8fa;
    border-bottom-color: #d1d5da;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

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

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.terminal-title {
    color: #888;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: lowercase;
}

[data-theme="light"] .terminal-title {
    color: #6a737d;
}

.terminal-close {
    color: #555;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 14px;
}

.terminal-close:hover {
    color: #ff5f56;
}

[data-theme="light"] .terminal-close {
    color: #959da5;
}

.terminal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    color: #10b981;
    font-size: 14px;
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
    pointer-events: auto;
    position: relative;
    z-index: 6;
}

[data-theme="light"] .terminal-body {
    color: #24292e;
}

.terminal-welcome {
    margin-bottom: 15px;
    color: #10b981;
    opacity: 0.8;
}

[data-theme="light"] .terminal-welcome {
    color: #6a737d;
    font-weight: 500;
}

.command-prefix {
    color: #60a5fa;
    font-weight: bold;
    margin-right: 8px;
}

[data-theme="light"] .command-prefix {
    color: #0366d6;
}

.command-text {
    color: #fff;
}

[data-theme="light"] .command-text {
    color: #24292e;
}

.terminal-output {
    margin-bottom: 15px;
    color: #d1d5db;
    white-space: pre-wrap;
}

[data-theme="light"] .terminal-output {
    color: #444d56;
}

.highlight-cmd {
    color: #fbbf24;
    font-weight: bold;
}

[data-theme="light"] .highlight-cmd {
    color: #d73a49;
}

.terminal-input-line {
    display: flex;
    align-items: flex-start;
    margin-top: 5px;
}

.input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 1.5em;
}

.terminal-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #10b981;
    font-family: inherit;
    font-size: 13.5px;
    padding: 0;
    caret-color: #10b981;
    z-index: 10;
}

[data-theme="light"] .terminal-input {
    color: #24292e;
    caret-color: #24292e;
}

.input-mirror,
.cursor {
    display: none !important;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

[data-theme="light"] .terminal-body::-webkit-scrollbar-thumb {
    background: #ced4da;
}

.terminal-toggle {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #1a1a1a;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.terminal-toggle:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: #10b981;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
}

.terminal-toggle.active {
    background: #ff5f56;
    color: white;
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .terminal-window {
        width: calc(100vw - 40px);
        height: 50vh;
        right: 20px;
        bottom: 100px;
    }
}

.basement-btn.active,
.basement-btn:hover {
    background: linear-gradient(135deg, var(--accent), #00ffcc);
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

.explore-3d-btn {
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), #00ffcc);
    color: #000000 !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 10px 24px;
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.explore-3d-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 35px rgba(0, 255, 204, 0.7);
}

/* ==========================================================================
   3D NEO-BRUTALIST USERNAME INPUT CONTAINER (MINT PALETTE MATCHED)
   ========================================================================== */
.input__container {
    position: relative;
    background: var(--glass-bg);
    padding: 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    border: 3px solid var(--accent);
    border-radius: 14px;
    max-width: 360px;
    margin: 1.8rem 0;
    transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    transform: rotateX(8deg) rotateY(-8deg);
    perspective: 1000px;
    box-shadow: 8px 8px 0 var(--accent);
    z-index: 10;
}

.input__container:hover {
    transform: rotateX(4deg) rotateY(1deg) scale(1.03);
    box-shadow: 14px 14px 0 -3px var(--accent-secondary), 14px 14px 0 0 var(--accent);
}

.shadow__input {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    z-index: -1;
    transform: translateZ(-50px);
    background: radial-gradient(circle, rgba(35, 136, 126, 0.45) 0%, rgba(69, 180, 168, 0.1) 100%);
    filter: blur(20px);
}

.input__button__shadow {
    cursor: pointer;
    border: 2px solid var(--accent);
    border-radius: 10px;
    background: var(--accent);
    transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transform: translateZ(20px);
    position: relative;
    z-index: 3;
    font-weight: bold;
    text-transform: uppercase;
}

.input__button__shadow:hover {
    background: var(--accent-secondary);
    transform: translateZ(10px) translateX(-4px) translateY(-4px);
    box-shadow: 4px 4px 0 0 #000000;
}

.input__button__shadow svg {
    fill: #000000;
    width: 22px;
    height: 22px;
}

.input__search {
    width: 100%;
    outline: none;
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-primary);
    transform: translateZ(10px);
    transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 3;
    font-family: var(--font-sans);
    letter-spacing: -0.3px;
}

.input__search::placeholder {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.input__search:hover,
.input__search:focus {
    background: rgba(15, 23, 42, 1);
    transform: translateZ(20px) translateX(-4px) translateY(-4px);
    box-shadow: 4px 4px 0 0 var(--accent);
}

.input__container::before {
    content: "USERNAME";
    position: absolute;
    top: -14px;
    left: 18px;
    background: var(--accent);
    color: #000000;
    font-weight: 700;
    padding: 2px 10px;
    font-size: 11px;
    border-radius: 6px;
    transform: translateZ(50px);
    z-index: 4;
    border: 1px solid var(--accent-secondary);
    letter-spacing: 1px;
}

/* ==========================================================================
   FULLSCREEN BLUR ACCESS MODAL POPUP
   ========================================================================== */
.access-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 10, 0.82);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.access-modal-overlay.dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.access-modal-overlay .input__container {
    margin: 0;
    transform: rotateX(6deg) rotateY(-6deg) scale(1.08);
    box-shadow: 12px 12px 0 var(--accent), 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   DENNIS SNELLENBERG SIGNATURE HERO SECTION & SCROLL ANIMATION
   ========================================================================== */
.dennis-hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    background-color: var(--bg-color, #1c1d20);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dennis-hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Center Hero Portrait Image Cutout */
.dennis-hero-portrait {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 92vh;
    width: auto;
    max-height: 100vh;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.dennis-hero-portrait img {
    height: 100%;
    width: auto;
    max-height: 92vh;
    max-width: 95vw;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

/* Giant Horizontal Scrolling Marquee Name */
.dennis-marquee-wrapper {
    position: absolute;
    bottom: 4vh;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.dennis-marquee-content {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.dennis-marquee-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4.5rem, 14vw, 12rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary, #ffffff);
    text-transform: uppercase;
    line-height: 0.9;
    padding-right: 0.25em;
    flex-shrink: 0;
}

/* Left Location Pill Capsule Widget */
.dennis-location-pill {
    position: absolute;
    bottom: 12vh;
    left: 4vw;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(28, 29, 32, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 18px 12px 24px;
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.dennis-location-pill:hover {
    transform: translateY(-4px) scale(1.03);
}

.location-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary, #ffffff);
    letter-spacing: 0.02em;
}

.globe-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent, #00ffcc);
}

.globe-spin {
    animation: spinGlobe 12s linear infinite;
}

@keyframes spinGlobe {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Right Subtitle & Arrow Callout */
.dennis-subtitle-callout {
    position: absolute;
    top: 36vh;
    right: 5vw;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.arrow-down-right {
    font-size: 2.2rem;
    color: var(--text-primary, #ffffff);
    line-height: 1;
    transition: transform 0.4s ease;
}

.dennis-subtitle-callout:hover .arrow-down-right {
    transform: translate(4px, 4px);
}

.dennis-role-title {
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-primary, #ffffff);
    margin: 0;
    letter-spacing: -0.01em;
}

.dennis-hero-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 992px) {
    .dennis-subtitle-callout {
        top: 22vh;
        right: 4vw;
    }

    .dennis-location-pill {
        bottom: 4vh;
        left: 4vw;
    }

    .dennis-hero-portrait {
        height: 80vh;
    }
}

@media (max-width: 640px) {
    .dennis-subtitle-callout {
        top: 18vh;
        right: 4vw;
    }

    .dennis-hero-portrait {
        height: 72vh;
    }

    .dennis-location-pill {
        display: none;
    }
}

/* ==========================================================================
   HIGH-IMPACT DARK CUTOUT HERO (REFERENCE DESIGN STYLING)
   ========================================================================== */

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Navbar Logo & Links */
.navbar .logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
    text-decoration: none;
}

.navbar .nav-links a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--text-primary);
}

/* Dark Impact Hero Section Container */
.dark-impact-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
    isolation: isolate;
    perspective: 1200px;
    perspective-origin: 50% 50%;
}

/* Central Dark Spotlight Radial Glow */
.hero-spotlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 45%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    will-change: transform;
}

[data-theme="light"] .hero-spotlight {
    background: radial-gradient(circle at 50% 50%, rgba(35, 136, 126, 0.08) 0%, rgba(35, 136, 126, 0.02) 45%, transparent 70%);
}

.dark-impact-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Giant Background Typography: "SOLANKI" */
.hero-bg-text-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    will-change: transform, opacity;
}

.hero-bg-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3.8rem, 16vw, 19rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 0.85;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    opacity: 1;
    display: inline-block;

    /* Sleek 3D metallic gradient fill */
    background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 40%, #888888 75%, #444444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Depth shadow for 3D metallic volume */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.9));
    will-change: transform, letter-spacing;
    animation: heroNameDrift 9s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes heroNameDrift {
    from { translate: -1.2vw 0; }
    to { translate: 1.2vw -0.35rem; }
}

[data-theme="light"] .hero-bg-text {
    background: linear-gradient(180deg, #1A1D20 0%, #5A626A 40%, #A2A8AE 75%, #DDE1E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 15px 30px rgba(35, 136, 126, 0.12));
}

/* Central Portrait Cutout Layer */
.hero-cutout-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 82vh;
    max-height: 850px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: auto;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Warm backlight behind the portrait, visible only in the dark hero. */
.hero-cutout-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: min(48vw, 540px);
    aspect-ratio: 1;
    transform: translateX(-50%) translateZ(-50px);
    background: radial-gradient(circle, rgba(255, 194, 74, 0.62) 0%, rgba(219, 145, 31, 0.28) 36%, rgba(174, 98, 12, 0.08) 58%, transparent 72%);
    filter: blur(24px);
    border-radius: 50%;
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
    animation: heroGoldAura 4.5s ease-in-out infinite alternate;
}

@keyframes heroGoldAura {
    from { opacity: 0.65; scale: 0.94; }
    to { opacity: 0.95; scale: 1.06; }
}

.hero-cutout-img {
    position: relative;
    z-index: 1;
    height: 100%;
    width: auto;
    max-width: 95vw;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.95)) brightness(1.04) contrast(1.05);
    transform-style: preserve-3d;
    will-change: transform;
    animation: heroPortraitFloat 6s ease-in-out infinite;
}

[data-theme="light"] .hero-cutout-wrapper::before {
    display: none;
}

@keyframes heroPortraitFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

/* Hero Bottom Overlay Bar */
.hero-bottom-bar {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 4;
    box-sizing: border-box;
}

/* Bottom Left: Role Subtitle Badge */
.hero-role-badge {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: #ffffff;
    user-select: none;
}

.role-bold {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #ffffff;
}

.role-italic {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: #a0a0a0;
}

/* Bottom Right: Action Button Group */
.hero-action-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Custom hero overlay and CTA styles */
.hero-content-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4rem 5vw;
    z-index: 5;
    pointer-events: none;
}

.hero-value-block {
    max-width: 45%;
    color: #fff;
    pointer-events: auto;
}

.hero-availability {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff9f;
    box-shadow: 0 0 8px #00ff9f;
}

.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
}

.hero-subline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.5;
    margin: 0 0 1.2rem 0;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease;
}
.hero-cta-primary:hover { background: rgba(255,255,255,0.25); }

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.hero-cta-secondary:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }

.hero-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.circle-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.circle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.05);
}

.pill-btn {
    padding: 10px 28px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pill-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-cutout-wrapper {
        height: 68vh;
    }

    .hero-bottom-bar {
        bottom: 25px;
        padding: 0 20px;
    }

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

    .pill-btn {
        padding: 8px 20px;
        font-size: 0.88rem;
    }

    .circle-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   TRUE PHYSICS-BASED HANGING ID CARD
   Card, clip, hook, and lanyard, driven purely by real physics simulation.
   ========================================================================== */

.physics-badge-system {
    position: absolute;
    top: 30px; 
    right: 180px; /* Increased from 120px to move the card a little to the left */
    left: auto;
    z-index: 999;
    /* We don't want flex/column because each part is independent in 2D space */
    pointer-events: none; /* Let canvas/card handle their own pointers */
}

/* Ceiling anchor point (hidden or decorative) */
.ceiling-anchor {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 10px;
    background: #222;
    transform: translateX(-50%);
    border-radius: 0 0 5px 5px;
}

.metal-hook {
    position: absolute;
    top: 10px;
    left: 0;
    width: 14px;
    height: 18px;
    border: 3px solid #8a8a8a;
    border-top: none;
    border-radius: 0 0 10px 10px;
    transform: translateX(-50%);
    background: transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.lanyard-canvas {
    position: absolute;
    top: 28px; /* Below the hook */
    left: 0;
    /* Dimensions are managed by JS */
    pointer-events: none; 
    z-index: 10;
    transform-origin: top left;
}

/* ── Metallic swivel clip ──────────────────────────────────────────────── */
.physics-metal-clip {
    position: absolute;
    top: 0; 
    left: 0;
    width: 28px;
    height: 24px;
    background: linear-gradient(180deg, #d4d4d4 0%, #8a8a8a 45%, #4a4a4a 100%);
    border-radius: 4px 4px 6px 6px;
    box-shadow:
        0 4px 10px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(0,0,0,0.4);
    z-index: 20;
    transform-origin: 50% 18px; /* Pivot near the bottom ring */
    will-change: transform;
}

.physics-metal-clip::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border: 3px solid #b0b0b0;
    border-radius: 50%;
    box-sizing: border-box;
    background: radial-gradient(circle at 35% 35%, #e8e8e8, #888);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}

/* ── Main card body ────────────────────────────────────────────────────── */
.physics-id-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transform-style: preserve-3d;
    user-select: none;
    will-change: transform;
    pointer-events: auto; /* Allow dragging from the card */
    cursor: grab;
    transform-origin: 50% 10px; /* Pivot exactly at the clip hole */
    
    /* Default Box Shadow - will be dynamically updated by JS */
    box-shadow: var(--shadow-md), var(--shadow-inset);
    transition: box-shadow 0.1s ease-out, background-color 0.4s ease, border-color 0.4s ease;
}

.physics-id-card:active {
    cursor: grabbing;
}

/* ── Card Glare (Specular Lighting) ──────────────────────────────────────── */
.card-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    border-radius: 18px;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 60%
    );
    opacity: 0.8;
    mix-blend-mode: overlay;
    background-size: 200% 200%;
    background-position: 50% 50%;
    will-change: background-position, opacity;
}

/* ── Top clip punch-hole ────────────────────────────────────────────────── */
.card-clip-hole {
    width: 44px;
    height: 8px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    flex-shrink: 0;
    margin-bottom: 16px;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* ── Header: Brand & Status ────────────────────────────────────────────────── */
.card-header-minimal {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    transition: border-color 0.4s ease;
}

.card-brand-matte {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
    transition: color 0.4s ease;
}

.card-status-matte {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

.status-dot-matte {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

/* ── Profile Photo & Identity ────────────────────────────────────────────────── */
.card-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.card-photo-wrapper-matte {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 2px;
    background: var(--border-color);
    margin-bottom: 12px;
    transition: background-color 0.4s ease;
}

.card-photo-matte {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--card-bg);
    transition: border-color 0.4s ease;
}

.card-name-matte {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
}

.card-role-matte {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
}

/* ── Tech Stack Icons ────────────────────────────────────────────────────── */
.card-tech-stack {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 12px; /* reduced space for social links */
    transition: color 0.4s ease;
}

/* ── Social Links ────────────────────────────────────────────────────────── */
.card-social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    z-index: 20;
}

.card-social-links a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto; /* enable clicking on the card */
}

.card-social-links a:hover {
    color: var(--accent-secondary);
    transform: scale(1.15) translateY(-2px);
    text-shadow: 0 4px 10px rgba(69, 180, 168, 0.4);
}

/* ── Footer: Signature / QR / ID ─────────────────────────────────────────── */
.card-footer-matte {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    transition: border-color 0.4s ease;
}

.card-footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-signature {
    font-family: 'Caveat', cursive, 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.8;
    transition: color 0.4s ease;
}

.card-id-matte {
    font-family: monospace;
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

.card-qr-code {
    color: var(--text-primary);
    opacity: 0.8;
    transition: color 0.4s ease;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hanging-badge-wrapper {
        left: 12px;
    }
    .hanging-id-card { width: 190px; }
}

/* ==========================================================================
   LIGHT NEON BACKGROUND GLOW AURA EFFECT
   ========================================================================== */

.hero-neon-aura {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.neon-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    will-change: transform;
    animation: neonOrbPulse 10s ease-in-out infinite alternate;
}

.neon-orb-cyan {
    top: 15%;
    left: 18%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.38) 0%, rgba(0, 243, 255, 0) 70%);
    animation-delay: 0s;
}

.neon-orb-purple {
    bottom: 18%;
    right: 15%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(176, 38, 255, 0.32) 0%, rgba(176, 38, 255, 0) 70%);
    animation-delay: -3s;
}

.neon-orb-emerald {
    top: 42%;
    right: 36%;
    width: 390px;
    height: 390px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.28) 0%, rgba(0, 255, 136, 0) 70%);
    animation-delay: -6s;
}

/* Neon Cyber Grid Overlay */
.neon-grid-accent {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 243, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 243, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
    opacity: 0.7;
}

@keyframes neonOrbPulse {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: translate3d(30px, -40px, 0) scale(1.15);
        opacity: 0.55;
    }

    100% {
        transform: translate3d(-30px, 30px, 0) scale(0.9);
        opacity: 0.4;
    }
}

/* ==========================================================================
   Responsive adjustments for ID Card
   ========================================================================== */
@media (max-width: 991px) {
    .physics-badge-system {
        position: relative;
        top: 0;
        right: auto;
        left: 50%;
        width: 0;
        height: 520px; /* Takes up vertical space so it doesn't overlay text */
        margin-bottom: 2rem;
    }
}

@media (min-width: 992px) {
    .about-content {
        padding-right: 250px; /* Carve out an empty column on the right for the ID card to hang safely */
    }
}

/* ==========================================================================
   Cyber Contact Section Redesign
   ========================================================================== */

/* Overrides for contact-wrapper */
.contact-section {
    background: rgba(10, 15, 20, 0.7);
    border-top: 1px solid rgba(0, 255, 136, 0.3);
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: inset 0 0 40px rgba(0, 255, 136, 0.05);
    position: relative;
    overflow: hidden;
}

.cyber-contact-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 2rem !important;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 1rem;
}

.contact-method {
    margin-bottom: 0 !important;
    text-align: left;
}

.contact-form-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.contact-info {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* ==========================================================================
   Cyber Feedback Form 
   ========================================================================== */
.cyber-feedback-form {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 255, 136, 0.05);
}

.feedback-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.feedback-textarea {
    min-height: 120px;
    resize: none;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
}
.feedback-textarea:focus {
    border: 1px solid var(--primary) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2) !important;
}

.feedback-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.feedback-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.icon-btn {
    padding: 0.8rem;
    fill: #aaa;
}
.icon-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.4);
    fill: var(--primary);
    transform: translateY(-2px);
}
.feedback-spacer {
    flex-grow: 1;
}
.submit-btn {
    padding: 0.5rem 2rem;
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    stroke: var(--primary);
}
.submit-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

/* Neon Text Glow */
.neon-text-glow {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6), 0 0 20px rgba(0, 255, 136, 0.4);
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from { text-shadow: 0 0 10px rgba(0, 255, 136, 0.6), 0 0 20px rgba(0, 255, 136, 0.4); }
    to { text-shadow: 0 0 15px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.6), 0 0 40px rgba(0, 255, 136, 0.4); }
}

/* Tech Nodes (Icons) */
.tech-method {
    transition: transform 0.3s ease;
}
.tech-method:hover {
    transform: translateX(10px);
}
.tech-node {
    background: rgba(0, 255, 136, 0.05) !important;
    border: 1px solid rgba(0, 255, 136, 0.4) !important;
    color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease !important;
}
.tech-method:hover .tech-node {
    background: rgba(0, 255, 136, 0.2) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), inset 0 0 10px rgba(0, 255, 136, 0.2);
    transform: scale(1.1);
}

/* Cyber Form Inputs */
.cyber-form {
    gap: 2rem !important;
}
.tech-input {
    background: rgba(0, 0, 0, 0.4) !important;
    border: none !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px 4px 0 0 !important;
    color: #fff !important;
    padding: 1.2rem !important;
    transition: all 0.3s ease !important;
}
.tech-input:focus {
    background: rgba(0, 255, 136, 0.05) !important;
    border-bottom: 2px solid var(--primary) !important;
    box-shadow: 0 10px 20px -10px rgba(0, 255, 136, 0.3) !important;
}

/* Submit Button */
.cyber-submit-btn {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

/* ===========================================================================
   Light theme — quiet, editorial surfaces.  These rules are intentionally
   scoped so the existing dark experience remains exactly as authored.
   =========================================================================== */
[data-theme="light"] {
    --surface-secondary: #EFEEEB;
    --divider-color: #E9E7E4;
}

[data-theme="light"] .hero-spotlight,
[data-theme="light"] .hero-neon-aura,
[data-theme="light"] .background-mesh,
[data-theme="light"] .card-glare,
[data-theme="light"] .card-light-reflection,
[data-theme="light"] .hero-bg-text-wrapper::before {
    background: none;
    filter: none;
    animation: none;
}

[data-theme="light"] .hero-bg-text {
    background: none;
    -webkit-text-fill-color: #222222;
    color: #222222;
    filter: none;
}

[data-theme="light"] .navbar,
[data-theme="light"] .navbar.scrolled,
[data-theme="light"] .contact-section,
[data-theme="light"] .contact-wrapper,
[data-theme="light"] .cyber-feedback-form,
[data-theme="light"] .access-modal-overlay .input__container,
[data-theme="light"] .basement-stats,
[data-theme="light"] .physics-id-card,
[data-theme="light"] .project-card,
[data-theme="light"] .skill-tag,
[data-theme="light"] .contact-method,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .tech-input,
[data-theme="light"] .input__search {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

[data-theme="light"] .navbar,
[data-theme="light"] .navbar.scrolled,
[data-theme="light"] .contact-section {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

[data-theme="light"] .project-card:hover,
[data-theme="light"] .skill-tag:hover,
[data-theme="light"] .contact-method:hover,
[data-theme="light"] .physics-id-card:hover,
[data-theme="light"] .input__search:hover,
[data-theme="light"] .input__search:focus,
[data-theme="light"] .tech-input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--border-hover) !important;
    box-shadow: var(--shadow-lg) !important;
}

[data-theme="light"] .btn,
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-secondary,
[data-theme="light"] .btn-outline,
[data-theme="light"] .feedback-btn,
[data-theme="light"] .submit-btn,
[data-theme="light"] .circle-btn,
[data-theme="light"] .pill-btn {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="light"] .btn::before,
[data-theme="light"] .btn-primary::before,
[data-theme="light"] .btn-secondary::before,
[data-theme="light"] .btn-outline::before {
    display: none;
}

[data-theme="light"] .btn:hover,
[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-secondary:hover,
[data-theme="light"] .btn-outline:hover,
[data-theme="light"] .feedback-btn:hover,
[data-theme="light"] .submit-btn:hover,
[data-theme="light"] .circle-btn:hover,
[data-theme="light"] .pill-btn:hover {
    background: var(--surface-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-hover) !important;
    box-shadow: var(--shadow-lg) !important;
}

[data-theme="light"] .experience-timeline::before,
[data-theme="light"] .timeline-item::before,
[data-theme="light"] .id-divider,
[data-theme="light"] .info-num-divider {
    border-color: var(--divider-color) !important;
    background: var(--divider-color);
}

[data-theme="light"] .card-header-minimal,
[data-theme="light"] .card-footer-matte {
    border-color: var(--divider-color) !important;
}

[data-theme="light"] .timeline-dot,
[data-theme="light"] .status-dot-matte {
    box-shadow: none;
}

[data-theme="light"] .neon-text-glow,
[data-theme="light"] .feedback-title {
    color: var(--accent) !important;
    text-shadow: none;
    animation: none;
}

[data-theme="light"] .tech-node,
[data-theme="light"] .tech-method:hover .tech-node {
    background: var(--surface-secondary) !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

/* Independent translate keeps scroll depth from replacing component transforms. */
.parallax-scroll-layer {
    translate: 0 var(--parallax-y, 0px);
    will-change: translate;
}

@media (prefers-reduced-motion: reduce) {
    .parallax-scroll-layer {
        translate: none;
        will-change: auto;
    }
}

/* Index hero: layered pointer depth, kept separate from scroll parallax. */
@media (hover: hover) and (pointer: fine) {
    .hero-3d-enabled .hero-bg-text-wrapper {
        transform: translate(-50%, -55%) translate3d(var(--hero-bg-x, 0px), var(--hero-bg-y, 0px), -70px);
        transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .hero-3d-enabled .hero-cutout-wrapper {
        transform: translateX(-50%) translate3d(var(--hero-portrait-x, 0px), var(--hero-portrait-y, 0px), 80px) rotateX(var(--hero-portrait-rotate-x, 0deg)) rotateY(var(--hero-portrait-rotate-y, 0deg));
        transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .hero-3d-enabled .hero-cutout-img {
        transform: translateZ(40px);
    }

    .hero-3d-enabled .hero-bottom-bar {
        transform: translate3d(var(--hero-bar-x, 0px), var(--hero-bar-y, 0px), 45px);
        transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .hero-3d-enabled .hero-spotlight {
        transform: translate(-50%, -50%) translate3d(var(--hero-spotlight-x, 0px), var(--hero-spotlight-y, 0px), -120px);
        transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-3d-enabled .hero-bg-text-wrapper,
    .hero-3d-enabled .hero-cutout-wrapper,
    .hero-3d-enabled .hero-bottom-bar,
    .hero-3d-enabled .hero-spotlight {
        transition: none;
    }

    .hero-bg-text,
    .hero-cutout-img,
    .hero-cutout-wrapper::before {
        animation: none;
        translate: none;
    }
}

/* Micro-interactions: a shared motion language for everyday interface detail. */
@media (prefers-reduced-motion: no-preference) {
    :is(.nav-links a, .footer-links a, .social-links a, .card-social-links a, .btn, .btn-primary, .btn-secondary, .btn-outline, .circle-btn, .pill-btn, .feedback-btn, .submit-btn, .theme-switch, .menu-toggle, .form-group input, .form-group textarea, .tech-input) {
        transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 240ms ease, opacity 180ms ease, translate 240ms cubic-bezier(0.22, 1, 0.36, 1), scale 240ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    :is(.project-card, .skill-tag, .contact-method, .cb-feature-item, .kb-card, .bb-cell, .sk-node, .gallery-card, .item-inner, .info-num-item, .cert-stat-card) {
        transition: border-color 240ms ease, background-color 240ms ease, box-shadow 300ms cubic-bezier(0.22, 1, 0.36, 1), translate 300ms cubic-bezier(0.22, 1, 0.36, 1), scale 300ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    :is(.timeline-dot, .status-dot-matte, .profile-status-dot) {
        animation: detailStatusPulse 2.8s ease-in-out infinite;
    }

    .cb-feature-item-bg img,
    .project-img-container img,
    .gallery-img,
    .item-inner img,
    .card-photo-matte {
        transition: scale 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 350ms ease;
    }
}

@media (hover: hover) and (pointer: fine) {
    :is(.nav-links a, .footer-links a, .social-links a, .card-social-links a, .btn, .btn-primary, .btn-secondary, .btn-outline, .circle-btn, .pill-btn, .feedback-btn, .submit-btn, .theme-switch, .menu-toggle):hover {
        translate: 0 -2px;
    }

    :is(.project-card, .skill-tag, .contact-method, .kb-card, .bb-cell, .sk-node, .gallery-card, .info-num-item, .cert-stat-card):hover {
        translate: 0 -4px;
    }

    :is(.cb-feature-item, .item-inner):hover {
        translate: 0 -3px;
    }

    :is(.project-card:hover .project-img-container img, .gallery-card:hover .gallery-img, .gallery-item:hover .item-inner img, .cb-feature-item:hover .cb-feature-item-bg img) {
        scale: 1.035;
    }

    :is(.social-links a, .card-social-links a, .circle-btn, .pill-btn, .btn, .btn-primary, .btn-secondary, .btn-outline):hover i {
        rotate: -8deg;
        scale: 1.1;
        transition: rotate 180ms ease, scale 180ms ease;
    }
}

:is(.nav-links a, .footer-links a, .social-links a, .card-social-links a, .btn, .btn-primary, .btn-secondary, .btn-outline, .circle-btn, .pill-btn, .feedback-btn, .submit-btn, .theme-switch, .menu-toggle):active {
    scale: 0.97;
}

:is(.form-group input, .form-group textarea, .tech-input):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@keyframes detailStatusPulse {
    0%, 100% { scale: 1; opacity: 0.8; }
    50% { scale: 1.22; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    :is(.timeline-dot, .status-dot-matte, .profile-status-dot) {
        animation: none;
    }
}

/* ==========================================================================
   ANIME.JS ENHANCED MOTION & STAGGER STYLES
   ========================================================================== */
.anime-char {
    display: inline-block;
    will-change: transform, opacity;
}

.anime-dot-grid-container {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: repeat(14, 1fr);
    gap: 14px;
    padding: 30px;
    pointer-events: auto;
    opacity: 0.45;
    z-index: 1;
    overflow: hidden;
    mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, #000 30%, transparent 85%);
}

.anime-grid-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent, #10b981);
    box-shadow: 0 0 6px var(--accent, #10b981);
    margin: auto;
    opacity: 0.35;
    cursor: crosshair;
    transition: background-color 0.3s;
    will-change: transform, opacity;
}

.anime-grid-dot:hover {
    background: #ffffff;
    box-shadow: 0 0 12px #ffffff, 0 0 20px var(--accent, #10b981);
}

.anime-click-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999999;
}

