/* ========== Base & Utilities ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: #065f46;
    color: #fefce8;
}

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

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* ========== Mobile Menu ========== */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* ========== Hero ========== */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-image {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: heroFadeIn 0.8s 0.2s ease forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== Hero Background Shapes ========== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 5%;
    right: -5%;
}

.shape-circle-2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 15%;
    left: -3%;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(52, 211, 153, 0.08);
    border-radius: 24px;
    top: 20%;
    left: 8%;
    transform: rotate(15deg);
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(16, 185, 129, 0.06);
    top: 60%;
    right: 5%;
    transform: rotate(-20deg);
}

/* ========== Float Animation ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ========== Service Cards ========== */
.service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

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

/* ========== Why Cards ========== */
.why-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

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

/* ========== Scroll Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 240px;
        height: 240px;
    }
    .shape-circle-2 {
        width: 160px;
        height: 160px;
    }
    .shape-square-1 {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.5rem;
    }
}
