@charset "UTF-8";

/* ==========================================================================
   SECTION 1: VARIABLES & GLOBALS
   ========================================================================== */
:root {
    /* Base Colors */
    --bg-color: #080b0c;
    --text-main: #f0f7f6;
    --text-muted: #7fa4a0;
    --accent-color: #6ed1be;
    --accent-glow: rgba(110, 209, 189, 0.244);
    --border-color: rgba(110, 209, 190, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --card-bg: #0c1214;
    --overlay-bg: rgba(8, 11, 12, 0.75);

    --header-bg: rgba(8, 11, 12, 0.85);
    --pill-bg: rgba(12, 18, 20, 0.8);
    --window-bg-top: #111a1c;
    --mockup-bg: #050809;
    --mockup-grad-top: #090e10;
    --mockup-grad-bottom: #050809;
    --window-bar-bg: rgba(255, 255, 255, 0.03);
    --hero-window-bar: rgba(0, 0, 0, 0.4);

    --font-heading: 'Urbanist', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --text-stroke: rgba(255, 255, 255, 0.8);
    --name-stroke: rgba(255, 255, 255, 0.95);

    /* Gradient Text Colors */
    --grad-1: #00ffe5;
    --grad-2: #a86eff;
    --grad-3: #ff6ec7;
    --grad-4: #00f0ff;
    --grad-shadow: rgba(168, 110, 255, 0.6);

    /*----Global Colors-----*/
    --color-offwhite: #F1F0ED;
    --color-lightblue: #40c1ac;

    --app-size: 160px;
    --app-radius: 100px;
    --eye-size: 55px;
    --pupil-size: 20px;
    --shadow-width: 80px;
    --shadow-height: 15px;
    --shadow-bottom: -40px;

    --ai-blue: #00f0ff;
    --ai-purple: #a86eff;
    --ai-cyan: #00ffe5;
    --ai-pink: #ff6ec7;

    /* Figma Canvas - Dark Theme*/
    --figma-canvas-bg: #0c1214;
    --figma-canvas-dot: rgba(255, 255, 255, 0.06);
    --figma-purple: #8A2BE2;
    --figma-label-text: #ffffff;
}

/* Light Theme Overrides */
:root[data-theme="light"] {
    --bg-color: #F9FAF9;
    --text-main: #111817;
    --text-muted: #4A635E;
    --accent-color: #45b2a3;
    --accent-glow: rgba(31, 115, 99, 0.15);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.05);

    --card-bg: rgba(255, 255, 255, 0.96);
    --overlay-bg: rgba(249, 250, 249, 0.85);

    --header-bg: rgba(249, 250, 249, 0.85);
    --pill-bg: rgba(230, 236, 235, 0.8);
    --window-bg-top: #e8efee;
    --mockup-bg: #e8efee;
    --mockup-grad-top: #e8efee;
    --mockup-grad-bottom: #e8efee;
    --window-bar-bg: rgba(0, 0, 0, 0.05);
    --hero-window-bar: rgba(0, 0, 0, 0.05);
    --text-stroke: rgba(0, 0, 0, 0.08);
    --name-stroke: rgba(0, 0, 0, 0.06);

    --grad-1: #20c997;
    --grad-2: #9d65ff;
    --grad-3: #ff6ec7;
    --grad-4: #00d2ff;
    --grad-shadow: rgba(157, 101, 255, 0.2);

    /* Figma Canvas - Light Theme */
    --figma-canvas-bg: #FAFAFA;
    --figma-canvas-dot: #D9D9D9;
}

html {
    width: 100%;
    scroll-behavior: smooth;
}


body {
    overflow-x: hidden;
    width: 100%;
    position: relative;

    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.4s ease, color 0.4s ease;
}

#selected-work {
    scroll-margin-top: 80px;
}


/* Universal box-sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

h1,
h2,
h3,
.brand .name {
    font-family: var(--font-heading);
}

/* ===========  CLICK PROTECTION FIX ================================================ */
main {
    position: relative;
    z-index: 10;
}

#heroBgImage,
.bg-outline,
.bg-blob {
    pointer-events: none;
}


/* ===== BACKGROUND ANIMATIONS ========== */
/* The Moving Blob */
.bg-blob {
    position: fixed;
    top: 20%;
    left: 15%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;

    background: radial-gradient(circle,
            rgba(64, 193, 172, 0.7) 0%,
            rgba(27, 104, 117, 0.5) 40%,
            rgba(0, 0, 0, 0) 70%);

    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: floatBlob 20s infinite alternate ease-in-out;
    mix-blend-mode: screen;
    will-change: transform;
}

.bg-blob.paused,
.bg-outline.paused,
#chatbot-ui-embedded.paused .app,
#chatbot-ui-embedded.paused .shadow,
#chatbot-ui-embedded.paused .eyeLid {
    animation-play-state: paused;
}

@keyframes floatBlob {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(20vw, 10vh, 0) scale(1.2);
    }

    100% {
        transform: translate3d(-10vw, 20vh, 0) scale(0.9);
    }
}

/* White Stroke Bouncing Animation */
.bg-outline {
    position: fixed;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
    will-change: transform;
}

.bg-outline-1 {
    width: 700px;
    height: 700px;
    top: -15%;
    right: -10%;
    animation: bounceStroke 14s infinite alternate ease-in-out;
}

.bg-outline-2 {
    width: 450px;
    height: 450px;
    bottom: -5%;
    left: -15%;
    animation: bounceStroke 18s infinite alternate-reverse ease-in-out;
}

@keyframes bounceStroke {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(0, -60px, 0) scale(1.05);
    }
}

/* ======= UNIQUE THEME SWITCH PRELOADER  =================================================== */
.theme-switch-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    visibility: hidden;
    opacity: 1;
}

.theme-switch-preloader.active {
    visibility: visible;
}

.theme-circle {
    position: absolute;
    width: 100vw;
    height: 100vw;
    border-radius: 50%;
    background-color: #080b0c;
    transform: scale(0);
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
    will-change: transform;
}

.theme-switch-preloader.active .theme-circle {
    transform: scale(3);
    pointer-events: all;
}

