/* --- General Body & Typography --- */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #1D1D1B;
    background-image:
        linear-gradient(rgba(29, 29, 27, 0.95), rgba(29, 29, 27, 0.95)),
        repeating-linear-gradient(0deg, rgba(90, 104, 106, 0.15), rgba(90, 104, 106, 0.15) 1px, transparent 1px, transparent 50px),
        repeating-linear-gradient(90deg, rgba(90, 104, 106, 0.15), rgba(90, 104, 106, 0.15) 1px, transparent 1px, transparent 50px);
    background-size: 100%, 50px 50px, 50px 50px;
    animation: move-background 10s linear infinite;
    color: #FFFFFC;
    overscroll-behavior: none;
}

@keyframes move-background {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 0 0, 50px 50px, 50px 50px; }
}

/* --- Header Styles --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5vw;
    box-sizing: border-box;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(29, 29, 27, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 252, 0.1);
}

.main-nav {
    display: flex;
    gap: 25px;
}

.nav-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 252, 0.4);
    border-radius: 30px;
    padding: 10px 24px;
    color: #FFFFFC;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 300;
    text-decoration: none;
    display: inline-block;
}

.nav-button:hover {
    background-color: #7C9670;
    border-color: #7C9670;
    color: #FFFFFC;
}

.header-logo {
    height: 80px;
    width: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Hero Section: Video Carousel --- */
.hero-section {
    height: 75vh;
    top: 12vh;
    width: 100%;
    position: fixed;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.video-carousel, .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.2s linear;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: opacity;
}

.video-slide.active {
    opacity: 1;
    z-index: 1;
}

.video-slide.last-active {
    opacity: 1;
    z-index: 0;
    transition: none;
}

.video-slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
    visibility: hidden;
}

.video-fallback-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

.video-slide video::-webkit-media-controls-start-playback-button,
.video-slide video::-webkit-media-controls {
    display: none !important;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fade-out {
    opacity: 0 !important;
    pointer-events: none;
}

.carousel-indicators {
    position: absolute;
    bottom: 120px;
    z-index: 5;
    display: flex;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #ffffff;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    cursor: pointer;
    text-align: center;
}

.scroll-down-indicator a {
    text-decoration: none;
    color: #fff;
}

.scroll-arrow {
    width: 2px;
    height: 25px;
    background-color: #fff;
    display: block;
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

.scroll-text {
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFFFFC;
    opacity: 0.8;
    font-weight: 300;
}

/* --- Content Sections --- */
.content-section-wrapper {
    position: relative;
    z-index: 5;
    padding-top: 10vh;
    height: 400vh; /* For index.html sticky scroll */
}

/* Page content for standard pages like about/contact */
.page-content-wrapper {
    position: relative;
    z-index: 5;
    padding-top: 150px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.text-box {
    background-color: rgba(90, 104, 106, 0.4);
    padding: 40px;
    border-left: 4px solid #7C9670;
    backdrop-filter: blur(5px);
    max-width: 900px;
    width: 80%;
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.static-box {
    background-color: rgba(90, 104, 106, 0.4);
    padding: 40px;
    border-left: 4px solid #7C9670;
    backdrop-filter: blur(5px);
    max-width: 900px;
    width: 80%;
    position: relative;
    opacity: 1;
    transform: none;
    margin-top: 50px;
}

.text-box h2, .static-box h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #7C9670;
    margin-top: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.text-box p, .text-box ul, .static-box p, .static-box ul {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #FFFFFC;
}

.text-box ul, .static-box ul {
    list-style: none;
    padding-left: 0;
}

.text-box li, .static-box li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

.text-box li::before, .static-box li::before {
    content: '\2713 ';
    position: absolute;
    left: 0;
    color: #7C9670;
    font-weight: bold;
}

.content-cta-button {
    display: inline-block;
    background-color: #65705F;
    color: #FFFFFC;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.content-cta-button:hover {
    background-color: #677249;
    transform: translateY(-3px);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 10px 20px;
    color: #FFFFFC;
    font-size: 0.9rem;
    position: sticky;
    bottom: 0;
    z-index: 100;
    background-color: #1D1D1B;
}

footer p {
    margin: 5px 0;
}

/* --- Hamburger Menu --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFFFFC;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* --- Responsive Mobile Styles --- */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(29, 29, 27, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-out;
    }

    .main-nav.nav-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-button {
        font-size: 1.5rem;
        border: none;
        padding: 10px 20px;
    }

    .header-logo {
        height: 60px;
    }
    
    .main-header {
        padding: 15px 5vw;
    }

    .text-box, .static-box {
        width: 90%;
        padding: 25px;
    }

    .text-box h2, .static-box h2 {
        font-size: 1.5rem;
    }
}
