/* Custom styles for Lotus House */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #112240;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a1628;
}

/* Hero animations - only below the fold content gets scroll reveal */
.hero-eyebrow,
.hero-title,
.hero-text,
.hero-cta {
    opacity: 1;
    animation: heroFadeIn 1s ease-out forwards;
}

.hero-title {
    animation: heroSlideUp 1s ease-out forwards;
}

.hero-title:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-text {
    animation: heroFadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-cta {
    animation: heroFadeIn 1s ease-out 0.8s forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scroll reveal animations - only for below-fold content */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator animation */
@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.animate-scroll {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* Navbar transition */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.1);
}

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

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

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

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Image hover effects */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Button hover effects */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

/* Reduced motion preference */
@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;
    }
}

/* Print styles */
@media print {
    .scroll-reveal,
    .animate-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}
