/* ============================================
   Blue Raven Studio — Custom Styles
   ============================================ */

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

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

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

/* Selection */
::selection {
    background: #274626;
    color: #f5f3ee;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ee;
}
::-webkit-scrollbar-thumb {
    background: #467544;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #335a31;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

.mobile-link {
    transition: opacity 0.3s ease;
}

.mobile-link:hover {
    opacity: 0.8;
}

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

#heroEyebrow {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

#heroHeadline {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

#heroSub {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

#heroCTA {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ============================================
   Button & Link Hovers
   ============================================ */
a {
    text-decoration: none;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(70, 117, 68, 0.2);
}

/* ============================================
   Image Transitions
   ============================================ */
img {
    display: block;
    max-width: 100%;
}

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

    .reveal-section {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
