:root {
    --primary-gold: #c5a059;
    --primary-grey: #666666;
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --white: #ffffff;
    /* Product Colors */
    --green: #2ecc71; /* Glial-MG */
    --red: #e74c3c; /* Ferr-26 */
    --orange: #e67e22; /* Gepo-7 */
    --purple: #9b59b6; /* L-Amino */
    --cyan: #1abc9c; /* Argelion */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}
body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}
html {
    scroll-behavior: smooth;
}

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-grey);
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary-gold);
}

/* Hero Section (Parallax & Overlay) */
.hero {
    height: 90vh;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    color: white;
    position: relative;
    background: linear-gradient(rgba(30, 40, 50, 0.7), rgba(30, 40, 50, 0.7)),
        url("https://images.unsplash.com/photo-1631549916768-4119b2e5f926?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}
.hero-content {
    max-width: 800px;
    z-index: 2;
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-content h1 span {
    color: var(--primary-gold);
}
.hero-content p {
    font-size: 1.2rem;
    color: #ddd;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.btn {
    padding: 12px 30px;
    background-color: var(--primary-gold);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn:hover {
    transform: translateY(-3px);
    background-color: #b08d45;
}

/* --- Afzalliklar (Features) --- */
.features-section {
    padding: 3rem 2rem;
    background-color: #fff;
    margin-top: -50px; /* Hero rasmining ustiga chiqib turishi uchun */
    position: relative;
    z-index: 10;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Chiroyli soya */
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-10px); /* Sichqoncha borganda ko'tariladi */
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.feature-box h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-grey);
    font-size: 1.2rem;
}

.feature-box p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mobil uchun moslashuv */
@media (max-width: 768px) {
    .features-section {
        margin-top: 0; /* Mobilda ustiga chiqmaydi */
        padding: 2rem 1rem;
    }
}

/* Products Section */
.products {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-grey);
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    margin: 10px auto;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border-top: 5px solid transparent;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.card-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #fff;
    padding: 20px;
    border-bottom: 1px solid #eee;
}
.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.short-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    width: fit-content;
}
.details-btn {
    background: transparent;
    border: 2px solid;
    padding: 8px 0;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
    width: 100%;
}

/* Colors */
.p-glial {
    border-color: var(--green);
}
.p-glial .badge {
    background: var(--green);
}
.p-glial h3,
.p-glial .details-btn {
    color: var(--green);
}
.p-glial .details-btn {
    border-color: var(--green);
}
.p-glial .details-btn:hover {
    background: var(--green);
    color: white;
}
.p-ferr {
    border-color: var(--red);
}
.p-ferr .badge {
    background: var(--red);
}
.p-ferr h3,
.p-ferr .details-btn {
    color: var(--red);
}
.p-ferr .details-btn {
    border-color: var(--red);
}
.p-ferr .details-btn:hover {
    background: var(--red);
    color: white;
}
.p-gepo {
    border-color: var(--orange);
}
.p-gepo .badge {
    background: var(--orange);
}
.p-gepo h3,
.p-gepo .details-btn {
    color: var(--orange);
}
.p-gepo .details-btn {
    border-color: var(--orange);
}
.p-gepo .details-btn:hover {
    background: var(--orange);
    color: white;
}
.p-amino {
    border-color: var(--purple);
}
.p-amino .badge {
    background: var(--purple);
}
.p-amino h3,
.p-amino .details-btn {
    color: var(--purple);
}
.p-amino .details-btn {
    border-color: var(--purple);
}
.p-amino .details-btn:hover {
    background: var(--purple);
    color: white;
}
.p-arg {
    border-color: var(--cyan);
}
.p-arg .badge {
    background: var(--cyan);
}
.p-arg h3,
.p-arg .details-btn {
    color: var(--cyan);
}
.p-arg .details-btn {
    border-color: var(--cyan);
}
.p-arg .details-btn:hover {
    background: var(--cyan);
    color: white;
}

/* --- FAQ Section (AEO) --- */
.faq-section {
    padding: 4rem 2rem;
    background-color: #fff;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-container {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-gold);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-grey);
}

.faq-item p {
    color: #555;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-section {
    background-color: #ffffff;
    padding: 5rem 2rem;
    border-top: 1px solid #eee;
}
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}
.contact-text {
    flex: 1;
    min-width: 300px;
}
.contact-text h2 {
    font-size: 2.5rem;
    color: var(--primary-grey);
    margin-bottom: 1rem;
}
.contact-info-box p {
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}
.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-grey);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
}
.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}
.close-modal:hover {
    color: #000;
}
.modal-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.modal-body h4 {
    color: var(--primary-grey);
    margin-top: 15px;
    margin-bottom: 5px;
}
.modal-body ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

/* --- FOOTER (PREMIUM) --- */
footer {
    background-color: #1e2a36;
    color: #ecf0f1;
    padding-top: 4rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
    border-top: 5px solid var(--primary-gold);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}
.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}
.footer-logo img {
    height: 60px;
    background-color: white;
    padding: 5px;
    border-radius: 8px;
}
.footer-logo span {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-gold);
    letter-spacing: 1px;
}
.footer-slogan {
    color: #bdc3c7;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-section h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-gold);
}
.links ul {
    list-style: none;
}
.links li {
    margin-bottom: 12px;
}
.links a {
    text-decoration: none;
    color: #bdc3c7;
    transition: 0.3s;
    display: inline-block;
}
.links a:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}
.contact-info p {
    margin-bottom: 12px;
    color: #bdc3c7;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
    .nav-links a {
        margin: 0 10px;
    }
    .hero {
        height: auto;
        padding: 100px 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}
