/* Custom Variable Setup */
:root {
    --bg-dark: #0a0a0a;
    --card-bg: #121212;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #ffffff;
    --transition-curve: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.portal-btn {
    border: 1px solid var(--accent);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}

/* Hero Slider Engine */
.hero {
    height: 85vh; /* INCREASED FROM 75vh: Takes up more vertical space on desktop screen scopes */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; 
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.0);
    z-index: 2;
}

/* Narrative Container (Boxed Style) */
.narrative-container {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.narrative-block {
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 24px;
    padding: 60px 50px;
    width: 100%;
}

.narrative-block h2 {
    font-size: 1.25rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.narrative-block p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.explore-btn {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    border: 1px solid #ffffff;
    padding: 16px 45px;
    border-radius: 6px;
}

/* Gallery Grid */
.gallery-container { padding: 100px 5%; text-align: center; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.squircle-card {
    aspect-ratio: 1 / 1;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 20px;
}

.squircle-card img { width: 100%; height: 100%; object-fit: cover; }

/* Form & Footer */
.contact-section { padding: 80px 0; background-color: #0d0d0d; text-align: center; }
.form-group { position: relative; margin-bottom: 45px; text-align: left; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 0; background: transparent; border: none; border-bottom: 1px solid #333; color: #fff;
}
.submit-btn { width: 100%; padding: 16px; background-color: #fff; color: #000; border: none; font-weight: bold; text-transform: uppercase; cursor: pointer; }
footer { text-align: center; padding: 40px 0; border-top: 1px solid #121212; font-size: 0.75rem; color: #444; }

/* ==========================================================================
   MOBILE OPTIMIZATION (STAYS FULLY INSULATED)
   ========================================================================== */
@media (max-width: 768px) {
    header { 
        position: relative; 
        flex-direction: column; 
        gap: 15px; 
        padding: 20px 0; 
        background-color: var(--bg-dark);
    }
    
    nav ul { gap: 15px; }
    nav a { font-size: 0.7rem; }

    .hero { 
        height: 35vh; /* Stays at 35vh on phones so landscape files fit beautifully */
    }

    .slide {
        background-size: contain; 
        background-repeat: no-repeat;
        background-color: #000; 
        
        /* High-Fidelity Sharpness Fixes Kept Clean */
        image-rendering: -webkit-optimize-contrast; 
        image-rendering: crisp-edges;               
        background-attachment: scroll;              
    }

    .narrative-container { padding: 40px 0; }
    .narrative-block { padding: 30px 20px; border-radius: 15px; }
    .narrative-block h2 { font-size: 1rem; text-align: center; }
    .narrative-block p { font-size: 0.85rem; text-align: center; }
    .explore-btn { width: 100%; text-align: center; }
    
    .gallery-grid { grid-template-columns: 1fr; }
}