/*==================================================
   SANITARY CARE FACTORY — MASTERPIECE CSS 2026 (REFINED)
   Dynamic Theming | Ultra-Modern Color Palettes
===================================================*/

/* ---------- Custom Font ---------- */
@font-face {
    font-family: "kakzhiar";
    src: url("./fonts/Digi Craft Ultra Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* =============================================
   🔥 THEME SYSTEM (Based on Product Images)
   ============================================= */

/* DEFAULT THEME (Classic Pink/Orange Mix - Image 2 & 1) */
:root {
    /* Brand Core */
    --primary: #9B1B78;      /* Deep Magenta from the pink pack */
    --primary-light: #C2188C;
    --secondary: #F07821;    /* Vibrant Orange from the active pack */
    --secondary-light: #FF8A3C;
    --accent: #FFD5E9;
    --soft-bg: #FFF9FC;

    /* Neutrals */
    --dark: #1C1C1C;
    --text: #444444;
    --light: #FAFBFF;
    --white: #ffffff;
    --muted: #E0E0E0;
    --glass-border: rgba(255, 255, 255, 0.4);

    /* Effects */
    --glass: rgba(255, 255, 255, 0.60);
    --shadow-sm: 0 10px 25px rgba(155, 27, 120, 0.06);
    --shadow: 0 15px 40px rgba(155, 27, 120, 0.08);
    --shadow-lg: 0 30px 60px rgba(155, 27, 120, 0.12);
    
    /* Spacing & Radius */
    --radius-sm: 16px;
    --radius: 22px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --transition: 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-2xl: 120px;

    /* Typography */
    --font-display: "kakzhiar", "Vazirmatn", sans-serif;
    --font-body: "Vazirmatn", sans-serif;
}

/* -----------------------------------------------------
   THEME 2: MOSHK (Musk / Night - Image 5 - Navy Blue)
   ----------------------------------------------------- */
[data-theme="musk-night"] {
    --primary: #1F2A53;      /* Deep Indigo/Navy */
    --primary-light: #2E3D73;
    --secondary: #45A2CA;    /* Soft Cyan/Moonlight */
    --secondary-light: #6BC1E5;
    --accent: #D9EFFF;
    --soft-bg: #F4F9FF;
    --glass: rgba(255, 255, 255, 0.65);
}

/* -----------------------------------------------------
   THEME 3: CLASSIC (Teal/Cream - Image 4)
   ----------------------------------------------------- */
[data-theme="classic-teal"] {
    --primary: #0F7F7F;      /* Deep Turquoise/Teal */
    --primary-light: #179A9A;
    --secondary: #D97A7A;    /* Muted Salmon/Coral */
    --secondary-light: #E59393;
    --accent: #FFF1F1;
    --soft-bg: #FAF8F8;
}

/* -----------------------------------------------------
   THEME 4: ACTIVE (Pure Orange - Image 3)
   ----------------------------------------------------- */
[data-theme="active-orange"] {
    --primary: #D95410;      /* Warm Rust/Orange */
    --primary-light: #EF661E;
    --secondary: #8B1C8B;    /* Purple as complementary */
    --secondary-light: #A827A8;
    --accent: #FFEBD9;
    --soft-bg: #FFF9F4;
}

/* -----------------------------------------------------
   THEME 5: NIGHT (Blue Moon - Image 6 - Night Pack)
   ----------------------------------------------------- */
[data-theme="night-blue"] {
    --primary: #323C66;      /* Muted Navy */
    --primary-light: #45528A;
    --secondary: #88B8D6;    /* Powder Blue */
    --secondary-light: #A4D0EA;
    --accent: #E0F0FF;
    --soft-bg: #F5F9FF;
}

/* =============================================
   RESET & BASE (UNTOUCHED LAYOUT)
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--soft-bg);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.9;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.5s ease, color 0.5s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

input,
textarea {
    font-family: inherit;
}

::selection {
    background: var(--secondary);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 4px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--soft-bg);
}
::-webkit-scrollbar-thumb {
    border-radius: 30px;
    background: linear-gradient(var(--primary), var(--secondary));
}

/* ---------- Container ---------- */
.container {
    width: min(92%, 1350px);
    margin-inline: auto;
}

/* ---------- Background Effects ---------- */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, var(--accent) 0%, transparent 35%),
        radial-gradient(circle at bottom right, var(--secondary) 0%, transparent 35%),
        linear-gradient(135deg, var(--soft-bg), var(--white));
    z-index: -10;
    transition: background 0.6s ease;
}

