/* Base styles & custom properties */
:root {
    --color-midnight-950: #0f1d4a;
    --color-midnight-900: #1e3a8a;
    --color-mint-400: #4ade80;
    --color-mint-500: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f1d4a;
    color: white;
    overflow-x: hidden;
}

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

.shape-circle-1 {
    top: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #4ade80;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    top: 60%;
    right: -8%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #4ade80;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 30%;
    left: 45%;
    width: 120px;
    height: 120px;
    background: #4ade80;
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

.shape-diamond {
    bottom: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: #4ade80;
    transform: rotate(45deg);
    animation: float-medium 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
    top: 5%;
    right: 20%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #4ade80;
    opacity: 0.15;
    animation: float-medium 8s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes float-medium {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(20px, -20px); }
}

/* Floating Cards */
.floating-card {
    animation: float-card 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

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

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

@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);
    }

    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card:nth-child(1) { transition-delay: 0.05s; }
    .service-card:nth-child(2) { transition-delay: 0.1s; }
    .service-card:nth-child(3) { transition-delay: 0.15s; }
    .service-card:nth-child(4) { transition-delay: 0.2s; }
    .service-card:nth-child(5) { transition-delay: 0.25s; }
    .service-card:nth-child(6) { transition-delay: 0.3s; }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 29, 74, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

/* Selection color */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: white;
}
