/* Custom styles for Sugar Run Cabins */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(15px) rotate(2deg); }
}

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

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Geometric shapes */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #34d4a8;
    top: -200px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #34d4a8;
    bottom: 10%;
    left: 5%;
    animation: float-slow 10s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid #34d4a8;
    top: 30%;
    right: 10%;
    animation: float-reverse 12s ease-in-out infinite;
    opacity: 0.06;
}

.geo-square {
    width: 150px;
    height: 150px;
    background: #34d4a8;
    bottom: 15%;
    right: 25%;
    animation: spin-slow 20s linear infinite;
    opacity: 0.05;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #34d4a8 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    top: 60%;
    left: 0;
    animation: float-slow 9s ease-in-out infinite;
    opacity: 0.06;
}

/* Experience section shapes */
.geo-experience-circle {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #34d4a8;
    bottom: -200px;
    right: -100px;
    animation: float 11s ease-in-out infinite;
    opacity: 0.04;
}

.geo-experience-dots {
    width: 180px;
    height: 180px;
    background-image: radial-gradient(circle, #34d4a8 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    top: 10%;
    left: 5%;
    animation: float-reverse 8s ease-in-out infinite;
    opacity: 0.05;
}

/* Gallery dots */
.geo-gallery-dots {
    width: 300px;
    height: 300px;
    background-image: radial-gradient(circle, #34d4a8 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    bottom: -50px;
    left: 5%;
    animation: float-slow 10s ease-in-out infinite;
    opacity: 0.04;
}

/* Hero badge */
.hero-badge {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Cabin cards */
.cabin-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Activity cards */
.activity-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link.show {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(247, 245, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 37, 64, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #0a2540;
}

.nav-scrolled .nav-link {
    color: #0a2540;
}

.nav-scrolled .nav-link:hover {
    color: #34d4a8;
}

.nav-scrolled #bar1,
.nav-scrolled #bar2,
.nav-scrolled #bar3 {
    background: #0a2540;
}

/* Mobile menu open state */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu-btn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #bar2 {
    opacity: 0;
}

#mobile-menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Date input styling */
input[type="date"] {
    color: #0a2540;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.4;
    cursor: pointer;
}

/* Selection color */
::selection {
    background: #34d4a8;
    color: #0a2540;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #34d4a8;
    outline-offset: 2px;
}

/* 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;
    }
}
