/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #152d52;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2bc4a0;
}

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

/* Navbar Transition */
nav.scrolled {
    background: rgba(6, 14, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(52, 212, 176, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .menu-line {
    background: #fff;
}

/* Mobile Menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#hero {
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}

/* Service cards staggered animation */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease;
}

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

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-12px) rotate(45deg); }
}

@keyframes floatCircle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Pulse for the status dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Image hover zoom */
.group img {
    transition: transform 0.6s ease;
}
.group:hover img {
    transform: scale(1.03);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Form input focus glow */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(52, 212, 176, 0.1);
}

/* Mobile menu line animation */
.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-line.active:nth-child(2) {
    opacity: 0;
}
.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA section shimmer */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .service-card {
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
}
