@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #8b0000;
    /* Deep Red */
    --primary-light: #b22222;
    --secondary: #d4af37;
    /* Metallic Gold */
    --dark: #121212;
    --light: #f9f9f9;
    --cream: #fffaf0;
    --glass: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: transparent;
    transition: var(--transition);
    color: white;
    /* Default white for transparent header */
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    height: 80px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: var(--dark);
    /* Dark text on white scrolled background */
}

header .logo img {
    height: 66px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 66px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.lang-switcher {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-item {
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    padding: 2px 5px;
    border-radius: 4px;
}

.lang-item:hover,
.lang-item.active {
    opacity: 1;
    color: var(--primary);
}

header.scrolled .lang-item.active {
    background: var(--primary);
    color: white;
}

header:not(.scrolled) .lang-item.active {
    background: white;
    color: var(--primary);
}

.nav-item {
    position: relative;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    color: var(--dark);
    /* Always dark text in dropdown */
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 25px;
    display: block;
    font-size: 1rem;
}

.dropdown-item:hover {
    background: var(--cream);
    color: var(--primary);
}

/* Hero Slider */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 6s linear;
    z-index: -2;
}

.slide.active .slide-bg {
    transform: scale(1);
}

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

.hero-content {
    max-width: 900px;
    padding: 0 5%;
    z-index: 10;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease 0.4s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease 0.6s;
}

.slider-brand-logo {
    max-height: 180px;
    width: auto;
    margin-bottom: 0px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease 0.2s;
}

.slide.active .hero-content h1,
.slide.active .hero-content p,
.slide.active .hero-content .slider-brand-logo {
    opacity: 1;
    transform: translateY(0);
}

.slider-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.nav-dot.active {
    background: var(--light);
    transform: scale(1.3);
    border-color: var(--primary);
}

/* Background Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    opacity: 0.4;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
}

/* About Summary Section */
.about-summary {
    padding: 100px 5%;
    background: white;
}

.about-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.about-summary-text h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-summary-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.8;
}

.about-summary-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.about-summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.about-summary-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .about-summary-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-summary-text {
        text-align: center;
    }

    .about-summary-text h2 {
        font-size: 2.2rem;
    }
}

/* Brands Grid */
.section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.brand-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.brand-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.brand-card:hover img {
    transform: scale(1.1);
}

.brand-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.brand-overlay h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.brand-logo-container {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brand-card-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Certificates Section */
.certificates-section {
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.certificates-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
}

.certificates-slider {
    display: flex;
    align-items: center;
    gap: 60px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.certificate-item {
    flex: 0 0 220px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.certificate-item img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.5);
    transition: var(--transition);
}

.certificate-item:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.15);
}

.cert-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    color: var(--primary);
    font-size: 1.5rem;
}

.cert-nav-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.2);
}

.cert-nav-btn.prev {
    left: 0;
}

.cert-nav-btn.next {
    right: 0;
}

@media (max-width: 768px) {
    .certificates-container {
        padding: 0 40px;
    }

    .certificate-item {
        flex: 0 0 160px;
        height: 100px;
    }

    .cert-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* Utility Pages (Corporate, Quality) */
.page-header {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    color: white;
    text-align: center;
    padding-top: 100px;
}

.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 5%;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-vision {
    background: var(--cream);
    padding: 50px;
    border-radius: 20px;
    margin-top: 40px;
}

/* Footer */
footer {
    background: var(--dark);
    color: #888;
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Mobile Menu Control */
.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    margin-left: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

@media (max-width: 992px) {
    header {
        height: 80px;
        padding: 0 5%;
        background: white !important;
        color: var(--dark) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 10%;
        transition: 0.5s;
        color: var(--dark);
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.2rem;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        transform: none;
        width: 100%;
        background: #f9f9f9;
        margin-top: 10px;
        border-radius: 0;
    }

    .nav-item.dropdown-open .dropdown {
        max-height: 300px;
        padding: 10px 0;
    }

    .dropdown-item {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .mobile-toggle {
        display: block;
        color: var(--dark);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Catalog */
.product-section {
    padding: 80px 5%;
    background-color: var(--light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.product-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-details {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 600;
}

.product-weight {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-weight i {
    color: var(--secondary);
}

.product-action {
    margin-top: 20px;
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .slider-brand-logo {
        max-height: 120px;
    }
}

.catalog-brand-logo {
    max-height: 120px;
    width: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    position: relative;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-header {
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: var(--primary);
    margin: 0;
    font-size: 1.8rem;
}

.modal-body {
    line-height: 1.7;
    color: #444;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.modal-body .badge-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-badge {
    background: #f8f8f8;
    color: #666;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #eee;
}

.detail-badge.highlight {
    background: #fff5f5;
    color: #c0392b;
    border-color: #fad1d1;
}

.detail-badge.halal {
    background: #f0fff4;
    color: #27ae60;
    border-color: #c6f6d5;
}

.product-action .btn {
    width: 100%;
    cursor: pointer;
}

/* Sales Points Styles */
.sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.store-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

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

.store-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #666;
}

.store-info span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-logo {
    max-height: 40px;
    margin-bottom: 20px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.store-card:hover .market-logo {
    filter: grayscale(0);
    opacity: 1;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: lightboxZoom 0.3s ease-out;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 3001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.product-image {
    cursor: pointer;
}