/* ============================================
   RETRO TECH DESIGN SYSTEM (Arc/Eden Inspired)
   ============================================ */

:root {
    /* --- Palette: Cosmic Sand --- */
    --bg-primary: #F9F8F6;
    /* Vintage Paper / Warm Off-White */
    --bg-secondary: #EBEAE8;
    --bg-surface: #FFFFFF;

    --text-primary: #1C1C1E;
    /* Soft Black */
    --text-secondary: #5E5E62;
    /* Muted Grey */
    --text-tertiary: #9E9EA3;

    --accent-primary: #1C1C1E;
    /* Primary action is stark black */
    --accent-hover: #3A3A3C;

    /* Retro Accents */
    --color-orange: #FF6B4A;
    --color-purple: #9D7BFF;
    --color-teal: #4DE2C1;
    --color-blue: #3B82F6;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #FF6B4A 0%, #9D7BFF 50%, #4DE2C1 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(157, 123, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);

    /* UI Tokens */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-squish: cubic-bezier(0.5, 0, 0.2, 1.4);
    /* Compy bounce */
    --ease-smooth: cubic-bezier(0.2, 0.0, 0.2, 1);

    /* --- Spacing Standards --- */
    --section-spacing: 120px;
    --container-width: 1200px;
    --gutter-width: 24px;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
    --bg-primary: #0F0F10;
    --bg-secondary: #1A1A1C;
    --bg-surface: #252528;

    --text-primary: #F5F5F7;
    --text-secondary: #A1A1A6;
    --text-tertiary: #6C6C70;

    --accent-primary: #F5F5F7;
    --accent-hover: #D1D1D6;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(157, 123, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Dark theme specific overrides */
[data-theme="dark"] .navbar {
    background: rgba(15, 15, 16, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 15, 16, 0.95);
}

[data-theme="dark"] .hero-section {
    background-image:
        radial-gradient(circle 800px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 107, 74, 0.08) 0%,
            rgba(157, 123, 255, 0.06) 30%,
            rgba(77, 226, 193, 0.03) 60%,
            transparent 100%);
}

[data-theme="dark"] .social-proof-strip {
    background: rgba(37, 37, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mobile-menu {
    background: var(--bg-primary);
}

[data-theme="dark"] .podcast-section {
    background: #1A1A1C;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: var(--bg-surface);
}

[data-theme="dark"] .custom-select-wrapper.open .custom-select-trigger,
[data-theme="dark"] .custom-options {
    background: var(--bg-surface);
}

[data-theme="dark"] .social-links {
    background: rgba(37, 37, 40, 0.9);
}

[data-theme="dark"] .cursor-dot {
    background-color: #ffffff;
}

[data-theme="dark"] .cursor-outline {
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] body.cursor-active .cursor-outline {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Footer already dark - ensure it stays readable in dark mode */
[data-theme="dark"] .footer {
    background: #0A0A0A;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

[data-theme="dark"] .large-cta {
    background: #fff;
    color: #000;
}

[data-theme="dark"] .large-cta:hover {
    background: #eee;
    color: #000;
}

/* Ensure all white/light buttons remain readable in dark mode */
[data-theme="dark"] .primary-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
}

[data-theme="dark"] .primary-btn:hover {
    background: var(--accent-hover);
    color: var(--bg-primary);
}

[data-theme="dark"] .secondary-btn {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .secondary-btn:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

[data-theme="dark"] .card-cta-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
}

[data-theme="dark"] .card-cta-btn:hover {
    background: var(--accent-hover);
    color: var(--bg-primary);
}

[data-theme="dark"] .nav-cta {
    background: var(--text-primary);
    color: var(--bg-primary);
}

[data-theme="dark"] .nav-cta:hover {
    background: var(--accent-hover);
    color: var(--bg-primary);
}

[data-theme="dark"] .submit-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
}

[data-theme="dark"] .submit-btn:hover {
    background: var(--accent-hover);
    color: var(--bg-primary);
}

/* --- Theme Toggle Button (Vertical Pill with icons inside) --- */
.theme-toggle-btn {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    z-index: 900;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    transition: all 0.3s var(--ease-squish);
}

.theme-toggle-btn:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
    transform: translateY(-50%) scale(1.05);
}

.theme-toggle-btn:active {
    transform: translateY(-50%) scale(0.98);
}

/* Icon containers */
.theme-toggle-btn .toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s var(--ease-squish);
}

