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

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations - Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar Scroll State */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Custom Selection */
::selection {
    background-color: #FF6B4A;
    color: white;
}

/* Smooth Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input Autofill Styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Button Ripple Effect */
button, .ripple {
    position: relative;
    overflow: hidden;
}

/* Image Loading Placeholder */
img {
    background-color: #E8EAF0;
}

/* Mobile Menu Transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F7F8FA;
}

::-webkit-scrollbar-thumb {
    background: #D1D5E0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A8B0C0;
}

/* Subtle Grid Pattern Background */
.grid-pattern {
    background-image: linear-gradient(rgba(45, 55, 72, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(45, 55, 72, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Coral Gradient Text */
.text-coral-gradient {
    background: linear-gradient(135deg, #FF6B4A 0%, #F0502E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Lift */
.card-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

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

/* Pulse Animation for Badge */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 107, 74, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 107, 74, 0);
    }
}

.pulse-badge {
    animation: pulse-ring 2s infinite;
}
