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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== GEOMETRIC DECORATIONS ===== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.geo-triangle-emerald {
    top: 15%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(5, 150, 105, 0.08);
    transform: rotate(15deg);
}

.geo-circle-cream {
    bottom: 20%;
    left: 3%;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(232, 188, 69, 0.15);
    border-radius: 50%;
}

.geo-dots {
    top: 40%;
    left: 2%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, rgba(5, 150, 105, 0.15) 2px, transparent 2px);
    background-size: 12px 12px;
}

.geo-zigzag {
    bottom: 10%;
    right: 8%;
    width: 80px;
    height: 40px;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 5px,
        rgba(224, 122, 95, 0.1) 5px,
        rgba(224, 122, 95, 0.1) 10px
    );
    clip-path: polygon(0% 0%, 10% 100%, 20% 0%, 30% 100%, 40% 0%, 50% 100%, 60% 0%, 70% 100%, 80% 0%, 90% 100%, 100% 0%);
}

/* ===== HERO PATTERN ===== */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(242, 208, 107, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(224, 122, 95, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
}

.highlights-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.02) 20px,
        rgba(255, 255, 255, 0.02) 40px
    );
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(0deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-16px) rotate(0deg); }
}

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

.floating-card {
    position: absolute;
    z-index: 10;
}

.card-stat-1 { animation: float-slow 4s ease-in-out infinite; }
.card-stat-2 { animation: float-medium 3.5s ease-in-out infinite; }
.card-stat-3 { animation: float-fast 3s ease-in-out infinite; }

/* ===== NAVBAR ===== */
.nav-link {
    position: relative;
}

#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

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

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

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

.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 20px;
}

/* ===== MENU TABS ===== */
.menu-tab {
    transition: all 0.3s ease;
}

.menu-tab.active {
    background: #059669;
    color: white;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.menu-tab:not(.active) {
    background: #FFF3D6;
    color: #065f46;
}

.menu-tab:not(.active):hover {
    background: #d1fae5;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===== GALLERY HOVER ===== */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

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

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#back-to-top:not(.visible) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
}

/* ===== UTILITY ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }

    .geo-shape {
        display: none;
    }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #065f46;
}
