@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Inter:wght@300;400;500&display=swap');

/* Tailwind Import is handled via CDN in HTML head for now, but custom styles go here */

body {
    background: #121212;
    /* Charcoal, lighter than pure black */
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'Bodoni Moda', serif;
}

/* Background Transition for Homepage */
.bg-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out;
    opacity: 0;
    z-index: 0;
}

.bg-transition.active {
    opacity: 1;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    /* Very subtle overlay */
    z-index: 0;
    pointer-events: none;
}

/* Navbar */
.navbar {
    z-index: 50;
    position: fixed;
    width: 100%;
    top: 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
    color: #000;
    /* Force black text */
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-link {
    position: relative;
    padding-bottom: 2px;
}

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

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

/* Text Selection */
::selection {
    background: #000;
    color: #fff;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes reveal {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }

    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Buttons */
.btn-gold {
    border: 1px solid #000;
    padding: 1rem 2rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    background: transparent;
    color: #000;
}

.btn-gold:hover {
    background: #000;
    color: #fff;
}

/* Dropdown */
.group:hover .group-hover\:flex {
    display: flex;
}

/* Preloader (Clean White) */
#preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-line {
    width: 200px;
    height: 1px;
    background: #eee;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: #000;
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Tailwind Custom Config Extension (if not using CDN config) */
/* We rely on CDN config in HTML, but these are fallbacks/overrides */