/* ------------------------ ROOT VARIABLES ------------------------ */
:root {
    --bg: var(--glass-bg);
    --surface: #1e293b;
    --card:var(--glass-bg);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --accent: #0b7f9d;
    --accent-hover: #096a83;
    --success: #22c55e;
    --danger: #ef4444;
    --shadow-soft: 0 6px 18px rgba(2, 6, 23, 0.25);
    --shadow-strong: 0 10px 30px rgba(2, 6, 23, 0.45);
    --radius: 14px;
}

/* ------------------------ GLOBAL ------------------------ */

body {
    --bg: #0a1022;
    --surface: #121a33;
    --card: rgba(18, 26, 51, 0.6);

    --glass-bg: rgba(18, 26, 51, 0.55);
    --glass-border: rgba(148, 163, 184, 0.18);
    --glass-blur: blur(14px);

    --text: #e5eaf3;
    --muted: #9aa4b2;

    --shadow-soft: 0 8px 24px rgba(2, 6, 23, 0.45);
    --shadow-strong: 0 16px 48px rgba(2, 6, 23, 0.75);

    background:
        radial-gradient(900px 600px at 15% -10%, rgba(11,127,157,0.10), transparent 60%),
        radial-gradient(700px 500px at 90% 10%, rgba(34,211,238,0.08), transparent 65%),
        linear-gradient(180deg, #0a1022 0%, #070b18 100%);
    color: var(--text);
}




/* ------------------------ NAVBAR ------------------------ */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    box-shadow: var(--shadow-soft);
    height: 16px;
}

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

.brand {
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 1000;
}

.logo {
    width: 40px;
}

/* Container for the buttons */
.nav-buttons {
    display: flex;       /* side by side */
    gap: 12px;           /* space between buttons */
    justify-content: flex-start; /* align to the left */
    align-items: center; /* vertically centered */
}

/* Optional styling for small buttons */
.nav-buttons .btn.small {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}
/* Fancy light/dark toggle button */
    
.btn.small:hover {
    background: var(--accent);
    color: white;
}

body.dark .btn.small .icon {
    transform: rotate(180deg); /* icon spins in dark mode */
}
/* ------------------------ SEARCH AREA ------------------------ */
.search-area {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    flex-wrap: wrap;
    gap: 10px;
}

.search-box {
    flex: 1;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px 0 0 8px;
    background: #020617;
    color: var(--text);
}

.search-box input::placeholder {
    color: var(--muted);
}

.search-btn {
    padding: 12px 22px;
    border: none;
    background: var(--accent);
    color: white;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
}

.search-btn:hover {
    background: var(--accent-hover);
}

.social-links img {
    width: 28px;
    margin-left: 10px;
}


/* ------------------------ HERO ------------------------ */
.hero {
    position: relative;
    isolation: isolate;
    height: 400px;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5));

}

/* ---------------- HERO SLIDER ---------------- */
.hero-slider img {
    position: absolute;
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease-in-out, transform 8s ease-in-out;
}

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

/* Add subtle zoom & parallax motion effect */
@keyframes heroZoom {
    0% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}
.slide.active {
    animation: heroZoom 12s ease-in-out infinite alternate;
}

/* ---------------- HERO CONTENT ---------------- */
.hero-content {
    position: absolute;
    bottom: 35px;
    left: 35px;
    max-width: 520px;
    
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 22px 26px;
    border-radius: var(--radius);
    color: var(--text);
    text-shadow: 0 6px 18px rgba(0,0,0,0.6);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* ---------------- HERO TEXT ---------------- */
.hero-text h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0 0 14px;
    color: #f0f0f0;
    text-shadow: 0 3px 12px rgba(0,0,0,0.8);
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0;
    max-width: 460px;
    line-height: 1.6;
}

/* Gradient highlights */
.hero-text .highlight {
    background: linear-gradient(135deg, #0b7f9d, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* ---------------- HERO BUTTONS ---------------- */
.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 12px;
}

.hero-buttons .btnhero {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    border: 1px solid var(--accent);
    background:transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btnhero:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* ---------------- HERO DOTS ---------------- */
.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    width: 16px;
    height: 16px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* ---------------- TEXT ANIMATIONS ---------------- */
.hero-text h1, .hero-text p {
    animation: fadeUp 0.8s ease forwards;
}
.hero-text p { animation-delay: 0.15s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Optional cinematic gradient overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    
    pointer-events: none;
}
/* ------------------------ MEDICAL EQUIPMENTS CATEGORY -----------------*/
.categories-section {
    padding: 70px 20px;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--muted);
    max-width: 620px;
    margin: auto;
    line-height: 1.6;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    max-width: 1200px;
    margin: auto;
}

.category-card {

    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.category-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(11,127,157,0.5);
}
/* =========================
   AVAILABLE MEDICAL EQUIPMENTS
   (Matches Categories Theme)
========================= */

.equipment-section {
    padding: 80px 20px;
    background: transparent;
}

.equipment-section h2 {
    text-align: center;
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

/* =========================
   EQUIPMENT GRID
========================= */

/* =========================
   EQUIPMENT GRID
========================= */
#equipmentContainer.equipment-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Desktop: 3x3 */
    gap: 26px;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   RESPONSIVE GRID
========================= */

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

/* Mobile */
@media (max-width: 600px) {
    #equipmentContainer.equipment-container {
        grid-template-columns: 1fr; /* 1 column */
    }
}

/* =========================
   EQUIPMENT CARD (GLASS)
========================= */

.equipment-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 12px 12px 16px;/* tighter, more intentional */
    
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.35s ease;
    cursor: default;
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(11, 127, 157, 0.45);
}

