/* ============================================================
   SIDDHI VINAYAK INDUSTRIES — Fully Responsive Styles
   Perfect at every pixel — 320px to 4K
   ============================================================ */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding-top: 75px;
    transition: background 0.3s, color 0.3s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
    max-width: 100%;
}

/* ---------- CSS VARIABLES ---------- */
:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max: 1280px;
    --nav-height: 75px;
    --container-pad: 2rem;
}

[data-mode="dark"] {
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --bg: #0a0f1e;
    --bg-soft: #0f172a;
    --dark: #e2e8f0;
    --gray: #94a3b8;
    --border: #1e293b;
    --white: #0f172a;
    --light: #0a0f1e;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
}

body.has-notice { padding-top: 105px; }
body.has-notice .navbar { top: 30px; }

/* ---------- PARTICLES ---------- */
#particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}
[data-mode="light"] #particles-canvas { opacity: 0.35; }

/* Content above particles */
.navbar, .hero, .section, .stats, .footer, .legal-content,
.notice-bar, .popup-overlay, section, main, header, article, footer {
    position: relative;
    z-index: 1;
}

/* ---------- CONTAINER UTILITY ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* ============================================================
   NOTICE BAR
   ============================================================ */
.notice-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 3rem 0.6rem 1rem;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    animation: slideDown 0.4s ease;
    word-break: break-word;
}
.notice-bar .notice-close {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    flex-shrink: 0;
}
.notice-bar .notice-close:hover { opacity: 1; }
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ============================================================
   POPUP
   ============================================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s;
    overflow-y: auto;
}
.popup-modal {
    background: #ffffff;
    border-radius: var(--radius);
    max-width: 520px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.25rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    background: rgba(0, 0, 0, 0.05);
}
.popup-close:hover { background: rgba(0, 0, 0, 0.15); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    box-shadow: var(--shadow);
    height: var(--nav-height);
    transition: top 0.3s, background 0.3s;
}
[data-mode="dark"] .navbar { background: rgba(10, 15, 30, 0.92); }

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
}
[data-mode="dark"] .nav-logo { color: var(--primary-light); }
.nav-logo img {
    height: clamp(32px, 5vw, 45px);
    width: auto;
    flex-shrink: 0;
}
.nav-logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
    position: relative;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--primary); }
[data-mode="dark"] .nav-menu a:hover,
[data-mode="dark"] .nav-menu a.active { color: var(--primary-light); }
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.btn-b2b {
    background: var(--primary);
    color: #ffffff !important;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    white-space: nowrap;
}
.btn-b2b:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.nav-controls {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.icon-btn {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}
.icon-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.nav-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
    padding: 0.4rem 0.6rem;
    min-height: 40px;
    min-width: 40px;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: clamp(2rem, 6vw, 5rem) var(--container-pad);
    position: relative;
    overflow: hidden;
}
[data-mode="light"] .hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
}
[data-mode="dark"] .hero {
    background: linear-gradient(135deg, #0a0f1e 0%, #0f1f3e 50%, #0a1428 100%);
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    line-height: 1.4;
    max-width: 100%;
    word-break: break-word;
}
[data-mode="dark"] .hero-badge { color: #93c5fd; }

.hero h1 {
    font-size: clamp(1.75rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: break-word;
}
.hero h1 span { color: var(--primary); }
[data-mode="dark"] .hero h1 span { color: var(--primary-light); }

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    max-width: 550px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.7rem, 1.5vw, 0.9rem) clamp(1.25rem, 3vw, 2rem);
    border-radius: 10px;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    text-align: center;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.3);
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
[data-mode="dark"] .btn-outline {
    color: var(--primary-light);
    border-color: var(--primary-light);
}
.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-danger { background: var(--danger); color: #ffffff; }
.btn-success { background: var(--success); color: #ffffff; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: clamp(3rem, 6vw, 5rem) var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    padding: 0 0.5rem;
}
.section-header h1,
.section-header h2 {
    font-size: clamp(1.5rem, 4.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text);
    line-height: 1.2;
    word-break: break-word;
}
.section-header p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   CARDS GRID (Products, Features)
   ============================================================ */
.products-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    width: 100%;
}

.product-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.product-card img {
    width: 100%;
    height: clamp(180px, 25vw, 240px);
    object-fit: cover;
    flex-shrink: 0;
}
.product-card-body {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: 0.6rem;
    color: var(--text);
    word-break: break-word;
}
.product-card p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    flex-grow: 1;
    line-height: 1.5;
}

