/* Custom styles for Vins du Roche Winery */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0505;
    color: #ffffff;
    font-family: 'Montserrat', system-ui, sans-serif;
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b1a1a, #c49a3c);
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(196, 154, 60, 0.3);
    color: #ffffff;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #c49a3c;
    outline-offset: 2px;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 20px rgba(196, 154, 60, 0.3); }
    50% { box-shadow: 0 0 40px rgba(196, 154, 60, 0.6); }
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    30% { transform: translate(3%, -5%); }
    50% { transform: translate(-2%, 5%); }
    70% { transform: translate(5%, 2%); }
    90% { transform: translate(-3%, 8%); }
}

/* Animation classes */
.float {
    animation: float 4s ease-in-out infinite;
}

.float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.float-delay {
    animation: float 4s ease-in-out 1.5s infinite;
}

.shimmer-text {
    background: linear-gradient(90deg, #c49a3c, #e8c57a, #c49a3c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.pulse-gold {
    animation: pulse-gold 3s ease-in-out infinite;
}

.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    animation: grain 8s steps(10) infinite;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Hero card hover */
.hero-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(139, 26, 26, 0.4), 0 0 30px rgba(196, 154, 60, 0.2);
}

/* Gold line decoration */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #c49a3c, transparent);
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 154, 60, 0.3), transparent);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #8b1a1a, #a02020);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a02020, #b02525);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-gold {
    background: linear-gradient(135deg, #b08530, #c49a3c, #d4a853);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c49a3c, #e8c57a, #d4a853);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-gold:hover::before {
    left: 0;
}

.btn-gold span {
    position: relative;
    z-index: 1;
}

/* Navbar glass effect */
.navbar-glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 154, 60, 0.15);
}

/* Image overlay */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42, 4, 4, 0.3), transparent);
    pointer-events: none;
}

/* Card glow */
.card-glow {
    box-shadow: 0 10px 40px rgba(139, 26, 26, 0.2), inset 0 1px 0 rgba(196, 154, 60, 0.1);
}

.card-glow:hover {
    box-shadow: 0 20px 60px rgba(139, 26, 26, 0.35), inset 0 1px 0 rgba(196, 154, 60, 0.2);
}

/* Decorative elements */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(196, 154, 60, 0.1);
    pointer-events: none;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }

    .font-serif.lg\\:text-6xl {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .btn-primary,
    .btn-gold {
        background: #333 !important;
        color: white !important;
    }
}
