@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-white: #ffffff;
    --accent-creme: #F9F9ED;
    --secondary-gray: rgba(255, 255, 255, 0.7);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Darker Grotesque', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: var(--font-main);
    color: var(--primary-white);
    /* background-color: #000; */
    overflow-x: hidden;
}

/* Background Handling */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; REMOVED to allow margin-auto to work better for grouping */
    align-items: center;
    padding: 40px 24px 20vh 24px;
    /* increased bottom padding to 20vh to lift text above the blue horizon */
    z-index: 1;
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
    animation: fadeInDown 1s ease-out;
    flex-shrink: 0;
    /* Prevent header from shrinking */
}

.logo-link {
    display: inline-block;
    transition: transform var(--transition-speed);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    width: 180px;
    height: auto;
    object-fit: contain;
}

main {
    text-align: center;
    max-width: 958px;
    /* Matches Figma width */
    /* animation: fadeInUp 1.2s ease-out; */
    /* Pushes main content to the bottom, grouping it with footer */
    margin-top: auto;
    margin-bottom: 40px;
    /* Space between main text and footer */
    /* Removed transforms to prevent overlap */
}

.hero-text {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 80px);
    /* 80px from Figma */
    font-weight: 600;
    /* SemiBold */
    line-height: 1.0;
    /* 100% from Figma */
    letter-spacing: -0.022em;
    /* -2.2% from Figma */
    color: var(--primary-white);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--primary-white);
    animation: fadeIn 1.5s ease-out;
    flex-shrink: 0;
    /* Prevent footer from shrinking */
    /* Removed transforms */
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    font-weight: 700;
}

.mail-icon {
    width: 18px;
    height: auto;
}

.mail-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
    border-bottom: 1px solid transparent;
}

.mail-link:hover {
    color: #FFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .logo {
        width: 160px;
    }

    .hero-text {
        font-size: clamp(36px, 8vw, 60px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 24px 60px 24px;
    }

    .logo {
        width: 140px;
    }

    main {
        margin-bottom: 24px;
        /* Reduced space on mobile */
    }

    .hero-text {
        font-size: 36px;
        line-height: 1.1;
    }

    footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .hero-text {
        font-size: 32px;
    }

    .container {
        padding: 30px 20px 40px 20px;
    }
}

/* Landscape mode handling for mobile/tablets */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 20px 24px;
        justify-content: space-between;
        /* Revert to space-between for short screens to avoid cramping */
    }

    main {
        margin-top: 0;
        margin-bottom: 0;
    }

    .logo {
        width: 110px;
    }

    .hero-text {
        font-size: 28px;
    }

    footer {
        font-size: 14px;
        flex-direction: row;
        gap: 24px;
    }
}