/* Sun icon (top) - active in light mode */
.theme-toggle-btn .toggle-icon-light {
    color: var(--color-orange);
    opacity: 1;
    transform: scale(1);
}

/* Moon icon (bottom) - inactive in light mode */
.theme-toggle-btn .toggle-icon-dark {
    color: var(--text-tertiary);
    opacity: 0.4;
    transform: scale(0.9);
}

/* Dark mode: swap active states */
[data-theme="dark"] .theme-toggle-btn .toggle-icon-light {
    color: var(--text-tertiary);
    opacity: 0.4;
    transform: scale(0.9);
}

[data-theme="dark"] .theme-toggle-btn .toggle-icon-dark {
    color: var(--color-purple);
    opacity: 1;
    transform: scale(1);
}

/* Dark mode button styling */
[data-theme="dark"] .theme-toggle-btn {
    background: rgba(37, 37, 40, 0.9);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Mobile positioning */
@media (max-width: 900px) {
    .theme-toggle-btn {
        left: 16px;
        top: auto;
        bottom: 96px;
        transform: none;
        width: 36px;
        height: 72px;
        padding: 10px 0;
    }

    .theme-toggle-btn:hover {
        transform: scale(1.05);
    }

    .theme-toggle-btn:active {
        transform: scale(0.98);
    }

    [data-theme="dark"] .theme-toggle-btn:hover {
        transform: scale(1.05);
    }
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

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

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s var(--ease-smooth);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    padding: 28px 48px;
    /* Even bigger */
    /* Bigger padding when at top */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-pill);
    transition: all 0.4s var(--ease-squish);
    /* Slightly smoother bounce */
}

/* Scrolled State - Shrinks to original size */
.navbar.scrolled {
    padding: 12px 24px;
    /* Original smaller size */
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque when scrolled */
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .site-logo {
    height: 40px;
    /* Shrink logo on scroll */
}

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

.logo {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 60px;
    /* Bigger default logo */
    width: auto;
    display: block;
    transition: height 0.4s var(--ease-squish);
}



.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.nav-cta) {
    font-size: 1.1rem;
    /* Bigger default text */
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.4s var(--ease-squish);
}

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

.nav-cta {
    background: var(--accent-primary);
    color: var(--bg-surface);
    padding: 12px 32px;
    /* Bigger default button */
    border-radius: var(--radius-pill);
    font-size: 1rem;
    /* Bigger default text */
    font-weight: 600;
    transition: all 0.4s var(--ease-squish);
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Scrolled Text States */
.navbar.scrolled .nav-links a:not(.nav-cta) {
    font-size: 0.9rem;
    /* Revert to smaller */
}

.navbar.scrolled .nav-cta {
    padding: 8px 20px;
    /* Revert */
    font-size: 0.85rem;
    /* Revert */
}

/* --- Hamburger Menu (Mobile Only) --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 999;
    transition: right 0.4s var(--ease-squish);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    right: 0;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px;
    text-align: center;
}

.mobile-menu-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 16px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s var(--ease-smooth);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-link:hover {
    border-bottom-color: var(--text-primary);
    transform: translateX(8px);
}

.mobile-menu-cta {
    background: var(--text-primary);
    color: var(--bg-surface);
    border-radius: var(--radius-pill);
    padding: 20px 40px;
    margin-top: 16px;
}

.mobile-menu-cta:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    border-bottom-color: transparent;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}


/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--gutter-width) 80px;
    position: relative;
    overflow: hidden;
    /* Retro solid background, relying on global noise-overlay for grain */
    background-color: var(--bg-primary);

    /* Reactive Retro Gradient */
    background-image:
        radial-gradient(circle 800px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 107, 74, 0.12) 0%,
            /* Retro Orange/Coral */
            rgba(157, 123, 255, 0.10) 30%,
            /* Soft Purple */
            rgba(77, 226, 193, 0.05) 60%,
            /* Muted Teal */
            transparent 100%);
    will-change: background-position;
}



.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: heroImageEntrance 1.2s 0.2s backwards var(--ease-squish);
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: var(--radius-lg);
    transform: scaleX(-1);
}



/* --- Capabilities Marquee --- */
.capabilities-marquee-wrapper {
    width: 100vw;
    /* Full width relative to viewport */
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 24px 0;
    margin-top: 60px;
    background: transparent;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    position: absolute;
    bottom: 0;
    left: 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: fit-content;
    gap: 40px;
    animation: marquee-scroll 120s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
}

