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

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

body {
    margin: 0;
    background-color: #030d17;
}

::selection {
    background-color: rgba(56, 239, 125, 0.3);
    color: #f0f4f8;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle {
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 239, 125, 0.4) 0%, transparent 70%);
}

.geo-circle--xl {
    width: 600px;
    height: 600px;
}

.geo-circle--lg {
    width: 400px;
    height: 400px;
}

.geo-circle--md {
    width: 250px;
    height: 250px;
}

.geo-circle--sm {
    width: 120px;
    height: 120px;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 100px 173px 100px;
    border-color: transparent transparent rgba(56, 239, 125, 0.3) transparent;
    transform: rotate(-15deg);
}

.geo-square {
    background: rgba(56, 239, 125, 0.3);
    border-radius: 12px;
}

.geo-square--rotated {
    transform: rotate(45deg);
}

.geo-square--lg {
    width: 150px;
    height: 150px;
}

.geo-rect {
    background: rgba(56, 239, 125, 0.3);
    border-radius: 24px;
}

.geo-rect--1 {
    width: 300px;
    height: 500px;
    top: 10%;
    right: -50px;
    transform: rotate(15deg);
}

.geo-rect--2 {
    width: 200px;
    height: 300px;
    bottom: 5%;
    left: 5%;
    transform: rotate(-10deg);
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(56, 239, 125, 0.6) 1px, transparent 1px);
    background-size: 16px 16px;
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

/* ===== 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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navigation ===== */
.nav-header {
    background: rgba(3, 13, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-header.scrolled {
    background: rgba(3, 13, 23, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(56, 239, 125, 0.6);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

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

/* ===== Mobile Menu ===== */
.mobile-link {
    position: relative;
}

.mobile-link:hover,
.mobile-link:focus {
    color: #38ef7d;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #38ef7d;
    transition: width 0.2s ease;
}

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

/* ===== 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, #38ef7d, #2dd468);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== Insurance Cards ===== */
.insurance-card {
    position: relative;
    overflow: hidden;
}

.insurance-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38ef7d, #2dd468);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 239, 125, 0.1);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239fb3cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ===== Smooth Scroll Offset ===== */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-circle--xl {
        width: 300px;
        height: 300px;
    }

    .geo-circle--lg {
        width: 200px;
        height: 200px;
    }

    .geo-rect--1 {
        width: 150px;
        height: 250px;
    }

    .geo-rect--2 {
        width: 100px;
        height: 150px;
    }
}
