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

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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ── Geometric Shapes (Hero) ── */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border: 3px solid #2dd4bf;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: #2dd4bf;
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    border: 3px solid #fb923c;
    top: 30%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    background: #fb923c;
    top: 60%;
    right: 10%;
    transform: rotate(20deg);
    animation: float 7s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #2dd4bf;
    opacity: 0.06;
    top: 15%;
    left: 15%;
    animation: spin-slow 15s linear infinite;
}

.shape-dots {
    background-image: radial-gradient(circle, #2dd4bf 1px, transparent 1px);
    background-size: 24px 24px;
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 5%;
    opacity: 0.15;
}

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

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

/* ── Navbar ── */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ── 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, #0d9488, #2dd4bf);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

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

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    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; }

/* ── Back to Top ── */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:hover {
    transform: translateY(-3px);
}

/* ── Mobile Menu Transition ── */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }

    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }

    .shape-square-1,
    .shape-square-2,
    .shape-triangle-1,
    .shape-dots {
        display: none;
    }
}

/* ── Utility ── */
@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;
    }
}