.cap-item {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.cap-dot {
    color: var(--color-orange);
    font-size: 0.8rem;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
    /* Adjusted for multi-line readability */
    letter-spacing: -0.03em;
    color: var(--text-primary);
    animation: fadeInUp 0.8s 0.2s backwards var(--ease-squish);
}

/* Flat retro highlight - no gradient */
.highlight-text {
    color: var(--bg-primary);
    background-color: var(--text-primary);
    /* Reverse block style */
    padding: 0 12px;
    display: inline-block;
    transform: skew(-2deg);
    min-width: 4px;
    /* Ensure cursor is visible when empty */
    text-align: center;
    white-space: pre;
    position: relative;
}

/* Cursor specifically on the text block */
/* Cursor removed */
.highlight-text::after {
    display: none;
}

/* Wrapper to prevent layout shift */
.animated-text-wrapper {
    display: inline-flex;
    justify-content: flex-start;
    /* Left align to match other content */
    width: 14ch;
    /* Wide enough for 'Experiences' + buffer */
    vertical-align: bottom;
    margin: 0 0.2ch;
    position: relative;
}





.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-primary);
    /* Darker for better contrast/retro feel */
    max-width: 680px;
    margin: 0 0 48px 0;
    font-weight: 400;
    opacity: 0.8;
    animation: fadeInUp 0.8s 0.3s backwards var(--ease-squish);
}

.hero-cta-group {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s 0.4s backwards var(--ease-squish);
}

/* Button Styles */
.primary-btn {
    background: var(--text-primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s var(--ease-squish), box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    background: var(--accent-hover);
}

.btn-icon {
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

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

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: 1px solid var(--text-primary);
    cursor: pointer;
}

.secondary-btn:hover {
    background: var(--bg-surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Social Proof */
.social-proof-strip {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
    margin-bottom: 0;
    animation: fadeInUp 0.8s 0.5s backwards var(--ease-squish);
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.proof-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1;
}

.proof-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.proof-divider {
    color: var(--border-light);
    font-size: 1.5rem;
    font-weight: 300;
}

/* --- Projects Section (Bento Grid) --- */
.work-section {
    padding: var(--section-spacing) var(--gutter-width) 60px;
    max-width: var(--container-width);
    margin: 0 auto;
    scroll-margin-top: 100px;
}


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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bento-item {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 32px 24px 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-squish);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow-sm);
    min-height: 320px;
}

.bento-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}



/* Adjust grid for specific cards if needed */

.bento-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 32px;
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
}

.bento-item:hover .bento-icon {
    transform: scale(1.08);
}

.project-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.bento-info h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    white-space: nowrap;
}

.bento-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.6;
    min-height: 80px;
}

