/* ── Base & Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(20, 184, 166, 0.3);
    color: white;
}

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #14b8a6 0%, transparent 70%);
    top: -200px;
    right: -150px;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #0d9488 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: #14b8a6;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    opacity: 0.03;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #2dd4bf;
    top: 60%;
    left: 3%;
    opacity: 0.04;
}

.shape-ring-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid #14b8a6;
    top: 75%;
    right: 10%;
    opacity: 0.04;
}

/* ── Floating Cards ── */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.card-stats-1 {
    animation-delay: 0s;
}

.card-stats-2 {
    animation-delay: 1.3s;
}

.card-stats-3 {
    animation-delay: 2.6s;
}

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

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

.nav-scrolled {
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ── Service Cards ── */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(20, 184, 166, 0.15);
}

/* ── Product Cards ── */
.product-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(20, 184, 166, 0.2);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger children */
.reveal-grid > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-grid > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-grid > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-grid > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-grid > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-grid > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-grid > *:nth-child(6) { transition-delay: 0.40s; }

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

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

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .floating-card {
        display: none;
    }
}
