/* Reset some basic elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    background-color: #070707;
}

/* Main header styles */
.main-header {
    position: relative;
    width: 100%;
    height: 100vh;
    color: white;
    border-bottom: 7px solid #000000;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero slider styles */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

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

/* Overlay for the entire header */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.7) 0%, 
        rgba(0,0,0,0.3) 30%, 
        rgba(0,0,0,0.2) 70%,
        rgba(0,0,0,0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Top gradient overlay from Figma (reduced height) */
.main-header::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 300px;
    left: 0;
    top: 0;
    background: linear-gradient(360deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Navbar container */
.navbar-container {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    max-width: 1520px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    height: 35px;
    text-align: center;
}

.nav-left, .nav-right {
    display: flex;
    gap: 60px;
}

.nav-item {
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 4.17px;
    line-height: 13.7px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    opacity: 0.8;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    display: flex;
    justify-content: center;
    width: auto;
    z-index: 10;
    margin: 0 auto;
}

.logo img {
    height: 35px;
    width: auto;
}

/* Hamburger menu - hidden on desktop */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 110;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hamburger-menu span {
    display: block;
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    opacity: 1; /* Make sure hamburger menu is visible */
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay - Slide from right */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    width: 300px;
    height: 100vh;
    background-color: #000000;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    padding-top: 80px;
}

.mobile-menu-overlay.active {
    right: 0; /* Slide in */
}

/* Dark overlay when menu is active */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 30px 20px;
}

.mobile-menu-item {
    color: #ffffff;
    font-size: 20px;
    font-weight: 200;
    margin: 15px 0;
    width: 100%;
    text-align: left;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.3s ease forwards;
}

.mobile-menu-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 200;
    display: block;
    padding: 5px 0;
    width: 100%;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-left,
.mobile-menu .nav-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 20px 0;
}

.mobile-menu .nav-item {
    font-size: 18px;
}

/* Hero content */
.hero-content {
    position: absolute;
    bottom: 100px;
    left: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 80px;
    max-width: 1520px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-text {
    max-width: 700px;
}

.residence-label {
    font-size: 14px;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 200; /* ExtraLight */
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
}

.hero-text h1 {
    font-size: 52px;
    line-height: 57px;
    color: #ffffff;
    font-weight: 200; /* ExtraLight */
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    letter-spacing: -0.03em;
    margin: 0;
}

.timeline {
    display: flex;
    gap: 40px;
    align-self: flex-end;
}

.timeline-item {
    text-align: center;
}

.timeline-item .date {
    font-size: 32px;
    color: #ffffff;
    font-weight: 200; /* ExtraLight */
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    margin-bottom: 5px;
}

.timeline-item .label {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.7;
}

/* Slider controls */
.slider-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 20;
}

.arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.arrow img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.arrow.prev img {
    width: 12px;
    height: 24px;
}

.arrow.next img {
    width: 12px;
    height: 24px;
}

.arrow:hover {
    opacity: 0.8;
}

.arrow img {
    width: 20px;
    height: auto;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .nav-left, .nav-right {
        gap: 30px;
    }
    
    .navbar, .hero-content {
        padding: 0 60px;
    }
    
    .hero-text h1 {
        font-size: 50px;
        line-height: 55px;
    }
    
    .hero-text {
        max-width: 600px;
    }
}

@media (max-width: 992px) {
    .nav-left, .nav-right {
        gap: 20px;
    }
    
    .nav-item {
        font-size: 12px;
        letter-spacing: 3px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 42px;
        line-height: 48px;
    }
    
    .hero-text {
        max-width: 500px;
    }
    
    .timeline {
        align-self: flex-start;
    }
    
    .timeline-item .date {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    /* Tablet styles - switch to mobile menu */
    .navbar-container {
        top: 20px;
    }
    
    .nav-left, .nav-right {
        display: none;
    }
    
    .navbar {
        justify-content: space-between;
        padding: 0 40px;
    }
    
    .logo {
        position: relative;
        left: 0px;
        transform: none;
        top: 3px;
    }
    
    .hamburger-menu {
        display: flex;
        margin-left: auto; /* Push to the right */
    }
}

@media (max-width: 480px) {
    /* Mobile styles */
    .navbar-container {
        top: 15px;
    }
    
    .logo {
        position: relative;
        left: 0px;
        transform: none;
        top: 3px;
    }
    
    .logo img {
        opacity: 1; /* Make sure logo is visible */
    }
    
    .navbar, .hero-content {
        padding: 0 25px;
    }
    
    .hero-content {
        bottom: 60px;
    }
    
    .hero-text h1 {
        font-size: 32px;
        line-height: 36px;
        letter-spacing: -0.02em;
    }
    
    .hero-text {
        max-width: 320px;
    }
    
    .residence-label {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .timeline {
        gap: 20px;
    }
    
    .timeline-item .date {
        font-size: 24px;
        font-weight: 200;
    }
    
    .timeline-item .label {
        font-size: 12px;
    }
    
    .arrow {
        width: 30px;
        height: 30px;
    }
    
    .arrow img {
        width: 15px;
    }
}