.status-pill {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.status-pill.active {
    background: rgba(77, 226, 193, 0.15);
    color: #008768;
}

.status-pill.prototype {
    background: rgba(157, 123, 255, 0.15);
    color: #6B4C9A;
}



.card-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    width: 100%;
    justify-content: center;

    /* Black Button Style */
    background: var(--text-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    transition: all 0.2s var(--ease-squish);
    border: none;
}

.card-cta-btn:hover {
    gap: 12px;
    background: var(--accent-hover);
    transform: scale(1.05);
}

.card-cta-btn i {
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.card-cta-btn:hover i {
    transform: translateX(4px);
}

/* Specific button colors removed in favor of standard black buttons */

/* Products specific background hints */
/* --- Brand Themed Cards --- */

/* --- Brand Themed Cards --- */

/* Shared Glow Structure */
.foundry-card::before,
.khaya-card::before,
.bodocs-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 140%;
    height: 140%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

/* Foundry - Blue Glow */
.foundry-card {
    background: var(--bg-surface);
}

.foundry-card::before {
    /* Single Color: Black/Grey */
    background: radial-gradient(circle at 100% 0%, rgba(0, 0, 0, 0.08) 0%, transparent 60%);
}

.foundry-card:hover {
    border-color: var(--text-primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.foundry-card .bento-icon {
    /* Keep branding icon color or switch to black if preferred, keeping blue for now as request was about BG */
    color: #3B82F6;
}

/* Khaya - Purple Glow */
.khaya-card {
    background: var(--bg-surface);
}

.khaya-card::before {
    /* Single Color: Purple */
    background: radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
}

.khaya-card:hover {
    border-color: #A855F7;
    box-shadow: 0 20px 40px -10px rgba(168, 85, 247, 0.15);
}

.khaya-card h3 {
    color: var(--text-primary);
}

/* BoDocs - Light Theme (Green) */
.bodocs-card {
    background: var(--bg-surface) !important;
    border-color: var(--border-light);
}

.bodocs-card::before {
    /* Single Color: Green */
    background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
}

.bodocs-card h3 {
    color: var(--text-primary);
}

.bodocs-card p {
    color: var(--text-secondary);
}

.bodocs-card .status-pill.active {
    background: rgba(16, 185, 129, 0.15);
    color: #008768;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.bodocs-card:hover {
    border-color: #10B981;
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.2);
}

.bodocs-card:hover .bento-arrow {
    color: var(--text-primary);
}

.bodocs-card .project-logo {
    filter: none;
}

/* --- Services Section --- */
.services-section {
    padding: var(--section-spacing) var(--gutter-width);
    max-width: var(--container-width);
    margin: 0 auto;
    scroll-margin-top: 100px;
}



.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-detail-card {
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
}

.service-detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-detail-card p {
    color: var(--text-secondary);
}

/* --- Blog Section --- */
.blog-section {
    padding: var(--section-spacing) var(--gutter-width);
    max-width: var(--container-width);
    margin: 0 auto;
    scroll-margin-top: 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    min-height: 200px;
    /* Prevent collapse during load */
    position: relative;
}

.blog-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-orange);
    animation: spin 1s ease-in-out infinite;
    z-index: 10;
}

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

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    display: block;
    transition: all 0.3s var(--ease-squish);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    font-weight: 500;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.25;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-grow: 1;
    /* Pushes Read More down */
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.blog-card:hover .read-more {
    gap: 12px;
}



/* --- Podcast Section --- */
.podcast-section {
    padding: var(--section-spacing) var(--gutter-width);
    background: #F2F1EF;
    /* Slightly darker than main bg for separation */
    border-top: 1px solid var(--border-light);
    scroll-margin-top: 100px;
}

.podcast-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.podcast-badge {
    display: inline-block;
    padding: 6px 12px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.podcast-content .section-title {
    margin-bottom: 24px;
}

.podcast-content .section-desc {
    margin-bottom: 40px;
}

.podcast-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.podcast-links i {
    font-size: 1.3em;
}

.podcast-player {
    background: #191414;
    /* Spotify Black */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}



/* --- Footer --- */
.footer {
    padding: var(--section-spacing) var(--gutter-width) 60px;
    background: #111;
    color: #fff;
    margin-top: 0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-cta {
    text-align: center;
    margin-bottom: 80px;
}

.footer-cta h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 24px;
}

.footer-copy-wrapper {
    max-width: 700px;
    margin: 0 auto 40px;
}

.footer-cta p {
    color: #999;
    font-size: 1.25rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-cta strong {
    color: #fff;
    font-weight: 500;
}

.footer-sub {
    font-size: 1.1rem !important;
    opacity: 0.7;
}

.large-cta {
    background: #fff;
    color: #000;
    font-size: 1.1rem;
    padding: 20px 48px;
}

.large-cta:hover {
    background: #eee;
    transform: scale(1.05);
}

.footer-button-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.footer-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 20px 48px;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* --- Custom Cursor --- */
body {
    cursor: none;
    /* Keep cursor hidden by default as requested, assuming we fix visibility */
}

/* Ensure cursor is visible on touch devices or if JS fails by using a media query or JS class */
@media (hover: none) {
    body {
        cursor: auto;
    }

    .custom-cursor {
        display: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #1a1a1a;
    /* Dark dot for visibility */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    pointer-events: none;
    /* Remove transition on dot position if any, standard is instant */
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    /* Subtle dark rim */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    /* Only animate visual changes, NOT position (left/top) to eliminate lag */
    transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s, backdrop-filter 0.2s, box-shadow 0.2s;
    background: transparent;
}

/* Active State (Hovering Links/Buttons) - Simple Expanded Outline */
body.cursor-active .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.5;
}

body.cursor-active .cursor-outline {
    width: 64px;
    height: 64px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.3);
    /* Simple outline, no effects */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transform: translate(-50%, -50%) scale(1);
}

/* Iframe Hover State - Restore Default Cursor */
body.iframe-hover {
    cursor: auto !important;
}

body.iframe-hover .custom-cursor {
    opacity: 0;
    /* Fade out custom cursor */
}

/* Ensure iframes themselves allow pointer events */
iframe {
    cursor: auto;
}

/* Cursor Inverted State (For Dark Backgrounds like Footer) */
body.cursor-inverted .cursor-dot {
    background-color: #ffffff;
}

body.cursor-inverted .cursor-outline {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Force Dark Cursor (Overrides Inverted, e.g. for white buttons in footer) */
body.cursor-force-dark .cursor-dot {
    background-color: #1a1a1a !important;
}

body.cursor-force-dark .cursor-outline {
    border-color: rgba(0, 0, 0, 0.3) !important;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    /* Center the copyright */
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
}

.footer-brand p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* --- Scroll Animation Classes --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

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

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

/* --- Projects Section (Standard Grid) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 40px;
}

.bento-item {
    height: 420px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

/* Hover Effects */
.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: var(--text-primary);
    z-index: 2;
}

/* Retro Scanline Overlay */
.bento-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
}

.bento-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 11;
}





