/* --- VARIABLES & RESET --- */
:root {
    --primary: #003399;   /* ALFA Blue */
    --accent-oil: #FFCC00; /* ALFA Yellow */
    --primary-plast: #2E7D32; /* TT Green */
    --accent-plast: #81c784; /* TT Light Green */

    --text: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --dark: #121212;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.hidden { display: none !important; animation: fadeOut 0.3s; }
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-text { color: var(--text-light); margin-bottom: 40px; }

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary), #0044cc);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,51,153,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,51,153,0.4); }

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    margin-left: 10px;
}
.btn-outline:hover { background: white; color: var(--primary); }

/* --- NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.company-name { font-size: 1.4rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.company-tag { font-size: 0.8rem; font-weight: 600; color: var(--text-light); letter-spacing: 2px; }

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
    padding-bottom: 5px;
}

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

.nav-links a:hover:after, .nav-links a.active:after { width: 100%; }

/* Language Switcher */
.lang-switch { display: flex; gap: 5px; border-left: 1px solid #ddd; padding-left: 20px; }
.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    font-size: 0.85rem;
    transition: 0.3s;
}
.lang-btn.active, .lang-btn:hover { color: var(--primary); }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.back-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 15px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.3rem; margin-bottom: 40px; color: rgba(255,255,255,0.9); }

/* Brand Showcase in Hero */
.brand-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.brand-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}
.brand-box:hover { transform: scale(1.05); }

.brand-logo-img { height: 60px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.brand-box span { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.vertical-line { width: 1px; height: 60px; background: rgba(255,255,255,0.3); }

/* --- FEATURES --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -100px;
    position: relative;
    z-index: 3;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
    border-bottom: 4px solid var(--primary);
}
.feature-card:hover { transform: translateY(-10px); }
.feature-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }

/* --- ABOUT --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image img { border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.about-text h3 { color: var(--dark); font-size: 1.8rem; margin-bottom: 20px; }
.about-text p { color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }

.brand-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.brand-info { padding: 15px; border-radius: 10px; border-left: 3px solid #ddd; background: #fdfdfd; }
.brand-info h4 { margin-bottom: 8px; font-weight: 800; }
.oil-theme { border-color: var(--primary); }
.oil-theme h4 { color: var(--primary); }
.plast-theme { border-color: var(--primary-plast); }
.plast-theme h4 { color: var(--primary-plast); }

.about-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.about-list i { color: var(--primary-plast); }

/* --- PRODUCTS --- */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #ddd;
    color: var(--text-light);
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(0,51,153,0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    position: relative;
    cursor: pointer;
}

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

/* Branding the cards */
.product-card.oil-card { border-top: 4px solid var(--primary); }
.product-card.plast-card { border-top: 4px solid var(--primary-plast); }

.product-img-box {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfdfd;
    padding: 20px;
}

.product-img-box img { max-height: 100%; transition: 0.3s; }
.product-card:hover .product-img-box img { transform: scale(1.05); }

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}
.bg-oil { background: var(--primary); }
.bg-plast { background: var(--primary-plast); }

.product-info { padding: 25px; }
.product-info h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--dark); font-weight: 700; }
.product-meta { font-size: 0.85rem; color: #888; display: flex; justify-content: space-between; align-items: center; }

/* --- PRODUCT MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .modal-container { transform: scale(1); }

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
    color: #333;
}
.modal-close:hover { background: #ff4d4d; color: white; transform: rotate(90deg); }

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.modal-image-box {
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.modal-image-box img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.modal-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-brand-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 10px;
}

.modal-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.1;
}

.modal-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    background: #f0f4f8;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

#modalDesc {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.modal-actions .btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Specific Colors for Brands in Modal */
.theme-oil .modal-brand-tag { color: var(--primary); }
.theme-oil .spec-item i { color: var(--primary); }
.theme-oil .btn-primary { background: linear-gradient(45deg, var(--primary), #0044cc); }

.theme-plast .modal-brand-tag { color: var(--primary-plast); }
.theme-plast .spec-item i { color: var(--primary-plast); }
.theme-plast .btn-primary { background: linear-gradient(45deg, var(--primary-plast), #43a047); }

/* --- CONTACT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.contact-info { background: var(--primary); color: white; padding: 50px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-item i { font-size: 1.4rem; color: var(--accent-oil); margin-top: 5px; }

.contact-form { padding: 50px; display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); background: white; }

/* --- FOOTER --- */
footer { background: #111; color: #888; padding: 60px 0 30px; margin-top: auto; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
footer h3 { color: white; margin-bottom: 20px; font-size: 1.1rem; letter-spacing: 1px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-right {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-right.active { display: flex; }
    .nav-links { flex-direction: column; width: 100%; text-align: center; }
    .lang-switch { border-left: none; padding: 10px 0; border-top: 1px solid #eee; width: 100%; justify-content: center; }

    .hero h1 { font-size: 2rem; }
    .features-grid { margin-top: 40px; }
    .about-content, .contact-wrapper { grid-template-columns: 1fr; }
    .brand-showcase { flex-direction: column; gap: 15px; }
    .vertical-line { width: 100%; height: 1px; }

    .modal-content { grid-template-columns: 1fr; }
    .modal-image-box { padding: 30px; height: 300px; }
    .modal-image-box img { max-height: 250px; }
    .modal-info { padding: 30px; }
    .modal-info h2 { font-size: 1.8rem; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- LITER SELECTION STYLES --- */
.modal-liters-section {
    margin-bottom: 20px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.modal-liters-section.hidden {
    display: none;
}

.liter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.liter-row:last-child {
    border-bottom: none;
}

.liter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.liter-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.liter-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.3;
    pointer-events: none; /* Disabled by default */
    transition: 0.3s;
}

.liter-qty-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    font-weight: bold;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

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

.qty-display {
    width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Scrollbar for liters list */
.modal-liters-section::-webkit-scrollbar { width: 6px; }
.modal-liters-section::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }