:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #0F172A;
    --light-color: #f8f9fa;
    --accent-blue: #00B4D8;
    --accent-green: #2ECC71;
    --font-main: 'Outfit', sans-serif;

    /* Light Theme Variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #0F172A;
    --text-secondary: #6c757d;
    --navbar-bg: #ffffff;
    --navbar-text: #0F172A;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --dropdown-bg: #ffffff;
    --footer-bg: #0F172A;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --bg-primary: #0F172A;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --navbar-bg: #1e293b;
    --navbar-text: #f1f5f9;
    --card-bg: #1e293b;
    --border-color: #334155;
    --dark-color: #f1f5f9;
    --light-color: #1e293b;
    --dropdown-bg: #1e293b;
    --footer-bg: #1e293b;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.4s ease;
    background-color: var(--navbar-bg) !important;
}

.navbar.scrolled {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.55rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(30, 41, 59, 0.95) !important;
}

.navbar .nav-link {
    color: var(--navbar-text) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;

}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--dropdown-bg);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: background 0.2s;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Products Section */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background-color: var(--card-bg);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-card h3,
.product-card h4,
.product-card h5,
.product-card p {
    color: var(--text-primary);
}

.product-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

/* Features/Why Us */
.feature-box {
    padding: 2rem;
    border-radius: 1rem;
    background: var(--card-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h3,
.feature-box h4,
.feature-box p {
    color: var(--text-primary);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Timeline (About Us) */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    width: 45%;
    position: relative;
}

.timeline-content h3,
.timeline-content h4,
.timeline-content p {
    color: var(--text-primary);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    color: var(--text-primary);
}

.contact-form .form-control,
.contact-form .form-select,
.form-control,
.form-select,
input,
textarea,
select {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utilities */
.text-justify {
    text-align: justify;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.3);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--text-primary) !important;
}

/* Paragraphs and general text */
p,
span,
li,
a:not(.btn) {
    color: var(--text-primary) !important;
}

/* Hero section text should stay white */
.hero-section h1,
.hero-section p,
.hero-section .hero-title,
.hero-section .hero-subtitle {
    color: white !important;
}

/* Override Bootstrap text utilities in dark mode */
[data-theme="dark"] .text-white-50 {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

/* Sections */
section {
    background-color: var(--bg-primary);
}

section:nth-of-type(even) {
    background-color: var(--bg-secondary);
}

/* Footer */
footer {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary);
}

footer h5,
footer p,
footer li,
footer a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] footer {
    background-color: #1e293b !important;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.language-selector .lang-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

[data-theme="dark"] .lang-toggle {
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-toggle:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-toggle .flag-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-toggle .lang-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
   
}

.lang-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 0.25rem;
    opacity: 0.6;
}

.lang-menu {
    min-width: 200px;
    padding: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 3000;
    max-height: 300px;
    overflow-y: auto;
    
}

[data-theme="dark"] .lang-menu {
    border-color: rgba(244, 237, 237, 0.055);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 100%;
}

[data-theme="dark"] .lang-item {
    color: black;
}

.lang-item span {
    color: black !important;
}

.lang-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
    
}




body {
    top: 0 !important;
    position: relative !important;
    padding-top: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: 100%;
        margin-left: 45px !important;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: scale(0) rotate(180deg);
    position: absolute;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, #1e293b, #334155);
}

/* Certificates Section */
.certificates-section {
    position: relative;
    overflow: hidden;
}

/* Google Translate Widget Styling */
.translate-wrapper {
    position: relative;
    display: inline-block;
    z-index: 2000;
}

#static-lang-selector {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    padding: 8px 36px 8px 36px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
    min-width: 140px;
    height: auto;
    line-height: 1.5;
}

#static-lang-selector:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18), 0 6px 18px rgba(13, 110, 253, 0.08);
    outline: none;
}

.translate-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
    opacity: 0.8;
}

.translate-wrapper .lang-flag {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    object-fit: contain;
    pointer-events: none;
}

/* Hide Google branding and notification bar */

.goog-logo-link,
.goog-te-gadget span,
.goog-te-gadget img { display: none !important; }

.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
body > .skiptranslate { display: none !important; }

.cert-card {
    background: transparent;
    /* Removed card background to focus on image shadow */
    padding: 0;
    border-radius: 0.2rem;
    box-shadow: none;
    /* Shadow moved to image */
    transition: transform 0.4s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: none;
}

.cert-img {
    width: 100%;
    /* Fluid width by default */
    max-width: 250px;
    /* Cap width at requested size */
    height: auto;
    /* Auto height for ratio */
    aspect-ratio: 1/1;
    /* Maintain square aspect ratio */
    object-fit: contain;

    opacity: 0.7;
    transition: all 0.5s ease;

    /* Box Shadow & Border */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 0.2rem solid rgb(39, 16, 16);
    border-radius: 20px;
    background: rgb(255, 255, 255);
    padding: 20px;
    margin: 0 auto;
    /* Center image in column */
}

/* Ensure centering in the column */
.cert-card {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cert-card:hover .cert-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.25);
    /* Enhanced shadow on hover */
}

/* High Resolution / 4K Optimization */
@media (min-width: 1921px) {
    .container {
        max-width: 1800px !important;
    }

    body {
        font-size: 1.2rem;
    }

    .h1,
    h1 {
        font-size: 4rem;
    }

    .h2,
    h2 {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 1rem 3rem;
        font-size: 1.5rem;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 2400px !important;
    }
}

/* Product Detail Section (Revamp) */
.product-detail-section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.product-detail-section:nth-of-type(even) {
    background-color: var(--bg-secondary);
}

.product-detail-section:last-child {
    border-bottom: none;
}

.product-detail-img {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
    height: 450px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure transparent fruit fits within snow background */
    transition: transform 0.6s ease;
}

/* Add padding to text column on desktop for better spacing */
@media (min-width: 992px) {
    .product-detail-section .col-lg-7 {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.product-detail-img:hover {
    transform: translateY(-5px);
}

.product-detail-img:hover img {
    transform: scale(1.03);
}

/* Custom Tabs Modern */
.custom-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    background: var(--card-bg);
    border-radius: 5px;
    padding: 0;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.custom-tabs .nav-item {
    flex: 1;
    text-align: center;
}

.custom-tabs .nav-link {
    color: var(--secondary-color);
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 1rem 1rem;
    transition: all 0.3s;
    background: transparent;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    width: 100%;
}

.custom-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.01);
}

.custom-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    padding-top: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
    font-size: 1.05rem;
}

.product-title-large {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.product-title-large::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Custom Product Tables */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    box-shadow: 0 0 0 1px var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.custom-table thead {
    background-color: #0d0d4e;
    color: white;
}

.custom-table th {
    padding: 1rem;
    font-weight: 700;
    text-transform: capitalize;
    border: 1px solid var(--border-color);
    text-align: center;
    width: auto;
}

.custom-table td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.custom-table th:first-child,
.custom-table td:first-child {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Annex Table */
.annex-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #8e8db3;
    border-radius: 4px;
    overflow: hidden;
}

.annex-table tr {
    border-bottom: 1px solid white;
}

.annex-table td:first-child {
    background-color: #8e8db3;
    color: white;
    font-weight: 700;
    width: 25%;
    text-align: center;
    border-bottom: 1px solid white;
    padding: 1rem;
}

.annex-table td:last-child {
    background-color: var(--card-bg);
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    font-weight: 500;
}

.annex-table tr:last-child td:first-child {
    border-bottom: none;
}

.annex-table tr:last-child td:last-child {
    border-bottom: none;
}