/* Mobile Adjustments */


/* Fixed Social Sidebar (Desktop) */
.social-links {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 24px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.2s cubic-bezier(0.5, 0, 0.2, 1.4);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.social-links a:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.social-links a[aria-label="YouTube"]:hover {
    color: #FF0000;
}

.social-links a[aria-label="Spotify"]:hover {
    color: #1DB954;
}

.social-links a[aria-label="Product Hunt"]:hover {
    color: #DA552F;
}

/* Tooltip Styles */
.social-links a {
    position: relative;
    /* Ensure specific stacking context */
}

.social-links a::after {
    content: attr(aria-label);
    position: absolute;
    right: 58px;
    /* Offset to the left of the icon */
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--text-primary);
    color: var(--bg-surface);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.2, 0.0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-links a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    /* JS toggles 'flex' */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    display: flex;
    /* Override none */
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-card {
    background: var(--bg-surface);
    padding: 48px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s var(--ease-squish);
}

.modal.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 32px;
}

.modal-header h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

/* --- Modal Tabs --- */
.modal-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: #fff;
}

/* Validation Error Style */
.input-error,
.custom-select-wrapper.input-error .custom-select-trigger,
.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #D34526;
    background-color: rgba(255, 107, 74, 0.05);
}

.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-tertiary);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--text-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: var(--accent-hover);
}

