/* REEF & ROOT STUDIO 
    Global Stylesheet - Zero-Flicker & Glass Edition
*/

:root {
    --ocean-deep: #024181;
    --sand-light: #f9f7f2;
    --sea-foam: #e0f2f1;
    --text-main: #2c3e50;
    --transition-speed: 0.8s;
}

/* --- The Zero-Flicker Strategy --- */

/* 1. Start the body invisible */
body {
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
    font-family: 'Georgia', serif;
    margin: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('assets/images/sand3.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-main);
    line-height: 1.6;
}

/* 2. Skeleton: 380px covers the logo (275px) + nav pill + spacing on desktop */
#global-header {
    min-height: 380px; 
    display: block;
}

/* 3. Reveal once components.js signals 'ready' */
body.components-loaded {
    opacity: 1;
}

/* --- Shared Components (The Global "Glass" Look) --- */

.bio-glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.header-pill {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 50px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.buy-btn {
    display: inline-block;
    background: var(--ocean-deep);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.buy-btn:hover {
    opacity: 0.8;
}

/* --- Shared Header & Navigation --- */
header {
    padding: 2rem;
    text-align: center;
}

header img {
    display: block;
    margin: 0 auto 10px auto;
    height: 275px; 
    width: auto;
    max-width: 95%; /* Ensures logo doesn't overflow mobile screen */
    transition: height 0.3s ease;
}

nav {
    display: inline-block;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    max-width: 95%;
    box-sizing: border-box;
}

nav a {
    display: inline-block;
    margin: 0 15px;
    text-decoration: none;
    color: var(--ocean-deep);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
}

nav a.active {
    border-bottom: 2px solid var(--ocean-deep);
    padding-bottom: 5px;
}

/* --- Global Footer --- */
footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 0.9rem;
    color: #555;
}

.social-links a {
    color: var(--ocean-deep);
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

.social-icon {
    width: 18px;
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
}

/* --- Adaptive Mobile Viewports --- */
@media (max-width: 768px) {
    #global-header {
        min-height: 220px; /* Reduced vertical space on mobile preview */
    }
    
    header {
        padding: 1rem 0.5rem;
    }
    
    header img {
        height: 140px; /* Scaled down logo */
    }
    
    nav {
        border-radius: 20px;
        padding: 8px 12px;
        margin-top: 10px;
    }
    
    nav a {
        margin: 5px 8px; /* Tighter navigation link layout */
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .bio-glass-panel {
        padding: 25px 20px;
    }
    
    .header-pill {
        padding: 15px 30px;
        border-radius: 30px;
    }
}