/**
 * CRAEON DESIGN SYSTEM
 * Comprehensive CSS variables for consistent design across the platform
 * Includes colors, typography, spacing, animations, and responsive breakpoints
 */

:root {
    /* === COLOR SYSTEM === */
    /* New Design System Palette */

    /* Neutrals (Warm/Organic) */
    --color-ivory-light: #FAFAF7;
    --color-ivory-medium: #F0F0EB;
    --color-ivory-dark: #E5E4DF;

    /* Neutrals (Cool/Slate) */
    --color-slate-light: #40403E;
    --color-slate-medium: #262625;
    --color-slate-dark: #191919;

    /* Grays (Cloud) */
    --color-cloud-light: #BFBFBA;
    --color-cloud-medium: #91918D;
    --color-cloud-dark: #666663;

    /* Accents */
    --color-book-cloth: #CC7B5C;
    --color-kraft: #D4A27F;
    --color-manilla: #EBDBBC;
    --color-focus: #61AAF2;
    --color-error-new: #BF4D43;

    /* Semantic Mapping */
    --color-primary: var(--color-slate-dark);
    --color-secondary: var(--color-ivory-light);
    --color-accent: var(--color-book-cloth);
    --color-success: #059669;
    /* Keeping standard for now */
    --color-warning: var(--color-kraft);
    --color-error: var(--color-error-new);

    /* Refined Neutral Palette (Mapped to new system) */
    --color-white: #ffffff;
    --color-gray-25: var(--color-ivory-light);
    --color-gray-50: var(--color-ivory-medium);
    --color-gray-100: var(--color-ivory-dark);
    --color-gray-200: #d1d5db;
    /* Fallback/Bridge */
    --color-gray-300: var(--color-cloud-light);
    --color-gray-400: var(--color-cloud-medium);
    --color-gray-500: var(--color-cloud-dark);
    --color-gray-600: var(--color-slate-light);
    --color-gray-700: var(--color-slate-medium);
    --color-gray-800: var(--color-slate-dark);
    --color-gray-900: #0f172a;
    /* Deepest dark */
    --color-gray-950: #020617;

    /* === TYPOGRAPHY SYSTEM === */
    /* Font families, weights, and responsive type scale */
    --font-primary: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', monospace;

    /* Refined Font Weights */
    --font-weight-thin: 100;
    --font-weight-extralight: 200;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    /* Harmonious Type Scale */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */
    --text-6xl: 3.75rem;
    /* 60px */
    --text-7xl: 4.5rem;
    /* 72px */
    --text-8xl: 6rem;
    /* 96px */
    --text-9xl: 8rem;
    /* 128px */

    /* === SPACING SYSTEM === */
    /* 4px base grid system for consistent spacing throughout the application */
    --space-px: 1px;
    --space-0: 0;
    --space-0-5: 0.125rem;
    /* 2px */
    --space-1: 0.25rem;
    /* 4px */
    --space-1-5: 0.375rem;
    /* 6px */
    --space-2: 0.5rem;
    /* 8px */
    --space-2-5: 0.625rem;
    /* 10px */
    --space-3: 0.75rem;
    /* 12px */
    --space-3-5: 0.875rem;
    /* 14px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-7: 1.75rem;
    /* 28px */
    --space-8: 2rem;
    /* 32px */
    --space-9: 2.25rem;
    /* 36px */
    --space-10: 2.5rem;
    /* 40px */
    --space-11: 2.75rem;
    /* 44px */
    --space-12: 3rem;
    /* 48px */
    --space-14: 3.5rem;
    /* 56px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */
    --space-28: 7rem;
    /* 112px */
    --space-32: 8rem;
    /* 128px */
    --space-36: 9rem;
    /* 144px */
    --space-40: 10rem;
    /* 160px */
    --space-44: 11rem;
    /* 176px */
    --space-48: 12rem;
    /* 192px */
    --space-52: 13rem;
    /* 208px */
    --space-56: 14rem;
    /* 224px */
    --space-60: 15rem;
    /* 240px */
    --space-64: 16rem;
    /* 256px */
    --space-72: 18rem;
    /* 288px */
    --space-80: 20rem;
    /* 320px */
    --space-96: 24rem;
    /* 384px */

    /* === LAYOUT SYSTEM === */
    /* Container sizes, header heights, and layout dimensions */
    --container-xs: 20rem;
    /* 320px */
    --container-sm: 24rem;
    /* 384px */
    --container-md: 28rem;
    /* 448px */
    --container-lg: 32rem;
    /* 512px */
    --container-xl: 36rem;
    /* 576px */
    --container-2xl: 42rem;
    /* 672px */
    --container-3xl: 48rem;
    /* 768px */
    --container-4xl: 56rem;
    /* 896px */
    --container-5xl: 64rem;
    /* 1024px */
    --container-6xl: 72rem;
    /* 1152px */
    --container-7xl: 80rem;
    /* 1280px */
    --container-max: 90rem;
    /* 1440px */

    --header-height: 4.5rem;
    /* 72px */
    --sidebar-width: 18rem;
    /* 288px */

    /* === BORDER RADIUS === */
    /* Consistent border radius values for UI elements */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    /* 4px (Increased slightly) */
    --radius: 0.5rem;
    /* 8px (Standard) */
    --radius-md: 0.75rem;
    /* 12px */
    --radius-lg: 1rem;
    /* 16px */
    --radius-xl: 1.5rem;
    /* 24px */
    --radius-2xl: 2rem;
    /* 32px */
    --radius-3xl: 2.5rem;
    /* 40px */
    --radius-full: 9999px;

    /* === SHADOW SYSTEM === */
    /* Elevation shadows and colored shadows for depth and focus states */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Colored Shadows */
    --shadow-accent: 0 10px 15px -3px rgba(204, 123, 92, 0.2), 0 4px 6px -4px rgba(204, 123, 92, 0.2);
    --shadow-success: 0 10px 15px -3px rgb(5 150 105 / 0.1), 0 4px 6px -4px rgb(5 150 105 / 0.1);
    --shadow-warning: 0 10px 15px -3px rgb(217 119 6 / 0.1), 0 4px 6px -4px rgb(217 119 6 / 0.1);
    --shadow-error: 0 10px 15px -3px rgb(220 38 38 / 0.1), 0 4px 6px -4px rgb(220 38 38 / 0.1);

    /* === ANIMATION SYSTEM === */
    /* Gentle, consistent animations and transitions */
    --duration-200: 200ms;
    --duration-300: 300ms;
    --duration-400: 400ms;
    --duration-600: 600ms;

    /* Gentle Easing Functions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-gentle: cubic-bezier(0.25, 0.1, 0.25, 1);

    /* Consistent Transitions */
    --transition-fast: 200ms var(--ease-out);
    --transition-base: 300ms var(--ease-in-out);
    --transition-slow: 400ms var(--ease-gentle);
    --transition-colors: color 200ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
    --transition-opacity: opacity 300ms var(--ease-out);
    --transition-transform: transform 300ms var(--ease-out);
}

/* === THEME VARIANTS === */
/* Dark Theme */
body.dark-theme {
    --color-primary: #ffffff;
    --color-secondary: var(--color-slate-dark);
    --color-white: var(--color-slate-dark);

    --color-gray-25: var(--color-slate-dark);
    --color-gray-50: var(--color-slate-medium);
    --color-gray-100: #333333;
    --color-gray-200: #444444;
    --color-gray-300: var(--color-cloud-dark);
    --color-gray-400: var(--color-cloud-medium);
    --color-gray-500: var(--color-cloud-light);
    --color-gray-600: var(--color-ivory-dark);
    --color-gray-700: var(--color-ivory-medium);
    --color-gray-800: var(--color-ivory-light);
    --color-gray-900: #ffffff;
    --color-gray-950: #ffffff;

    background: var(--color-slate-dark);
    color: var(--color-ivory-light);
}

/* Light Theme */
body.light-theme {
    --color-primary: var(--color-slate-dark);
    --color-secondary: var(--color-ivory-light);
    background: var(--color-ivory-light);
    color: var(--color-slate-dark);
}



body.dark-theme .header {
    background: rgba(10, 10, 10, 0.9);
    border-bottom-color: var(--color-gray-200);
    backdrop-filter: blur(20px);
}

body.dark-theme .hero-section {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
}

body.dark-theme .menu {
    background: var(--color-gray-100);
    border-right-color: var(--color-gray-200);
}

