/* ============================================
   Fresh from the Dipuma Farm — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: #1a0d14;
    color: #f5f0e8;
}

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

::-webkit-scrollbar-track {
    background: #1a0d14;
}

::-webkit-scrollbar-thumb {
    background: #4d293e;
    border-radius: 4px;
}

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

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

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(26, 13, 20, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 165, 116, 0.1);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #d4a574 !important;
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Toggle */
.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Animations */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.hero-title {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.7s;
}

.hero-cta {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Line */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* Product Cards */
.product-card {
    position: relative;
    border: 1px solid rgba(212, 165, 116, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.2), transparent);
}

/* Input Focus States */
input:focus,
textarea:focus {
    background: rgba(45, 21, 34, 0.8) !important;
}

/* Gold Accent Line Animation */
.gold-line {
    position: relative;
    overflow: hidden;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c49a6c, #d4a574, #c49a6c);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.gold-line:hover::after {
    transform: translateX(0);
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Image Hover Zoom */
img {
    max-width: 100%;
    height: auto;
}

/* Button Ripple Effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Amber Glow on Interactive Elements */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    #navbar,
    #mobile-menu {
        display: none;
    }
}
