/* House of Discus - Design System & Stylesheet */

/* Color Space Fallback Setup (Modern Web Guidance) */
:root {
    --in-oklab: ;
}
@supports (linear-gradient(in oklab, white, black)) {
    :root {
        --in-oklab: in oklab;
    }
}

/* Custom Variables */
:root {
    --bg-color: #000000;
    --card-bg: rgba(7, 10, 15, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(212, 175, 55, 0.4);
    
    /* Text Colors */
    --text-primary: #f5f5f7;
    --text-secondary: #aeaeb2;
    --text-muted: #8e8e93;
    
    /* Accents */
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.15);
    --cyan-shimmer: rgba(0, 168, 204, 0.08);
    
    /* Fonts */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fullscreen Canvas Background */
#aquarium-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* Water Surface Shimmer (Color-dodge overlay for liquid texture) */
.water-shimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: color-dodge;
    opacity: 0.25;
    background: linear-gradient(
        135deg var(--in-oklab),
        rgba(255, 255, 255, 0.0) 0%,
        var(--cyan-shimmer) 25%,
        rgba(255, 255, 255, 0.0) 50%,
        var(--cyan-shimmer) 75%,
        rgba(255, 255, 255, 0.0) 100%
    );
    background-size: 400% 400%;
    animation: shimmerWave 20s ease-in-out infinite;
}

/* Main Layout Wrapper */
#overlay-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Minimal Floating Overlay (replaces the large glass panel) */
.minimal-brand-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 540px;
    width: 100%;
    padding: 2rem;
    animation: overlayFadeIn 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    isolation: isolate;
}

.company-name {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(2.25rem, 7vw, 3.5rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.95), 
        0 2px 6px rgba(0, 0, 0, 0.85);
    line-height: 1.25;
    margin-right: -0.22em; /* offset for letter-spacing */
}

.minimal-divider {
    width: 40px;
    height: 1.5px;
    background-color: var(--gold);
    margin: 1.75rem 0;
    opacity: 0.75;
    box-shadow: 0 0 10px var(--gold-glow);
}

.email-link {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
    transition: 
        color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        text-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Hover States */
.email-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    text-shadow: 
        0 0 12px rgba(212, 175, 55, 0.45), 
        0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Focus States for Accessibility */
.email-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 6px;
}

/* Animations */
@keyframes overlayFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

/* Accessibility: Respect Reduced Motion (Case-by-Case) */
@media (prefers-reduced-motion: reduce) {
    .minimal-brand-overlay {
        animation: none;
    }
    
    .water-shimmer {
        animation: none;
        background-size: auto;
        opacity: 0.1;
    }
    
    .email-link {
        transition: none;
    }
    
    .email-link:hover {
        transform: none;
        box-shadow: none;
    }
}