.form-message.success {
    color: #008768;
    background: rgba(77, 226, 193, 0.1);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.form-message.error {
    color: #D34526;
    background: rgba(255, 107, 74, 0.1);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

/* --- Anim --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
        filter: blur(12px);
    }

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

/* --- Responsive --- */
@media (max-width: 900px) {

    /* --- Mobile Navigation --- */
    .navbar {
        width: 95%;
        padding: 10px 16px;
        top: 16px;
    }

    .site-logo {
        height: 32px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* --- Hero Section Mobile --- */
    .hero-section {
        padding: 100px 16px 60px;
        min-height: auto;
    }

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

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

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 100%;
    }



    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .animated-text-wrapper {
        width: 10ch;
        justify-content: center;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
        line-height: 1.5;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 48px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    /* --- Social Proof Strip Mobile --- */
    .social-proof-strip {
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
        margin-bottom: 48px;
    }

    .proof-divider {
        display: none;
    }

    .proof-item {
        width: 100%;
    }

    .proof-number {
        font-size: 1.5rem;
    }

    .proof-label {
        font-size: 0.65rem;
    }

    /* --- Capabilities Marquee Mobile --- */
    .capabilities-marquee-wrapper {
        padding: 16px 0;
        margin-top: 40px;
        position: relative;
        bottom: auto;
    }

    .cap-item {
        font-size: 0.9rem;
    }

    .marquee-group {
        gap: 24px;
    }

    /* --- Section Spacing Mobile --- */
    .work-section,
    .services-section,
    .blog-section,
    .podcast-section {
        padding: 60px 16px;
    }

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

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 8px;
    }

    .section-desc {
        font-size: 1rem;
    }

    /* --- Projects Grid Mobile --- */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 20px;
    }

    .bento-item {
        min-height: 280px;
        height: auto;
        padding: 28px;
    }



    .bento-icon {
        font-size: 2rem;
        margin-bottom: 24px;
    }

    .bento-info h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        white-space: normal;
    }

    .bento-info p {
        font-size: 0.95rem;
        min-height: auto;
        margin-bottom: 12px;
    }

    .status-pill {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .bento-arrow {
        font-size: 1.1rem;
    }

    /* --- Services Section Mobile --- */
    .services-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-detail-card {
        padding: 20px 0;
    }

    .service-detail-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .service-detail-card p {
        font-size: 0.95rem;
    }

    /* --- Blog Section Mobile --- */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card {
        padding: 24px;
    }

    .blog-card h3 {
        font-size: 1.3rem;
    }

    .blog-card p {
        font-size: 0.95rem;
    }

    /* --- Podcast Section Mobile --- */
    .podcast-section {
        padding: 60px 16px;
    }

    .podcast-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .podcast-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
        margin-bottom: 16px;
    }

    .podcast-content .section-title {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .podcast-content .section-desc {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .podcast-links {
        gap: 12px;
    }

    .podcast-links .primary-btn,
    .podcast-links .secondary-btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 12px 24px;
    }

    /* --- Footer Mobile --- */
    .footer {
        padding: 60px 16px 40px;
        border-radius: 0;
    }

    .footer-cta {
        margin-bottom: 60px;
    }

    .footer-cta h2 {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }

    .footer-cta p {
        font-size: 1rem;
    }

    .footer-sub {
        font-size: 0.95rem !important;
    }

    .footer-button-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .large-cta,
    .footer-btn-outline {
        width: 100%;
        padding: 16px 32px;
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        padding-top: 32px;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    /* --- Social Links Mobile --- */
    .social-links {
        position: static;
        flex-direction: row;
        transform: none;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 16px;
    }

    .social-links a {
        font-size: 1.1rem;
        width: 36px;
        height: 36px;
    }

    /* --- Modal Mobile --- */
    .modal-card {
        padding: 32px 24px;
        width: 95%;
        max-width: 500px;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        font-size: 1.75rem;
    }

    .modal-header {
        margin-bottom: 24px;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .modal-header p {
        font-size: 0.95rem;
    }

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

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 14px;
        font-size: 0.95rem;
    }

    /* --- Custom Dropdown Mobile --- */
    .custom-select-trigger {
        padding: 14px;
        font-size: 0.95rem;
    }

    .custom-option {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    /* --- Touch Optimization --- */
    a,
    button,
    .custom-select-trigger,
    .custom-option {
        min-height: 44px;
        min-width: 44px;
    }

    /* Increase tap target spacing */
    .hero-cta-group a {
        margin: 4px 0;
    }

    /* Remove hover effects on touch devices */
    @media (hover: none) {
        .bento-item:hover {
            transform: none;
            box-shadow: var(--shadow-sm);
        }

        .primary-btn:hover,
        .secondary-btn:hover {
            transform: none;
        }
    }
}

/* --- Smaller Mobile Devices (< 480px) --- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .bento-info h3 {
        font-size: 1.3rem;
    }

    .modal-card {
        padding: 24px 16px;
    }

    .footer-cta h2 {
        font-size: 1.5rem;
    }
}



/* --- Custom Dropdown --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select-trigger:hover {
    border-color: var(--text-secondary);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--text-primary);
    background: #fff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--text-primary);
    border-top: none;
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    max-height: 240px;
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid var(--border-light);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover,
.custom-option.selected {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Arrow rotation */
.custom-select-wrapper .select-icon {
    transition: transform 0.2s ease;
}

.custom-select-wrapper.open .select-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* --- Leadership On-Demand Page Styles --- */
.hero-section-landing {
    min-height: 80vh;
    padding-top: 160px;
}

.hero-landing-container {
    display: block;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-landing-subtitle {
    margin: 0 auto 48px auto;
}

.feature-list {
    list-style: none;
    color: var(--text-secondary);
    margin-top: 16px;
    padding: 0;
}

.feature-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.feature-list li i {
    margin-right: 8px;
}

.process-step {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-secondary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.cta-box {
    background: var(--bg-surface);
    padding: 60px 24px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Scroll To Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    left: 32px;
    /* Left aligned as requested */
    width: 48px;
    height: 48px;
    background: var(--text-primary);
    color: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    /* Initially hidden */
    transform: translateY(20px);
    transition: all 0.3s var(--ease-squish);
    z-index: 900;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top i {
    font-size: 1.2rem;
}

.scroll-to-top.inverted {
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    /* Lighter shadow for dark bg if needed, or keep standard */
}