/* =========================================
   DEEP AI THEME - MAIN STYLESHEET
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Neo-brutalist Palette */
    --bg-main: #FFF6E5;   /* Warm Cream/Paper */
    --bg-dark: #1A1A1A;   /* Deep Charcoal */
    --primary: #A1E3F9;   /* Soft Sky Blue */
    --accent: #C1BAFF;    /* Soft Lavender */
    --secondary: #FFCFEF; /* Soft Pink */
    
    --text-main: #1A1A1A;
    --text-on-dark: #FFFFFF;
    --text-muted: #000000;

    /* Refined Neo-brutalist Specs */
    --border-bold: 3px solid #1A1A1A;
    --border-thin: 2px solid #1A1A1A;
    --shadow-hard: 6px 6px 0px #1A1A1A;
    --shadow-hard-small: 3px 3px 0px #1A1A1A;
    --shadow-hard-hover: 8px 8px 0px #1A1A1A;

    /* Animation Speeds */
    --anim-snappy: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    min-height: 80vh;
    padding-top: 2rem;
    max-width: 1200px;
    /* Standard container width */
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.container.no-padding {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

.container.wide-container {
    max-width: 1600px !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--anim-fast);
}

ul {
    list-style: none;
}

/* =========================================
   UTILITIES & ANIMATIONS
   ========================================= */


/* Home Specific - NEOX Style */
.hero-home {
    min-height: 92vh; /* Increased from 80vh to bring screen further down */
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.3fr;
    align-items: flex-start;
    padding: 0rem 4rem 2rem 4rem; /* Minimal top padding */
    position: relative;
    overflow: hidden;
    background: #000000;
}

.hero-heading {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 0.85;
    font-weight: 900;
    margin-bottom: 2rem;
    margin-top: 8rem; /* Increased spacing from navbar to push text and button down */
    color: #FFF;
    z-index: 5;
    text-transform: uppercase;
    font-style: italic;
}

/* Aesthetic Animation Foundation */
:root {
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --reveal-dist: 30px;
}

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

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(var(--reveal-dist)) scale(0.98);
    transition: opacity 1.5s var(--ease-expo), transform 1.5s var(--ease-expo);
    will-change: opacity, transform;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Fix Hero Grid on Mobile for Neo-Brutalist Layout */
@media (max-width: 992px) {
    .hero-home {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        min-height: auto;
        gap: 2rem;
    }
    .hero-heading {
        margin-top: 2rem;
        font-size: clamp(3rem, 12vw, 4.5rem);
    }
    .portrait-wrapper {
        margin: 2rem auto;
        max-width: 300px;
    }
    .vertical-panel {
        position: relative;
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 2px solid #FFF;
        flex-direction: row;
        justify-content: center;
        padding: 2rem;
    }
    .slanted-text {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 3rem;
        margin-right: 0;
    }
}

/* Typing Animation Styles */
.typing-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    animation: typing-reveal 0.5s ease forwards;
}

@keyframes typing-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Looping Typography Animation */
.hero-looping-v2 {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    filter: blur(10px);
    animation: typography-reveal-loop 4s ease-in-out infinite;
}

@keyframes typography-reveal-loop {
    0%, 10% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
        filter: blur(10px);
    }
    20%, 80% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    90%, 100% {
        opacity: 0;
        transform: translateY(-20px) scale(1.1);
        filter: blur(10px);
    }
}

.reveal-on-scroll.stagger-item {
    transition-delay: calc(var(--stagger-index, 0) * 0.1s);
    display: inline-block;
    opacity: 0; /* Ensure hidden initially */
}

@media (max-width: 768px) {
    :root {
        --reveal-dist: 15px; /* Subtle on mobile */
    }
    .reveal-on-scroll {
        transition-duration: 1.2s; /* Faster on mobile */
    }
}


.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    max-width: 500px;
    margin-bottom: 2.5rem;
    z-index: 5;
    margin-left: 0;
}

/* Studio Style Components */
.studio-btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.studio-btn {
    background: linear-gradient(90deg, #F9C5B7, #F2A99B);
    color: #000;
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-weight: 800;
    text-transform: capitalize;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 10px 20px rgba(249, 197, 183, 0.3);
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
}

.studio-btn:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Liquid Button Animation Styles */
.liquid-btn span {
    position: relative;
    z-index: 2;
    transition: color 0.5s ease;
}

.liquid-btn .liquid {
    position: absolute;
    top: -150px;
    left: -350px;
    width: 350px;
    height: 350px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 40%;
    z-index: 1;
    pointer-events: none;
}

.liquid-btn .liquid::before,
.liquid-btn .liquid::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: -5%;
    left: 0;
    border-radius: 45%;
    background: rgba(0, 0, 0, 0.6);
}

