:root {
    --golden: #b8860b;
    --golden-dark: #9a6d07;
    --golden-light: #d4af37;
    --golden-subtle: rgba(184, 134, 11, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Light mode styles - now default */
.light body {
    color: #1a1a1a;
    background-color: #ffffff;
}

.light .bg-white { background-color: #ffffff; }
.light .bg-gray-100 { background-color: #f8f9fa; }
.light .bg-gray-200 { background-color: #e9ecef; }
.light .text-gray-800 { color: #343a40; }
.light .text-gray-900 { color: #212529; }
.light .text-gray-700 { color: #495057; }
.light .text-gray-600 { color: #6c757d; }
.light .shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.light .shadow-md { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.light .shadow-xl { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1); }
.light .border-gray-300 { border-color: #dee2e6; }
.light .bg-gray-50 { background-color: #f8f9fa; }
.light .header-bg { background-color: rgba(255, 255, 255, 0.9); }
.light .nav-link-color { color: #6c757d; }
.light .nav-link-hover-color:hover { color: var(--golden); }
.light .dropdown-bg { background-color: #ffffff; }
.light .dropdown-item-color { color: #495057; }
.light .dropdown-item-hover-bg:hover { background-color: #f8f9fa; }

.light .product-card,
.light .quality-card,
.light .certification-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
}
.light .product-card-content { background-color: #ffffff; }
.light .product-title { color: #1f2937; }
.light .contact-form-input {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    border-color: #ddd;
}
.light .contact-form-input::placeholder { color: #6b7280; }
.light .contact-form-label { color: #374151; }
.light .contact-form-section { background-color: #f8f9fa; color: #1f2937; }
.light .contact-form-heading { color: #111827; }
.light .text-section-title { color: #212529; }
.light .text-section-paragraph { color: #495057; }


/* Dark mode styles */
.dark body {
    color: #e2e8f0;
    background-color: #1a202c;
}

.dark .bg-white { background-color: #2d3748; } /* Darker background for elements that were white */
.dark .bg-gray-100 { background-color: #1a202c; } /* Main dark background */
.dark .bg-gray-200 { background-color: #2d3748; } /* Slightly lighter dark background */
.dark .text-gray-800 { color: #e2e8f0; }
.dark .text-gray-900 { color: #f7fafc; }
.dark .text-gray-700 { color: #cbd5e0; }
.dark .text-gray-600 { color: #a0aec0; }
.dark .shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.dark .shadow-md { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); }
.dark .shadow-xl { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.5); }
.dark .border-gray-300 { border-color: #4a5568; }
.dark .bg-gray-50 { background-color: #2d3748; }
.dark .header-bg { background-color: rgba(45, 55, 72, 0.9); }
.dark .nav-link-color { color: #a0aec0; }
.dark .nav-link-hover-color:hover { color: var(--golden-light); }
.dark .dropdown-bg { background-color: #2d3748; }
.dark .dropdown-item-color { color: #cbd5e0; }
.dark .dropdown-item-hover-bg:hover { background-color: #4a5568; }

.dark .product-card,
.dark .quality-card,
.dark .quality-assurance,
.dark .certification-card {
    background-color: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
}
.dark .product-card-content { background-color: #2d3748; }
.dark .product-title { color: #f7fafc; }
.dark .contact-form-input {
    background-color: rgba(45, 55, 72, 0.8);
    color: #f7fafc;
    border-color: #4a5568;
}
.dark .contact-form-input::placeholder { color: #a0aec0; }
.dark .contact-form-label { color: #e2e8f0; }
.dark .contact-form-section { background-color: #1a202c; color: #e2e8f0; }
.dark .contact-form-heading { color: #f7fafc; }
.dark .text-section-title { color: #f7fafc; }
.dark .text-section-paragraph { color: #cbd5e0; }

/* General styles */
.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-elegant {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

/* Golden color scheme */
.text-golden { color: var(--golden); }
.bg-golden { background-color: var(--golden); }
.border-golden { border-color: var(--golden); }
.hover\:bg-golden-dark:hover { background-color: var(--golden-dark); }

/* Custom gradients */
.golden-gradient {
    background: linear-gradient(135deg, var(--golden-light), var(--golden));
}

.golden-text-gradient {
    background: linear-gradient(90deg, var(--golden-light), var(--golden));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Section styling */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--golden);
    border-radius: 2px;
}

/* Product cards */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    transform: translateY(0);
}

/* Contact form */
.contact-form-input {
    transition: all 0.3s ease;
    border: 1px solid;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
}

.contact-form-input:focus {
    border-color: var(--golden);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}

/* Contact form labels */
.contact-form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Product card content - ensure proper contrast */
.product-card-content {
    padding: 1.5rem;
}

/* Logo carousel */
.logo-carousel-container {
    overflow: hidden;
    position: relative;
}

.logo-carousel {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(200%);
}

.logo-item {
    flex: 0 0 auto;
    margin: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

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

/* Navigation */
.nav-link {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--golden);
    transition: width 0.3s ease;
}

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

/* Scroll to Top Button Styles */
#scrollToTopBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #b8860b;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

#scrollToTopBtn.flex {
    display: flex;
}

#scrollToTopBtn:hover {
    background-color: #9a6d07;
    transform: scale(1.1);
}

#scrollToTopBtn svg {
    width: 1.5rem;
    height: 1.5rem;
}
/* Social media icons in footer */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(184, 134, 11, 0.1);
    color: var(--golden);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--golden);
    color: white;
    transform: translateY(-3px);
}

/* Enhanced Hero Section Styles */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    /* Remove the background-image property */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
    margin-top: -50px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    line-height: 1.6;
    font-weight: 300;
    font-family: 'Cormorant Garamond', serif;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

.golden-highlight {
    color: #d4af37;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.golden-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(184, 134, 11, 0.3);
    z-index: -1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
    overflow: hidden;
}

.primary-cta {
    background: linear-gradient(135deg, #b8860b, #d4af37);
    color: white;
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.4);
}

.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.6);
    background: linear-gradient(135deg, #d4af37, #b8860b);
}

.secondary-cta {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-20px) translateX(-50%);}
    60% {transform: translateY(-10px) translateX(-50%);}
}

.text-rotator {
    display: inline-block;
    position: relative;
    height: 1.5em;
    overflow: hidden;
    vertical-align: bottom;
}

.rotating-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    animation: rotateWords 12s infinite;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.rotating-text:nth-child(2) {
    animation-delay: 3s;
}
.rotating-text:nth-child(3) {
    animation-delay: 6s;
}
.rotating-text:nth-child(4) {
    animation-delay: 9s;
}

@keyframes rotateWords {
    0% { opacity: 0; transform: translateY(20px); }
    3% { opacity: 1; transform: translateY(0); }
    20% { opacity: 1; transform: translateY(0); }
    23% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 0; }
}

/* Parallax effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Background images for sections */
.about-section {
    background: url('cows.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    background-attachment: fixed;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.quality-overlay { /* This will be applied to individual quality sub-sections if needed */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 0;
}

.sister-companies-section {
    background: url('farm.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    background-attachment: fixed;
}

.sister-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Delay classes for animations */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Decorative elements */
.hero-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--golden);
    opacity: 0.3;
    z-index: 1;
}

.decoration-1 {
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
}

.decoration-2 {
    bottom: 20%;
    right: 10%;
    transform: rotate(-30deg);
    border-radius: 50%;
}

/* Section padding */
.section-padding {
    padding: 6rem 0;
}

/* Quality cards */
.quality-card {
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.quality-icon {
    width: 70px;
    height: 70px;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.quality-icon svg {
    width: 32px;
    height: 32px;
    color: var(--golden);
}

/* Footer styling */
.footer {
    background: #1a1a1a;
    color: #f8f9fa;
    padding: 4rem 0 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--golden);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--golden);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #343a40;
    padding-top: 2rem;
    margin-top: 3rem;
}

/* About section typography enhancements */
.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.about-text p {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.about-text p:nth-child(1) { animation-delay: 0.2s; }
.about-text p:nth-child(2) { animation-delay: 0.4s; }
.about-text p:nth-child(3) { animation-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .quality-card {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-text {
        font-size: 1rem;
    }
}

/* Certifications Section Styles */
.certification-card {
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.certification-icon {
    width: 60px;
    height: 60px;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.certification-icon svg {
    width: 28px;
    height: 28px;
    color: var(--golden);
}

.download-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: rgba(184, 134, 11, 0.1);
    border-radius: 20px;
    color: var(--golden);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.download-badge:hover {
    background-color: var(--golden);
    color: white;
}
.hero-section {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    padding: 0 2rem;
    margin-top: -3rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.golden-text-gradient {
    background: linear-gradient(90deg, #d4af37, #f1c40f, #d4af37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    line-height: 1.6;
}

.text-rotator-container {
    height: 1.5em;
    vertical-align: bottom;
}

.rotating-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    animation: rotateWords 12s infinite;
    font-weight: 600;
    color: var(--golden);
}

.rotating-text:nth-child(2) { animation-delay: 3s; }
.rotating-text:nth-child(3) { animation-delay: 6s; }
.rotating-text:nth-child(4) { animation-delay: 9s; }

@keyframes rotateWords {
    0% { opacity: 0; transform: translateY(20px); }
    3% { opacity: 1; transform: translateY(0); }
    20% { opacity: 1; transform: translateY(0); }
    23% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 0; }
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-cta {
    background: linear-gradient(135deg, #b8860b, #d4af37);
    color: white;
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.4);
}

.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.6);
    background: linear-gradient(135deg, #d4af37, #b8860b);
}

.secondary-cta {
    background: transparent;
    border: 2px solid white;
    color: white;
    position: relative;
    overflow: hidden;
}

.secondary-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.secondary-cta:hover::before {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

@keyframes animate-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes animate-pulse-slow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

@keyframes animate-pulse-slower {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.03); }
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

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