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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #1B4332;
    color: #FDFCF8;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #1B4332 !important;
}

#navbar.scrolled .nav-link::after {
    background: #1B4332;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

#mobile-menu-btn.active #hamburger span:first-child {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

#mobile-menu-btn.active #hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-btn.active #hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
    width: 1.4rem;
}

/* ===== Hero Animations ===== */
.hero-bg {
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-tag {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-headline {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-cta {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.hero-stats {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

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

/* ===== Scroll Reveal ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== Service Cards ===== */
.service-card {
    transform: translateY(0);
}

/* ===== Testimonial Cards ===== */
.reveal-up {
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.4s ease;
}

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: #A5D6A7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #66BB6A;
}

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

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stats > div {
        border-left: none !important;
        padding-left: 0 !important;
    }

    .floating-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
}
