/* ============================================
   VOLT HOUSE OC — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #722F37;
    color: #FDF8F6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F6;
}
::-webkit-scrollbar-thumb {
    background: #c4a0a5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #722F37;
}

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

#navbar.scrolled {
    background: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(114, 47, 55, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #722F37;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled .nav-link {
    color: #722F37 !important;
}

#navbar.scrolled .nav-link:hover {
    color: #c4394a !important;
}

#navbar.scrolled .nav-link::after {
    background: #c4394a;
}

#navbar.scrolled .menu-line {
    background: #722F37;
}

#navbar.scrolled .font-serif,
#navbar.scrolled .font-sans {
    color: #722F37 !important;
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-size: 1.125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #722F37;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #c4394a;
}

/* Hamburger animation */
.menu-line {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

/* ============================================
   HERO
   ============================================ */
#hero {
    position: relative;
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ============================================
   MARQUEE
   ============================================ */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ============================================
   REVEAL ANIMATIONS (progressive enhancement)
   ============================================ */
.reveal {
    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.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-marquee {
        animation: none;
    }
    .animate-scroll-indicator {
        animation: none;
    }
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #d4a8ad;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    #experience .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   IMAGE LOADING
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    #navbar,
    .animate-marquee,
    #hero {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
