/* ===== Custom Styles for Crescent Dunes 101 ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFAF0;
}
::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2D6A4F;
}

/* ===== Navigation ===== */
.nav-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A843;
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}

nav.scrolled .nav-text {
    color: #1B4332;
}

nav.scrolled .nav-link {
    color: #1B4332;
}

nav.scrolled .menu-line {
    background: #1B4332;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

.mobile-nav-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    color: #D4A843;
    padding-left: 8px;
}

/* ===== Hero Section ===== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(27, 67, 50, 0.06) 0%, transparent 70%);
    top: -100px;
    left: -200px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.1) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(27, 67, 50, 0.08);
    top: 20%;
    right: 15%;
    border-radius: 20px;
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

.shape-dots {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 5%;
    background-image: radial-gradient(circle, rgba(27, 67, 50, 0.1) 1px, transparent 1px);
    background-size: 12px 12px;
    border-radius: 50%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes spin-slow {
    from { transform: rotate(15deg); }
    to { transform: rotate(375deg); }
}

/* Hero content animation */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-image {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeLeft 0.8s ease 0.2s forwards;
}

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

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll dot animation */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ===== About Section ===== */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Amenity Cards ===== */
.amenity-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.amenity-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Gallery ===== */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== Location ===== */
.location-content {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.location-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.location-image {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease 0.2s;
}

.location-image.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .shape-circle-1 {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    .shape-rect-1 {
        width: 60px;
        height: 60px;
    }
}

/* ===== Utility: Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
