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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1f15;
}
::-webkit-scrollbar-thumb {
    background: #2d6b50;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #faf8f4;
}

/* Animations */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    50% { top: 60%; opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

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

/* Hero Animations */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-headline span {
    animation: fadeUp 0.8s ease forwards;
}
.hero-headline span:nth-child(1) { animation-delay: 0.4s; }
.hero-headline span:nth-child(2) { animation-delay: 0.6s; }
.hero-headline span:nth-child(3) { animation-delay: 0.8s; }
.hero-headline span:nth-child(4) { animation-delay: 1s; }

.hero-desc {
    animation: fadeUp 0.8s ease forwards 1.2s;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards 1.4s;
}

.hero-stats {
    animation: fadeUp 0.8s ease forwards 1.6s;
}

.hero-image {
    animation: scaleIn 1s ease forwards 0.5s;
    opacity: 0;
}

.hero-floating {
    animation: floatUp 0.8s ease forwards 2s;
    opacity: 0;
}

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

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

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Section Styles */
.section-label {
    display: block;
}

.section-title {
    font-weight: 500;
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

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

/* Mobile Menu */
.mobile-nav-link {
    font-size: 1.5rem;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 31, 21, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.navbar-scrolled .nav-link {
    color: rgba(235, 228, 214, 0.7) !important;
}

/* Menu button animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* Form styles */
select option {
    background: #1a3a2a;
    color: #f5f0e8;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.75rem;
    }

    .hero-image img {
        height: 400px;
    }

    .hero-floating {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        display: inline-block;
    }

    .about-img-accent {
        display: none !important;
    }

    .about-img-main img {
        height: 350px !important;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.25rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats > div:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
    }
}
