:root {
    --primary-gold: #D4AF37;
    --gold-hover: #C5A028;
    --charcoal: #1A1A1A;
    --dark-blue: #0A192F;
    --text-light: #F5F5F5;
    --overlay: rgba(10, 25, 47, 0.75);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    background-color: var(--charcoal);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2.5rem 0;
    /* Initial large padding */
    z-index: 5000;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    /* Stacked initially */
    align-items: center;
    gap: 1.5rem;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.scrolled .nav-container {
    flex-direction: row;
    /* Horizontal on scroll */
    justify-content: space-between;
    gap: 0;
}

.nav-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    order: 1;
    /* Above logo initially */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.scrolled .nav-top-row {
    width: auto;
    order: 2;
    /* Right of logo when scrolled */
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 5100;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    order: 2;
    /* Logo below links initially */
    padding: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
}

.navbar.scrolled .logo {
    order: 1;
    /* Logo on left when scrolled */
    padding: 0;
    background: transparent;
}

.navbar-logo {
    height: 320px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.scrolled .navbar-logo {
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-actions .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-only {
    display: none !important;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 0;
    }

    .navbar-logo {
        height: 180px;
        transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .navbar.scrolled .navbar-logo {
        height: 60px;
    }

    .logo-container {
        position: relative;
        left: 0;
    }

    .navbar {
        height: 80px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--dark-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-actions {
        display: none;
    }

    .mobile-only {
        display: block !important;
    }

    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

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

    /* Hero Typography Mobile */
    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-content h1 span {
        font-size: 0.6em;
        letter-spacing: 3px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .hero-content {
        padding-top: 200px;
        /* Adjust for mobile hanging logo */
    }

    .logo-container {
        /* Ensure logo is visible on mobile */
        padding-left: 5%;
    }
}

/* Hero Section */
#hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-start;
    /* Start from top to accommodate padding */
    justify-content: center;
    text-align: center;
    background-color: #000;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* ALL images default to visible but pushed to the back */
    opacity: 1;
    z-index: 1;
    transition: opacity 2s ease-in-out, z-index 2s;
}

.carousel-slide.active {
    /* Active image comes to the front */
    z-index: 2;
    animation: continuousZoom 8s linear forwards;
}

@keyframes continuousZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Composite background: Central Vignette + Overall Overlay */
    background:
        radial-gradient(circle at 50% 250px, rgba(0, 0, 0, 0.5) 0%, transparent 400px),
        linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(26, 26, 26, 0.4) 100%);
    z-index: 4;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 850px;
    padding: 480px 2rem 120px;
    /* Clear the hanging logo */
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    /* Slightly smaller & catchier */
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
    color: var(--primary-gold);
    display: block;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 5px;
    margin-top: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    /* Proportional reduction */
    margin-bottom: 3.5rem;
    color: rgba(245, 245, 245, 0.85);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--charcoal);
    border: 2px solid var(--primary-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-gold);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism accent */
.hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gold);
}

@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}