/* Custom styles for Fray's Mini Donuts */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Body styling */
body {
    font-family: 'Nunito', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
}

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(135deg, #1a2744 0%, #3b5bdb 50%, #36b882 100%);
}

/* Card shadow effect */
.card-shadow {
    box-shadow: 0 10px 40px rgba(26, 39, 68, 0.12);
}

/* Card hover effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(26, 39, 68, 0.18);
}

/* Primary button styling */
.btn-primary {
    background: linear-gradient(135deg, #36b882, #249866);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #249866, #1a7d53);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(54, 184, 130, 0.4);
}

/* Secondary button styling */
.btn-secondary {
    background: transparent;
    border: 2px solid #1a2744;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #1a2744;
    color: #fff;
    transform: translateY(-2px);
}

/* Blob animation */
.blob {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { 
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; 
    }
    50% { 
        border-radius: 70% 30% 58% 42% / 55% 55% 45% 45%; 
    }
}

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

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

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

/* Donut pattern background */
.donut-pattern {
    background-image: radial-gradient(circle, rgba(54, 184, 130, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
}

/* Navigation link underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #36b882;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #36b882;
    border-radius: 5px;
}

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

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 3px solid #36b882;
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-gradient {
        min-height: 100vh;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* Print styles */
@media print {
    .hero-gradient, .blob, .float {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
