/* ============================================
   BIFF Properties Okoboji — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0B0C0E;
}
::-webkit-scrollbar-thumb {
    background: #2C3036;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C06C44;
}

/* Selection */
::selection {
    background: rgba(192, 108, 68, 0.3);
    color: #E8D5C4;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(11, 12, 14, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 213, 196, 0.06);
}

/* Mobile Menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.active .mobile-link {
    animation: fadeSlideIn 0.4s ease forwards;
}

#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* Hamburger Animation */
#menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active #menu-line-2 {
    opacity: 0;
}
#menu-btn.active #menu-line-3 {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-anim {
    opacity: 1;
    animation: heroReveal 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
@keyframes scrollIndicator {
    0% {
        transform: translateY(-100%);
        opacity: 1;
    }
    100% {
        transform: translateY(200%);
        opacity: 0;
    }
}

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

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left {
        opacity: 1;
        transform: none;
    }

    .reveal-up {
        animation: revealUp 0.7s ease forwards;
    }

    .reveal-left {
        animation: revealLeft 0.7s ease forwards;
    }

    /* Staggered delays for grid items */
    .reveal-up:nth-child(1) { animation-delay: 0.05s; }
    .reveal-up:nth-child(2) { animation-delay: 0.15s; }
    .reveal-up:nth-child(3) { animation-delay: 0.25s; }
    .reveal-up:nth-child(4) { animation-delay: 0.35s; }
    .reveal-up:nth-child(5) { animation-delay: 0.45s; }
    .reveal-up:nth-child(6) { animation-delay: 0.55s; }
}

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

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    background: rgba(20, 22, 25, 0.8);
}

input::placeholder,
textarea::placeholder {
    color: rgba(196, 180, 164, 0.4);
}

/* ============================================
   Image Hover Effects
   ============================================ */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.05);
}

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

@media (min-width: 768px) {
    .reveal-up,
    .reveal-left {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #gallery,
    #contact-form,
    .animate-scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: #1a1a1a;
    }
}
