/* Custom Styles for Brain Freeze Sno Cones */

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #ff6b4a;
    color: white;
}

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

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

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

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

/* Hero Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
}

.hero-title {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-description {
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: slideUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-image {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-accent {
    animation: slideUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile Menu */
.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #ff6b4a;
    transition: width 0.3s ease;
}

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

/* About Images Animation */
.about-images {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.about-content {
    animation: slideUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

/* Menu Cards */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Input Focus Effects */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(255, 107, 74, 0.1);
}

/* Image Hover Zoom */
img {
    transition: transform 0.7s ease;
}

/* Footer Link Hover */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ff6b4a;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Reduced Motion */
@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;
    }
}
