:root {
    --primary-color: #8DA08A;
    /* Sage Green */
    --secondary-color: #D8A48F;
    /* Soft Terracotta */
    --bg-color: #F5F5F1;
    /* Cream/Beige */
    --text-color: #656c62;
    /* Verde oscuro grisáceo */
    --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 {
    font-family: 'Playfair Display', serif;
}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12vh 2rem 8vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* 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;
}

.overlay1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: initial;
    background-color: rgba(253, 253, 253, 0.47);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.logo-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    width: 100%;
}

.bottom-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

h1, h2 {
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #7e8b79;
    font-weight: 400;
}

.social-icons {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
}

.icon-link {
    color: #7e8b79;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* 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 */
.logo-container {
    transition-delay: 0.2s;
}

.bottom-content {
    transition-delay: 0.4s;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 10vh 1.5rem 5vh;
    }
    h1, h2 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem;
        font-weight: 400 !important;
    }
}

/* Mobile specific safety: prevents scroll even if content is slightly larger */
@media (max-height: 700px) {
    .container {
        padding: 8vh 1.5rem 4vh;
    }
}

@media (max-height: 600px) {
    h1, h2 {
        font-size: 1.3rem;
    }
}