.feature {
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid var(--border);
    min-width: 0;
}
.feature:hover { transform: translateY(-5px); }
.feature-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 0.9rem;
    line-height: 1;
}
.feature h3 {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    margin-bottom: 0.4rem;
    color: var(--text);
    word-break: break-word;
}
.feature p {
    color: var(--text-muted);
    font-size: clamp(0.82rem, 1.4vw, 0.9rem);
    line-height: 1.5;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, #0a1428 100%);
    color: #ffffff;
    padding: clamp(2.5rem, 5vw, 4rem) var(--container-pad);
}
.stats-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 45%), 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    text-align: center;
}
.stat h3 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--accent);
    line-height: 1.1;
}
.stat p {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    opacity: 0.9;
    line-height: 1.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #0a0f1e;
    color: #cbd5e1;
    padding: clamp(2.5rem, 5vw, 4rem) var(--container-pad) 2rem;
    position: relative;
    z-index: 1;
}
.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-bottom: 2.5rem;
}
.footer h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
}
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer li {
    margin-bottom: 0.5rem;
    font-size: clamp(0.85rem, 1.4vw, 0.9rem);
    word-break: break-word;
    line-height: 1.5;
}
.footer a {
    transition: color 0.2s;
    word-break: break-word;
}
.footer a:hover { color: var(--accent); }

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
    padding-top: 1.75rem;
    border-top: 1px solid #334155;
    font-size: clamp(0.78rem, 1.4vw, 0.9rem);
    color: #94a3b8;
    word-break: break-word;
}
.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.footer-legal-links a {
    color: #94a3b8;
    font-size: clamp(0.75rem, 1.3vw, 0.85rem);
    white-space: nowrap;
}
.footer-legal-links a:hover { color: #ffffff; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
    width: 100%;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: clamp(0.7rem, 1.5vw, 0.85rem) clamp(0.85rem, 1.5vw, 1rem);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: border 0.2s;
    background: var(--bg);
    color: var(--text);
    min-width: 0;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    line-height: 1.5;
    word-break: break-word;
}
.alert.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}
.alert.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* ============================================================
   CONTACT PAGE GRID
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}
.contact-info {
    background: linear-gradient(135deg, var(--primary), #0a0f1e);
    color: #ffffff;
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: var(--radius);
    min-width: 0;
}
.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    color: #ffffff;
}
.contact-item {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
    word-break: break-word;
}
.contact-item .icon {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    flex-shrink: 0;
    line-height: 1.4;
}
.contact-item strong { font-size: clamp(0.85rem, 1.5vw, 0.95rem); }
.contact-item a {
    color: #ffffff;
    text-decoration: underline;
    word-break: break-all;
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
}
.contact-item a:hover { color: var(--accent); }

.contact-form {
    background: var(--bg);
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    min-width: 0;
}

.reply-notice {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    font-size: clamp(0.78rem, 1.3vw, 0.85rem);
    line-height: 1.5;
    word-break: break-word;
}

/* Email Directory Cards */
.email-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.email-card {
    background: var(--bg);
    padding: clamp(1rem, 2vw, 1.25rem);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    display: block;
    min-width: 0;
}
.email-card:hover { transform: translateY(-3px); }
.email-card .label {
    font-size: clamp(0.7rem, 1.2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.email-card .email {
    font-size: clamp(0.82rem, 1.4vw, 0.95rem);
    font-weight: 600;
    color: var(--primary);
    word-break: break-all;
}
[data-mode="dark"] .email-card .email { color: var(--primary-light); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) var(--container-pad);
    width: 100%;
}
.legal-content h1 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
    word-break: break-word;
}
.legal-content .last-updated {
    color: var(--text-muted);
    font-size: clamp(0.82rem, 1.4vw, 0.9rem);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.legal-content h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin: 2rem 0 0.9rem;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
}
.legal-content h3 {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    margin: 1.25rem 0 0.6rem;
    color: var(--text);
    word-break: break-word;
}
.legal-content p {
    margin-bottom: 1rem;
    color: var(--text);
    opacity: 0.9;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    line-height: 1.7;
    word-break: break-word;
}
.legal-content ul,
.legal-content ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text);
    opacity: 0.9;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    line-height: 1.7;
}
.legal-content li {
    margin-bottom: 0.5rem;
    word-break: break-word;
}
.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    word-break: break-all;
}
[data-mode="dark"] .legal-content a { color: var(--primary-light); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
    width: 100%;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    min-width: 0;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.1); }

