/* ============================================
   Bo Kay's By Nina — Custom Styles
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Navbar
   ============================================ */
.nav-header {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, padding 0.5s ease;
}

.nav-header.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 175, 55, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* ============================================
   Hero
   ============================================ */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.9) 0%,
        rgba(10, 22, 40, 0.75) 50%,
        rgba(10, 22, 40, 0.5) 100%
    );
}

.hero-title {
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    letter-spacing: 0.4em;
}

.hero-desc {
    letter-spacing: 0.01em;
}

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-indicator {
    opacity: 0.7;
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        height: 48px;
        opacity: 0;
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0);
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    z-index: 40;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    position: relative;
}

/* ============================================
   Thin decorative lines
   ============================================ */
.divider-line {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(10, 22, 40, 0.15),
        transparent
    );
}

/* ============================================
   Image hover effects
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Selection color
   ============================================ */
::selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #0a1628;
}

/* ============================================
   Focus styles
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 1px solid #d4af37;
    outline-offset: 4px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-header {
        background-color: rgba(10, 22, 40, 0.95);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* ============================================
   Smooth image loading
   ============================================ */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}