.theme-logo {
    position: relative;
    z-index: 2;
    width: 80px;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.theme-switch-preloader.active .theme-logo {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}

.theme-switch-preloader.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease;
}

:root[data-theme="light"] body[class*="case-"] {
    background-color: var(--bg-color) !important;
    background-image: none !important;
}


/* ====  UNIFIED PRELOADER (DARK GLASS) ======================================= */
.preloader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100svh;
    width: 100vw;

    background: var(--overlay-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Ripple animation --- */
.preloader .lds-ripple {
    transition: opacity 0.4s ease;
}

.preloader.loading-bar-active .lds-ripple {
    opacity: 0;
}

.lds-ripple {
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ripple div {
    position: absolute;
    border: 2px solid var(--accent-color);
    opacity: 1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: lds-ripple 1.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.7s;
}

@keyframes lds-ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* --- Conditional loading bar --- */
.loading-bar-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.loading-bar-container.visible {
    opacity: 1;
    pointer-events: auto;
}

.loading-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.progress-bar {
    width: 200px;
    height: 3px;
    background-color: var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--grad-1));
    border-radius: 4px;
    transition: width 0.4s ease-out;
    box-shadow: 0 0 10px var(--accent-glow);
}

.loader-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*============================================ Custom Cursor ============================================ */
/* Hide default cursor on desktop */
@media (min-width: 601px) {

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

.cursor {
    z-index: 10000;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -16px;
    border-radius: 50%;
    border: 1.5px solid var(--text-main, #ffffff);
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        margin 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.cursor2 {
    z-index: 10001;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 50%;
    background-color: var(--accent-color, #40c1ac);
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
    transition: opacity 0.25s ease;
}

.cursor.hover {
    background-color: rgba(64, 193, 172, 0.15);
    border-color: var(--accent-color, #40c1ac);
}

.cursor-arrow {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cursor-label {
    opacity: 0;
    display: none;
    white-space: nowrap;
    pointer-events: none;
}

.cursor.has-label {
    width: auto;
    height: auto;
    margin-left: 0;
    margin-top: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible;
}

.cursor.has-label .cursor-arrow {
    display: block;
}

.cursor.has-label .cursor-label {
    display: inline-block;
    opacity: 1;
    margin-left: 10px;
    margin-top: 10px;
    padding: 4px 10px;
    background-color: var(--accent-color, #40c1ac);
    color: var(--bg-color, #080b0c);
    font-family: var(--font-body, system-ui, -apple-system, sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-radius: 2px 10px 10px 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.cursor.has-label~.cursor2 {
    opacity: 0;
}

.cursor.click {
    transform: scale(0.85);
}

.cursorinnerhover {
    opacity: 0.2;
}

/* Mouse Trail */
.trail {
    position: fixed;
    top: 0;
    left: 0;
    height: 6px;
    width: 6px;
    margin-left: -3px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--accent-color, #40c1ac);
    pointer-events: none;
    z-index: 9998;
    will-change: transform, opacity;
}

@media only screen and (max-width: 600px) {

    .trail,
    .cursor,
    .cursor2 {
        display: none !important;
        visibility: hidden;
    }

    body,
    a,
    button {
        cursor: auto !important;
    }
}

/* ===== AUDIO TOGGLE BUTTON ================= */

.sound-toggle-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--window-bar-bg, rgba(255, 255, 255, 0.1));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sound-toggle-button:hover {
    transform: scale(1.08);
    border-color: var(--accent-color, #40c1ac);
}

/* --- Bars Container --- */
.bars-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 16px;
    width: 18px;
}

/* --- Base Bar Properties --- */
.bars-container .bar {
    width: 3px;
    border-radius: 3px;
    transition: height 0.3s ease, opacity 0.3s ease;
}

/* --- Individual Vibrant Colors --- */
.bars-container .bar:nth-child(1) {
    background-color: var(--grad-1, #ff5964);
}

.bars-container .bar:nth-child(2) {
    background-color: var(--grad-2, #ffad5a);
}

.bars-container .bar:nth-child(3) {
    background-color: var(--grad-3, #40c1ac);
}

.bars-container .bar:nth-child(4) {
    background-color: var(--grad-4, #9b51e0);
}

/* --- PAUSED STATE: Dimmed static bars --- */
.sound-toggle-button.paused .bar {
    opacity: 0.65;
}

.sound-toggle-button.paused .bar:nth-child(1) {
    height: 6px;
}

.sound-toggle-button.paused .bar:nth-child(2) {
    height: 14px;
}

.sound-toggle-button.paused .bar:nth-child(3) {
    height: 8px;
}

.sound-toggle-button.paused .bar:nth-child(4) {
    height: 12px;
}

/* --- Full brightness + Bouncing animation --- */
.sound-toggle-button:not(.paused) .bar {
    opacity: 1;
    animation: soundBounce 1s infinite ease-in-out alternate;
}

.sound-toggle-button:not(.paused) .bar:nth-child(1) {
    animation-delay: 0.1s;
}

.sound-toggle-button:not(.paused) .bar:nth-child(2) {
    animation-delay: 0.4s;
}

.sound-toggle-button:not(.paused) .bar:nth-child(3) {
    animation-delay: 0.2s;
}

.sound-toggle-button:not(.paused) .bar:nth-child(4) {
    animation-delay: 0.5s;
}

@keyframes soundBounce {
    0% {
        height: 4px;
    }

    100% {
        height: 16px;
    }
}

/* ========== VOLUME CONTROL CARD ===================================== */

.volume-popover {
    position: fixed;
    bottom: 5.5rem;
    left: 2rem;
    z-index: 98;
    background: var(--window-bar-bg, rgba(255, 255, 255, 0.85));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.25rem;
    width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* Animation settings */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.volume-popover.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.volume-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    color: var(--text-main, #2d3748);
    font-size: 0.85rem;
    font-weight: 600;
}

.volume-icon {
    color: var(--accent-color, #40c1ac);
}

/* Custom Styled Range Slider */
.volume-slider-container {
    margin-bottom: 0.75rem;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color, #e2e8f0);
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color, #40c1ac);
    cursor: pointer;
    transition: transform 0.2s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.audio-play-btn {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-color, #ffffff);
    color: var(--text-main, #2d3748);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.audio-play-btn:hover {
    border-color: var(--accent-color, #40c1ac);
    color: var(--accent-color, #40c1ac);
}

@media (max-width: 600px) {
    .sound-toggle-button {
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .volume-popover {
        bottom: 5rem;
        left: 1.5rem;
    }
}


/* === Back To Top Button ================= */
.back-to-top-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    z-index: 9999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--card-bg, rgba(18, 24, 27, 0.8));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
    color: var(--text-main, #ffffff);

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.back-to-top-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top-button:hover {
    background: var(--accent-color, #40c1ac);
    border-color: var(--accent-color, #40c1ac);
    color: #080b0c;
    box-shadow: 0 10px 25px rgba(64, 193, 172, 0.35);
    transform: translateY(-3px) scale(1.05);
}

.back-to-top-button:active {
    transform: translateY(0) scale(0.95);
}

@media (max-width: 600px) {
    .back-to-top-button {
        bottom: 16px;
        right: 16px;
        left: auto;
        width: 42px;
        height: 42px;
    }
}

/* ========== HEADER & NAVIGATION ============================================ */
header {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 1100px) {
    header {
        padding-left: calc((100vw - 1100px) / 2 + 2rem);
        padding-right: calc((100vw - 1100px) / 2 + 2rem);
    }
}

.brand {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    z-index: 10;
}

.brand-link {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.brand-logo {
    height: 32px;
    width: auto;
    display: block;
}

.logo-icon {
    transition: all 0.3s ease;
}

.brand-link:hover .logo-icon {
    stroke-width: 4;
    filter: drop-shadow(0 0 6px var(--accent-color));
    transform: translateY(-1px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========== MAIN NAV PILL ================================================== */
.nav-pill {
    display: flex;
    background: var(--pill-bg);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 4px;
    backdrop-filter: blur(10px);
    position: relative;
}

.nav-pill::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 25%;
    width: 20px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 -2px 10px 2px var(--accent-glow);
    transition: left 0.3s ease;
}

.nav-pill a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-pill a.active,
:root[data-theme="light"] .nav-pill a.active {
    background-color: #111111 !important;
    color: #ffffff !important;
}

.nav-pill a.active:hover,
:root[data-theme="light"] .nav-pill a.active:hover {
    background-color: var(--accent-color, #45b2a3) !important;
    color: #ffffff !important;
}

:root[data-theme="dark"] .nav-pill a.active,
body.dark-mode .nav-pill a.active {
    background-color: #ffffff !important;
    color: #111111 !important;
}

:root[data-theme="dark"] .nav-pill a.active:hover,
body.dark-mode .nav-pill a.active:hover {
    background-color: var(--accent-color, #45b2a3) !important;
    color: #ffffff !important;
}

.nav-pill a:hover:not(.active) {
    color: var(--text-main);
    background-color: rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] .nav-pill a:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ========== THEME TOGGLE PILL ====== */
.theme-toggle-pill {
    display: flex;
    align-items: center;
}

.theme-toggle-pill::before {
    display: none;
}

.theme-btn {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.theme-btn.active {
    background-color: rgba(110, 209, 190, 0.15) !important;
    color: var(--accent-color);
}

.theme-btn:hover:not(.active) {
    color: var(--text-main);
}

/* ========== CONTACT BUTTON & DROPDOWN ====== */
.contact-menu {
    position: relative;
}

.contact-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pill-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-color);
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}

.contact-btn:hover {
    background: rgba(110, 209, 190, 0.1);
    border-color: var(--accent-color);
}

.dropdown-card {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(180deg, var(--window-bg-top) 0%, var(--card-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    min-width: 160px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-card a {
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 400;
    transition: background 0.2s;
}

.dropdown-card a span {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.dropdown-card a:hover {
    background: rgba(110, 209, 190, 0.1);
    color: var(--accent-color);
}

.dropdown-card a:hover span {
    transform: translateX(2px) translateY(-2px);
    color: var(--accent-color);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 1.25rem 1.5rem;
    }

    .brand-logo {
        height: 26px;
    }

    .nav-pill a {
        padding: 6px 16px;
        font-size: 0.85rem;
    }

    .theme-btn {
        padding: 6px 12px;
    }

    .contact-btn {
        width: 38px;
        height: 38px;
    }

    .contact-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 550px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 1.25rem 1rem;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .header-right {
        gap: 6px;
    }

    .nav-pill {
        padding: 2px;
    }

    .nav-pill a {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .theme-btn {
        padding: 5px 10px;
    }

    .theme-btn svg {
        width: 15px;
        height: 15px;
    }

    .contact-btn {
        width: 34px;
        height: 34px;
    }
}

/* ==========================================================================
   HOME PAGE - HERO LAYOUT (SINGLE PNG CUTOUT W/ CSS BACKLIGHT GLOW)
   ========================================================================== */
main {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
    box-sizing: border-box;
    z-index: 10;
    flex-grow: 1;
}

.hero-layout.two-column {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 82vh;
    margin: 0;
    padding: 40px 0 0 0;
}

/* ------------- TAGS & GRADIENTS ------------- */
.systems-core-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--window-bar-bg, rgba(240, 240, 240, 0.15));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: 4px;
    font-family: 'Urbanist', 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.unicorn-glow {
    font-weight: 800;
    background: linear-gradient(90deg, var(--grad-1, #ff5f56), var(--grad-2, #ffbd2e), var(--grad-3, #27c93f), var(--grad-4, #00f0ff));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: panUnicornColors 6s linear infinite;
}

@keyframes panUnicornColors {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ---------------- LEFT SIDE: TEXT (FULLY DYNAMIC) ----------------- */
.hero-content.text-side {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 540px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content.text-side h1 {
    font-family: 'Urbanist', 'Inter', sans-serif !important;
    font-size: 32pt;
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 20px 0;
    letter-spacing: -0.03em;
    color: var(--text-main) !important;
    -webkit-text-fill-color: var(--text-main) !important;
}

.hero-content.text-side h1 .gradient-text {
    color: var(--accent-color) !important;
    -webkit-text-fill-color: var(--accent-color) !important;
}

.hero-content.text-side .hero-description {
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.6;
    max-width: 92%;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    opacity: 0.88;
}

/* --- CTA Buttons --- */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 4rem;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

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

/* --- Trusted Brands Section --- */
.trusted-brands-section {
    width: 100%;
}

.trusted-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.brand-logos img {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.65;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.brand-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ---------------- RIGHT SIDE: LARGE CUTOUT PHOTO ----------------- */
.hero-content.image-side {
    position: absolute;
    right: -10rem;
    bottom: 75px;
    width: 88%;
    max-width: 820px;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* Photo stays layered above the ambient backlight blob */
.hero-custom-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    max-height: 82vh;
    display: block;
    object-fit: contain;
    object-position: bottom right;
}

/* ---------------- GLASS CIRCLE WITH ANIMATED UNICORN BORDER ----------------- */
.hero-image-container::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -2%;
    width: 700px;
    height: 700px;
    border: 2px solid transparent;
    border-radius: 50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.902), rgba(255, 255, 255, 0.902)),
        linear-gradient(90deg, var(--grad-1, #ff5f56), var(--grad-2, #ffbd2e), var(--grad-3, #27c93f), var(--grad-4, #00f0ff));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 300% auto;
    animation: panUnicornColors 6s linear infinite;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
    z-index: 1;
    pointer-events: none;
}

/* Dark Mode Alignment */
:root[data-theme="dark"] .hero-image-container::after,
html[data-theme="dark"] .hero-image-container::after,
body.dark-mode .hero-image-container::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.813), rgba(255, 255, 255, 0.813)),
        linear-gradient(90deg, var(--grad-1, #ff5f56), var(--grad-2, #ffbd2e), var(--grad-3, #27c93f), var(--grad-4, #00f0ff));
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* --- TABLET (1024px and below) --- */
@media (max-width: 1024px) {
    .hero-layout.two-column {
        min-height: auto;
        padding: 40px 0;
        flex-direction: column;
    }

    .hero-content.text-side {
        max-width: 100%;
    }

    .hero-content.image-side {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        justify-content: center;
        margin-top: 1rem;
        pointer-events: auto;
    }

    .hero-custom-image {
        max-height: 60vh;
        object-position: center;
    }

    .hero-image-container::after {
        top: 0;
        right: 50%;
        transform: translateX(50%);
        width: 250px;
        height: 250px;
    }
}

/* --- MOBILE (768px and below) --- */
@media (max-width: 768px) {
    .hero-layout.two-column {
        padding: 30px 12px;
    }

    .hero-content.text-side {
        align-items: center;
        text-align: center;
    }

    .hero-content.text-side h1 {
        text-align: center;
        font-size: clamp(2.1rem, 7.5vw, 2.6rem) !important;
    }

    .hero-content.text-side .hero-description {
        max-width: 100%;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin-bottom: 2.5rem;
    }

    .brand-logos {
        justify-content: center;
        gap: 20px;
    }

    .brand-logos img {
        height: 24px;
    }

    .hero-content.image-side {
        margin-top: 2rem;
    }
}


/* ==== Home Page - Interactive Video & Social Media Section ============================================================== */
.amd-interactive-section.amd-fig-canvas-bg {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8rem 5%;
    box-sizing: border-box;
    background-color: var(--figma-canvas-bg);
    background-image: radial-gradient(var(--figma-canvas-dot) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.amd-fig-workspace {
    position: relative;
    width: 100%;
    max-width: 1050px;
    /* Expanded max-width to cleanly hold video + social panel */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 2-Column Grid Container */
.amd-fig-grid {
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
    width: 100%;
    margin-top: 1rem;
}

/* Left: Interactive Video Component */
.amd-fig-video-wrapper {
    position: relative;
    flex: 0 0 320px;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    background-color: var(--bg-color);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.amd-fig-component-border {
    box-shadow: 0 0 0 2px var(--figma-canvas-bg), 0 0 0 3px var(--figma-purple);
}

#socialIntroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* Right: Social Inspector Panel Component */
.amd-fig-social-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.2rem 2.2rem 2.2rem;
    background-color: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.amd-social-title {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

.amd-social-desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-main);
    opacity: 0.85;
    margin-bottom: 2rem;
}

/* Social Cards List */
.amd-social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amd-social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background-color: var(--window-bar-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s ease;
}

.amd-social-card:hover {
    transform: translateX(4px);
    border-color: var(--figma-purple);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.social-icon {
    color: var(--figma-purple);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.amd-social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.social-info strong {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.social-info span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.25s ease, color 0.25s ease;
}

.amd-social-card:hover .social-arrow {
    transform: translateX(4px);
    color: var(--figma-purple);
}

/* Figma Workspace UI Overlays */
.amd-fig-frame-title {
    position: absolute;
    top: -40px;
    left: 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.amd-fig-component-badge {
    position: absolute;
    top: -28px;
    left: -2px;
    background-color: var(--figma-purple);
    color: var(--figma-label-text);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.amd-fig-cursor-wrapper {
    position: absolute;
    top: 15%;
    right: 5%;
    z-index: 20;
    pointer-events: none;
    animation: amdFloatCursor 8s ease-in-out infinite;
}

.amd-fig-cursor-icon {
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2));
}

.amd-fig-cursor-label {
    position: absolute;
    top: 18px;
    left: 14px;
    background-color: var(--figma-purple);
    color: var(--figma-label-text);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    border-top-left-radius: 0px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes amdFloatCursor {

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

    33% {
        transform: translate(-40px, 30px);
    }

    66% {
        transform: translate(20px, 15px);
    }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .amd-fig-grid {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .amd-fig-video-wrapper {
        flex: none;
        max-width: 320px;
    }

    .amd-fig-social-panel {
        width: 100%;
        max-width: 450px;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .amd-interactive-section.amd-fig-canvas-bg {
        padding: 4rem 5%;
        background-size: 16px 16px;
    }

    .amd-fig-video-wrapper {
        max-width: 280px;
    }

    .amd-fig-frame-title {
        top: -35px;
        font-size: 0.75rem;
    }

    .amd-fig-component-badge {
        top: -24px;
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .amd-fig-cursor-wrapper {
        right: 2%;
        top: 10%;
        transform-origin: top left;
        transform: scale(0.85);
        animation: amdFloatCursorMobile 8s ease-in-out infinite;
    }
}

@media (max-width: 380px) {
    .amd-fig-video-wrapper {
        max-width: 240px;
    }

    .amd-fig-cursor-wrapper {
        right: -2%;
    }
}

@keyframes amdFloatCursorMobile {

    0%,
    100% {
        transform: translate(0, 0) scale(0.85);
    }

    33% {
        transform: translate(-15px, 20px) scale(0.85);
    }

    66% {
        transform: translate(10px, 10px) scale(0.85);
    }
}


/* ====== Homepage HONORS & AWARDS BADGE ================================================= */
.award-badge-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 2.5rem;
    max-width: 460px;
    margin: 2rem auto;
    background: var(--window-bar-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}


/* --- Golden Stars Group --- */
.award-stars-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.8rem;
}

.award-star {
    background: linear-gradient(135deg, #ffe066 0%, #d4af37 50%, #aa7c11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
    line-height: 1;
}

.award-star.center {
    font-size: 2.4rem;
}

.award-star.side {
    font-size: 1.6rem;
    opacity: 0.85;
}

/* --- Header & Typography --- */
.award-header {
    margin-bottom: 1rem;
}

.award-year {
    display: inline-block;
    font-family: 'Urbanist', 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-color, #45b2a3);
    margin-bottom: 4px;
}

.award-title {
    font-family: 'Urbanist', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.award-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.85;
    margin: 0;
}

/* --- Details & Nomination Tag --- */
.award-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.award-issuer {
    font-size: 0.9rem;
    color: var(--text-muted, #777);
    margin: 0;
}

.award-nomination-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.laurel-icon {
    color: #d4af37;
    flex-shrink: 0;
}


/* ==== Home Page - impact-stats ============================================================== */
.impact-stats {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 5%;
    box-sizing: border-box;
    z-index: 10;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.impact-stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: linear-gradient(270deg,
            rgba(0, 240, 255, 0.15),
            rgba(168, 110, 255, 0.15),
            rgba(0, 255, 229, 0.15),
            rgba(255, 110, 199, 0.15),
            rgba(0, 240, 255, 0.15));
    background-size: 300% 300%;
    animation: panAIGradient 12s ease-in-out infinite;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.impact-stats.is-bg-visible::before {
    opacity: 1;
}

@keyframes panAIGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.impact-stats h2 {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    margin: 0;
    width: 100%;
    max-width: 1000px;
}

.stat-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 18px;
    width: 100%;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-line.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stat-line:nth-child(1) {
    transition-delay: 0.1s;
}

.stat-line:nth-child(2) {
    transition-delay: 0.2s;
}

.stat-line:nth-child(3) {
    transition-delay: 0.3s;
}

.stat-line:nth-child(4) {
    transition-delay: 0.4s;
}

/* --- Text Styling --- */
.impact-stats .stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 6.5vw, 4.8rem);
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    display: flex;
    align-items: baseline;
    flex-shrink: 0;
    text-shadow: 0 0 30px rgba(110, 209, 190, 0.2);
}

.impact-stats .counter {
    display: inline-block;
    min-width: 1.1em;
    text-align: right;
}

.impact-stats .stat-label {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.8vw, 1.25rem);
    font-weight: 500;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    text-align: left;
    white-space: normal;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .stat-line {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 1rem;
    }

    .impact-stats .stat-label {
        text-align: center;
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }
}

/* ---------------- Flagship Project Layout (Side-by-Side) ----------------- */
.flagship-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 5%;
}

.flagship-left {
    text-align: left;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.flagship-left h1 {
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.1;
    margin: 0 0 20px 0;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--accent-color);
    -webkit-text-stroke: 0.5px var(--text-stroke);
    text-shadow: 0 0 25px rgba(110, 209, 190, 0.4), 0 0 60px rgba(110, 209, 190, 0.1);
}

.flagship-left .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 32px;
}

.flagship-right {
    flex: 1;
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* --- Tablet & Mobile Responsiveness (Stacks safely) --- */
@media (max-width: 1024px) {
    .flagship-layout {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }

    .flagship-left {
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .flagship-right {
        margin-top: 40px;
        max-width: 100%;
    }
}

/* ==========================================================================
    HOME PAGE - PROJECT CARDS
   ========================================================================== */

.selected-work-section {
    padding-top: 8rem;
}

/* --- SELECTED WORK HEADER --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    padding: 0 5%;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.see-all-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.see-all-link:hover {
    opacity: 0.7;
    transform: translateX(4px);
    color: var(--accent-color);
}

/* --- FLAGSHIP PROJECT SPECIFICS --- */
.project-tags {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.flagship-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease;
}

.flagship-project:hover .flagship-img {
    transform: translateY(-5px);
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 80px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-4px) scale(1.005);
    background: radial-gradient(circle at 50% 0%, rgba(110, 209, 190, 0.15) 0%, var(--card-bg) 80%);
    border-color: rgba(110, 209, 190, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.project-info {
    max-width: 80%;
}

.project-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.project-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.arrow {
    font-size: 1.8rem;
    color: var(--text-main);
    transition: transform 0.3s ease;
    font-weight: 300;
    margin-top: -5px;
}

.project-card:hover .arrow {
    transform: translateX(8px);
    color: var(--accent-color);
}

.card-mockup {
    background-color: var(--mockup-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.mockup-content img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.card-mockup .window-bar {
    background-color: var(--window-bar-bg);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
    justify-content: flex-start;
}

.mockup-content {
    flex-grow: 1;
    background: linear-gradient(180deg, var(--mockup-grad-top) 0%, var(--mockup-grad-bottom) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0 5%;
    }

    .project-card {
        padding: 2rem 1.5rem;
    }

    .project-header {
        flex-direction: column;
        gap: 15px;
    }

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

    .card-mockup {
        height: auto;
    }
}

/* ==========================================================================
   SECTION 8: INFO PAGE (ABOUT)
   ========================================================================== */
.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0 6rem 0;
}

.gradient-text {
    background: linear-gradient(90deg, var(--text-main), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
}

/* Image Bubbles */
.image-bubbles {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.bubble {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow);
    margin-left: -25px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bubble:first-child {
    margin-left: 0;
}

.bubble:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--accent-color);
    z-index: 10 !important;
}

.bubble-1 {
    width: 110px;
    height: 110px;
    z-index: 1;
}

.bubble-2 {
    width: 140px;
    height: 140px;
    z-index: 2;
}

.bubble-3 {
    width: 190px;
    height: 190px;
    z-index: 3;
    border: 3px solid var(--accent-color);
}

.bubble-4 {
    width: 140px;
    height: 140px;
    z-index: 2;
}

.bubble-5 {
    width: 110px;
    height: 110px;
    z-index: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--accent-glow);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px var(--accent-glow);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 var(--accent-color);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px transparent;
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 transparent;
    }
}

/* Bio Image Grid */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-bottom: 6rem;
    margin-top: 2rem;
}

.timeline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.timeline-row:nth-child(even) .timeline-text {
    order: 2;
}

.timeline-row:nth-child(even) .timeline-image-container {
    order: 1;
}

.timeline-img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.timeline-text h2 {
    font-size: 1.8rem;
    margin: 0 0 1.5rem 0;
    font-weight: 600;
    color: var(--text-main);
}

.timeline-text p {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.signature-block {
    margin-top: 3rem;
}

.signature-block p {
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.signature-img {
    height: 60px;
    filter: invert(1) brightness(2);
    margin-left: -10px;
}

/* Overrides signature to black in light mode */
:root[data-theme="light"] .signature-img {
    filter: none;
}

/* Interactive Timeline */
.timeline-section {
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
    margin-bottom: 4rem;
}

.section-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.v-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.v-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.v-timeline:hover::before {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
    animation: timelineJuggle 0.3s ease-in-out infinite;
}

@keyframes timelineJuggle {

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

    25% {
        transform: translateX(calc(-50% - 3px));
    }

    75% {
        transform: translateX(calc(-50% + 3px));
    }
}

.timeline-block {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-block:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 42%;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-shadow: 0 0 20px var(--accent-glow);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 1rem 0;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: var(--bg-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: all 0.3s ease;
}

.v-timeline:hover .timeline-dot {
    background-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

@media (max-width: 768px) {
    .v-timeline::before {
        left: 16px;
    }

    .timeline-block {
        display: block;
        margin-bottom: 3rem;
    }

    .timeline-block:nth-child(even) {
        flex-direction: row;
    }

    .timeline-content {
        width: auto;
        margin-left: 48px;
    }

    .timeline-dot {
        left: 16px;
        top: 2rem;
        transform: translateX(-50%);
    }

    .timeline-row,
    .timeline-row:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-row:nth-child(even) .timeline-text {
        order: 1;
    }

    .timeline-row:nth-child(even) .timeline-image-container {
        order: 2;
    }
}

@media (max-width: 600px) {
    .bubble-1 {
        width: 60px;
        height: 60px;
    }

    .bubble-2 {
        width: 80px;
        height: 80px;
    }

    .bubble-3 {
        width: 110px;
        height: 110px;
    }

    .bubble-4 {
        width: 80px;
        height: 80px;
    }

    .bubble-5 {
        width: 60px;
        height: 60px;
    }

    .bubble {
        margin-left: -15px;
    }

    .hero-centered h1 {
        font-size: 2.2rem;
        -webkit-text-stroke: 0px;
    }
}

/* ==========================================================================
   SECTION: CONFERENCES & STAGES SLIDER
   ========================================================================== */
.conferences-section {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    padding: 8rem 0;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, var(--bg-color) 80%);
    overflow: hidden;
}

.conferences-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* --- Typography Header --- */
.conferences-header {
    text-align: left;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.conferences-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--text-main);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.03em;
}

.conferences-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    opacity: 0.8;
    line-height: 1.5;
    max-width: 800px;
}

.unicorn-tag {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-left: 2px solid var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
    background: var(--window-bar-bg);
    backdrop-filter: blur(5px);
}

/* --- Cards Layout Track --- */
.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    margin-bottom: 3.5rem;
}

.carousel-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

/* Carousel Card Sizes */
.side-card {
    width: 280px;
    height: 360px;
    opacity: 0.5;
    transform: scale(0.92);
    filter: blur(1px);
}

.active-card {
    width: 440px;
    height: 480px;
    z-index: 5;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border-color: var(--accent-color);
}

/* Card Text Overlays */
.carousel-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 2rem 2rem;
    /* Adapts nicely to light/dark themes */
    background: linear-gradient(180deg, transparent 0%, var(--card-bg) 90%);
    z-index: 2;
}

.carousel-card-overlay h4 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.carousel-card-overlay p {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 0;
}

.carousel-card:hover img {
    transform: scale(1.04);
}

/* --- Carousel Navigation Arrows --- */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 1rem;
}

.ctrl-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ctrl-btn:hover {
    background: var(--border-subtle);
    border-color: var(--text-main);
    transform: scale(1.05);
}

/* --- MOBILE & TABLET RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .carousel-track {
        gap: 1rem;
    }

    .side-card {
        width: 220px;
        height: 300px;
    }

    .active-card {
        width: 360px;
        height: 400px;
    }

    .unicorn-tag {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .conferences-section {
        padding: 5rem 0;
    }

    .side-card {
        display: none;
    }

    .active-card {
        width: 100%;
        max-width: 400px;
        height: 420px;
    }
}

/* ==========  FOOTER ==================================== */
/* --- FOOTER CONTACT IMAGE --- */
.footer-contact-img-wrapper {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}


.footer-contact-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.site-footer {
    width: 100%;
    background: radial-gradient(ellipse at bottom, var(--accent-glow) 0%, var(--bg-color) 70%);
    padding: 8rem 2rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 6rem;
}

.footer-cta {
    max-width: 500px;
}

.footer-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 2.5rem 0;
    letter-spacing: -0.02em;
}

.email-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2rem;
    background: var(--window-bar-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 2rem;

    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.email-pill:hover {
    background: var(--accent-glow);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px var(--accent-glow);
    transform: translateY(-3px);
}

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

.email-pill:hover .arrow {
    transform: translateX(4px);
    color: var(--accent-color);
}


/* --- Right Side Columns --- */
.footer-links-wrapper {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.footer-col a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.pulse-dot.green {
    width: 8px;
    height: 8px;
    background-color: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 10px #27c93f;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 #27c93f;
    }

    70% {
        box-shadow: 0 0 0 8px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.status-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Bottom Branding --- */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-main);
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    margin: 0 0 0.3rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-credits {
    opacity: 0.6;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        text-align: center;
    }

    .footer-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links-wrapper {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem 4rem;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 4rem 1.5rem 2rem 1.5rem;
    }

    .footer-links-wrapper {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .footer-col {
        width: auto;
        align-items: center;
        text-align: center;
    }

    .footer-col .footer-label {
        width: auto;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .footer-col.status-col {
        width: 100%;
        margin-top: 1rem;
    }

    .status-indicator {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0.5rem;
        /* Tightens the branding block */
    }

    .footer-copyright {
        text-align: center;
        margin-top: 0;
    }

    .email-pill {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        word-break: break-all;
    }
}

/* --- CAROUSEL HELPER STATE --- */
.carousel-card.hidden-card {
    display: none !important;
}

/* ============ UTILITIES & ACCESSIBILITY======================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============ HOME PAGE - ARIES MASCOT (EMBEDDED) ========================================= */
.aries-embedded-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 300px;
    position: relative;
}

/* --- MASCOT LABEL (TRANSPARENT PILL) --- */
.mascot-label {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 6px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#chatbot-ui-embedded {
    position: relative;
    width: var(--app-size, 140px);
    height: var(--app-size, 140px);
}

#chatbot-ui-embedded .app {
    position: relative;
    display: block;
    width: var(--app-size, 140px);
    height: var(--app-size, 140px);
    border-radius: var(--app-radius, 50%);
    text-align: center;
    animation: embeddedFloat 3s ease-in-out infinite;
    z-index: 20;
    cursor: pointer;
    border: none;
    padding: 0;
    background: transparent;
}

#chatbot-ui-embedded .app-figure {
    width: 100%;
    height: 100%;
    margin: 0;
    position: relative;
    border-radius: var(--app-radius, 50%);
    background: radial-gradient(circle, var(--color-lightblue, #6ed1be) 40%, var(--color-offwhite, #eef9f6) 90%, rgba(0, 0, 0, 0.075) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes embeddedFloat {

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

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

#chatbot-ui-embedded .shadow {
    position: absolute;
    bottom: var(--shadow-bottom, -20px);
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: var(--shadow-width, 100px);
    height: var(--shadow-height, 14px);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    filter: blur(4px);
    animation: embeddedShadow 3s ease-in-out infinite;
    z-index: 5;
    margin: 0;
}

@keyframes embeddedShadow {

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

    50% {
        transform: translateX(-50%) scale(0.65);
        opacity: 0.25;
    }
}

/* --- EYES & BLINKING --- */
#chatbot-ui-embedded .eyeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 12px;
}

#chatbot-ui-embedded .eyeLid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--eye-size, 36px);
    height: var(--eye-size, 36px);
    background-color: var(--color-offwhite, #ffffff);
    border-radius: 50% 50% 46% 55%/59% 60% 36% 46%;
    box-shadow: inset -10px -5px 12px rgba(0, 0, 0, 0.15);
    animation: embeddedBlink 5s ease-in-out infinite;
}

#chatbot-ui-embedded .eye {
    position: relative;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background-color: var(--color-lightblue, #40c1ac);
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbot-ui-embedded .pupol {
    width: var(--pupil-size, 14px);
    height: var(--pupil-size, 14px);
    border-radius: 50%;
    background-color: #000;
    position: relative;
}

#chatbot-ui-embedded .eye::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 6px;
    width: 30%;
    height: 30%;
    background: #fff;
    border-radius: 50%;
}

@keyframes embeddedBlink {

    0%,
    46%,
    48%,
    100% {
        transform: scaleY(1);
    }

    47% {
        transform: scaleY(0.1);
    }
}

/* ========== ARIES HOVER EFFECTS (Gasp/Giggle Shake & Multi-Color Crystal Glow)===================== */

#chatbot-ui-embedded .app:hover .app-figure {
    animation: crystalGlow 2s linear infinite, shake 0.18s ease-in-out infinite !important;
}

#chatbot-ui-embedded .app:hover+.shadow {
    animation-play-state: paused;
}

/* Giggle / Wobble Shake Motion */
@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg) scale(1.05);
    }

    25% {
        transform: rotate(-5deg) scale(1.08);
    }

    75% {
        transform: rotate(5deg) scale(1.08);
    }
}

/* Cycling Multi-Color Crystal Aura Glow */
@keyframes crystalGlow {
    0% {
        box-shadow: 0 0 20px #00f0ff, 0 0 45px rgba(0, 240, 255, 0.7);
        border-color: #00f0ff;
    }

    25% {
        box-shadow: 0 0 25px #a86eff, 0 0 50px rgba(168, 110, 255, 0.7);
        border-color: #a86eff;
    }

    50% {
        box-shadow: 0 0 25px #ff6ec7, 0 0 50px rgba(255, 110, 199, 0.7);
        border-color: #ff6ec7;
    }

    75% {
        box-shadow: 0 0 25px #40c1ac, 0 0 50px rgba(64, 193, 172, 0.7);
        border-color: #40c1ac;
    }

    100% {
        box-shadow: 0 0 20px #00f0ff, 0 0 45px rgba(0, 240, 255, 0.7);
        border-color: #00f0ff;
    }
}

/* --- ARIES EMBEDDED SPEECH BUBBLE --- */
#chatbot-ui-embedded {
    position: relative;
}

#chatbot-ui-embedded .app * {
    pointer-events: none;
}

.aries-speech-bubble {
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: rgba(255, 255, 255, 0.96);
    color: #12181a;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), 0 0 15px rgba(69, 178, 163, 0.25);
    border: 1.5px solid #45b2a3;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    width: 190px;
    text-align: center;
}

.aries-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px 7px 0;
    border-style: solid;
    border-color: #45b2a3 transparent;
    display: block;
    width: 0;
}

.aries-speech-bubble.is-active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

/* ============ ACCESSIBILITY - REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   LIGHT MODE: WARM GLASS & SOFT SHADOW OVERRIDES (GPU OPTIMIZED)
   ========================================================================== */

:root[data-theme="light"] .custom-intro-card,
:root[data-theme="light"] .project-card,
:root[data-theme="light"] .timeline-content,
:root[data-theme="light"] .carousel-card,
:root[data-theme="light"] .hero-window,
:root[data-theme="light"] .timeline-img,
:root[data-theme="light"] .hero-image-container.stacked-image {
    box-shadow: 0 20px 40px rgba(31, 115, 99, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(31, 115, 99, 0.12) !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
}

:root[data-theme="light"] .project-card:hover,
:root[data-theme="light"] .carousel-card:hover,
:root[data-theme="light"] .hero-image-container.stacked-image:hover {
    box-shadow: 0 30px 60px rgba(31, 115, 99, 0.12), 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(31, 115, 99, 0.3) !important;
}

:root[data-theme="light"] .bg-blob {
    background: radial-gradient(circle,
            rgba(64, 193, 172, 0.3) 0%,
            rgba(31, 115, 99, 0.15) 40%,
            rgba(249, 250, 249, 0) 70%);

    filter: blur(60px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* ==== LIGHT MODE AUDIO MODAL: FROSTED TEAL GLASS (#45b2a3) =========================== */
:root[data-theme="light"] .music-modal {
    background: rgba(249, 250, 249, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

:root[data-theme="light"] .music-modal-content {
    background: linear-gradient(135deg, rgba(69, 178, 163, 0.15) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(69, 178, 163, 0.35);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 0 30px rgba(69, 178, 163, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);

    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

:root[data-theme="light"] .music-modal h3 {
    color: #12181a;
}

:root[data-theme="light"] .music-modal p {
    color: #4a5568;
}

:root[data-theme="light"] .yes-btn {
    background: rgba(69, 178, 163, 0.15);
    color: #318a7e;
    border: 1px solid #45b2a3;
}

:root[data-theme="light"] .yes-btn:hover {
    background: #45b2a3;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(69, 178, 163, 0.4);
}

:root[data-theme="light"] .no-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #556068;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .no-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #12181a;
}

/* ==========================================================================
   FORCE LIGHT MODE ACCENT TO #45b2a3
   ========================================================================= */
:root[data-theme="light"],
html[data-theme="light"],
[data-theme="light"] {
    --accent-color: #45b2a3 !important;
}

:root[data-theme="light"] .hero-left h1,
html[data-theme="light"] .hero-left h1,
:root[data-theme="light"] .custom-intro-card h1 {
    color: #45b2a3 !important;
    -webkit-text-fill-color: #45b2a3 !important;
}

:root[data-theme="light"] .impact-stats .stat-number,
html[data-theme="light"] .impact-stats .stat-number,
:root[data-theme="light"] .impact-stats .stat-number * {
    color: #45b2a3 !important;
    -webkit-text-fill-color: #45b2a3 !important;
    text-shadow: 0 0 25px rgba(69, 178, 163, 0.25) !important;
}

/* ==========================================================================
   DARK MODE: HERO CONTRAST & CUTOUT BLEND OVERRIDES
   ========================================================================= */

/* 1. Headings & Description Text Contrast */
:root[data-theme="dark"] .hero-content.text-side h1,
html[data-theme="dark"] .hero-content.text-side h1,
body.dark-mode .hero-content.text-side h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

:root[data-theme="dark"] .hero-content.text-side .hero-description,
html[data-theme="dark"] .hero-content.text-side .hero-description,
body.dark-mode .hero-content.text-side .hero-description {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* 2. Hero CTA Buttons in Dark Mode */
:root[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-primary,
body.dark-mode .btn-primary {
    background-color: #ffffff !important;
    color: #111111 !important;
}

:root[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-primary:hover,
body.dark-mode .btn-primary:hover {
    background-color: var(--accent-color, #45b2a3) !important;
    color: #ffffff !important;
}

:root[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-secondary,
body.dark-mode .btn-secondary {
    color: #ffffff !important;
}

:root[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-secondary:hover,
body.dark-mode .btn-secondary:hover {
    color: var(--accent-color, #45b2a3) !important;
}

/* 3. Invert Brand Logos for Dark Backgrounds */
:root[data-theme="dark"] .brand-logos img,
html[data-theme="dark"] .brand-logos img,
body.dark-mode .brand-logos img {
    filter: grayscale(100%) brightness(0) invert(1) !important;
    opacity: 0.7;
}

:root[data-theme="dark"] .brand-logos img:hover,
html[data-theme="dark"] .brand-logos img:hover,
body.dark-mode .brand-logos img:hover {
    opacity: 1;
}

/* 4. Ambient Studio Backlight Behind Photo Cutout */
:root[data-theme="dark"] .hero-image-container::after,
html[data-theme="dark"] .hero-image-container::after,
body.dark-mode .hero-image-container::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 10%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(69, 178, 163, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(50px);
}

/* 5. Dark Mode Left Edge Mask Fade */
:root[data-theme="dark"] .hero-image-container::before,
html[data-theme="dark"] .hero-image-container::before,
body.dark-mode .hero-image-container::before {
    background: linear-gradient(to right, var(--bg-color, #0a0a0c) 15%, transparent 100%) !important;
}