body.dark-theme .menu-close-btn {
    color: var(--color-gray-600);
}

body.dark-theme .menu-close-btn:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-800);
}

/* Light Mode Specific Styles */
body:not(.dark-theme) .menu-trigger {
    background: var(--color-gray-100);
    border-right-color: var(--color-gray-300);
}

body:not(.dark-theme) .bars>span {
    background: var(--color-gray-700);
}

body:not(.dark-theme) .menu-trigger>p {
    color: var(--color-gray-700);
}

body:not(.dark-theme) .menu-close-btn {
    color: var(--color-gray-700);
}

body:not(.dark-theme) .menu-close-btn:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-900);
}

/* Waiting List Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

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

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 360px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

body.dark-theme .modal-content {
    background: #111;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
    border-color: #333;
}

.waiting-list-form {
    padding: 2rem;
    text-align: center;
    position: relative;
}

.waiting-list-form .close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 1.75rem;
    height: 1.75rem;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
}

.waiting-list-form .close-btn:hover {
    background: #f0f0f0;
    color: #000;
}

body.dark-theme .waiting-list-form .close-btn {
    color: #ccc;
}

body.dark-theme .waiting-list-form .close-btn:hover {
    background: #333;
    color: #fff;
}

.waiting-list-form h2 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

body.dark-theme .waiting-list-form h2 {
    color: #fff;
}

.waiting-list-form p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

body.dark-theme .waiting-list-form p {
    color: #ccc;
}

.waiting-list-form input,
.waiting-list-form button[type="submit"] {
    margin-top: 0.75rem;
}

.waiting-list-input {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    background: #fff;
}

.waiting-list-input:focus {
    outline: none;
    border-color: #000;
}

body.dark-theme .waiting-list-input {
    background: #222;
    border-color: #444;
    color: #fff;
}

body.dark-theme .waiting-list-input:focus {
    border-color: #fff;
}

.waiting-list-form button[type="submit"] {
    padding: 0.75rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.waiting-list-form button[type="submit"]:hover {
    background: #333;
}

body.dark-theme .waiting-list-form button[type="submit"] {
    background: #fff;
    color: #000;
}

body.dark-theme .waiting-list-form button[type="submit"]:hover {
    background: #ccc;
}

body.dark-theme .modal-content {
    background: var(--color-gray-100);
}

body.dark-theme .modal-close-btn {
    color: var(--color-gray-600);
}

body.dark-theme .modal-close-btn:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-800);
}

body.dark-theme .waiting-list-input {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
    color: var(--color-gray-900);
}

body.dark-theme .menu>ul>li {
    color: var(--color-gray-700);
}

body.dark-theme .menu>ul>li>p {
    color: var(--color-gray-700);
}

body.dark-theme .card-front {
    background: var(--color-gray-100);
    border-color: var(--color-gray-200);
}

body.dark-theme .card-back {
    background: var(--color-gray-50);
    border-color: var(--color-gray-200);
}

body.dark-theme .footer {
    background: var(--color-gray-100);
    border-top-color: var(--color-gray-200);
}

body.dark-theme .investment-overlay {
    background: var(--color-gray-50);
}

@media (max-width: 768px) {
    .investment-overlay {
        left: 0;
        width: 100%;
    }
}

body.dark-theme .close-btn {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
}

body.dark-theme .close-btn:hover {
    background: var(--color-gray-300);
    color: var(--color-gray-800);
}

body.dark-theme .newsletter-input {
    background: var(--color-gray-100);
    border-color: var(--color-gray-300);
    color: var(--color-gray-900);
}

body.dark-theme .newsletter-input::placeholder {
    color: var(--color-gray-500);
}

body.dark-theme .profile-btn,
body.dark-theme .theme-btn,
body.dark-theme .accessibility-btn {
    border-color: var(--color-gray-300);
    color: var(--color-gray-700);
}

body.dark-theme .profile-btn:hover,
body.dark-theme .theme-btn:hover,
body.dark-theme .accessibility-btn:hover {
    background: var(--color-gray-200);
    border-color: var(--color-gray-400);
    color: var(--color-gray-800);
}

body.dark-theme .login-section,
body.dark-theme .upgrade-section {
    border-top-color: var(--color-gray-200);
}

body.dark-theme .login-btn,
body.dark-theme .signup-btn {
    border-color: var(--color-gray-300);
    color: var(--color-gray-700);
}

body.dark-theme .login-btn:hover,
body.dark-theme .signup-btn:hover {
    background: var(--color-gray-200);
    border-color: var(--color-gray-400);
    color: var(--color-gray-800);
}

body.dark-theme .theme-btn.active,
body.dark-theme .accessibility-btn.active {
    background: var(--color-gray-900);
    color: var(--color-gray-50);
    border-color: var(--color-gray-900);
}



/* Large Font Size */
body.large-font {
    font-size: 1.125rem;
}

body.large-font .hero-heading {
    font-size: clamp(3rem, 7vw, 5rem);
}

body.large-font .hero-subtext {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* Reduced Motion */
/* Accessibility Improvements */


/* Focus States for Better Accessibility */
*:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-7xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-gray-100: #e0e0e0;
        --color-gray-200: #c0c0c0;
        --color-gray-300: #a0a0a0;
        --color-gray-600: #404040;
        --color-gray-700: #202020;
        --color-gray-800: #101010;
    }

    .card-front,
    .card-back {
        border-width: 2px;
    }

    .filter {
        border-width: 2px;
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background: #fff;
    color: #000;
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition-colors);
}

body.dark-theme {
    background: #000;
    color: #fff;
}

/* === SIDE MENU SYSTEM === */
/* Fixed side menu with smooth animations and interactive elements */
.menu-trigger {
    position: fixed;
    top: 0;
    left: 0;
    width: 3rem;
    height: 100vh;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.9);
    border-right: 1px solid #333;
    backdrop-filter: blur(10px);
}

body:not(.dark-theme) .menu-trigger {
    background: #fff;
    border-right: 1px solid #e0e0e0;
}

body:not(.dark-theme) .bars>span {
    background: #000;
}

.menu-trigger:hover .bars>span {
    background: #333;
}

body:not(.dark-theme) .menu-trigger:hover .bars>span {
    background: #f5f5f0;
}

.menu-trigger.active .bars>span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
    background: #ffd700;
}

.menu-trigger.active .bars>span:nth-child(2) {
    opacity: 0;
}

.menu-trigger.active .bars>span:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
    background: #ffd700;
}

.menu-trigger>p {
    display: none;
}

.bars {
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 10;
}

.bars>span {
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: var(--transition-colors);
}

.menu {
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    color: #000;
    height: 100vh;
    border-right: 1px solid #e0e0e0;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding: 4rem 2rem 2rem;
    width: 18rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1200;
}

body.dark-theme .menu {
    background: #111;
    color: #fff;
    border-right: 1px solid #333;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.menu.open {
    transform: translateX(0);
}

.menu-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.menu-close-btn:hover {
    background: #f0f0f0;
    color: #000;
}

body.dark-theme .menu-close-btn:hover {
    background: #333;
    color: #fff;
}

.menu>ul:hover>li:not(:hover) {
    color: rgba(249, 249, 237, 0.5);
}

.menu>ul>li {
    color: #000;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 1rem 0;
    width: 100%;
    overflow: hidden;
    transition: color 0.2s ease;
}

body.dark-theme .menu>ul>li {
    color: #fff;
}

.menu>ul>li:first-of-type {
    padding-top: 0;
}

.menu>ul>li:last-of-type {
    padding-bottom: 0;
}

.menu>ul>li>p {
    opacity: 1;
    transform: translateY(0);
    transition: color 0.2s ease;
    color: #000;
}

body.dark-theme .menu>ul>li>p {
    color: #fff;
}

.menu>ul>li:hover>p {
    color: #666;
}

body.dark-theme .menu>ul>li:hover>p {
    color: #ccc;
}

/* Profile Section */
.profile-section {
    border-top: 1px solid var(--color-gray-200);
    margin-top: var(--space-6);
    padding-top: var(--space-6) !important;
}

