/* =========================================
   CSS Variables & Typography
   ========================================= */
:root {
    /* Color Palette - Premium Dark Wood Aesthetic */
    --color-bg-main: #121212;
    --color-bg-secondary: #1e1e1e;
    --color-text-main: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-accent: #d4af37; /* Warm gold/bronze for highlights */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-main);
}

/* Subtle ambient gold glow originating from the top */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

body {
    background-color: transparent;
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================
   Splash Screen
   ========================================= */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-main); 
    z-index: 9999;
}

#splash-screen.fly-up {
    background-color: transparent;
    transition: background-color 0.8s ease;
    pointer-events: none; /* Let clicks pass through while flying */
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-logo {
    height: 360px;
    max-width: 90vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: gentlePulse 2s infinite alternate;
}

#splash-screen.fly-up .splash-logo {
    animation: flyToCorner 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes gentlePulse {
    0% { transform: translate(-50%, -50%) scale(0.98); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.02); opacity: 1; }
}

@keyframes flyToCorner {
    0% {
        top: 50%;
        left: 50%;
        height: 360px;
        transform: translate(-50%, -50%);
    }
    100% {
        top: var(--target-top, 1.5rem); 
        left: var(--target-left, 5vw); 
        height: 140px; 
        transform: translate(0, 0);
    }
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.centered-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.centered-content .section-title::after { left: 50%; transform: translateX(-50%); }

.section-padding { padding: 6rem 5%; }

/* =========================================
   Navigation
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 140px;
    max-width: 500px;
    object-fit: contain;
    transition: var(--transition-smooth);
    opacity: 0; /* Hidden initially while the splash logo flies over */
}

body.loaded .logo-img {
    opacity: 1; /* Seamlessly revealed when the splash screen ends */
}

.logo-link:hover .logo-img {
    transform: scale(1.02); /* Dialed down slightly because the image is so large */
}

#navbar.scrolled .logo-img {
    height: 60px; /* Shrinks tightly into the navbar on scroll */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

/* =========================================
   Hero Section
   ========================================= */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    padding: 0 5%;
    z-index: 10;
}

.hero-content h2 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   About Section
   ========================================= */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #0a0a0a;
    padding: 2rem 5%;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Animations
   ========================================= */
.fade-in {
    animation: fadeInUpper 1s ease-out forwards;
}

@keyframes fadeInUpper {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Javascript controlled fade-ins */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive queries
   ========================================= */
@media (max-width: 900px) {
    .hero-content h2 { font-size: 3.5rem; }
    .nav-links { display: none; } /* Simple hiding for now */
}
