/* Custom styles for Ice Cream Churn at Marina */

/* Base adjustments */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth focus styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #C0603A;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(92, 58, 33, 0.08);
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

    .marquee-track {
        animation: none;
    }

    .float-anim,
    .float-reverse-anim {
        animation: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .reveal-hidden {
        opacity: 1;
        transform: translateY(0);
    }
}