.liquid-btn .liquid::after {
    border-radius: 35%;
    top: -10%;
    background: #000;
}

.liquid-btn.animating .liquid {
    animation: fillLiquid 1.5s cubic-bezier(0.36, 0.11, 0.89, 0.32) forwards;
}

.liquid-btn.animating .liquid::before {
    animation: spinWave 1.5s linear infinite;
}

.liquid-btn.animating .liquid::after {
    animation: spinWave 1.2s linear infinite reverse;
}

.liquid-btn.animating span {
    color: #FFF;
    transition: color 0.3s 1s ease;
}

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

@keyframes fillLiquid {
    0% {
        left: -350px;
        transform: rotate(0deg);
    }
    100% {
        left: -20px;
        transform: rotate(360deg);
    }
}

.portrait-wrapper {
    position: relative;
    max-width: 500px;
    margin: 6rem auto 0; /* Pushed down by 6rem to match the text */
    background: transparent;
    border-radius: 20px;
}

.hero-portrait {
    width: 100%;
    height: auto;
    filter: grayscale(1);
    border-radius: 20px;
    display: block;
    mix-blend-mode: screen;
}

.eye-overlay {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    backdrop-filter: blur(15px);
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.eye-overlay::after {
    content: '';
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(235,148,134,0.6) 0%, rgba(134,168,235,0.4) 100%);
    filter: blur(10px);
    border-radius: 50%;
}

.vertical-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 15%;
    background: transparent;
    border-left: 2px solid #FFF;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1rem;
    z-index: 5;
}

.slanted-text {
    font-size: 8rem; /* Slightly smaller for the word NEURAL */
    font-weight: 900;
    color: #FFF;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    line-height: 1;
    margin-right: -1rem;
    letter-spacing: -2px;
}

.dot-pattern {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    opacity: 0.8;
    color: #fff;
}

/* Achievement Section */
.achievement-section {
    background-color: #7C3AED; /* Vibrant Purple */
    padding: 6rem 4rem;
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .achievement-section {
        padding: 4rem 1.5rem;
    }
    .achievement-heading {
        font-size: 2.5rem;
    }
    .overlapping-cards-row {
        gap: 2rem;
        padding-bottom: 2rem;
    }
    .neo-card-studio {
        transform: none !important;
        margin: 0 auto;
        width: 100%;
        max-width: 300px;
    }
}

.achievement-heading {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #FFFFFF;
}

.achievement-subtext {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 4rem;
    opacity: 0.9;
    font-weight: 500;
}

.overlapping-cards-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0; /* Gap handled by card rotation/translation */
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.neo-card-studio {
    background: #FFFFFF;
    border: 3px solid #000;
    padding: 2rem;
    width: 280px;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: transform 0.3s ease, z-index 0s;
    position: relative;
    box-shadow: 10px 10px 0px #000;
}

.neo-card-studio h3 {
    color: #000;
    font-size: 1.8rem;
    line-height: 1;
}

.neo-card-studio .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #000;
}

