/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }

/* ── Fixed Background Geometric Shapes ── */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

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

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
    bottom: 20%;
    left: -80px;
}

.geo-rect-1 {
    width: 200px;
    height: 200px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 30px;
    transform: rotate(45deg);
    top: 40%;
    right: 5%;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(5, 150, 105, 0.04);
    bottom: 10%;
    right: 15%;
    transform: rotate(-15deg);
}

/* ── Navbar ── */
.nav-scrolled {
    background: rgba(254, 254, 248, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.06);
}

.nav-logo-text {
    transition: color 0.2s;
}

.nav-link {
    position: relative;
}

/* ── Hero ── */
.hero-gradient {
    background: linear-gradient(135deg, #064e3b 0%, #047857 30%, #059669 60%, #10b981 100%);
}

.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    top: -150px;
    right: -100px;
}

.hero-geo-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -50px;
    left: -50px;
}

.hero-geo-3 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    top: 25%;
    left: 8%;
    transform: rotate(30deg);
}

.hero-geo-4 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    bottom: 30%;
    right: 10%;
}

.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

.hero-heading {
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-sub {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

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

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.4; }
}

/* ── Product Cards ── */
.product-card {
    background: white;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 4px 24px rgba(5, 78, 59, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(5, 78, 59, 0.12);
}

/* ── About Pattern ── */
.about-pattern {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

/* ── Contact Pattern ── */
.contact-pattern {
    background-image:
        radial-gradient(circle at 10% 90%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

/* ── Reveal Animations (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:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* Default visible state for no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

/* ── Mobile Menu ── */
.nav-mobile {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    display: block;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .geo-circle-1 { width: 250px; height: 250px; }
    .geo-circle-2 { width: 180px; height: 180px; }
    .geo-rect-1 { width: 120px; height: 120px; }
    .geo-triangle { display: none; }

    .hero-geo-1 { width: 280px; height: 280px; }
    .hero-geo-2 { width: 180px; height: 180px; }
    .hero-geo-3 { width: 80px; height: 80px; }
    .hero-geo-4 { display: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .geo-circle-1 { width: 320px; height: 320px; }
}

/* ── Focus Styles ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ── */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064e3b;
}