/* =========================
   IMAGE
========================= */

/* =========================
   IMAGE (DOMINANT VISUAL)
========================= */

.equipment-card img {
    width: 100%;
    height: 300px; /* BIGGER visual area */
    object-fit: contain;
    margin-bottom: 12px;
    transform: scale(0.95);
    transition: transform 0.45s ease;
}

.equipment-card:hover img {
    transform: scale(1.03);
}

/* =========================
   CONTENT
========================= */

.equipment-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0 4px;
}

.equipment-card p {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 3px 0;
    line-height: 1.45;
}

/* PRICE */
.equipment-card p:nth-of-type(2) {
    margin-top: 6px;
    font-weight: 600;
    color: var(--primary);
}

/* =========================
   ORDER BUTTON
========================= */

.orderBtn {
    display: center;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 1000;
    border-radius: 30px;
    border: 1px solid var(--accent);
    background:transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.orderBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.orderBtn:active {
    transform: scale(0.96);
}

/* =========================
   PAGINATION
========================= */

.equipment-pagination {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 60px;
}

.paginationBtn {
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: var(--text);
    font-weight: 600;
    transition: all 0.25s ease;
}

.paginationBtn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* =========================
   DARK MODE SUPPORT
========================= */

[data-theme="dark"] .equipment-card {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .paginationBtn {
    background: rgba(15, 23, 42, 0.6);
}

/* ------------------------ FLOATING CALL BUTTON ------------------------ */
.call-float {
    position: fixed;
    bottom: 22px;
    right: 22px; 
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--accent);
    background:transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);

}

/* ================= FOOTER ================= */
.site-footer {
    margin-top: 10px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
}

/* INNER WRAP */
.footer-inner {
    max-width: 1200px;
    margin: auto;
    padding: 70px 24px 50px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

/* COLUMNS */
.footer-col h4 {
    
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

/* ABOUT */
.footer-about p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 520px;
    text-align:justify;
}

/* LINKS */
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
    padding-left: 6px;
}

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.footer-bottom span {
    display: block;
    margin-top: 6px;
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-about p {
        margin: auto;
    }

    .footer-links a:hover,
    .footer-contact a:hover {
        padding-left: 0;
    }
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-container p {
        max-width: 100%;
    }
}
/* ------------------------ MEDIA QUERIES ------------------------ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .equipment-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .equipment-container {
        grid-template-columns: 1fr;
    }
}
/* ------------------------ DEVICE RESPONSIVENESS ------------------------ */
/* Desktop: minimum width 1025px */
@media (min-width: 1025px) {
    /* Ensures equipment grid uses 3 columns on large screens */
    #equipmentContainer.equipment-container {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* Tablet: width between 601px and 1024px */
@media (min-width: 601px) and (max-width: 1024px) {
    #equipmentContainer.equipment-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content {
        max-width: 90%;
        left: 35%;
        transform: translateX(-50%);
    }
}

/* Mobile: width 600px and below */
@media (max-width: 600px) {
    @media (max-width: 600px) {

        /* Equipment grid stays fine */
        #equipmentContainer.equipment-container {
          grid-template-columns: 1fr;
        }
      
        /* HERO WRAPPER */
        .hero {
          min-height: auto;
          height: auto;
          padding: 24px 0;
        }
      
        /* HERO CONTENT — NORMAL FLOW */
        .hero-content {
          position: static;              /* 🔑 critical fix */
          max-width: auto;
          transform: none;
          margin: 0 16px;
          padding: 18px;
          border-radius: 14px;
        }
      
        /* TEXT */
        .hero-text h1 {
          font-size: clamp(20px, 6vw, 26px);
          line-height: 1.25;
        }
      
        .hero-text p {
          font-size: 0.85rem;
          line-height: 1.45;
        }
      
        /* BUTTON GROUP */
        .hero-buttons {
          display: flex;
          gap: 10px;
          flex-wrap: wrap;
          justify-content: flex-start;
        }
      
        /* BUTTONS — TAP FRIENDLY */
        .btnhero {
          padding: 8px 18px;
          font-size: 0.85rem;
          border-radius: 999px;
        }
      }
}
