/* public/css/style.css */

/* Core animations and general transitions */
.transition-all {
    transition-duration: 300ms;
}

/* Glassmorphism Pattern (from reference) */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.08); /* Soft pronounced shadow */
}

.glass-card:hover {
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12); /* Elevate on hover */
    transform: translateY(-5px);
}

/* Gradients */
.gradient-text {
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aurora-bg {
    background: 
        radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(15, 23, 42, 0.05), transparent 25%);
    background-color: #F1F5F9;
}

/* Base keyframes for scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility classes for intersection observer logic */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Delay modifiers for sequential card animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Loader generic animations */
@keyframes spin-slow {
    100% {
        transform: rotate(-360deg);
    }
}
.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* Micro-interactions */
.btn-micro {
    position: relative;
    overflow: hidden;
}

.btn-micro::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.4s ease-out;
    opacity: 0;
}

.btn-micro:active::after {
    transform: scale(3);
    opacity: 1;
    transition: 0s;
}

/* Glow Effect */
.glow-effect {
    box-shadow: 
        0 0 15px rgba(37, 99, 235, 0.4),
        0 0 30px rgba(37, 99, 235, 0.2);
}

/* Smooth transition for navigation background */
.header-scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.4);
    height: 4.5rem; /* Slightly smaller on scroll */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(15, 23, 42, 0.95) 100%
    );
}
