:root {
    /* Quiet Luxury Palette */
    --bg-cream: #FDFBF7;
    /* Ultra light warm gray/cream */
    --bg-wood-light: #F2EFE9;
    --text-primary: #3E2F29;
    /* Darker, richer brown */
    --text-secondary: #6D6058;
    --accent-green: #4A6d44;
    /* Muted olive/forest green - more sophisticated */
    --accent-wood: #8B6B58;
    /* Desaturated elegance */
    --accent-gold: #C69C6D;
    /* Subtle metallic accent */
    --white: #FFFFFF;

    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --blur: 15px;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --radius-lg: 20px;
    --radius-md: 12px;

    --shadow-soft: 0 10px 40px -10px rgba(62, 47, 41, 0.08);
    --shadow-float: 0 20px 40px -10px rgba(62, 47, 41, 0.12);
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

img {
    display: block;
    max-width: 100%;
}

/* Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 109, 68, 0.2);
}

.btn-outline {
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--white);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(var(--blur));
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
}

header.scrolled .nav-links a {
    color: var(--text-primary);
    text-shadow: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 160px;
    /* Increased size again per user request */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    /* White text for dark overlay */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('img/headbg.jpeg') no-repeat center center/cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4) 80%, rgba(253, 251, 247, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 2rem;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 3rem;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}



/* Sections */
section {
    padding: 8rem 0;
}

.section-head {
    margin-bottom: 5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--accent-gold);
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title {
    font-size: 3rem;
}

/* About - Asymmetric */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
    margin-right: -4rem;
    /* Overlap */
}

.about-image {
    position: relative;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-float);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features - Glass Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
    border-color: var(--accent-gold);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-wood);
    margin-bottom: 2rem;
    display: inline-block;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Gallery - Masonry Feel */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Footer & Contact */
footer {
    background-color: #2C2420;
    color: #F2EFE9;
    padding: 6rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-desc {
    opacity: 0.7;
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-col ul li:hover {
    opacity: 1;
    color: var(--accent-gold);
}

/* Fade In Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-content {
        margin-right: 0;
        margin-bottom: -2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
    }

    .gallery-item:nth-child(3) {
        grid-column: span 1;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(253, 251, 247, 0.98);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 1.5rem;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
        animation: fadeInDown 0.3s ease;
    }

    .nav-links a {
        color: var(--text-primary);
        /* Ensure visible text on light bg */
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }



    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Splash Screen Styles */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url('img/starry_night_bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* Fallback background */
#splash-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 10%, #0d1b2a 0%, #000000 100%);
    z-index: -1;
}

.splash-content {
    text-align: center;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash-logo img {
    width: 400px;
    max-width: 85%;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.15));
    animation: fadeInDown 1.5s ease-out;
}

/* History Section Styles */
.history-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 100%;
}

.history-image-grid img {
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    width: 100%;
}

.staggered-img {
    margin-top: 2rem;
}

.history-content {
    margin-right: 0;
    margin-left: -4rem;
    /* Desktop overlap */
}

@media (max-width: 1024px) {
    .history-content {
        margin-left: 0;
        margin-top: -2rem;
        /* Adjust for mobile stacking */
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .about-wrapper.reverse-mobile {
        grid-template-columns: 1fr;
    }
}


.glass-btn {
    margin-top: 2rem;
    /* Add specific spacing to button instead */
    padding: 22px 90px;
    font-size: 2rem;
    /* ... rest ... */
    font-family: var(--font-heading);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 70px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.4s ease;
    animation: fadeInUp 1.5s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
    letter-spacing: 3px;
    text-transform: uppercase;
    /* Make it more impactful */
}

.glass-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.glass-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.glass-btn:hover::after {
    left: 100%;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}