/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #1a0a0e;
    color: #F2D0D4;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1a0a0e;
}
::-webkit-scrollbar-thumb {
    background: #8B1A3E;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C9A84C;
}

/* Navigation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A84C;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(26, 10, 14, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #8B1A3E, #6B0F2A);
    color: #F2D0D4;
    padding: 14px 32px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #C9A84C, #E8D5A0);
    transition: left 0.4s ease;
    z-index: 0;
}
.btn-primary:hover::before {
    left: 0;
}
.btn-primary:hover {
    color: #1a0a0e;
}
.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    color: #C9A84C;
    padding: 14px 32px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(201, 168, 76, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
}
.btn-secondary:hover {
    border-color: #C9A84C;
    background: rgba(201, 168, 76, 0.08);
}

/* Hero animations */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.2s;
}
.hero-headline {
    animation: slideUp 0.8s ease forwards 0.4s;
}
.hero-body {
    animation: slideUp 0.8s ease forwards 0.6s;
}
.hero-cta {
    animation: slideUp 0.8s ease forwards 0.8s;
}
.hero-image-wrapper {
    animation: fadeIn 1.2s ease forwards 0.5s;
    opacity: 0;
}
.hero-accent-card {
    animation: slideInLeft 0.8s ease forwards 1s;
    opacity: 0;
}
.hero-small-img {
    animation: fadeIn 1s ease forwards 1.2s;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Marquee */
.marquee-track {
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Image hover effect */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #C9A84C !important;
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.2);
}

/* Selection */
::selection {
    background: #8B1A3E;
    color: #F2D0D4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    @media (min-width: 640px) {
        .hero-headline {
            font-size: 3.5rem;
        }
    }
    @media (min-width: 1024px) {
        .hero-headline {
            font-size: 4.5rem;
        }
    }
    @media (min-width: 1280px) {
        .hero-headline {
            font-size: 5rem;
        }
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .marquee-track {
        animation: none;
    }
}
