/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

/* Navigation Styles with Blur Effect */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.4s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background-color: rgba(15, 17, 19, 0);
}

nav.scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(15, 17, 19, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

/* Hero Slider Styles */
.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Slider Navigation Buttons */
.slider-prev,
.slider-next {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background-color: #c5a059 !important;
    transform: scaleY(1.5);
}

.slider-dot.active {
    background-color: #c5a059 !important;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 1s ease-out forwards;
}

/* Premium Card Hover Effect */
.premium-card {
    background: linear-gradient(135deg, rgba(15, 17, 19, 0.8) 0%, rgba(8, 9, 10, 0.9) 100%);
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: all 0.5s ease;
    border-radius: 4px;
}

.premium-card:hover {
    border-color: rgba(197, 160, 89, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(197, 160, 89, 0.2);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #c5a059 0%, #a3844a 100%);
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
}

/* Gold text color */
.text-gold {
    color: #c5a059;
}

/* Background pattern */
.bg-pattern {
    background-image: 
        linear-gradient(30deg, rgba(197, 160, 89, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(197, 160, 89, 0.02) 87.5%, rgba(197, 160, 89, 0.02)),
        linear-gradient(150deg, rgba(197, 160, 89, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(197, 160, 89, 0.02) 87.5%, rgba(197, 160, 89, 0.02)),
        linear-gradient(30deg, rgba(197, 160, 89, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(197, 160, 89, 0.02) 87.5%, rgba(197, 160, 89, 0.02)),
        linear-gradient(150deg, rgba(197, 160, 89, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(197, 160, 89, 0.02) 87.5%, rgba(197, 160, 89, 0.02));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* Mobile Menu Fix */
.mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu:not(.translate-x-full) {
    transform: translateX(0) !important;
}

/* Make menu button always visible on mobile */
@media (max-width: 1023px) {
    .menu-btn {
        display: block !important;
    }
    
    nav.scrolled {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Hide mobile menu by default on desktop */
@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

/* Image Hover Effects */
img {
    transition: transform 0.5s ease;
}

.premium-card:hover img {
    transform: scale(1.05);
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Form Elements */
input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #c5a059 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Grayscale Hover Effect */
.grayscale {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.grayscale:hover {
    filter: grayscale(0%);
}

/* Opacity Transitions */
.opacity-40 {
    transition: opacity 0.5s ease;
}

.opacity-40:hover {
    opacity: 1;
}

/* Group Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Utility Classes */
.translate-y-4 {
    transform: translateY(1rem);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f1113;
}

::-webkit-scrollbar-thumb {
    background: #c5a059;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3844a;
}

/* Smooth transition for main content to account for fixed nav */
main {
    padding-top: 80px; /* Adjust this value based on your nav height */
}

/* Safari compatibility */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    nav.scrolled {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    nav.scrolled {
        background-color: rgba(15, 17, 19, 0.95);
    }
}