/* ========== GLOBAL ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: #34d4a0;
    color: #0a1628;
}

/* ========== GEOMETRIC SHAPES ========== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 212, 160, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(52, 212, 160, 0.05);
    bottom: 100px;
    left: -80px;
    animation: float 6s ease-in-out infinite reverse;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(52, 212, 160, 0.06);
    top: 30%;
    right: 10%;
    transform: rotate(20deg);
    animation: spin-slow 20s linear infinite;
}

.rect-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(52, 212, 160, 0.1);
    top: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: float 10s ease-in-out infinite;
}

.dot-grid {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(52, 212, 160, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 20%;
    right: 5%;
    opacity: 0.6;
}

.circle-3 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(52, 212, 160, 0.08);
    bottom: -200px;
    right: -100px;
    animation: float 12s ease-in-out infinite;
}

.rect-2 {
    width: 200px;
    height: 80px;
    background: rgba(52, 212, 160, 0.04);
    top: 15%;
    left: -50px;
    transform: rotate(-15deg);
    animation: float 7s ease-in-out infinite reverse;
}

.circle-4 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.06);
    top: -100px;
    left: -100px;
    animation: float 9s ease-in-out infinite;
}

.rect-3 {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(10, 22, 40, 0.08);
    bottom: 10%;
    right: 15%;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite;
}

.circle-5 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 212, 160, 0.06) 0%, transparent 70%);
    top: 10%;
    left: -100px;
    animation: float 11s ease-in-out infinite reverse;
}

.rect-4 {
    width: 150px;
    height: 60px;
    background: rgba(52, 212, 160, 0.03);
    bottom: 20%;
    right: -30px;
    transform: rotate(10deg);
    animation: float 8s ease-in-out infinite;
}

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

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

/* ========== HEADER ========== */
#header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #34d4a0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== HAMBURGER ========== */
.hamburger-line {
    transition: all 0.3s ease;
}

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

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

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

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    color: #34d4a0;
    transform: translateX(8px);
}

/* ========== HERO ========== */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

#hero h1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

#hero p {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

#hero .flex-wrap {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

#hero .flex.gap-10 {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

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

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(52, 212, 160, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.6); }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #34d4a0, #2bb888);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* ========== APPROACH CARDS ========== */
.approach-card {
    position: relative;
}

.approach-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #34d4a0;
    transition: width 0.4s ease;
    border-radius: 2px;
}

.approach-card:hover::after {
    width: 60%;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s 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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ========== COUNTER ANIMATION ========== */
.counter {
    display: inline-block;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .geo-shape {
        display: none;
    }

    .circle-1, .circle-3, .circle-5 {
        display: block;
        width: 200px;
        height: 200px;
    }

    .triangle-1, .rect-1, .rect-2, .rect-3, .rect-4 {
        display: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .font-display.text-4xl {
        font-size: 2rem;
    }
}
