:root {
    --primary-color: #8DA08A;
    /* Sage Green */
    --secondary-color: #D8A48F;
    /* Soft Terracotta */
    --bg-color: #F5F5F1;
    /* Cream/Beige */
    --text-color: #2D302E;
    /* Dark Charcoal */
    --accent-color: #A79277;
    /* Soft gold/sand */
    --transition-smooth: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    touch-action: none;
    background-color: var(--bg-color);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
.logo {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease-out, visibility 1s;
}

.loader {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1.5s infinite linear;
    margin-bottom: 20px;
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 241, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: #555;
    max-width: 450px;
}

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-smooth);
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

.contact-link:hover::after {
    width: 100%;
}

.icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations */
.hidden {
    display: none !important;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom delay for staggered animation */
.hero-content h1 {
    transition-delay: 0.2s;
}

.hero-content .subtitle {
    transition-delay: 0.4s;
}

.hero-content .cta-container {
    transition-delay: 0.6s;
}

.social-links {
    transition-delay: 0.8s;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }

    .contact-link {
        margin: 0 auto;
    }
}

/* Mobile specific safety: prevents scroll even if content is slightly larger */
@media (max-height: 700px) {
    h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        margin-bottom: 1.5rem;
    }

    .cta-container {
        gap: 0.8rem;
    }

    .social-links {
        padding: 1rem 0;
    }
}

@media (max-height: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}