/* ERBYL Core Design System Styles */

:root {
    /* Colors */
    --color-background: #0d1322;
    --color-surface: #0d1322;
    --color-surface-dim: #0d1322;
    --color-surface-bright: #33394a;
    --color-surface-container-lowest: #080e1d;
    --color-surface-container-low: #151b2b;
    --color-surface-container: #191f2f;
    --color-surface-container-high: #242a3a;
    --color-surface-container-highest: #2f3445;
    
    --color-primary: #e9feff;
    --color-on-primary: #003739;
    --color-primary-container: #00f5ff;
    --color-on-primary-container: #006c71;
    --color-inverse-primary: #00696e;
    
    --color-secondary: #4edea3;
    --color-on-secondary: #003824;
    --color-secondary-container: #00a572;
    --color-on-secondary-container: #00311f;
    
    --color-on-surface: #dde2f8;
    --color-on-surface-variant: #b9caca;
    --color-outline: #849495;
    --color-outline-variant: #3a494a;
}

/* Global Styles */
body {
    background-color: var(--color-background);
    color: var(--color-on-surface);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Geist', sans-serif;
}

/* Common Components */
.glass-card {
    background: rgba(25, 31, 47, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(0, 245, 255, 0.3);
    background: rgba(25, 31, 47, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 245, 255, 0.15);
}

.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.hero-gradient {
    background: linear-gradient(to bottom, rgba(13, 19, 34, 0.2), rgba(13, 19, 34, 1));
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Mobile Drawer Sliding Menu */
#mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(13, 19, 34, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

#mobile-menu-drawer.active {
    right: 0;
}

#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 14, 29, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

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

.toast {
    background: rgba(25, 31, 47, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-on-surface);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(1rem);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--color-secondary);
}

.toast-error {
    border-left: 4px solid #ffb4ab;
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    /* Container & Paddings */
    nav {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    /* Typography adjustments for tablet */
    .text-display-lg, h1 {
        font-size: 2.5rem !important;
        line-height: 3.25rem !important;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Spacings */
    .px-gutter {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .py-stack-lg {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .mb-stack-lg {
        margin-bottom: 2rem !important;
    }
    .mb-stack-md {
        margin-bottom: 1.5rem !important;
    }
    
    /* Typography adjustments for mobile */
    .text-display-lg, h1 {
        font-size: 2rem !important;
        line-height: 2.5rem !important;
    }
    
    .text-display-lg-mobile {
        font-size: 1.75rem !important;
        line-height: 2.25rem !important;
    }
    
    .text-headline-md, h2 {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }
    
    /* Layout heights and flexboxes */
    section.h-screen, header.h-\[80vh\] {
        height: auto !important;
        min-height: 100vh;
        padding-top: 7rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Form inputs padding */
    form.space-y-8 {
        margin-top: 1rem;
    }
    
    /* Contact Map sizing */
    .w-full.h-64 {
        height: 200px !important;
    }
}

