/* ============================================
   OMEGA MOTORCYCLE — Custom Styles
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0b412b;
}
::-webkit-scrollbar-thumb {
    background: #36a874;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5ec593;
}

/* --- Selection --- */
::selection {
    background: #36a874;
    color: #fdfcf8;
}

/* --- Smooth Image Loading --- */
img {
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* --- Navbar Scroll State --- */
#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 84, 54, 0.08);
}

#navbar.scrolled .nav-link {
    color: #0f5436;
}

#navbar.scrolled .nav-link:hover {
    color: #36a874;
}

#navbar.scrolled .font-serif {
    color: #0f5436;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    transform: translateX(0);
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #36a874;
    outline-offset: 2px;
}

/* --- Button Hover Effects --- */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* --- Form Input Transitions --- */
input, textarea {
    transition: border-color 0.3s ease;
}

/* --- Mobile Menu Animation --- */
.menu-line {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

/* --- Service Card Hover --- */
.group:hover .w-10 {
    transform: scale(1.1);
}

/* --- Subtle Parallax for Hero --- */
@media (prefers-reduced-motion: no-preference) {
    #hero {
        will-change: background-position;
    }
}