.card-green { background: #BBF7D0; transform: rotate(-4deg) translateX(20px); z-index: 1; }
.card-yellow { background: #FEF08A; transform: rotate(2deg) translateX(0px); z-index: 2; }
.card-orange { background: #FED7AA; transform: rotate(-2deg) translateX(-20px); z-index: 3; }
.card-blue { background: #BAE6FD; transform: rotate(4deg) translateX(-40px); z-index: 4; }

.neo-card-studio:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 10 !important;
}

/* Service Marquee */
.service-marquee {
    background-color: #FFFFFF;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track-studio {
    display: flex; /* Robust flex layout */
    animation: marquee-studio 25s linear infinite;
    gap: 4rem; /* Consistent spacing */
}

.marquee-item-studio {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee-item-studio::before {
    content: '✹';
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* Services Flow Section (Zigzag) */
.services-flow-section {
    background-color: #FDF5E6; /* Beige Background */
    padding: 8rem 4rem;
    position: relative;
}

.flow-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto 10rem;
    position: relative;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-step:nth-child(even) {
    flex-direction: row-reverse;
}

.flow-img-wrapper {
    flex: 1.2;
    position: relative;
}

.flow-img-wrapper img {
    width: 100%;
    height: auto;
    border: 4px solid #000;
    box-shadow: 15px 15px 0px #000;
    transition: transform 0.4s ease;
}

.flow-img-wrapper:hover img {
    transform: translate(-5px, -5px);
    box-shadow: 20px 20px 0px #000;
}

.flow-info {
    flex: 0.8;
}

.flow-info h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #000;
}

.flow-info p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
    max-width: 500px;
}

/* Curly Arrow Doodles */
.flow-arrow {
    position: absolute;
    width: 150px; /* Slightly larger */
    height: 150px;
    opacity: 0.95;
    pointer-events: none;
    fill: none;
    filter: drop-shadow(1px 1px 0px rgba(0,0,0,0.1));
}

.arrow-1 { top: 85%; left: 45%; transform: rotate(15deg); }
.arrow-2 { top: 85%; right: 45%; transform: rotate(-25deg) scaleX(-1); }
.arrow-3 { top: 85%; left: 42%; transform: rotate(15deg); }

@media (max-width: 992px) {
    .flow-step, .flow-step:nth-child(even) {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .flow-info p {
        margin: 0 auto;
    }
    
    .flow-arrow {
        display: none;
    }
}

@keyframes neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 4px #fff,
            0 0 11px #fff,
            0 0 19px #fff,
            0 0 40px var(--primary),
            0 0 80px var(--primary),
            0 0 90px var(--primary),
            0 0 100px var(--primary),
            0 0 150px var(--primary);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

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

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

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


.floating {
    animation: float 6s ease-in-out infinite;
}

/* Cursor Particle Canvas */
#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10001;
    /* Above almost everything */
}


/* Theme Transition Overlay */
.theme-transition-overlay {
    position: fixed;
    border-radius: 50%;
    background: var(--bg-dark);
    transform: scale(0);
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: #FFFFFF; /* Pure White */
    border-bottom: var(--border-bold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    padding-right: 60px; /* Safe zone for logo */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    padding-left: 60px; /* Safe zone for logo */
    justify-content: flex-end;
    position: relative;
}

/* Services Tooltip Notification */
.services-tooltip {
    position: absolute;
    top: 60px; /* Below the navbar / button */
    right: -20px; /* Aligned with the 4-dot button inside servicesContainer */
    background: #FFF;
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.services-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #FFF transparent;
}
.services-tooltip.show {
    opacity: 1;
    transform: translateY(0);
    animation: tooltipPulse 2s infinite;
}

@keyframes tooltipPulse {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.05) translateY(-2px); }
    100% { transform: scale(1) translateY(0); }
}

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

.logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: auto; /* Changed for interactivity */
}

.logo-center:hover {
    transform: translate(-50%, -50%) scale(1.15);
    letter-spacing: 3px;
    color: #000000;
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: #000000; /* Pure Black */
    background: transparent; /* Clean look */
    padding: 0;
    border: none;
    box-shadow: none;
    letter-spacing: -1px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), letter-spacing 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}

.navbar a {
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem; /* Slight bump */
    letter-spacing: 1px;
    transition: all 0.2s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

.navbar a:not(.logo):hover {
    background: rgba(0,0,0,0.05);
    transform: translateY(-2px);
    color: #000;
}

/* .navbar a.active text-decoration removed per request */



[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    color: var(--primary);
    text-shadow: none;
}

/* Removed purple hover line on nav links */

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--anim-fast);
}

/* Helper for mobile menu overlay (optional) */
body.menu-open {
    overflow: hidden;
}

/* Global Buttons (Premium Overhaul) */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px; /* Precise rounding */
    font-weight: 600; /* Professional weight */
    text-transform: none; /* Removed aggressive uppercase */
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-main);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: var(--accent);
    color: var(--text-main);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Cards */
.card {
    background: var(--bg-main);
    border: 1px solid rgba(0,0,0,0.08); /* Refined border */
    border-radius: 12px; /* Consistent rounding */
    padding: 2rem;
    box-shadow: var(--shadow-hard);
    transition: var(--anim-snappy);
}

.card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #000000;
}

.card.no-hover:hover, .btn.no-hover:hover {
    transform: none !important;
    box-shadow: var(--shadow-hard) !important;
}

.press-btn {
    transition: transform 0.1s ease, box-shadow 0.1s ease !important;
}

.press-btn:active {
    transform: scale(0.94) !important;
    box-shadow: none !important;
}

/* Form Elements (Consistency Overhaul) */
input,
textarea,
select {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px; /* Matches buttons */
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 161, 227, 249), 0.15);
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
    outline: none;
}
.custom-dropdown .dropdown-header {
    background: #ffffff;
    color: #000000;
    border: 3px solid #000000;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px; /* Or 0px for neo-brutal */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.2s ease;
}
.custom-dropdown.open .dropdown-header {
    box-shadow: 2px 2px 0px #000;
    transform: translate(2px, 2px);
}
.custom-dropdown .dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 8px;
    box-shadow: 6px 6px 0px #000;
    margin-top: 5px;
    list-style: none;
    z-index: 100;
    padding: 0;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}