.profile-options {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.profile-btn {
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--color-gray-300);
    color: var(--color-gray-700);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-btn:hover {
    background: var(--color-gray-900);
    color: var(--color-white);
    border-color: var(--color-gray-900);
}

/* Login Section */
.login-section {
    border-top: 1px solid var(--color-gray-200);
    margin-top: var(--space-6);
    padding-top: var(--space-6) !important;
}

.login-options {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.login-btn,
.signup-btn {
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--color-gray-300);
    color: var(--color-gray-700);
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.login-btn:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

.signup-btn:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

/* Upgrade Section */
.upgrade-section {
    border-top: 1px solid var(--color-gray-200);
    margin-top: var(--space-6);
    padding-top: var(--space-6) !important;
}

.upgrade-options {
    margin-top: var(--space-2);
}

.upgrade-btn {
    width: 100%;
    padding: var(--space-3);
    background: linear-gradient(135deg, var(--color-book-cloth) 0%, var(--color-kraft) 100%);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.upgrade-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Theme Section */
.theme-section {
    border-top: 1px solid var(--color-gray-200);
    margin-top: var(--space-6);
    padding-top: var(--space-6) !important;
}

.theme-options {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.theme-btn {
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--color-gray-300);
    color: var(--color-gray-700);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-btn:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

.theme-btn.active {
    background: var(--color-gray-900);
    color: var(--color-white);
    border-color: var(--color-gray-900);
}

/* Accessibility Section */
.accessibility-section {
    border-top: 1px solid var(--color-gray-200);
    margin-top: var(--space-6);
    padding-top: var(--space-6) !important;
}

.accessibility-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.accessibility-btn {
    padding: var(--space-2);
    background: transparent;
    border: 1px solid var(--color-gray-300);
    color: var(--color-gray-700);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.accessibility-btn:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

.accessibility-btn.active {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* Newsletter Section */
.newsletter-section {
    border-top: 1px solid var(--color-gray-200);
    margin-top: var(--space-6);
    padding-top: var(--space-6) !important;
}

.newsletter-form {
    margin-top: var(--space-2);
}

.newsletter-input {
    width: 100%;
    padding: var(--space-2);
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    color: var(--color-gray-900);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    margin-bottom: var(--space-2);
    transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-input::placeholder {
    color: var(--color-gray-400);
}

.newsletter-btn {
    width: 100%;
    padding: var(--space-2);
    background: var(--color-gray-900);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-btn:hover {
    background: var(--color-gray-800);
}

/* === HEADER & NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-theme .header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

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

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 500;
    color: #5f6368;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.2s ease;
}

.logo:hover {
    color: #202124;
}

.logo-icon {
    color: #4285f4;
    display: flex;
    align-items: center;
}

body.dark-theme .logo {
    color: #e8eaed;
}

.nav-link {
    color: #5f6368;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #202124;
}

body.dark-theme .nav-link {
    color: #9aa0a6;
}

body.dark-theme .nav-link:hover {
    color: #e8eaed;
}

.nav-item-dropdown {
    display: flex;
    align-items: center;
}

.chevron {
    font-size: 12px;
    margin-left: 4px;
    color: #5f6368;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a73e8;
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #1557b0;
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fff;
    overflow: hidden;
    padding-top: 80px;
}

body.dark-theme .hero-section {
    background: #202124;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: url('../assets/images/rwanda_urban_sketch.png');
    background-size: cover;
    background-position: center;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: #4285f4;
    opacity: 0.2;
}

.p1 {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 20%;
}

.p2 {
    width: 6px;
    height: 6px;
    top: 30%;
    right: 25%;
    background: #ea4335;
}

.p3 {
    width: 3px;
    height: 3px;
    bottom: 40%;
    left: 30%;
    background: #fbbc04;
}

.p4 {
    width: 5px;
    height: 5px;
    top: 15%;
    right: 15%;
    background: #34a853;
}

.p5 {
    width: 4px;
    height: 4px;
    bottom: 20%;
    right: 35%;
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    color: #5f6368;
}

body.dark-theme .hero-logo {
    color: #e8eaed;
}

.hero-brand {
    font-size: 24px;
    font-weight: 400;
}

.hero-title {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #202124;
    letter-spacing: -0.5px;
}

body.dark-theme .hero-title {
    color: #e8eaed;
}

.subtitle {
    font-size: 18px;
    color: #5f6368;
    margin-bottom: 48px;
    font-weight: 400;
}

body.dark-theme .subtitle {
    color: #9aa0a6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.redirect-text {
    font-size: 14px;
    color: #5f6368;
}

.link-blue {
    color: #1a73e8;
    text-decoration: none;
}

.hero-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.hero-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.separator {
    color: #dadce0;
}

/* Premium Animation Keyframes */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(3px);
    }

    40% {
        transform: translateY(1px);
    }

    60% {
        transform: translateY(2px);
    }
}

@keyframes slideUp {
    from {
        opacity: var(--initial-opacity, 0);
        transform: var(--initial-transform, translateY(2rem));
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-2rem);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(2rem);
    }

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

/* Animation Classes */
.animate-slide-up {
    animation: slideUp var(--duration-700) var(--ease-out) forwards;
    animation-delay: var(--animation-delay, 0ms);
}

.animate-fade-in {
    animation: fadeIn var(--duration-500) var(--ease-out) forwards;
    animation-delay: var(--animation-delay, 0ms);
}

.animate-scale-in {
    animation: scaleIn var(--duration-500) var(--ease-back) forwards;
    animation-delay: var(--animation-delay, 0ms);
}

.animate-slide-in-left {
    animation: slideInLeft var(--duration-500) var(--ease-out) forwards;
    animation-delay: var(--animation-delay, 0ms);
}

.animate-slide-in-right {
    animation: slideInRight var(--duration-500) var(--ease-out) forwards;
    animation-delay: var(--animation-delay, 0ms);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .animate-slide-up,
    .animate-fade-in,
    .animate-scale-in,
    .animate-slide-in-left,
    .animate-slide-in-right {
        animation: fadeIn var(--duration-150) var(--ease-linear) forwards;
    }
}

/* === PORTFOLIO GRID === */
/* Responsive grid layout for portfolio cards with consistent spacing */
.portfolio-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: transparent;
    position: relative;
}

body.dark-theme .portfolio-section {
    background: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.portfolio-card {
    padding: var(--space-8);
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.portfolio-card:hover {
    border-color: #e0e0e0;
    transform: translateY(-1px);
}

body.dark-theme .portfolio-card {
    background: #111;
    border-color: #333;
}

body.dark-theme .portfolio-card:hover {
    border-color: #555;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    background: #f8f8f8;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

body.dark-theme .tag {
    color: #ccc;
    background: #222;
}

.portfolio-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    color: #000;
}

body.dark-theme .portfolio-card h3 {
    color: #fff;
}

.subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 1rem;
}

body.dark-theme .subtitle {
    color: #ccc;
}

.portfolio-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

body.dark-theme .portfolio-card p {
    color: #ccc;
}



.read-more-btn {
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.read-more-btn:hover {
    background: #333;
}

body.dark-theme .read-more-btn {
    background: #fff;
    color: #000;
}

body.dark-theme .read-more-btn:hover {
    background: #ccc;
}

/* View More Projects Card */
.view-more-card {
    border: 2px dashed #e0e0e0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.dark-theme .view-more-card {
    border-color: #444;
}

.view-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.plus-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

body.dark-theme .plus-icon {
    background: #222;
}

.plus-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #666;
}

body.dark-theme .plus-icon svg {
    color: #ccc;
}

.view-more-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.view-more-card p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* === FOOTER === */
/* Simple footer with contact information and copyright */
.footer {
    padding: var(--space-8);
    background: var(--color-ivory-light);
}

body.dark-theme .footer {
    background: var(--color-slate-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-7xl);
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    gap: var(--space-6);
}

.footer-nav a {
    color: var(--color-slate-medium);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-slate-dark);
}

body.dark-theme .footer-nav a {
    color: var(--color-ivory-medium);
}

body.dark-theme .footer-nav a:hover {
    color: var(--color-ivory-light);
}

.footer-logo {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-slate-dark);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--color-slate-medium);
}

body.dark-theme .footer-logo {
    color: var(--color-ivory-light);
}

body.dark-theme .footer-copyright {
    color: var(--color-ivory-medium);
}

/* === FOOTER COMPONENTS === */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-8);
    max-width: var(--container-7xl);
    margin: 0 auto;
    padding: var(--space-8) 0;
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-slate-dark);
    text-decoration: none;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.footer-nav a {
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.footer-credits {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    margin-top: var(--space-8);
    width: 100%;
}

/* Dark theme overrides */
body.dark-theme .footer-brand .footer-logo {
    color: #fff;
}

body.dark-theme .footer-nav a:hover {
    color: var(--color-focus);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* === MODERN THESIS OVERLAY === */
.investment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.investment-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.overlay-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
}

.overlay-close {
    position: absolute;
    top: 1rem;
    right: 50%;
    transform: translateX(50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(50%) scale(1.1);
}

.overlay-content {
    background: #fff;
    border-radius: 1rem;
    width: 100%;
    max-width: 1400px;
    height: 85vh;
    display: block;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

body.dark-theme .overlay-content {
    background: #111;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.overlay-sidebar {
    position: fixed;
    top: 50%;
    left: 5rem;
    transform: translateY(-50%);
    background: rgba(248, 249, 250, 0.95);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: 1001;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-width: 200px;
}

body.dark-theme .overlay-sidebar {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.overlay-sidebar.hidden {
    opacity: 0;
    visibility: hidden;
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.overlay-nav {
    position: relative;
}

.flash-line {
    position: absolute;
    left: 1.5rem;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #007bff, transparent);
    z-index: 10;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
}

body.dark-theme .flash-line {
    background: linear-gradient(to bottom, transparent, #00d4ff, transparent);
}

.flash-line.animate {
    animation: flashAnimation 0.6s ease-out;
}

@keyframes flashDown {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }

    100% {
        opacity: 0;
        transform: scaleY(1);
    }
}

@keyframes flashUp {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }

    100% {
        opacity: 0;
        transform: scaleY(1);
    }
}

.flash-line.down {
    animation: flashDown 0.6s ease-out;
}

.flash-line.up {
    animation: flashUp 0.6s ease-out;
}

.nav-item {
    padding: 0.5rem 0.75rem;
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    margin: 0;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 3;
}

body.dark-theme .nav-item::before {
    background: rgba(255, 255, 255, 0.3);
}

.nav-item:hover {
    color: #000;
    transform: translateX(4px);
}

.nav-item:hover::before {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.5);
}

.nav-item.active {
    color: #000;
    font-weight: 600;
    background: rgba(0, 123, 255, 0.1);
}

.nav-item.active::before {
    background: #007bff;
    transform: translateY(-50%) scale(1.5);
}

body.dark-theme .nav-item {
    color: #ccc;
}

body.dark-theme .nav-item:hover {
    color: #fff;
}

body.dark-theme .nav-item:hover::before {
    background: rgba(255, 255, 255, 0.6);
}

body.dark-theme .nav-item.active {
    color: #fff;
    background: rgba(0, 212, 255, 0.1);
}

body.dark-theme .nav-item.active::before {
    background: #00d4ff;
}

.overlay-main {
    padding: 3rem 2rem 3rem 6rem;
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.overlay-main::-webkit-scrollbar {
    width: 6px;
}

.overlay-main::-webkit-scrollbar-track {
    background: transparent;
    margin-right: -10px;
}

.overlay-main::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

body.dark-theme .overlay-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.overlay-main::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-theme .overlay-main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.overlay-main {
    scrollbar-gutter: stable;
    padding-right: 1rem;
}

.overlay-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

body.dark-theme .overlay-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.overlay-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #000;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

body.dark-theme .overlay-header h1 {
    color: #fff;
}

.overlay-text {
    flex: 1;
    overflow-y: auto;
    transition: all 0.4s ease;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding: 0;
}

.content-visual {
    flex: 0 0 250px;
    height: 250px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

body.dark-theme .content-visual {
    background: rgba(255, 255, 255, 0.02);
}

.content-text {
    flex: 1;
    min-width: 0;
    line-height: 1.8;
}

.section-number {
    font-size: 3rem;
    font-weight: 200;
    color: rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    line-height: 1;
    text-align: center;
}

body.dark-theme .section-number {
    color: rgba(255, 255, 255, 0.1);
}

.overlay-text h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 2rem;
    margin-top: 0;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.overlay-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.content-text strong {
    font-weight: 600;
    color: #000;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

body.dark-theme .content-text strong {
    color: #fff;
}

.content-text ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.content-text li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.content-text li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: #007bff;
    font-weight: bold;
    font-size: 1.2rem;
}

body.dark-theme .content-text li::before {
    color: #00d4ff;
}

body.dark-theme .overlay-text h2 {
    color: #fff;
}

body.dark-theme .overlay-text p {
    color: #b8b8b8;
}

.overlay-text p:last-child {
    margin-bottom: 0;
}

.visual-element {
    width: 200px;
    height: 200px;
    position: relative;
}

.flower-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
}

.flower-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 8s linear infinite;
}

.petal {
    position: absolute;
    width: 20px;
    height: 40px;
    background: currentColor;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.6;
    transform-origin: 50% 100%;
}

.petal:nth-child(1) {
    transform: rotate(0deg) translateY(-30px);
    animation: bloom 3s ease-in-out infinite;
}

.petal:nth-child(2) {
    transform: rotate(45deg) translateY(-30px);
    animation: bloom 3s ease-in-out infinite 0.2s;
}

.petal:nth-child(3) {
    transform: rotate(90deg) translateY(-30px);
    animation: bloom 3s ease-in-out infinite 0.4s;
}

.petal:nth-child(4) {
    transform: rotate(135deg) translateY(-30px);
    animation: bloom 3s ease-in-out infinite 0.6s;
}

.petal:nth-child(5) {
    transform: rotate(180deg) translateY(-30px);
    animation: bloom 3s ease-in-out infinite 0.8s;
}

.petal:nth-child(6) {
    transform: rotate(225deg) translateY(-30px);
    animation: bloom 3s ease-in-out infinite 1s;
}

.petal:nth-child(7) {
    transform: rotate(270deg) translateY(-30px);
    animation: bloom 3s ease-in-out infinite 1.2s;
}

.petal:nth-child(8) {
    transform: rotate(315deg) translateY(-30px);
    animation: bloom 3s ease-in-out infinite 1.4s;
}

.flower-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

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

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

@keyframes bloom {

    0%,
    100% {
        transform: scale(1) translateY(-30px);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2) translateY(-35px);
        opacity: 0.8;
    }
}

@keyframes pulse {

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

    50% {
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.three-card-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-theme .three-card-section {
    border-color: rgba(255, 255, 255, 0.1);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.initiative-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.initiative-card:hover {
    transform: translateY(-3px);
}

.initiative-card.beige {
    background-color: #e5ddd3;
}

.initiative-card.mint {
    background-color: #c5d9d5;
}

.initiative-card.lavender {
    background-color: #d1cfe0;
}

body.dark-theme .initiative-card {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .initiative-card.beige {
    background-color: rgba(229, 221, 211, 0.1);
}

body.dark-theme .initiative-card.mint {
    background-color: rgba(197, 217, 213, 0.1);
}

body.dark-theme .initiative-card.lavender {
    background-color: rgba(209, 207, 224, 0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon .flower-animation {
    width: 60px;
    height: 60px;
}

.initiative-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
}

body.dark-theme .initiative-card h3 {
    color: #fff;
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .initiative-card {
        padding: 1.5rem 1rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .card-icon .flower-animation {
        width: 40px;
        height: 40px;
    }

    .initiative-card h3 {
        font-size: 0.9rem;
    }
}

@media (max-width: 968px) {
    .overlay-text {
        flex-direction: column;
        gap: 2rem;
    }

    .content-visual {
        flex: none;
        width: 100%;
        height: 200px;
    }
}

/* Reading experience enhancements */
.overlay-text {
    scroll-behavior: smooth;
}

.overlay-text::-webkit-scrollbar {
    width: 6px;
}

.overlay-text::-webkit-scrollbar-track {
    background: transparent;
}

.overlay-text::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

body.dark-theme .overlay-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.overlay-text::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-theme .overlay-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}



/* === RESPONSIVE BREAKPOINTS === */
/* Mobile-first responsive design with consistent spacing across devices */

/* Large Desktop */
@media (max-width: 1400px) {
    .overlay-content {
        max-width: 1200px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-6);
    }

    .hero-section {
        padding: var(--space-24) var(--space-6) var(--space-20);
    }

    .nav-container {
        padding: 0 var(--space-6);
    }

    .overlay-content {
        max-width: 1000px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .header {
        left: 0;
        padding-left: 3rem;
    }

    .menu-trigger {
        width: 2.5rem;
    }

    .hero-section {
        padding: 30px;
    }

    .profile-image {
        top: 30px;
        left: 30px;
        width: 80px;
        height: 100px;
    }

    .cta-button {
        bottom: 40px;
        right: 30px;
        padding: 16px 40px;
        font-size: 16px;
    }

    .overlay-content {
        grid-template-columns: 240px 1fr;
        max-width: 900px;
    }

    .overlay-main {
        padding: 2rem;
    }

    .overlay-sidebar {
        padding: 1.5rem;
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    .header {
        left: 0;
        padding-left: 2rem;
    }

    .menu-trigger {
        width: 2rem;
    }

    .nav-container {
        padding: 0 var(--space-4);
    }

    .filters {
        gap: 0.5rem;
    }

    .filter {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .portfolio-card {
        padding: var(--space-6);
    }

    .hero-section {
        padding: var(--space-20) var(--space-4) var(--space-12);
    }

    .hero-heading {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .portfolio-section {
        padding: var(--space-16) var(--space-4);
    }

    .overlay-container {
        padding: 5rem var(--space-4) var(--space-4);
    }

    .overlay-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
        height: auto;
    }

    .overlay-sidebar {
        border-right: none;
        border-bottom: 2px solid #e9ecef;
        padding: 0.5rem;
        max-height: 100px;
        overflow-x: auto;
        overflow-y: hidden;
        background: rgba(248, 249, 250, 0.95);
        position: relative;
    }

    body.dark-theme .overlay-sidebar {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: #333;
    }

    .overlay-nav {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        position: relative;
        overflow-x: auto;
        padding: 1rem 0.5rem;
        justify-content: flex-start;
    }

    .overlay-nav::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(to right, #007bff 0%, #007bff 100%);
        transform: translateY(-50%);
        z-index: 0;
        opacity: 0.3;
    }

    body.dark-theme .overlay-nav::before {
        background: linear-gradient(to right, #00d4ff 0%, #00d4ff 100%);
    }

    .nav-item {
        white-space: nowrap;
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
        margin: 0;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid rgba(0, 0, 0, 0.1);
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        flex-shrink: 0;
        z-index: 2;
    }

    body.dark-theme .nav-item {
        background: rgba(0, 0, 0, 0.8);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .nav-item.active {
        background: #007bff;
        color: #fff;
        border-color: #007bff;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    }

    body.dark-theme .nav-item.active {
        background: #00d4ff;
        color: #000;
        border-color: #00d4ff;
        box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
    }

    .nav-item::before {
        display: none;
    }

    .overlay-main {
        padding: 1.5rem;
        height: calc(85vh - 120px);
    }

    .overlay-text {
        flex-direction: column;
        gap: 1.5rem;
    }

    .content-visual {
        flex: none;
        width: 100%;
        height: 150px;
    }

    .flower-animation {
        width: 80px;
        height: 80px;
    }

    .mobile-nav-buttons {
        display: flex;
        justify-content: space-between;
        padding: 1rem 0;
        margin-top: auto;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    body.dark-theme .mobile-nav-buttons {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .nav-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #007bff;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 0.8rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    body.dark-theme .nav-btn {
        background: #00d4ff;
        color: #000;
    }

    .nav-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    }

    body.dark-theme .nav-btn:hover {
        box-shadow: 0 4px 8px rgba(0, 212, 255, 0.3);
    }

    .nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }
}

/* Mobile Large */
@media (max-width: 640px) {
    .header {
        padding-left: 1.5rem;
    }

    .menu-trigger {
        width: 1.5rem;
    }

    .menu {
        width: 16rem;
    }

    .logo {
        font-size: 1rem;
    }

    .filters {
        gap: 0.25rem;
    }

    .filter {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .portfolio-section {
        padding: var(--space-12) var(--space-3);
    }

    .portfolio-card {
        padding: var(--space-5);
    }

    .overlay-container {
        padding: 4rem var(--space-3) var(--space-3);
    }

    .overlay-content {
        max-height: 90vh;
    }

    .overlay-main {
        padding: 1rem;
        height: calc(90vh - 100px);
    }

    .overlay-sidebar {
        max-height: 100px;
        padding: 0.75rem;
    }

    .overlay-header h1 {
        font-size: 1.5rem;
    }

    .content-visual {
        height: 120px;
    }

    .flower-animation {
        width: 60px;
        height: 60px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero-section {
        padding: var(--space-16) var(--space-3) var(--space-12);
    }

    .hero-heading {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .hero-subtext {
        font-size: 0.9rem;
    }

    .portfolio-section {
        padding: var(--space-12) var(--space-3);
    }

    .footer {
        padding: var(--space-12) var(--space-3) var(--space-8);
    }

    .portfolio-card {
        padding: var(--space-4);
    }

    .portfolio-card h3 {
        font-size: 1.25rem;
    }

    .overlay-close {
        width: 2.5rem;
        height: 2.5rem;
        top: 0.5rem;
    }

    .overlay-container {
        padding: 3.5rem var(--space-2) var(--space-2);
    }

    .overlay-content {
        max-height: 95vh;
        border-radius: 0.5rem;
    }

    .overlay-main {
        padding: 0.75rem;
        height: calc(95vh - 80px);
    }

    .overlay-sidebar {
        max-height: 80px;
        padding: 0.5rem;
    }

    .nav-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    .overlay-header {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .overlay-header h1 {
        font-size: 1.25rem;
    }

    .overlay-text h2 {
        font-size: 1.25rem;
    }

    .overlay-text p {
        font-size: 0.9rem;
    }

    .content-visual {
        height: 100px;
    }

    .flower-animation {
        width: 50px;
        height: 50px;
    }

    .section-number {
        font-size: 2rem;
    }
}

.mobile-nav-buttons {
    display: none;
}

@media (max-width: 768px) {
    .overlay-sidebar {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        background: rgba(248, 249, 250, 0.95);
        padding: 1rem;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        z-index: auto;
        max-width: none;
        width: 100%;
        border-bottom: 1px solid #e9ecef;
        order: -1;
        margin-bottom: 1.5rem;
    }

    body.dark-theme .overlay-sidebar {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: #333;
        box-shadow: none;
    }

    .overlay-sidebar.hidden {
        opacity: 1;
        visibility: visible;
    }

    .overlay-nav {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
        padding: 0.5rem 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
    }

    .overlay-nav::-webkit-scrollbar {
        display: none;
    }

    .overlay-nav::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(to right, #007bff 0%, #007bff 100%);
        transform: translateY(-50%);
        z-index: 0;
        opacity: 0.2;
    }

    body.dark-theme .overlay-nav::before {
        background: linear-gradient(to right, #00d4ff 0%, #00d4ff 100%);
    }

    .nav-item {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
        z-index: 2;
        min-width: fit-content;
    }

    body.dark-theme .nav-item {
        background: rgba(0, 0, 0, 0.7);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .nav-item.active {
        background: #007bff;
        color: #fff;
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }

    body.dark-theme .nav-item.active {
        background: #00d4ff;
        color: #000;
        box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
    }

    .nav-item::before {
        display: none;
    }

    .overlay-content {
        display: flex;
        flex-direction: column;
    }

    .overlay-main {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        flex: 1;
        padding: 1.5rem;
        max-width: none;
    }

    .overlay-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        text-align: left;
    }

    .overlay-header h1 {
        font-size: 1.75rem;
    }

    .overlay-text {
        flex: 1;
        overflow-y: auto;
        display: block;
        padding: 0;
        gap: 0;
    }

    .content-visual {
        width: 100%;
        height: 150px;
        margin-bottom: 1.5rem;
        flex: none;
    }

    .content-text {
        width: 100%;
    }

    .section-number {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .overlay-text h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .overlay-text p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .content-text strong {
        font-size: 1.1rem;
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .content-text li {
        margin-bottom: 0.5rem;
        padding-left: 1.25rem;
        font-size: 0.95rem;
    }

    .mobile-nav-buttons {
        display: flex;
        justify-content: space-between;
        padding: 1.5rem 0 0;
        margin-top: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
        gap: 1rem;
    }

    body.dark-theme .mobile-nav-buttons {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .nav-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #007bff;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        min-height: 44px;
        flex: 1;
        justify-content: center;
    }

    body.dark-theme .nav-btn {
        background: #00d4ff;
        color: #000;
    }

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

    .nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .hero-heading {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .hero-subtext {
        font-size: 0.85rem;
    }

    .hero-cta {
        width: 180px;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .portfolio-card h3 {
        font-size: 1.1rem;
    }

    .overlay-header h1 {
        font-size: 1.1rem;
    }

    .overlay-text h2 {
        font-size: 1.1rem;
    }

    .overlay-text p {
        font-size: 0.85rem;
    }
}

/* Accessibility Improvements */
/* Focus States for Better Accessibility */
*:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-7xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-gray-100: #e0e0e0;
        --color-gray-200: #c0c0c0;
        --color-gray-300: #a0a0a0;
        --color-gray-600: #404040;
        --color-gray-700: #202020;
        --color-gray-800: #101010;
    }

    .card-front,
    .card-back {
        border-width: 2px;
    }

    .filter {
        border-width: 2px;
    }
}

/* === INTEGRATED NAVIGATION AND HERO STYLES === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 100px;
}

.logo {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
}

body.dark-theme .logo {
    color: #e8eaed;
}

nav {
    display: flex;
    gap: 120px;
}

.nav-column h3 {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 20px;
}

body.dark-theme .nav-column h3 {
    color: #e8eaed;
}

.nav-column ul {
    list-style: none;
}

.nav-column li {
    margin-bottom: 12px;
}

.nav-column a {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-column a:hover {
    color: #202124;
}

body.dark-theme .nav-column a {
    color: #9aa0a6;
}

body.dark-theme .nav-column a:hover {
    color: #e8eaed;
}

.hero {
    text-align: center;
    padding: 80px 0 120px;
}

.hero h1 {
    font-size: clamp(80px, 15vw, 180px);
    font-weight: 700;
    color: #202124;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    min-height: 1.2em;
}

#hero-title {
    display: inline;
    min-width: 4.5em;
}

.hero-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: 2px solid var(--color-slate-dark);
    border-radius: var(--radius-full);
    color: var(--color-slate-dark);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-toggle-btn:hover {
    background: var(--color-slate-dark);
    color: var(--color-ivory-light);
}

.hero-toggle-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform var(--transition-base);
}

.hero-toggle-btn:hover svg {
    transform: translateX(2px);
}

body.dark-theme .hero h1 {
    color: #e8eaed;
}

body.dark-theme .hero-toggle-btn {
    border-color: var(--color-ivory-light);
    color: var(--color-ivory-light);
}

body.dark-theme .hero-toggle-btn:hover {
    background: var(--color-ivory-light);
    color: var(--color-slate-dark);
}

/* === PORTFOLIO SECTION STYLES === */
.portfolio-section {
    background: #e8eaed;
    padding: 120px 60px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.partners-content {
    max-width: var(--container-7xl);
    margin: 0 auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    padding: var(--space-12) 0;
}

.partner-card {
    background: var(--color-ivory-light);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    text-align: center;
}

.partner-card h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-slate-dark);
    margin-bottom: var(--space-4);
}

.partner-card p {
    color: var(--color-slate-medium);
    line-height: 1.6;
}

body.dark-theme .portfolio-section {
    background: #1e293b;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.portfolio-slides {
    position: relative;
    width: 100%;
    max-width: var(--container-7xl);
    height: 600px;
}

.portfolio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-slide.active {
    opacity: 1;
    visibility: visible;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(8rem, 12vw, 14rem);
    align-items: center;
    padding: var(--space-12) var(--space-16);
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: var(--space-8);
}

.company-name {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    color: var(--color-slate-dark);
    margin-bottom: var(--space-8);
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.company-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: var(--font-weight-normal);
    color: var(--color-slate-medium);
    margin-bottom: var(--space-10);
    line-height: 1.5;
    max-width: 28rem;
}

.portfolio-content .cta-button {
    margin-top: var(--space-8);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-slate-dark);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.portfolio-content .cta-button:hover {
    background: var(--color-slate-dark);
    transform: scale(1.05);
}

.portfolio-content .cta-button svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-slate-dark);
    transition: stroke var(--transition-base);
}

.portfolio-content .cta-button:hover svg {
    stroke: var(--color-ivory-light);
}

.portfolio-image {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.portfolio-image svg,
.portfolio-image .calculator {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Dark theme adjustments */
body.dark-theme .company-name {
    color: var(--color-ivory-light);
}

body.dark-theme .company-description {
    color: var(--color-ivory-medium);
}

body.dark-theme .portfolio-content .cta-button {
    border-color: var(--color-ivory-light);
}

body.dark-theme .portfolio-content .cta-button svg {
    stroke: var(--color-ivory-light);
}

body.dark-theme .portfolio-content .cta-button:hover {
    background: var(--color-ivory-light);
}

body.dark-theme .portfolio-content .cta-button:hover svg {
    stroke: var(--color-slate-dark);
}




.portfolio-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: -16px;
    z-index: 10;
}

.portfolio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9e9e9e;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.portfolio-dot.active {
    background: #202124;
    width: 32px;
    border-radius: 6px;
}

body.dark-theme .portfolio-dot.active {
    background: #e8eaed;
}

.portfolio-dot:hover {
    background: #757575;
}

.portfolio-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: #202124;
    line-height: 1.2;
    margin-bottom: 30px;
}

body.dark-theme .portfolio-content h2 {
    color: #e8eaed;
}

.portfolio-content h2 .highlight {
    font-weight: 900;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid #202124;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #202124;
    transform: scale(1.1);
}

.cta-button:hover svg {
    stroke: #ffffff;
}

body.dark-theme .cta-button {
    border-color: #e8eaed;
}

body.dark-theme .cta-button:hover {
    background: #e8eaed;
}

body.dark-theme .cta-button:hover svg {
    stroke: #202124;
}

.cta-button svg {
    width: 24px;
    height: 24px;
    stroke: #202124;
    transition: stroke 0.3s;
}

body.dark-theme .cta-button svg {
    stroke: #e8eaed;
}

.portfolio-image {
    position: relative;
    perspective: 1000px;
}

.calculator {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s;
}

.calculator:hover {
    transform: rotateY(-10deg) rotateX(2deg) scale(1.02);
}

.calculator img {
    width: 100%;
    height: auto;
    display: block;
}

/* === PODCAST SECTION STYLES === */
.podcast-section {
    background: #ffffff;
    padding: 100px 60px;
}

body.dark-theme .podcast-section {
    background: #0f172a;
}

.podcast-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.podcast-content h2 {
    font-size: 48px;
    font-weight: 300;
    color: #202124;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

body.dark-theme .podcast-content h2 {
    color: #e8eaed;
}

.podcast-content p {
    font-size: 18px;
    color: #5f6368;
    line-height: 1.6;
}

body.dark-theme .podcast-content p {
    color: #9aa0a6;
}

.podcast-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.podcast-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.podcast-image:hover img {
    transform: scale(1.05);
}

/* === FOOTER STYLES === */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    border-top: 1px solid #e8eaed;
    margin-top: 80px;
}

body.dark-theme footer {
    border-top-color: #334155;
}

.footer-logo {
    font-size: 20px;
    font-weight: 500;
    color: #5f6368;
}

body.dark-theme .footer-logo {
    color: #9aa0a6;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #202124;
}

body.dark-theme .footer-links a {
    color: #9aa0a6;
}

body.dark-theme .footer-links a:hover {
    color: #e8eaed;
}

/* Logo hover effects */
body.dark-theme .logo:hover {
    color: #ffffff;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .container {
        padding: 30px 40px;
    }

    header {
        flex-direction: column;
        gap: 40px;
    }

    nav {
        gap: 60px;
    }

    .hero h1 {
        font-size: clamp(60px, 12vw, 120px);
    }

    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .portfolio-slides {
        height: auto;
    }

    .portfolio-slide {
        position: relative;
        height: auto;
    }

    .portfolio-slide.active {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding: var(--space-4);
    }

    .calculator {
        transform: none;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 30px;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .portfolio-section {
        padding: 60px 30px;
    }

    .portfolio-content h2 {
        font-size: 36px;
    }

    .podcast-section {
        padding: 60px 30px;
    }

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

    .podcast-content h2 {
        font-size: 36px;
    }
}



/* === HERO FOOTER SECTION === */
.hero-footer-section {
    position: relative;
    min-height: 100vh;
    background: var(--color-ivory-medium);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-4);
}

.hero-footer-container {
    position: relative;
    width: 100%;
    max-width: var(--container-7xl);
    margin: 0 auto;
}

/* Side Navigation */
.hero-footer-nav {
    position: absolute;
    left: var(--space-8);
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.hero-footer-nav a {
    color: var(--color-slate-medium);
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-colors);
    letter-spacing: -0.01em;
}

.hero-footer-nav a:hover {
    color: var(--color-slate-dark);
}

/* Main Content */
.hero-footer-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-4);
}

.hero-footer-heading {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    color: var(--color-slate-dark);
    text-align: center;
    margin-bottom: var(--space-12);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Sphere Container */
.hero-footer-sphere-container {
    position: relative;
    width: 100%;
    max-width: 56rem;
    aspect-ratio: 1;
    margin-bottom: var(--space-8);
}

.sphere-glow {
    position: absolute;
    inset: 0;
    background: rgba(212, 162, 116, 0.15);
    border-radius: var(--radius-full);
    filter: blur(80px);
}

.hero-footer-sphere {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 8px solid var(--color-ivory-dark);
    box-shadow: var(--shadow-2xl);
}

.sphere-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sphere-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
}

/* CTA Button */
.hero-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--color-slate-dark);
    color: var(--color-ivory-light);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.hero-footer-cta:hover {
    background: var(--color-slate-medium);
    transform: scale(1.05);
}

.cta-arrow {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-ivory-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-arrow svg {
    width: 1rem;
    height: 1rem;
}

/* Gradient Overlay */
.hero-footer-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(240, 240, 235, 0.3) 0%, transparent 100%);
    pointer-events: none;
}

/* Dark Theme Adjustments */
body.dark-theme .hero-footer-section {
    background: var(--color-slate-dark);
}

body.dark-theme .hero-footer-nav a {
    color: var(--color-ivory-medium);
}

body.dark-theme .hero-footer-nav a:hover {
    color: var(--color-ivory-light);
}

body.dark-theme .hero-footer-heading {
    color: var(--color-ivory-light);
}

body.dark-theme .hero-footer-sphere {
    border-color: var(--color-slate-medium);
}

body.dark-theme .hero-footer-cta {
    background: var(--color-ivory-light);
    color: var(--color-slate-dark);
}

body.dark-theme .hero-footer-cta:hover {
    background: var(--color-ivory-medium);
}

body.dark-theme .cta-arrow {
    border-color: var(--color-slate-dark);
}

/* 3D Server Room */
.server-room-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #000208;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.server-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.hud-panel {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ffff;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #00ffff;
    min-width: 200px;
}

.hud-title {
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #00ddff;
}

.hud-stats {
    margin-bottom: 1rem;
}

.hud-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.status-operational {
    color: #00ff00;
    font-weight: bold;
}

.power-load {
    color: #ffaa00;
}

.network-speed {
    color: #00ff00;
}

.alerts-count {
    color: #00ff00;
}

.hud-time {
    padding-top: 0.5rem;
    border-top: 1px solid #004466;
    font-size: 0.625rem;
    color: #0088aa;
}

.hud-bottom {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #004466;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #00ffff;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Food Security Animation */
.food-security-svg {
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.food-security-svg:hover {
    transform: rotateY(-10deg) rotateX(2deg) scale(1.02);
}

/* Strettch 3D Animation */
.strettch-3d {
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.strettch-3d:hover {
    transform: rotateY(-10deg) rotateX(2deg) scale(1.02);
}

/* Server Room Visualization */
.server-room-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a15 0%, #1a1a2e 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.server-room-svg {
    width: 100%;
    height: 100%;
}

.server-hud {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #00ffff;
}

.hud-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.hud-label {
    opacity: 0.7;
}

.hud-value {
    color: #00ff00;
    font-weight: bold;
}

body.dark-theme .hero-footer-gradient {
    background: linear-gradient(to top, rgba(25, 25, 25, 0.3) 0%, transparent 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-footer-nav {
        position: static;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: var(--space-8);
        gap: var(--space-4);
    }

    .hero-footer-nav a {
        font-size: var(--text-base);
    }

    .hero-footer-heading {
        font-size: clamp(2rem, 5vw, 3.5rem);
        margin-bottom: var(--space-8);
    }

    .hero-footer-sphere-container {
        max-width: 40rem;
    }
}

@media (max-width: 768px) {
    .hero-footer-section {
        min-height: auto;
        padding: var(--space-12) var(--space-4);
    }

    .hero-footer-heading {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        margin-bottom: var(--space-6);
    }

    .hero-footer-sphere-container {
        max-width: 28rem;
    }

    .hero-footer-cta {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }

    .hero-footer-nav {
        gap: var(--space-3);
    }

    .hero-footer-nav a {
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .hero-footer-heading {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    .hero-footer-sphere {
        border-width: 4px;
    }

    .hero-footer-cta {
        padding: var(--space-2-5) var(--space-5);
        font-size: var(--text-sm);
    }
}

/* === SECTION DIVIDERS === */
.section-divider {
    position: relative;
    width: 100%;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-ivory-light);
    overflow: hidden;
}

.divider-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-ivory-dark) 20%, var(--color-ivory-dark) 80%, transparent 100%);
}

.divider-dot {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--color-book-cloth);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 4px var(--color-ivory-light), 0 0 0 5px var(--color-ivory-dark);
    z-index: 1;
    animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {

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

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

/* Alternate divider for variety */
.section-divider-alt .divider-line {
    background: linear-gradient(90deg, transparent 0%, var(--color-cloud-light) 20%, var(--color-cloud-light) 80%, transparent 100%);
}

.section-divider-alt .divider-dot {
    background: var(--color-kraft);
}

/* Dark theme adjustments */
body.dark-theme .section-divider {
    background: var(--color-slate-dark);
}

body.dark-theme .divider-line {
    background: linear-gradient(90deg, transparent 0%, var(--color-slate-medium) 20%, var(--color-slate-medium) 80%, transparent 100%);
}

body.dark-theme .divider-dot {
    box-shadow: 0 0 0 4px var(--color-slate-dark), 0 0 0 5px var(--color-slate-medium);
}

body.dark-theme .section-divider-alt .divider-line {
    background: linear-gradient(90deg, transparent 0%, var(--color-cloud-dark) 20%, var(--color-cloud-dark) 80%, transparent 100%);
}

/* === ACTION BUTTONS === */
/* Floating action buttons for cart, favorites, and filters */
.action-buttons {
    position: fixed;
    top: 50%;
    right: var(--space-6);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    z-index: 1000;
}

.action-btn {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-slate-dark);
    border: 1px solid var(--color-slate-medium);
    border-radius: var(--radius-full);
    color: var(--color-ivory-light);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: var(--color-book-cloth);
    border-color: var(--color-book-cloth);
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.action-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.action-btn span {
    font-size: 0.625rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.dark-theme .action-btn {
    background: rgba(25, 25, 25, 0.9);
    border-color: var(--color-cloud-dark);
    color: var(--color-ivory-light);
}

body.dark-theme .action-btn:hover {
    background: var(--color-book-cloth);
    border-color: var(--color-book-cloth);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .action-buttons {
        right: var(--space-4);
    }
    
    .action-btn {
        width: 3rem;
        height: 3rem;
    }
    
    .action-btn svg {
        width: 1rem;
        height: 1rem;
    }
    
    .action-btn span {
        font-size: 0.5rem;
    }
}

@media (max-width: 768px) {
    .action-buttons {
        position: fixed;
        bottom: var(--space-6);
        right: var(--space-4);
        top: auto;
        transform: none;
        flex-direction: row;
        gap: var(--space-2);
    }
    
    .action-btn {
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .action-btn span {
        display: none;
    }
}

/* === ENHANCED SECTION STYLING === */
/* Hero Section Enhancement */
.hero {
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-ivory-dark) 50%, transparent 100%);
    opacity: 0.5;
}

/* Portfolio Section Enhancement */
.portfolio-section {
    position: relative;
    box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.02);
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-7xl);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-ivory-dark) 50%, transparent 100%);
    opacity: 0.3;
}

/* Hero Footer Enhancement */
.hero-footer-section {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

body.dark-theme .hero::after {
    background: linear-gradient(90deg, transparent 0%, var(--color-slate-medium) 50%, transparent 100%);
}

body.dark-theme .portfolio-section {
    box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.02);
}

body.dark-theme .portfolio-section::before {
    background: linear-gradient(90deg, transparent 0%, var(--color-slate-medium) 50%, transparent 100%);
}

body.dark-theme .hero-footer-section {
    box-shadow: 0 -4px 20px rgba(255, 255, 255, 0.02);
}

/* Smooth transitions between sections */
.portfolio-section,
.hero-footer-section {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

/* Add subtle depth on scroll */
@media (hover: hover) {
    .portfolio-section:hover {
        transform: translateY(-2px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-divider {
        height: 4rem;
    }

    .divider-dot {
        width: 0.375rem;
        height: 0.375rem;
        box-shadow: 0 0 0 3px var(--color-ivory-light), 0 0 0 4px var(--color-ivory-dark);
    }

    body.dark-theme .divider-dot {
        box-shadow: 0 0 0 3px var(--color-slate-dark), 0 0 0 4px var(--color-slate-medium);
    }
}





/* === PORTFOLIO SLIDE CONSISTENCY === */
.portfolio-slide {
    min-height: 600px;
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
}

.portfolio-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.portfolio-image svg,
.portfolio-image .calculator {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* Ensure consistent spacing */
.calculator {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .portfolio-slide {
        min-height: 500px;
    }

    .portfolio-content,
    .portfolio-image {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .portfolio-slide {
        min-height: auto;
    }

    .portfolio-content,
    .portfolio-image {
        min-height: auto;
    }
}

/* === STRETTCH SPECIFIC STYLING === */
/* Second slide with angled image presentation */
.portfolio-slide:nth-child(2) .portfolio-image {
    justify-content: center;
    padding-right: 0;
}

.portfolio-slide:nth-child(2) .portfolio-image svg {
    max-width: 600px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-base);
}

.portfolio-slide:nth-child(2) .portfolio-image svg:hover {
    transform: perspective(1000px) rotateY(-3deg) rotateX(1deg) scale(1.02);
}

/* Ensure consistent layout for both slides */
.portfolio-slide:nth-child(1) .portfolio-image,
.portfolio-slide:nth-child(2) .portfolio-image {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-slide:nth-child(2) .portfolio-image svg {
        transform: none;
    }

    .portfolio-slide:nth-child(2) .portfolio-image svg:hover {
        transform: scale(1.02);
    }
}

/* === INTEGRATION SECTION === */
.integration-section {
    padding: var(--space-20) var(--space-6);
    background: var(--color-ivory-light);
    position: relative;
}

body.dark-theme .integration-section {
    background: var(--color-slate-dark);
}

.integration-container {
    max-width: var(--container-7xl);
    margin: 0 auto;
}

.integration-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-slate-dark);
    text-align: center;
    margin-bottom: var(--space-16);
    letter-spacing: -0.02em;
}

body.dark-theme .integration-section h2 {
    color: var(--color-ivory-light);
}

.integration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.integration-text h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-slate-dark);
    margin-bottom: var(--space-6);
    letter-spacing: -0.01em;
}

body.dark-theme .integration-text h3 {
    color: var(--color-ivory-light);
}

.integration-text p {
    font-size: var(--text-lg);
    color: var(--color-slate-medium);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

body.dark-theme .integration-text p {
    color: var(--color-ivory-medium);
}

.chrome-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(var(--space-2));
}

body.dark-theme .feature-item {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.feature-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-book-cloth);
    flex-shrink: 0;
}

.feature-item span {
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-slate-dark);
}

body.dark-theme .feature-item span {
    color: var(--color-ivory-light);
}

.chrome-install-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--color-slate-dark);
    color: var(--color-ivory-light);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.chrome-install-btn:hover {
    background: var(--color-book-cloth);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.chrome-install-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

body.dark-theme .chrome-install-btn {
    background: var(--color-ivory-light);
    color: var(--color-slate-dark);
}

body.dark-theme .chrome-install-btn:hover {
    background: var(--color-book-cloth);
    color: var(--color-ivory-light);
}

/* Chrome Browser Mockup */
.integration-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chrome-browser {
    width: 100%;
    max-width: 400px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-base);
}

.chrome-browser:hover {
    transform: perspective(1000px) rotateY(-3deg) rotateX(1deg) scale(1.02);
}

body.dark-theme .chrome-browser {
    background: var(--color-slate-medium);
}

.browser-header {
    background: var(--color-gray-100);
    padding: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid var(--color-gray-200);
}

body.dark-theme .browser-header {
    background: var(--color-slate-dark);
    border-bottom-color: var(--color-slate-light);
}

.browser-controls {
    display: flex;
    gap: var(--space-2);
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
}

.control-btn.close {
    background: #ff5f57;
}

.control-btn.minimize {
    background: #ffbd2e;
}

.control-btn.maximize {
    background: #28ca42;
}

.address-bar {
    flex: 1;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: var(--space-2) var(--space-3);
    margin-left: var(--space-4);
}

body.dark-theme .address-bar {
    background: var(--color-slate-light);
}

.url {
    font-size: var(--text-xs);
    color: var(--color-gray-600);
    font-family: var(--font-mono);
}

body.dark-theme .url {
    color: var(--color-ivory-medium);
}

.browser-content {
    padding: var(--space-6);
    background: var(--color-white);
}

body.dark-theme .browser-content {
    background: var(--color-slate-medium);
}

.extension-popup {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
}

body.dark-theme .extension-popup {
    background: var(--color-slate-light);
}

.popup-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-gray-200);
}

body.dark-theme .popup-header {
    border-bottom-color: var(--color-slate-dark);
}

.logo-mini {
    width: 32px;
    height: 32px;
    background: var(--color-book-cloth);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
}

.popup-title {
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-slate-dark);
}

body.dark-theme .popup-title {
    color: var(--color-ivory-light);
}

.popup-stats {
    display: flex;
    gap: var(--space-4);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-slate-dark);
    margin-bottom: var(--space-1);
}

body.dark-theme .stat-value {
    color: var(--color-ivory-light);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.dark-theme .stat-label {
    color: var(--color-ivory-medium);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .integration-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .integration-text {
        order: 2;
    }
    
    .integration-visual {
        order: 1;
    }
}

@media (max-width: 768px) {
    .integration-section {
        padding: var(--space-16) var(--space-4);
    }
    
    .integration-section h2 {
        font-size: clamp(2rem, 4vw, 2.5rem);
        margin-bottom: var(--space-12);
    }
    
    .integration-content {
        gap: var(--space-8);
    }
    
    .chrome-browser {
        transform: none;
        max-width: 350px;
    }
    
    .chrome-browser:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 480px) {
    .integration-section {
        padding: var(--space-12) var(--space-3);
    }
    
    .chrome-browser {
        max-width: 300px;
    }
    
    .popup-stats {
        flex-direction: column;
        gap: var(--space-2);
    }
}

/* === SEARCH SECTION === */
.search-section {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
    max-width: 600px;
    width: 100%;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.location-selector svg {
    width: 20px;
    height: 20px;
    color: var(--color-ivory-light);
    flex-shrink: 0;
}

.location-selector select {
    background: none;
    border: none;
    color: var(--color-ivory-light);
    font-size: var(--text-base);
    cursor: pointer;
    min-width: 120px;
}

.location-selector select:focus {
    outline: none;
}

.location-selector select option {
    background: var(--color-slate-dark);
    color: var(--color-ivory-light);
}

.search-bar {
    display: flex;
    align-items: center;
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.2);
    padding: var(--space-3);
    gap: var(--space-2);
    backdrop-filter: blur(10px);
}

.search-bar svg {
    width: 20px;
    height: 20px;
    color: var(--color-ivory-medium);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--color-ivory-light);
    font-size: var(--text-base);
}

.search-bar input:focus {
    outline: none;
}

.search-bar input::placeholder {
    color: var(--color-ivory-medium);
}

.location-btn {
    background: rgba(255,255,255,0.2);
    color: var(--color-ivory-light);
    border: 1px solid rgba(255,255,255,0.3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.location-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.search-btn {
    background: var(--color-book-cloth);
    color: var(--color-white);
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--color-kraft);
    transform: translateY(-1px);
}

/* Dark theme adjustments */
body.dark-theme .location-selector,
body.dark-theme .search-bar {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .search-section {
        flex-direction: column;
        gap: var(--space-3);
        margin-top: var(--space-6);
    }
    
    .location-selector {
        justify-content: center;
    }
    
    .search-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-section {
        margin-top: var(--space-4);
    }
    
    .location-selector select {
        min-width: 100px;
        font-size: var(--text-sm);
    }
    
    .search-bar {
        padding: var(--space-2-5);
    }
    
    .search-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }
}