/* ===================================
   OBX Icee Fingers - Custom Styles
   Bold Editorial Design System
   =================================== */

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

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

/* Selection Color */
::selection {
    background-color: #68D391;
    color: #05101C;
}

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

::-webkit-scrollbar-track {
    background: #0A192F;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #68D391;
}

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

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

/* Slide Up */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Scroll Reveal */
@keyframes revealUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

/* Stagger Children */
.reveal-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===================================
   Navbar Styles
   =================================== */

.navbar-scrolled {
    background-color: rgba(5, 16, 28, 0.95) !important;
    backdrop-filter: blur(20px) !important;
}

/* ===================================
   Typography Enhancements
   =================================== */

.font-serif {
    line-height: 1.1;
}

/* ===================================
   Button Hover Effects
   =================================== */

a {
    text-decoration: none;
}

/* ===================================
   Image Hover Effects
   =================================== */

img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================
   Mobile Menu Transitions
   =================================== */

#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* ===================================
   Form Styles
   =================================== */

input,
textarea {
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #68D391 !important;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal,
    .reveal-child {
        /* Animations enabled */
    }
}

@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;
    }
    
    .reveal,
    .reveal-child {
        opacity: 1;
        transform: none;
    }
}

/* ===================================
   Focus Visible for Accessibility
   =================================== */

:focus-visible {
    outline: 2px solid #68D391;
    outline-offset: 2px;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-midnight-900,
    .bg-midnight-800 {
        background: white !important;
    }
    
    .text-white,
    .text-midnight-900 {
        color: black !important;
    }
}
