/* Custom styles for Mustang Donuts */

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #09090b;
}
::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff6b35;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: #fff;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .card-dark, .card-light {
        transition: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on hero image */
.hero-bg img {
    will-change: transform;
}

/* Smooth gradient for hero overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(9,9,11,0.92) 0%, rgba(9,9,11,0.7) 50%, rgba(255,107,53,0.25) 100%);
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(15px) rotate(50deg); }
}

.geo-circle, .geo-square {
    animation: float 6s ease-in-out infinite;
}

.geo-square {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Stagger animation delays for cards */
.card-dark:nth-child(1) { transition-delay: 0.05s; }
.card-dark:nth-child(2) { transition-delay: 0.1s; }
.card-dark:nth-child(3) { transition-delay: 0.15s; }
.card-dark:nth-child(4) { transition-delay: 0.2s; }
.card-dark:nth-child(5) { transition-delay: 0.25s; }
.card-dark:nth-child(6) { transition-delay: 0.3s; }

/* Navbar scroll behavior */
.navbar {
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile menu transitions */
.mobile-menu {
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-overlay {
    transition: opacity 0.3s ease;
}

/* Button ripple effect on hover */
.btn-coral::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    transition: opacity 0.3s;
}

.btn-coral:hover::after {
    opacity: 1;
}

/* Ensure text contrast on all sections */
.section-dark h2,
.section-charcoal h2,
.section-coral h2 {
    color: inherit;
}

/* Card hover glow effect */
.card-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.1);
    pointer-events: none;
}

.card-dark:hover::before {
    opacity: 1;
}

.card-dark {
    position: relative;
}

/* Footer accent bar gradient */
.accent-bar {
    background: linear-gradient(90deg, #ff6b35, #ff8a52, #ffd0b8, #ff8a52, #ff6b35);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

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