/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #A7F3D0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6EE7B7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

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

/* Hero Animations */
.hero-content {
    animation: fadeInLeft 0.8s ease-out both;
}

.hero-image {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

/* Scroll Animations */
.about-content,
.about-images {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.product-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

.lounge-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.lounge-image {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out 0.2s, transform 0.7s ease-out 0.2s;
}

.lounge-image.visible {
    opacity: 1;
    transform: translateY(0);
}

.location-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.location-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.location-info > div {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.location-info > div.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-cta {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.contact-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form-wrapper {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out 0.2s, transform 0.7s ease-out 0.2s;
}

.contact-form-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator animation */
.animate-scrollDown {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* Floating animation for cards */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
}

/* Nav scroll state */
nav.scrolled {
    background: rgba(253, 251, 247, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(167, 243, 208, 0.3);
    box-shadow: 0 4px 30px rgba(6, 78, 59, 0.05);
}

nav.scrolled .logo-text {
    color: #064E3B !important;
}

/* Mobile menu transition */
#mobileMenu {
    animation: fadeInUp 0.3s ease-out;
}

#mobileMenu.hidden {
    animation: none;
}

/* Image hover zoom */
.rounded-3xl.overflow-hidden img,
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s ease;
}

.rounded-3xl.overflow-hidden:hover img,
.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Selection */
::selection {
    background: #A7F3D0;
    color: #064E3B;
}

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