/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(10, 35, 66, 0.08);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #0A2342;
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #0A2342;
}

#navbar.scrolled .nav-link:hover {
    color: #2BC4B4;
}

/* Hero Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.03); }
}

.hero-gradient-orb {
    animation: float 8s ease-in-out infinite;
}

.hero-gradient-orb2 {
    animation: float-delayed 10s ease-in-out infinite;
}

.hero-gradient-orb3 {
    animation: float 12s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

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

.animate-pulse-delay {
    animation-delay: 1.5s;
}

/* Hero badge */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

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

/* Reveal animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Service cards */
.service-card {
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

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

/* Mobile menu */
.mobile-link {
    border-radius: 12px;
    padding: 8px 16px;
}

.mobile-link:hover {
    background: rgba(64, 224, 208, 0.1);
}

/* Smooth focus styles */
input:focus, textarea:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #F0FCF9;
}

::-webkit-scrollbar-thumb {
    background: #40E0D0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2BC4B4;
}

/* Selection */
::selection {
    background: rgba(64, 224, 208, 0.3);
    color: #0A2342;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gradient-orb {
        width: 60%;
        left: -20%;
    }
    .hero-gradient-orb2 {
        width: 50%;
        right: -15%;
    }
    .hero-gradient-orb3 {
        width: 80%;
    }
}
