/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
    background: #F5F5F0;
}

/* Enhanced Glassmorphism Nav */
.glass-nav {
    background: rgba(245, 245, 240, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(203, 161, 53, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav.scrolled {
    background: rgba(245, 245, 240, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

/* Unified Menu Structure */
.nav-menu {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Desktop Menu */
@media (min-width: 1024px) {
    .nav-menu {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        transform: none;
        opacity: 1;
        box-shadow: none;
    }

    .nav-menu ul {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .nav-menu li {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 0.5rem 0;
        color: #1D1D1D !important;
        font-size: 0.875rem;
    }

    .hamburger {
        display: none !important;
    }
}

.nav-cta {
    border: none!important;
}

.nav-cta a {
    padding: 14px 36px !important;
}

.h-15 {
    height: 3rem;
}

/* Full-Screen Awesome Mobile Menu */
@media (max-width: 1023px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 100dvh;
        background: linear-gradient(135deg,
                rgba(29, 29, 29, 0.98) 0%,
                rgba(47, 93, 80, 0.96) 35%,
                rgba(203, 161, 53, 0.94) 70%,
                rgba(224, 155, 80, 0.95) 100%);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
        visibility: hidden;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link::after {
        content: inherit!important;
    }

    .menu-toggle:checked~.nav-menu {
        transform: scale(1) translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(245, 245, 240, 0.12);
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    .menu-toggle:checked~.nav-menu li {
        animation: slideInAwesome 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .nav-menu li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-menu li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-menu li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav-menu li:nth-child(5) {
        animation-delay: 0.3s;
    }

    .nav-menu li:nth-child(6) {
        animation-delay: 0.35s;
    }

    .nav-menu li:nth-child(7) {
        animation-delay: 0.4s;
    }

    .nav-menu li:nth-child(8) {
        animation-delay: 0.45s;
    }

    @keyframes slideInAwesome {
        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }

    .nav-menu a {
        display: block;
        padding: 24px 20px;
        color: #F5F5F0 !important;
        font-size: 1.5rem;
        font-weight: 800;
        position: relative;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        text-align: center;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .nav-menu a::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #F5F5F0, transparent);
        transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-menu a:hover::before,
    .nav-menu a.active::before {
        width: 120px;
    }

    .nav-menu a:hover {
        color: #1D1D1D !important;
        padding-left: 30px;
        padding-right: 50px;
        background: rgba(245, 245, 240, 0.15);
        border-radius: 16px;
        transform: scale(1.05);
    }

    .nav-cta {
        margin-top: 40px;
        width: 100%;
        text-align: center;
        transform: scale(1.1);
    }

    .nav-cta a {
        background: linear-gradient(135deg, #F5F5F0 0%, #CBA135 100%) !important;
        color: #1D1D1D !important;
        padding: 20px 48px !important;
        border-radius: 60px !important;
        font-size: 1.3rem !important;
        box-shadow: 0 10px 40px rgba(203, 161, 53, 0.5);
        display: inline-block;
    }

    .nav-cta a:hover {
        transform: scale(1.08) !important;
        box-shadow: 0 15px 50px rgba(203, 161, 53, 0.7);
    }

    /* Decorative Elements */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(203, 161, 53, 0.3) 0%, transparent 70%);
        border-radius: 50%;
        animation: float 6s ease-in-out infinite;
    }

    .nav-menu::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: -80px;
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(47, 93, 80, 0.3) 0%, transparent 70%);
        border-radius: 50%;
        animation: float 8s ease-in-out infinite reverse;
    }
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 26px;
    cursor: pointer;
    z-index: 60;
    position: relative;
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #CBA135 0%, #E09B50 100%);
    border-radius: 4px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(203, 161, 53, 0.3);
}

.menu-toggle:checked~.hamburger span {
    background: linear-gradient(135deg, #F5F5F0 0%, #CBA135 100%);
}

.menu-toggle:checked~.hamburger span:nth-child(1) {
    transform: translateY(11.5px) rotate(45deg) scale(1.1);
}

.menu-toggle:checked~.hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-40px) rotate(180deg);
}

.menu-toggle:checked~.hamburger span:nth-child(3) {
    transform: translateY(-11.5px) rotate(-45deg) scale(1.1);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(29, 29, 29, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 40;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.menu-toggle:checked~.menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Nav Links - Desktop */
.nav-link {
    position: relative;
    color: #1D1D1D;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #CBA135, #E09B50);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: #CBA135;
}

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

/* Enhanced Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 29, 29, 0.65) 0%, rgba(47, 93, 80, 0.5) 50%, rgba(29, 29, 29, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    animation: fadeUpHero 1s ease-out;
}

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

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

.animate-fadeUp {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }
}

/* Float Animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Button Styles */
.btn-modern {
    position: relative;
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-modern {
    background: linear-gradient(135deg, #CBA135 0%, #E09B50 100%);
    color: #1D1D1D;
    box-shadow: 0 10px 30px rgba(203, 161, 53, 0.3);
}

.btn-primary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E09B50 0%, #CBA135 100%);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary-modern:hover::before {
    left: 0;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(203, 161, 53, 0.5);
}

.btn-secondary-modern {
    background: transparent;
    color: #F5F5F0;
    border: 2px solid #F5F5F0;
    position: relative;
    z-index: 1;
}

.btn-secondary-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #F5F5F0;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn-secondary-modern:hover::before {
    width: 300%;
    height: 300%;
}

.btn-secondary-modern:hover {
    color: #2F5D50;
    transform: translateY(-3px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #CBA135 0%, #E09B50 50%, #CBA135 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-animation 3s ease infinite;
}

@keyframes gradient-animation {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Stats Section */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(203, 161, 53, 0.4);
    border-color: rgba(203, 161, 53, 0.5);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #CBA135, #E09B50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Carousel Styles */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 32px;
    max-width: 100%;
    width: 100%;
    /* Ensure full width */
}

@media (max-width: 640px) {
    .carousel {
        border-radius: 16px;
        margin-bottom: 20px;
        margin-left: 0;
        margin-right: 0;
    }
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    width: 100%;
    /* Prevent track overflow */
}

.carousel-slide {
    min-width: 100%;
    max-width: 100%;
    /* Prevent slides from exceeding container */
    flex-shrink: 0;
}

/* Image containment fix */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Remove extra spacing */
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
    .carousel-btn {
        width: 48px;
        height: 48px;
        opacity: 0.9;
    }

    .carousel-btn.prev {
        left: 8px;
    }

    .carousel-btn.next {
        right: 8px;
    }

    .carousel-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(203, 161, 53, 0.95);
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: rgba(224, 155, 80, 1);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 32px rgba(203, 161, 53, 0.5);
}

.carousel-btn.prev {
    left: 24px;
}

.carousel-btn.next {
    right: 24px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 48px;
        height: 48px;
        opacity: 0.9;
    }

    .carousel-btn.prev {
        left: 8px;
    }

    .carousel-btn.next {
        right: 8px;
    }

    .carousel-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 640px) {
    .carousel-indicators {
        gap: 8px;
        margin-top: 16px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dot.active {
        width: 32px;
    }
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(203, 161, 53, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(203, 161, 53, 0.6);
    transform: scale(1.3);
}

.carousel-dot.active {
    width: 40px;
    border-radius: 6px;
    background: linear-gradient(90deg, #CBA135, #E09B50);
    box-shadow: 0 4px 12px rgba(203, 161, 53, 0.5);
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modern-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(203, 161, 53, 0.25);
}

.modern-card img {
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.modern-card:hover img {
    transform: scale(1.1);
}

/* Feature Modern */
.feature-modern {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(203, 161, 53, 0.2);
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(40px);
    animation: staggerFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

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

.stagger-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Parallax Background */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Image Reveal */
.image-reveal img {
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-reveal:hover img {
    transform: scale(1.05);
}

/* Badge */
.badge {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #CBA135, #E09B50);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #CBA135 0%, #E09B50 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(203, 161, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 40px rgba(203, 161, 53, 0.6);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 3px solid #CBA135;
    outline-offset: 3px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}