/* ========================
   🌿 Nebula Medicine CSS — Hero + Slider + Fade-in (Final Standardized + ✅ Heading Line)
   ======================== */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #bf700f;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

h1,
h2,
h3 {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

/* ============================
   🔹 HEADER
============================ */
.site-header {
    background: #e0f2fe;
    border-bottom: 1px solid #bae6fd;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0369a1;
    text-decoration: none;
}

.logo span {
    color: #0891b2;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #0284c7;
}

/* ============================
   🔹 HERO (Desktop + Mobil)
============================ */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1536 / 475;
    background: url('../img/hero-desktop.webp') center center / cover no-repeat;
    background-color: #e0f2fe;
    overflow: hidden;
}


.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #f0f9ff;
    margin: 0;
}

.hero p {
    color: #e0f2fe;
    margin: 1rem 0 2rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.btn {
    background: #0284c7;
    color: #fff;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

/* ============================
   🔹 MƏHSULLAR (Slider)
============================ */
.products {
    padding: 4rem 1rem;
    background-color: #f1f5f9;
    position: relative;
}

.products h2,
.blog h2 {
    text-align: left;
    margin-bottom: 0.5rem;
    position: relative;
}

/* 🔹 Başlıq alt xətti */
section h2 {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

section h2 .heading-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    border-radius: 4px;
    transition: width 0.6s ease;
}

section h2.show .heading-line {
    width: 100%;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    margin-bottom: 2rem;
    border-radius: 4px;
}

.slider-wrapper {
    position: relative;
}

/* 🌿 Slider quruluşu */
.product-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

/* 🌿 Hər slayd üçün kart */
.slide {
    flex: 0 0 auto;
    width: 250px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

/* 🌿 Şəkil konteyneri — standart ölçü */
.slide img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

/* 🌿 Başlıq */
.product-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    padding: 1rem 0 1.5rem;
}

/* ============================
   🔹 SLIDER OXLARI
============================ */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(3, 105, 161, 0.85);
    color: #fff;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 50%;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.slider-arrow:hover {
    background: #0369a1;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.left {
    left: -15px;
}

.slider-arrow.right {
    right: -15px;
}

/* ============================
   🔹 BLOGLAR
============================ */
.blog {
    padding: 4rem 1rem;
    background: #fff;
}

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

.blog-card {
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-info {
    padding: 1.5rem;
}

.blog-info h3 {
    color: #0369a1;
    margin-bottom: 0.5rem;
}

.blog-info p {
    color: #475569;
    font-size: 0.95rem;
}

/* ============================
   🔹 FOOTER
============================ */
.footer {
    background: #0c4a6e;
    color: #e0f2fe;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ============================
   🔹 MOBİL MENYU
============================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    right: 20px;
    top: 25px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #0369a1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* 🔹 Mobil menyu tam ekran */
.main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #e0f2fe;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #bae6fd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
    z-index: 99;
}

.main-nav.active ul {
    flex-direction: column;
    gap: 1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ============================
   🔹 ƏLAQƏ SƏHİFƏSİ
============================ */
.contact {
    padding: 4rem 1rem;
    background: #f1f5f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
}

.contact-form textarea {
    resize: vertical;
}

/* ============================
   🔹 FADE-IN EFFEKTİ
============================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   🔹 RESPONSIVE (Mobil)
============================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .hero {
        aspect-ratio: 650 / 300;
        background: url('../img/hero-mobile.webp') center center / cover no-repeat;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .slide {
        width: 240px;
    }

    .slide img {
        height: 220px;
    }

    .slider-arrow {
        font-size: 1.2rem;
        padding: 0.2rem 0.5rem;
    }

    .slider-arrow.left {
        left: 5px;
    }

    .slider-arrow.right {
        right: 5px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobil üçün hər ekranda 1 məhsul */
    .product-slider {
        scroll-snap-type: x mandatory;
    }

    .slide {
        width: 100%;
        flex: 0 0 100%;
        scroll-snap-align: start;
    }
}

/* ============================
   🔹 SLIDER LINK FIX (Klik işləsin)
============================ */
.product-slider a,
.product-slider .slide a {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 5;
}

.product-slider .slide * {
    pointer-events: none;
}

.product-slider .slide a * {
    pointer-events: auto;
}

/* ============================
   🔹 Məhsullar başlığı (başlıq solda, düymə sağda)
============================ */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    /* mobil üçün alt sətirə düşsün */
    gap: 1rem;
}

.products-header h2 {
    margin: 0;
    font-weight: 700;
    position: relative;
}

/* 🔹 Alt xətt başlıq üçün */
.products-header h2::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    border-radius: 4px;
}

/* 🔹 Bütün məhsullar düyməsi */
.all-products-btn {
    background: linear-gradient(90deg, #0284c7, #0ea5e9);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 8px 22px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.all-products-btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
}