/* Base styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(88, 28, 135, 0.1);
}

/* Card hover effects */
.card-elevate {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-elevate:hover {
    transform: translateY(-6px);
}

/* Floating card animations */
.floating-card {
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-card:nth-child(3) {
    animation-delay: 1s;
}

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

/* Hero shape animations */
.hero-shape {
    animation: pulse-shape 4s ease-in-out infinite;
}

.hero-shape:nth-child(2) {
    animation-delay: 1s;
}

.hero-shape:nth-child(3) {
    animation-delay: 2s;
}

@keyframes pulse-shape {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.35; }
}

/* Area card hover */
.area-card {
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

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

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .hero-shape {
        animation: none;
    }
    
    .card-elevate,
    .area-card {
        transition: none;
    }
}
