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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* ===== GEOMETRIC SHAPES (HERO) ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

/* Circles */
.circle-1 {
    width: 420px;
    height: 420px;
    border: 3px solid rgba(253, 236, 200, 0.5);
    border-radius: 50%;
    top: -80px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(253, 236, 200, 0.15);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float-medium 14s ease-in-out infinite;
}

.circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(253, 236, 200, 0.3);
    border-radius: 50%;
    top: 40%;
    right: 10%;
    animation: float-slow 18s ease-in-out infinite reverse;
}

/* Triangle */
.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(253, 236, 200, 0.1);
    top: 25%;
    left: 8%;
    transform: rotate(15deg);
    animation: spin-slow 30s linear infinite;
}

/* Square */
.square-1 {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(253, 236, 200, 0.25);
    top: 60%;
    right: 15%;
    animation: spin-slow 25s linear infinite reverse;
}

/* Diamond */
.diamond-1 {
    width: 60px;
    height: 60px;
    background: rgba(253, 236, 200, 0.12);
    top: 35%;
    right: 25%;
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

/* Ring */
.ring-1 {
    width: 160px;
    height: 160px;
    border: 4px solid rgba(253, 236, 200, 0.08);
    border-radius: 50%;
    bottom: 15%;
    right: 30%;
    animation: float-slow 22s ease-in-out infinite;
}

/* Dot grid */
.dot-grid {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 20%;
    background-image: radial-gradient(circle, rgba(253, 236, 200, 0.3) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    animation: float-medium 16s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* No JS fallback: ensure all content is visible */
@supports not (animation-name: reveal) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== NAVBAR SCROLL STATE ===== */
nav.scrolled {
    background: rgba(255, 253, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.1);
}

nav.scrolled .font-display {
    color: #065F46 !important;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #34D399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #059669;
}

/* ===== CUSTOM SELECT ===== */
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='%23059669' stroke-width='2' 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 12px center;
    padding-right: 36px;
}

/* ===== SELECTION ===== */
::selection {
    background: #059669;
    color: #FFF8F0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}