.custom-dropdown.open .dropdown-list {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-dropdown .topic-dropdown-item {
    padding: 1rem !important;
    margin: 0 !important;
    cursor: pointer;
    font-weight: 600;
    color: #000;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    /* Disable any inherited transform or padding animation that causes a 'left zoom' */
    transition: background-color 0.1s ease, color 0.1s ease !important;
    transform: none !important;
}
.custom-dropdown .topic-dropdown-item:last-child {
    border-bottom: none;
}
.custom-dropdown .topic-dropdown-item:hover, .custom-dropdown .topic-dropdown-item.active {
    background-color: #3b82f6 !important; /* Solid Vivid Blue */
    color: #ffffff !important;
    transform: none !important;
    padding-left: 1rem !important;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Voice Selection dropdown styling */
.voice-select-custom {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    border-radius: 20px !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    outline: none;
    cursor: pointer;
    box-shadow: 3px 3px 0px #000000;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}
.voice-select-custom:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #000000;
}
.voice-select-custom:active, .voice-select-custom:focus {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000000;
}

input:focus,
textarea:focus {
    box-shadow: var(--shadow-hard);
    transform: translate(-2px, -2px);
}

/* =========================================
   PAGE SPECIFIC
   ========================================= */

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-box {
    width: 100%;
    max-width: 600px;
    z-index: 2;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Resume Analysis specific */
.analysis-result {
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
    border-radius: 0 8px 8px 0;
}

[data-theme="light"] .analysis-result {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Flashes */
.flashes {
    position: fixed;
    top: 5rem;
    right: 2rem;
    width: 100%;
    max-width: 400px;
    z-index: 1001;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    animation: slideInUp 0.3s;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
    color: #FCA5A5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10B981;
    color: #6EE7B7;
}

/* Studio Footer - Black Theme */
.studio-footer {
    background: #000;
    color: #fff;
    padding: 6rem 2rem 2rem;
    font-family: 'Outfit', sans-serif;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.studio-footer .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo-studio {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #fff;
}

.footer-mission {
    color: #fff;
    font-size: 1rem;
    max-width: 400px;
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

.social-links-studio {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.social-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-circle.twitter { background: #FEF08A; color: #000; }
.social-circle.facebook { background: #F97316; color: #fff; }
.social-circle.instagram { background: #86EFAC; color: #000; }
.social-circle.other { background: #FFFFFF; color: #000; }

.social-circle:hover {
    transform: translateY(-5px);
}

.newsletter-box {
    margin-top: 2rem;
}

.newsletter-label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.newsletter-form-pill {
    background: #fff;
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 0.4rem;
    max-width: 450px;
}

.newsletter-form-pill input {
    border: none;
    background: transparent;
    padding: 0.8rem 1.5rem;
    flex: 1;
    color: #000;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    box-shadow: none !important;
    transform: none !important;
}

.newsletter-form-pill button {
    background: #84CC16; /* Studio Green */
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-form-pill button:hover {
    transform: scale(1.1);
}

.footer-header-studio {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #fff;
}

.footer-list-studio li {
    margin-bottom: 1.2rem;
}

.footer-list-studio a {
    color: #fff;
    font-size: 1.1rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-list-studio a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom-studio {
    text-align: center;
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .studio-footer .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .studio-footer .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-mission, .newsletter-form-pill, .social-links-studio {
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links-studio {
        justify-content: center;
    }
}

/* Mobile Responsive Nav & Footer */
@media (max-width: 768px) {

    /* Footer adjustments */
    .footer-container {
        grid-template-columns: 1fr;
        /* Stack columns */
        gap: 2rem;
        text-align: center;
    }

    .brand-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    /* Mobile Navbar */
    .navbar {
        padding: 1rem 1.5rem;
    }

    .hamburger {
        display: flex;
        z-index: 1100;
        /* Above menu */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 100%;
        height: 100vh;
        background: rgba(3, 0, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@keyframes shake {

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

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

.shake-animation {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    border: 1px solid #ef4444 !important;
    /* Red border for error */
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3) !important;
}

.error-message {
    color: #ef4444;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Split Layout */
.features-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 50vh;
    /* Adjust as needed */
}

@media (max-width: 768px) {
    .features-split {
        grid-template-columns: 1fr;
    }
}

/* Ensure content section fills its column */
.content-section {
    width: 100%;
    /* Remove any margins if previously centered by margin: auto */
    margin: 0;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

/* Student Section */
.student-section {
    position: relative;
    background-image: url('student_cover.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem;
    color: #FFFFFF;
    text-align: left;
}

.student-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Black overlay */
    z-index: 1;
}

.student-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    /* Center content within the column */
}

.student-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}


/* Full Width Image Section with Overlay */
.full-width-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 20;
    /* Ensure it scrolls over fixed hero text */
}

.full-width-image.visible {
    opacity: 1;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 500px;
    /* Ensure minimum height for text */
    object-fit: cover;
}

.student-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    /* Gradient for better text contrast */
    z-index: 1;
}

.student-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 700px;
    z-index: 2;
    color: white;
    padding: 2rem;
    text-align: left;
}

.student-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.student-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    font-family: 'Outfit', sans-serif;
    color: #f1f5f9;
    /* Slightly off-white for readability */
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Mobile Adjustments for Student Section */
@media (max-width: 768px) {
    .student-text {
        position: relative;
        /* Stack on mobile if needed, or keep absolute with adjustments */
        top: auto;
        transform: none;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
        /* Darker background for mobile text */
        margin-top: -100%;
        /* Pull up to cover image */
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .full-width-image {
        display: flex;
        flex-direction: column;
    }

    .full-width-image img {
        min-height: 60vh;
    }

    .student-text h2 {
        font-size: 2rem;
    }

    .student-text p {
        font-size: 1rem;
    }

}

/* Password Visibility Toggle */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-container input {
    padding-right: 3.5rem !important;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--anim-fast);
    z-index: 5;
}

.password-toggle:hover {
    color: var(--primary);
}

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



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

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

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Final Global Responsive Fixes */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .logo {
        font-size: 1.5rem;
    }
    .navbar {
        padding: 1rem;
    }
    .nav-links.active {
        padding: 2rem;
    }
}


/* Prevent horizontal overflow globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
/* Global Loader System */
.global-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2); /* Glass effect: transparent white */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.global-loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* User Provided Preloader from Uiverse.io */
.spinner {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner div {
  position: absolute;
  width: 4px;
  height: 18px;
  background: var(--bg-dark);
  border-radius: 4px;
  transform: rotate(calc(var(--rotation) * 1deg)) translate(0, calc(var(--translation) * 1%));
  animation: spinner-fzua35 1s calc(var(--delay) * 1s) infinite ease;
}

.spinner div:nth-child(1) { --delay: 0.1; --rotation: 36; --translation: 150; }
.spinner div:nth-child(2) { --delay: 0.2; --rotation: 72; --translation: 150; }
.spinner div:nth-child(3) { --delay: 0.3; --rotation: 108; --translation: 150; }
.spinner div:nth-child(4) { --delay: 0.4; --rotation: 144; --translation: 150; }
.spinner div:nth-child(5) { --delay: 0.5; --rotation: 180; --translation: 150; }
.spinner div:nth-child(6) { --delay: 0.6; --rotation: 216; --translation: 150; }
.spinner div:nth-child(7) { --delay: 0.7; --rotation: 252; --translation: 150; }
.spinner div:nth-child(8) { --delay: 0.8; --rotation: 288; --translation: 150; }
.spinner div:nth-child(9) { --delay: 0.9; --rotation: 324; --translation: 150; }
.spinner div:nth-child(10) { --delay: 1; --rotation: 360; --translation: 150; }

@keyframes spinner-fzua35 {
  0%, 10%, 20%, 30%, 50%, 60%, 70%, 80%, 90%, 100% {
    transform: rotate(calc(var(--rotation) * 1deg)) translate(0, calc(var(--translation) * 1%));
    opacity: 1;
  }
  50% {
    transform: rotate(calc(var(--rotation) * 1deg)) translate(0, calc(var(--translation) * 1.5%));
    opacity: 0.3;
  }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    min-width: 300px;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2937;
    font-weight: 500;
    font-size: 0.95rem;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #374151;
}

/* Severity Styling */
.alert-success { background: rgba(236, 253, 245, 0.95); border-left: 5px solid #10b981; }
.alert-danger { background: rgba(254, 242, 242, 0.95); border-left: 5px solid #ef4444; }
.alert-warning { background: rgba(255, 251, 235, 0.95); border-left: 5px solid #f59e0b; }
.alert-info { background: rgba(239, 246, 255, 0.95); border-left: 5px solid #3b82f6; }

/* Animation */
@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast-item.animate-in {
    animation: toastSlideIn 0.4s ease forwards;
}
