/* ============================================
   Dragonfly Landing — Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #e4714a;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8431f;
}

/* Selection */
::selection {
    background: #f5c0ab;
    color: #652817;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(184, 67, 31, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
    position: relative;
}

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

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

.btn-primary-nav {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary-nav:hover {
    background: white;
    color: #b8431f;
    border-color: white;
    transform: translateY(-2px);
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

/* ============================================
   Hero
   ============================================ */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

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

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #d4562a, #e4714a);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 800;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(212, 86, 42, 0.4);
    background: linear-gradient(135deg, #b8431f, #d4562a);
}

.btn-secondary {
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    transform: translateY(-3px);
}

/* ============================================
   Amenities Cards
   ============================================ */
.amenity-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(101, 40, 23, 0.3), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item {
    position: relative;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   Contact Form
   ============================================ */
#contact-form input:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 4px rgba(212, 86, 42, 0.1);
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    @media (min-width: 640px) {
        .hero-title {
            font-size: 3.5rem;
        }
    }
    
    @media (min-width: 768px) {
        .hero-title {
            font-size: 4rem;
        }
    }
    
    @media (min-width: 1024px) {
        .hero-title {
            font-size: 5rem;
        }
    }
}

/* ============================================
   Focus styles for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #e4714a;
    outline-offset: 2px;
    border-radius: 8px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    .hero-cta,
    .amenity-card {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
