:root {
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --border-color: #5ab0db;
    /* The light blue border seen in the image */
    --padding-x: 48px;
    --padding-y: 24px;
}

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

body {
    font-family: 'Lora', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Navbar */
.navbar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    z-index: 99;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--padding-y) 80px;
    width: 100%;
    z-index: 100;
    pointer-events: none;
    /* Allows interacting with things underneath the empty spaces */
    mix-blend-mode: difference;
}

.logo-container {
    display: flex;
    align-items: center;
    pointer-events: auto;
    /* Re-enable for the logo */
}

.nav-logo {
    height: 36px;
    /* Adjust according to Duno.svg actual size */
    width: auto;
    filter: invert(1);
    /* Make it white so difference blending turns it black over white bg */
}

.nav-links {
    display: flex;
    gap: 40px;
    pointer-events: auto;
    /* Re-enable for links */
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    /* Must be white for difference blending to make it black on light bg */
    font-size: 15px;
    letter-spacing: 0.2px;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Hero Section */
.hero-section {
    flex: 1;
    padding: 120px var(--padding-x) var(--padding-x) var(--padding-x);
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    flex: 1;
    width: 100%;
    overflow: hidden;
    background-color: #e0e0e0;
    /* Fallback if video is loading */
    min-height: 800px;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay Content inside Video Container */
.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through to video if needed */
}

.top-left-text {
    position: absolute;
    top: 48px;
    left: 48px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-color);
    /* The text appears black/dark on the image */
}

.middle-left-logo {
    position: absolute;
    top: 50%;
    left: 150px;
    transform: translateY(-50%);
    z-index: 2;
}

.middle-left-logo img {
    height: 54px;
    /* Reduced by 10% from 60px */
    width: auto;
}

.middle-right-text {
    position: absolute;
    top: 50%;
    right: 170px;
    transform: translateY(-50%);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-color);
    z-index: 2;
}

.bottom-left-text {
    position: absolute;
    bottom: 48px;
    left: 48px;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

/* About Section */
.about-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    padding: var(--padding-x);
}

.about-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    justify-content: center;
    gap: 15vw;
    /* Large gap typical of minimalist design */
}

.about-logo {
    display: flex;
    justify-content: flex-end;
}

.about-logo img {
    max-width: 250px;
    /* Reduced from 400px to match mockup proportions */
    width: 100%;
    height: auto;
}

.about-text {
    display: flex;
    justify-content: flex-start;
}

.about-text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 320px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    :root {
        --padding-x: 24px;
    }

    .middle-left-logo {
        left: 8%;
    }

    .middle-right-text {
        right: 8%;
    }
}

@media (max-width: 768px) {
    :root {
        --padding-x: 24px;
        --padding-y: 20px;
    }

    .navbar {
        flex-direction: row;
        padding: 32px 40px 24px 40px;
        gap: 10px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .nav-logo {
        height: 24px;
    }

    .hero-section {
        padding-bottom: 60px;
    }

    .video-container {
        flex: none;
        aspect-ratio: 4 / 5;
        min-height: auto;
    }

    .floating-content {
        position: static;
        margin-top: 170px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
    }

    .middle-left-logo {
        position: static;
        transform: none;
    }

    .middle-left-logo img {
        height: 40px;
    }

    .middle-right-text {
        position: static;
        transform: none;
        text-align: left;
    }

    .top-left-text {
        top: 20px;
        left: 20px;
    }

    .bottom-left-text {
        bottom: 20px;
        left: auto;
        right: 20px;
    }

    /* About section mobile overrides */
    .about-section {
        min-height: auto;
        padding: 140px var(--padding-x) 100px var(--padding-x);
    }

    .about-content {
        flex-direction: column;
        gap: 120px;
        align-items: flex-start;
    }

    .about-logo {
        width: 100%;
        justify-content: flex-start;
    }

    .about-logo img {
        max-width: 100%;
        width: 100%;
        object-fit: contain;
        object-position: left center;
    }

    .about-text {
        width: 100%;
    }

    .about-text p {
        max-width: 280px;
    }
}