/* ==========================================================================
   HERO SECTION (MƏRKƏZLƏŞDİRİLMİŞ & LOGO AKSENTLİ)
   ========================================================================== */
.hero {
    height: 90vh;
    /* Header-in altında tam düzgün qalması üçün */

    /* 1. KRİTİK DÜZƏLİŞ: Qovluq strukturuna uyğun düzgün yol */
    background: url("../images/hero.jpg") center/cover no-repeat;


    display: flex;
    align-items: center;
    justify-content: center;
    /* Yazıları üfüqi olaraq ortalayır */
    position: relative;
    color: white;
    overflow: hidden;
}

/* Arxa fon şəkilinin üzərinə gələn tündləşdirici qat (Mətn oxunsun deyə) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.55) 100%);
    z-index: 1;
}

/* Sizin .hero-content.container daxili strukturunuz */
.hero-content.container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Kontenti mərkəzə nizamlayır */
    text-align: center;
    /* Mətnləri ortalayır */
    max-width: 800px;
    /* Yazıların ekranda çox dağılmaması üçün */
    width: 100%;
    opacity: 0;
    /* Animasiya üçün başlanğıc vəziyyət */
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Başlıq */
.hero h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* .az hissəsinin göy (dental mavi) rəngdə olması üçün */
.hero h1 span {
    color: #0ea5e9;
    /* Canlı premium göy rəng */
}

/* Alt başlıq mətni */
.hero-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.90);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.5;
}

/* Məhsullara bax düyməsi */
.btn {
    display: inline-block;
    padding: 16px 44px;
    background: #ffffff;
    color: #0f172a;
    /* Tünd Slate rəngi */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    background: #0ea5e9;
    /* Düymə üzərinə gələndə də göy rəng olur */
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
}

/* Giriş animasiyası */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   HERO RESPONSIVE DESIGN (MOBİL UYĞUNLUQ)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .btn {
        padding: 14px 36px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 65vh;
    }

    .hero h1 {
        font-size: 34px;
    }
}

/* ================= CATEGORY GRID ================= */
/* ==================== BAŞLIQLAR ÜÇÜN FONT VƏ RƏNG (YENİLƏNDİ) ==================== */
.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    /* Daha dolğun və vurğulu görünüş */
    letter-spacing: -0.5px;
    /* Müasir dizaynlardakı kimi bir-birinə yaxın */
    color: #0f172ad8;
    /* Gözü yormayan premium tünd rəng */
    margin: 40px 0;
    font-family: 'Inter', sans-serif;
}

/* ==================== CATEGORY GRID (YENİLƏNDİ) ==================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    /* Kartların nəfəs alması üçün aralıq artırıldı */
}

/* ==================== CARD (MÜKƏMMƏL UI/UX DIZAYN) ==================== */
.category-card {
    background: #ffffff;
    padding: 35px 24px;
    /* Daha balanslı daxili boşluq */
    border-radius: 16px;
    /* Daha yumşaq künclər */
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 10px 20px -3px rgba(0, 0, 0, 0.04);
    /* Yumşaq kölgə */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Daha rəvan hover animasiyası */
    cursor: pointer;
    border: 1px solid #f1f5f9;
    /* Kartları bir-birindən ayıran zəif border */
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* hover vəziyyəti */
.category-card:hover {
    transform: translateY(-8px);
    /* Yuxarı rəvan qalxma effekti */
    border-color: var(--primary);
    /* Hover edəndə brend rənginə boyanan çərçivə */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* icon daxili düzəliş */
.category-card i {
    font-size: 32px;
    /* İkonlar bir az böyüdüldü */
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.1);
    /* Hover olanda ikonun yüngülcə böyüməsi */
}

/* Kartın daxilindəki başlıq fontu */
.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
}

/* Kartın daxilindəki kiçik izah mətni */
.category-card p {
    font-size: 13.5px;
    color: #64748b;
    /* Alt mətnlər üçün solğun boz rəng */
    line-height: 1.5;
    margin: 0;
}

/* active state (JS və ya URL filter üçün) */
.category-card.active {
    border-color: var(--primary);
    background-color: #f8fafc;
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* ================= NO PRODUCTS ================= */

/* ================= PARTNERS ================= */
.partners-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 50px 0;
}

.partner-viewport {
    overflow: hidden;
    width: 100%;
}

.partner-track {
    display: flex;
    gap: 15px;
    width: max-content;
    transition: transform 0.3s ease;
}

.partner-card {
    flex: 0 0 auto;
    width: 280px;
    text-align: center;
    padding: 15px;
    transition: 0.3s;
}

.partner-card img {
    width: 180px;
    height: 70px;
    object-fit: contain;
}

.partner-card:hover {
    transform: scale(1.05);
}

.partner-btn {
    background: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}




/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 38px;
    }

    .partner-card {
        flex: 0 0 auto;
        width: 150px;
        text-align: center;
        padding: 15px;
        transition: 0.3s;
    }

    .partner-card img {
        width: 100px;
        height: 70px;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 30px;
    }
}