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

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

body {
    background-color: #0a2540;
    color: #c5d3e5;
}

/* Geometric Background Shapes */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 2px solid rgba(52, 211, 153, 0.06);
    top: -100px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(52, 211, 153, 0.04);
    top: 30%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.05) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-square {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(52, 211, 153, 0.06);
    top: 50%;
    right: 5%;
    transform: rotate(45deg);
    animation: float-slow 22s ease-in-out infinite reverse;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(52, 211, 153, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 30%;
    left: 5%;
    animation: float-slow 25s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

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

.floating-card-2 {
    animation: float-card-2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-card-3 6s ease-in-out infinite;
}

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

@keyframes float-card-2 {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

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

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s 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; }

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(10, 37, 64, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(52, 211, 153, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Selection */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #fff;
}

/* Mobile menu link transitions */
.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(100, 157, 195, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23639ec4' 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: 36px;
}