.blur-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.30;
    z-index: -5;
    animation: float 12s infinite ease-in-out;
    transition: background 0.5s ease;
}
.one {
    width: 300px; height: 300px;
    background: var(--secondary-light);
    top: -80px; right: -80px;
}
.two {
    width: 260px; height: 260px;
    background: var(--primary-light);
    left: -90px; bottom: 10%;
}
.three {
    width: 220px; height: 220px;
    background: var(--accent);
    right: 30%; bottom: -100px;
}

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 18px 0;
    transition: var(--transition), background 0.5s ease, backdrop-filter 0.5s ease;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 25px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-icon {
    width: 58px; height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 15px 30px rgba(var(--primary), 0.4);
}
.logo h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}
.logo p {
    font-size: 13px;
    color: #888;
    margin-top: -5px;
}

/* Navigation links */
nav ul {
    display: flex;
    gap: 38px;
}
nav li a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    color: var(--text);
}
nav li a:hover,
nav li a.active {
    color: var(--primary);
}
nav li a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    inset-inline-start: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s ease;
    border-radius: 30px;
}
nav li a:hover::after,
nav li a.active::after {
    width: 100%;
}

/* Header CTA button */
.btn-header {
    padding: 13px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(var(--primary), 0.35);
    position: relative;
    overflow: hidden;
}
.btn-header:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(var(--primary), 0.45);
}
.btn-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: left 0.7s ease;
}
.btn-header:hover::before {
    left: 140%;
}

/* ---------- Hero Section ---------- */
.hero {
    padding-block: 170px 90px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 22px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 8vw, 68px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--dark);
}
.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(16px, 2.5vw, 18px);
    color: var(--text);
    max-width: 620px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 17px 36px;
    border-radius: 60px;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: white;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 18px 40px rgba(var(--primary), 0.35);
}
.btn-primary:hover {
    transform: translateY(-6px);
}
.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: var(--white);
}
.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-primary::before,
.btn-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: left 0.7s ease;
}
.btn-primary:hover::before,
.btn-header:hover::before {
    left: 140%;
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.hero-stats div {
    padding: 22px 30px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    min-width: 150px;
    transition: var(--transition);
}
.hero-stats div:hover {
    transform: translateY(-8px);
}
.hero-stats h3 {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 5px;
}
.hero-stats span {
    font-size: 15px;
    color: var(--text);
}

/* Hero image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-circle {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary), 0.25), transparent 70%);
    animation: rotate 30s linear infinite;
}
.hero-image img {
    position: relative;
    width: min(80%, 480px);
    z-index: 2;
    filter: drop-shadow(0 35px 45px rgba(0, 0, 0, 0.18));
    animation: floating 5s ease-in-out infinite;
    user-select: none;
    pointer-events: none;
}

/* ---------- Premium Slider ---------- */
.slider-section {
    padding-block: var(--space-2xl);
    position: relative;
}
.section-title {
    text-align: center;
    margin-bottom: 70px;
}
.section-title span {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.section-title h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 46px);
    font-weight: 900;
    color: var(--dark);
}
.section-title strong {
    color: var(--secondary);
}

.slider {
    position: relative;
    overflow: hidden;
    padding: 40px 90px;
}
.slides {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

.slide {
    width: 240px;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 35px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    opacity: 0.35;
    transform: scale(0.78);
    transition: 0.6s ease;
    cursor: pointer;
}
.slide img {
    max-width: 82%;
    transition: 0.5s;
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.15));
}
.slide.active {
    opacity: 1;
    transform: scale(1.15);
    background: var(--white);
}
.slide.active img {
    transform: translateY(-10px);
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 62px;
    height: 62px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-size: 22px;
    transition: var(--transition);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.prev { left: 0; }
.next { right: 0; }
.prev:hover,
.next:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.12);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 45px;
}
.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--muted);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active {
    width: 42px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ---------- Features ---------- */
.features {
    padding-block: var(--space-2xl);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--glass);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--secondary), 0.06), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card:hover {
    transform: translateY(-14px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 90px;
    height: 90px;
    margin-inline: auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin-bottom: 28px;
    box-shadow: 0 18px 35px rgba(var(--primary), 0.35);
}
.feature-card h3 {
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}
.feature-card p {
    color: var(--text);
    font-size: 15px;
}

/* ---------- About Preview ---------- */
.about-preview {
    padding-block: var(--space-2xl);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.about-image img {
    border-radius: 35px;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}
.about-image img:hover {
    transform: scale(1.03);
}
.section-badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 30px;
    margin-bottom: 22px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 46px);
    margin-bottom: 25px;
    line-height: 1.4;
    color: var(--dark);
}
.about-content p {
    color: var(--text);
    margin-bottom: 35px;
}
.about-list {
    margin-bottom: 40px;
}
.about-list li {
    margin-bottom: 18px;
    padding-inline-start: 34px;
    position: relative;
    font-weight: 600;
    color: var(--dark);
}
.about-list li::before {
    content: "✔";
    position: absolute;
    inset-inline-start: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* ---------- Statistics ---------- */
.statistics {
    padding-block: var(--space-2xl);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
}
.stat-box {
    padding: 45px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.stat-box:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}
.stat-box h2 {
    font-size: clamp(34px, 8vw, 52px);
    color: var(--primary);
    margin-bottom: 12px;
}
.stat-box span {
    color: var(--text);
    font-weight: 600;
}

/* ---------- CTA ---------- */
.cta {
    padding-block: 140px;
}
.cta-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 80px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 40px 80px rgba(var(--primary), 0.25);
}
.cta-box::before {
    content: "";
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    left: -120px; top: -180px;
}
.cta-box::after {
    content: "";
    position: absolute;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    right: -100px; bottom: -120px;
}
.cta-box > * {
    position: relative;
    z-index: 2;
}
.cta-box span {
    font-size: 15px;
    opacity: 0.9;
}
.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 52px);
    margin: 25px 0;
    font-weight: 900;
}
.cta-box p {
    max-width: 760px;
    margin-inline: auto;
    opacity: 0.95;
    line-height: 2;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 45px;
}
.cta .btn-primary {
    background: var(--white);
    color: var(--primary);
}
.cta .btn-primary:hover {
    background: #fafafa;
}
.cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.cta .btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* ---------- Contact ---------- */
.contact {
    padding-block: var(--space-2xl);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}
