/* ============================================
   Wolf's Hole In One — Custom Styles
   ============================================ */

/* 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: rgba(245, 197, 24, 0.3);
    color: #f5e9f7;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2a0a30;
}
::-webkit-scrollbar-thumb {
    background: #7B2D8E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a34faa;
}

/* ============================================
   Floating Card Animations (Hero)
   ============================================ */
.floating-card-1 {
    animation: float1 6s ease-in-out infinite;
}
.floating-card-2 {
    animation: float2 7s ease-in-out infinite;
}
.floating-card-3 {
    animation: float3 5s ease-in-out infinite;
}
.floating-card-4 {
    animation: float4 6.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-1deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}
@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-0.5deg); }
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }

    .reveal-up {
        animation: revealUp 0.8s ease-out both;
    }
    .reveal-left {
        animation: revealLeft 0.8s ease-out both;
    }
    .reveal-right {
        animation: revealRight 0.8s ease-out both;
    }

    @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);
        }
    }
    @keyframes revealRight {
        from {
            opacity: 0;
            transform: translateX(40px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Stagger delays */
    .reveal-up:nth-child(1) { animation-delay: 0.1s; }
    .reveal-up:nth-child(2) { animation-delay: 0.2s; }
    .reveal-up:nth-child(3) { animation-delay: 0.3s; }
    .reveal-up:nth-child(4) { animation-delay: 0.4s; }
}

/* Reduced motion — disable animations */
@media (prefers-reduced-motion: reduce) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        animation: none;
    }
    .reveal-up,
    .reveal-left,
    .reveal-right {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

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

#navbar.scrolled {
    background: rgba(42, 10, 48, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu button animation */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 5;
}

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

/* Mobile link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5C518;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* ============================================
   Buttons & Links
   ============================================ */
a {
    text-decoration: none;
}

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

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

textarea {
    field-sizing: content;
}

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

/* ============================================
   Print
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }
    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        animation: none;
    }
}