/* ============================================================
   TABLET & MOBILE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --container-pad: 1.5rem;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE NAV — 900px
   ============================================================ */
@media (max-width: 900px) {
    :root {
        --nav-height: 68px;
        --container-pad: 1.25rem;
    }

    body { padding-top: 68px; }
    body.has-notice { padding-top: 100px; }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        flex-direction: column;
        background: var(--bg);
        width: min(320px, 85vw);
        height: calc(100vh - var(--nav-height));
        padding: 1.75rem 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 0.5rem;
        align-items: stretch;
        border-left: 1px solid var(--border);
        overflow-y: auto;
        margin: 0;
    }
    .nav-menu.open { right: 0; }
    .nav-menu li { width: 100%; }
    .nav-menu a {
        display: block;
        padding: 0.75rem 0.9rem;
        border-radius: 8px;
        font-size: 1rem;
        width: 100%;
    }
    .nav-menu a:hover { background: var(--bg-soft); }
    .nav-menu a.active {
        background: rgba(59, 130, 246, 0.1);
    }
    .nav-menu a.active::after { display: none; }
    .nav-menu .btn-b2b {
        text-align: center;
        margin-top: 0.5rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    /* Hide lang toggle text on very small screens */
    .icon-btn { padding: 0.45rem 0.6rem; }
}

/* ============================================================
   SMALL MOBILE — 600px
   ============================================================ */
@media (max-width: 600px) {
    :root {
        --container-pad: 1rem;
        --radius: 10px;
    }

    .hero { min-height: auto; padding-top: 2rem; padding-bottom: 2rem; }
    .hero-badge { font-size: 0.75rem; padding: 0.4rem 0.85rem; }
    .hero h1 { font-size: clamp(1.6rem, 8vw, 2rem); }
    .hero p { font-size: 0.92rem; }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }
    .hero-buttons .btn {
        width: 100%;
        padding: 0.85rem 1.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat h3 { font-size: 1.65rem; }
    .stat p { font-size: 0.78rem; }

    .product-card img { height: 180px; }
    .product-card-body { padding: 1.1rem; }
    .product-card h3 { font-size: 1.05rem; }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .footer-legal-links {
        gap: 0.5rem 1rem;
        row-gap: 0.5rem;
    }
    .footer-legal-links a { font-size: 0.75rem; }

    .contact-info,
    .contact-form { padding: 1.25rem; }

    .email-grid { grid-template-columns: 1fr; }

    .popup-modal { padding: 1.75rem 1.25rem; }
    .popup-close { top: 0.5rem; right: 0.5rem; }

    .notice-bar {
        font-size: 0.8rem;
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    }

    .legal-content ul,
    .legal-content ol { margin-left: 1.1rem; }
}

/* ============================================================
   VERY SMALL — 380px
   ============================================================ */
@media (max-width: 380px) {
    :root {
        --container-pad: 0.85rem;
        --nav-height: 62px;
    }

    body { padding-top: 62px; }

    .nav-logo span { display: none; }
    .nav-logo img { height: 34px; }
    .nav-menu { width: 90vw; }

    .icon-btn {
        padding: 0.4rem 0.55rem;
        font-size: 0.85rem;
    }

    .hero h1 { font-size: 1.5rem; }
    .section-header h1,
    .section-header h2 { font-size: 1.35rem; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat h3 { font-size: 1.5rem; }

    .product-card img { height: 160px; }
}

/* ============================================================
   LARGE SCREENS — 1600px+
   ============================================================ */
@media (min-width: 1600px) {
    :root {
        --container-max: 1400px;
        --container-pad: 2.5rem;
    }
}

@media (min-width: 2000px) {
    :root {
        --container-max: 1600px;
    }
    body { font-size: 1.05rem; }
}

/* ============================================================
   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;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    #particles-canvas,
    .navbar,
    .notice-bar,
    .popup-overlay,
    .footer-social { display: none !important; }
    body { padding-top: 0; }
}