/* ==================== Base ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1E293B;
    background-color: #F8FAFC;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

img { max-width: 100%; height: auto; display: block; }

/* ==================== Hero ==================== */
.hero-dark {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    position: relative;
}

.hero-content { position: relative; z-index: 1; }

.gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #2563EB 40%, #06B6D4 80%, #22D3EE 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 8s ease infinite;
}

.cta-gradient {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #1E3A5F 70%, #0F172A 100%);
}

/* ==================== Navigation ==================== */
#navbar { background: transparent; }

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-link { color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }
.nav-link:hover { color: rgba(255, 255, 255, 1); }
#navbar.scrolled .nav-link { color: #64748B; }
#navbar.scrolled .nav-link:hover { color: #2563EB; }

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

.nav-logo { filter: brightness(0) invert(1); }
#navbar.scrolled .nav-logo { filter: none; }

#mobileMenuBtn { color: white; }
#navbar.scrolled #mobileMenuBtn { color: #334155; }

/* ==================== Animations ==================== */
@keyframes blob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-blob { animation: blob 8s infinite; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* ==================== Scroll to Top ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: #2563EB;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    z-index: 1000;
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ==================== Selection ==================== */
::selection { background: rgba(37, 99, 235, 0.15); color: #0F172A; }

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .hero-dark { padding-top: 5rem; }
}
