/* ========================================
   BRAMFORTH AI - MAIN STYLES
   ======================================== */

/* CSS Variables for Easy Theme Changes */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-accent: #0ea5e9;
    --color-success: #10b981;
    --transition-base: all 0.3s ease;
}

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

body {
    overflow-x: hidden;
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Animation Delays */
.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

.animation-delay-600 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Scroll Animations (will be triggered by Intersection Observer) */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   NAVBAR STYLES
   ======================================== */

/* Scrolled navbar gets a shadow */
#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* ========================================
   HERO SECTION
   ======================================== */

#hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Gradient animation (subtle) */
#hero .absolute.inset-0 {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #0ea5e9 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

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

/* ========================================
   BUTTONS
   ======================================== */

/* Primary Button Hover Effects */
button, a[class*="bg-primary"] {
    transition: var(--transition-base);
}

/* ========================================
   CARDS
   ======================================== */

/* Problem Cards Hover Effect */
#problem .rounded-2xl {
    transition: var(--transition-base);
}

#problem .rounded-2xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ========================================
   UTILITIES
   ======================================== */

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(12px)) {
    .backdrop-blur-md {
        backdrop-filter: blur(12px);
    }
}

/* Smooth Transitions */
a, button {
    transition: var(--transition-base);
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

/* Hide on mobile, show on desktop */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@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;
    }
}
