/* ===== Custom Styles for Go Deep Ammo ===== */

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

/* ===== Animations ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== Scroll Reveal ===== */

.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden state for reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ===== Navbar Scroll State ===== */

.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(114, 47, 55, 0.08);
}

/* ===== Custom Scrollbar ===== */

::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5A242C;
}

/* ===== Selection Color ===== */

::selection {
    background: rgba(250, 218, 221, 0.6);
    color: #722F37;
}

/* ===== Input Autofill ===== */

input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(253, 251, 247, 1) inset !important;
    -webkit-text-fill-color: #333333 !important;
}

input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px rgba(253, 251, 247, 1) inset !important;
    -webkit-text-fill-color: #333333 !important;
}

/* ===== Focus Visible ===== */

*:focus-visible {
    outline: 2px solid #722F37;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Button Hover Lift ===== */

button, a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Image Loading ===== */

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ===== Mobile Menu Transition ===== */

#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Adjustments ===== */

@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