.contact-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 45px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.contact-icon {
    width: 85px; height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    margin-bottom: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 34px;
}
.contact-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--dark);
}
.contact-card p {
    color: var(--text);
}

/* ---------- Footer ---------- */
footer {
    margin-top: var(--space-2xl);
    background: var(--dark);
    color: white;
    padding-top: 90px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}
.footer-logo {
    margin-bottom: 25px;
}
.footer-text {
    color: #c7c7c7;
    line-height: 2.1;
}
footer h3 {
    margin-bottom: 25px;
    font-size: 22px;
}
footer ul li {
    margin-bottom: 16px;
}
footer ul li a {
    color: #d4d4d4;
    transition: var(--transition);
}
footer ul li a:hover {
    color: #fff;
    padding-inline-start: 6px;
}
.socials {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.socials a {
    display: inline-flex;
    transition: var(--transition);
    color: #ddd;
}
.socials a:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 70px;
    padding: 30px 0;
    text-align: center;
    color: #aaa;
}

/* ---------- Back to Top ---------- */
#toTop {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 58px; height: 58px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 20px 35px rgba(var(--primary), 0.35);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#toTop.show {
    opacity: 1;
    visibility: visible;
}
#toTop:hover {
    transform: translateY(-6px);
}

/* ---------- Animations ---------- */
@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-18px); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-35px); }
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content,
.hero-image,
.feature-card,
.about-image,
.about-content,
.stat-box,
.contact-card,
.cta-box {
    animation: fadeUp 0.9s ease both;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .hero h1 { font-size: clamp(36px, 7vw, 56px); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero p { margin-inline: auto 40px; }
    .hero-buttons,
    .hero-stats { justify-content: center; }
    .about-list {
        text-align: start;
        display: inline-block;
    }
    .hero-image { display: none; }
    .hero-image img { width: 360px; }
    .slider { padding: 30px; }
    nav {
        flex-wrap: wrap;
        gap: 20px;
        border-radius: 30px;
    }
    nav ul {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .hero { padding-top: 140px; }
    .slider { padding: 15px; }
    .slide { width: 180px; height: 180px; }
    .prev, .next { width: 50px; height: 50px; font-size: 18px; }
    .hero-circle { width: 340px; height: 340px; }
    .cta-box { padding: 45px 30px; }
}

@media (max-width: 576px) {
    .container { width: 94%; }
    .logo h2 { font-size: 18px; }
    .logo-icon { width: 48px; height: 48px; font-size: 22px; }
    nav { padding: 18px; }
    .btn-header { display: none; }
    .hero-buttons,
    .cta-buttons { flex-direction: column; }
    .btn-primary,
    .btn-secondary,
    .cta-buttons a { width: 100%; text-align: center; }
    .slide { width: 150px; height: 150px; }
    .feature-grid,
    .stats-grid,
    .contact-grid,
    .footer-grid { grid-template-columns: 1fr; }
    #toTop { left: 15px; bottom: 15px; width: 50px; height: 50px; }
}

/* ---------- Performance & Polish ---------- */
.feature-card,
.stat-box,
.contact-card,
.slide,
.about-image img {
    will-change: transform;
}
section {
    overflow: hidden;
}