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

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

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== GEOMETRIC BACKGROUND SHAPES ===== */
.fixed.inset-0.pointer-events-none {
    z-index: 0;
}

.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.geo-circle-1 {
    top: 15%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 3px solid #14b8a6;
    animation: float 20s ease-in-out infinite;
}

.geo-square-1 {
    top: 45%;
    right: -3%;
    width: 200px;
    height: 200px;
    background: #14b8a6;
    transform: rotate(45deg);
    animation: float 15s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    bottom: 20%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #14b8a6;
    animation: float 18s ease-in-out infinite;
}

.geo-circle-2 {
    top: 70%;
    right: 15%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #2dd4bf;
    animation: float 12s ease-in-out infinite reverse;
}

.geo-diamond-1 {
    top: 30%;
    right: 25%;
    width: 80px;
    height: 80px;
    background: #14b8a6;
    transform: rotate(45deg);
    opacity: 0.03;
    animation: float 22s ease-in-out infinite;
}

.geo-arc-1 {
    bottom: 10%;
    left: 30%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid #5eead4;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-45deg);
    animation: float 16s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-25px) rotate(1deg); }
}

/* ===== NAVBAR ===== */
.nav-bar {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-bar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #14b8a6 !important;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-menu-link {
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    color: #14b8a6;
    padding-left: 8px;
}

/* Hamburger */
.menu-line {
    transition: all 0.3s ease;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

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

.hero-trust {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

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

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

/* Scroll indicator */
.scroll-indicator {
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #14b8a6;
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    opacity: 1;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* These animations are progressive enhancement — content is visible by default */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-square-1 {
        width: 120px;
        height: 120px;
    }
    
    .geo-triangle-1 {
        border-left: 60px solid transparent;
        border-right: 60px solid transparent;
        border-bottom: 104px solid #14b8a6;
    }
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f0fdf9;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}
