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

/* Navigation */
.nav {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Hero Geometric Shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.geo-circle--1 {
    width: 600px;
    height: 600px;
    background: #2dd4bf;
    top: -200px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    background: #5eead4;
    bottom: 10%;
    left: 5%;
    animation: float 15s ease-in-out infinite reverse;
}

.geo-circle--3 {
    width: 150px;
    height: 150px;
    background: #99f6e4;
    top: 30%;
    left: 10%;
    animation: float 12s ease-in-out infinite;
}

.geo-square {
    position: absolute;
    opacity: 0.06;
    transform: rotate(45deg);
}

.geo-square--1 {
    width: 120px;
    height: 120px;
    background: #2dd4bf;
    top: 20%;
    right: 15%;
    animation: spin 30s linear infinite;
}

.geo-square--2 {
    width: 80px;
    height: 80px;
    background: #5eead4;
    bottom: 25%;
    right: 25%;
    animation: spin 25s linear infinite reverse;
}

.geo-square--3 {
    width: 200px;
    height: 200px;
    background: #2dd4bf;
    top: 50%;
    right: -50px;
    animation: spin 40s linear infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.07;
}

.geo-triangle--1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #5eead4;
    top: 40%;
    left: 5%;
    animation: float 18s ease-in-out infinite;
}

.geo-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #2dd4bf;
    border-radius: 50%;
    opacity: 0.3;
}

.geo-dot--2 {
    width: 8px;
    height: 8px;
    background: #99f6e4;
    top: 25%;
    right: 30%;
    opacity: 0.4;
}

.geo-dot--3 {
    width: 16px;
    height: 16px;
    background: #5eead4;
    bottom: 30%;
    left: 20%;
    opacity: 0.2;
}

.geo-circle--4 {
    width: 400px;
    height: 400px;
    background: #2dd4bf;
    bottom: -100px;
    left: -100px;
    opacity: 0.05;
    animation: float 22s ease-in-out infinite;
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

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

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

/* Why Us Cards */
.why-card {
    position: relative;
}

.why-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), transparent);
    transition: opacity 0.3s ease;
}

.why-card:hover::after {
    opacity: 1;
}

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s 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; }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}
