/* Wildwood Studios - Custom Styles
   Fantasy RPG website with elegant dark forest aesthetic */

:root {
    --forest-dark: #0a120f;
    --forest-mid: #11241a;
    --gold: #c5a26f;
    --gold-light: #d4b17d;
    --text-muted: #a89f8a;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar styles */
#nav {
    background: rgba(10, 18, 15, 0.85);
    backdrop-filter: blur(12px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

#nav.scrolled {
    background: rgba(10, 18, 15, 0.97);
    box-shadow: 0 1px 0 0 rgba(197, 162, 111, 0.08);
}

/* Hide on scroll down */
#nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-link {
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 8px 12px;
    font-weight: 500;
}

.nav-link:hover {
    color: #c5a26f;
    transform: translateY(-1px);
}

/* Elegant underline for large header nav */
.nav-link:after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #c5a26f, #d4b17d);
    transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover:after {
    width: calc(100% - 24px);
}

/* Header Logo - Fantasy shield with hover effect */
.header-logo {
    width: auto;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), 
                filter 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.header-logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 18px rgba(197, 162, 111, 0.7)) 
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Mobile: still reasonably large but not overwhelming */
@media (max-width: 768px) {
    .header-logo {
        max-height: 96px;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cinzel', Georgia, serif;
    font-feature-settings: "tnum";
}

body {
    font-family: 'Inter', system_ui, sans-serif;
}

/* Feature Cards */
.feature-card {
    background: #11241a;
    border: 1px solid rgba(197, 162, 111, 0.12);
    padding: 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.23, 1.0, 0.32, 1);
}

.feature-card:hover {
    border-color: rgba(197, 162, 111, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Gallery Grid */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(197, 162, 111, 0.1);
    cursor: pointer;
    background: #11241a;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(to top, rgba(10, 18, 15, 0.92), transparent);
    font-size: 0.875rem;
    letter-spacing: 1px;
    color: #c5a26f;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    background: linear-gradient(to top, rgba(10, 18, 15, 0.98), rgba(17, 36, 26, 0.6));
}

/* Video player polish */
#trailer-video {
    outline: none;
    display: block;
}

#video-overlay {
    transition: opacity 0.2s ease;
}

#trailer-video[controls] ~ #video-overlay,
#trailer-video.playing ~ #video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Modal styles */
#gallery-modal {
    animation: fadeIn 0.2s ease forwards;
}

#modal-image {
    box-shadow: 0 25px 50px -12px rgb(0 0 0);
    border: 1px solid rgba(197, 162, 111, 0.15);
}

/* Mobile menu */
.mobile-link {
    display: block;
    color: #e8e4d9;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #c5a26f;
}

/* Utility */
.tracking-widest {
    letter-spacing: 0.125em;
}

/* Button focus styles */
button:focus-visible {
    outline: 2px solid #c5a26f;
    outline-offset: 2px;
}

/* Subtle entrance animation for sections */
section {
    opacity: 1;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 3.25rem !important;
        line-height: 0.95 !important;
    }
}

/* Very subtle gold glow on important CTAs */
button.bg-\[\#c5a26f\]:hover {
    box-shadow: 0 10px 15px -3px rgb(197 162 111 / 0.15);
}