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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #e0f5ee;
}
::-webkit-scrollbar-thumb {
    background: #7dd3c0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4dbfaa;
}

/* Header */
#site-header {
    background: rgba(242, 251, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(125, 211, 192, 0.15);
}

#site-header.scrolled {
    background: rgba(242, 251, 248, 0.95);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 1;
}

#mobile-menu .mobile-link {
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Burger animation */
.burger-active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.burger-active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger-active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 5px;
}

/* Hero animations */
.hero-tag {
    animation: fadeRight 0.8s ease forwards;
    opacity: 0;
}
.hero-title {
    animation: fadeRight 0.8s ease 0.15s forwards;
    opacity: 0;
}
.hero-desc {
    animation: fadeRight 0.8s ease 0.3s forwards;
    opacity: 0;
}
.hero-cta {
    animation: fadeRight 0.8s ease 0.45s forwards;
    opacity: 0;
}
.hero-images {
    animation: fadeLeft 1s ease 0.3s forwards;
    opacity: 0;
}
.hero-float {
    animation: float 4s ease-in-out infinite;
}
.hero-float-delayed {
    animation: float 4s ease-in-out 1s infinite;
}
.hero-scroll {
    animation: fadeIn 1s ease 1.2s forwards;
    opacity: 0;
}

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

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

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

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

/* Scroll reveal */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* Gallery strip */
.gallery-strip {
    display: flex;
    width: 100%;
}

.gallery-strip .gallery-item {
    flex-shrink: 0;
    width: 20%;
    overflow: hidden;
}

.gallery-strip .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-strip .gallery-item:hover img {
    transform: scale(1.1);
}

/* Menu hover effects */
#menu .space-y-5 > div {
    position: relative;
}

#menu .space-y-5 > div::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, #7dd3c0, transparent);
    transition: width 0.4s ease;
}

#menu .space-y-5 > div:hover::after {
    width: 100%;
}

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

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Print styles */
@media print {
    #site-header,
    #mobile-menu,
    .hero-scroll {
        display: none;
    }
    body {
        color: #0a1628;
        background: white;
    }
}
