* {
    scroll-behavior: smooth;
}

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

.heading-font {
    font-family: 'Poppins', sans-serif;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.gradient-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 25%, #334155 50%, #475569 75%, #64748B 100%);
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.2) 0%, transparent 50%);
    z-index: 2;
}

.modern-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

.hero-grid {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.partner-badge img { display: inline-block; }
.partner-badge span { color: #e6eef8; }

/* Small responsive adjustments */
@media (max-width: 640px) {
    .hero-content h1 { font-size: 2.2rem; }
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
    nav { padding: 0.5rem 1rem; }
    .heading-font { font-weight: 600; }
    .hero-content { padding: 2rem 1rem; }
    .modern-card { padding: 1rem; border-radius: 16px; }
    .partner-badge { padding: 0.5rem 0.75rem; }
    .card-hover { margin-bottom: 0.75rem; }
    input, select, button { font-size: 16px; }
    h2 { font-size: 1.875rem !important; }
    .text-xl { font-size: 1.125rem; }

    /* Improve touch targets for mobile */
    a, button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 { font-size: 3.5rem; }
    .max-w-7xl { padding-left: 2rem; padding-right: 2rem; }
}

/* Ensure mobile menu overlay shows correctly */
#mobile-menu { width: 85% !important; max-width: 380px; }
#mobile-menu-overlay.hidden { display: none !important; }

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improve focus states for accessibility */
a:focus, button:focus, input:focus, select:focus {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* Ensure proper spacing on small screens */
@media (max-width: 640px) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}
