/* Bhagwati Tools — Professional Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-accent: #1c1917;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --red-primary: #dc2626;
  --red-hover: #ef4444;
  --red-dark: #991b1b;
  --red-glow: rgba(220, 38, 38, 0.15);
  --border-color: #262626;
  --border-light: #333333;
  --gradient-red: linear-gradient(135deg, #dc2626, #b91c1c);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-red: 0 4px 20px rgba(220, 38, 38, 0.3);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ========== NAVIGATION ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.nav.scrolled { background: rgba(10, 10, 10, 0.95); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 0; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--red-primary); border-radius: 1px;
}
.nav-cta {
  background: var(--gradient-red); color: white; padding: 10px 24px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem;
  border: none; transition: var(--transition); text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-red); }

/* Mobile Menu */
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: var(--transition); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--bg-primary); flex-direction: column;
    padding: 32px 24px; gap: 24px; transform: translateX(100%);
    transition: var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0a0a 50%, var(--bg-primary) 100%);
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 6px 16px; border-radius: 100px; font-size: 0.8rem;
  color: var(--red-primary); font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient-red);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 560px; margin-bottom: 36px; line-height: 1.7; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border-color);
}
.hero-stat h3 { font-size: 2rem; font-weight: 800; color: var(--red-primary); }
.hero-stat p { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; transition: var(--transition);
  border: none; text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary { background: var(--gradient-red); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-red); }
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { border-color: var(--red-primary); color: var(--red-primary); }
.btn .material-symbols-outlined { font-size: 18px; }

/* ========== CARDS ========== */
.card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-image {
  width: 100%; height: 220px; object-fit: contain;
  background: #f5f5f5; padding: 12px;
}
.card-image-placeholder {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, var(--bg-secondary), #1a1a2e);
  display: flex; align-items: center; justify-content: center;
}
.card-image-placeholder .material-symbols-outlined { font-size: 56px; color: var(--red-primary); opacity: 0.4; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card-body p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* Brand Card */
.brand-card { position: relative; }
.brand-card .brand-letter {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--red-dark); color: white; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 16px;
}
.brand-card .brand-tagline {
  font-size: 0.75rem; color: var(--red-primary); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 600; margin-bottom: 12px;
}
.brand-card .brand-stats {
  display: flex; gap: 16px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border-color); font-size: 0.8rem;
  color: var(--text-muted);
}
.brand-card .brand-stats span { color: var(--text-primary); font-weight: 600; }

/* ========== PRODUCT CARD ========== */
.product-card { cursor: pointer; }
.product-card .product-type {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; background: var(--red-dark); color: white;
  margin-bottom: 12px;
}
.product-card .model-count {
  font-size: 0.8rem; color: var(--text-muted); margin-top: 12px;
}
.product-card .model-count span { color: var(--red-primary); font-weight: 600; }

/* ========== CATEGORY CARD ========== */
.category-card { padding: 28px; display: flex; flex-direction: column; }
.category-card .cat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: rgba(220, 38, 38, 0.1); color: var(--red-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.category-card .cat-icon .material-symbols-outlined { font-size: 26px; }
.category-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.category-card p { font-size: 0.85rem; color: var(--text-secondary); flex: 1; }
.category-card .cat-footer {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color);
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center;
}
.category-card .cat-footer span { color: var(--red-primary); font-weight: 600; }

/* ========== GRID LAYOUTS ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .btn-group { flex-direction: column; }
  .section { padding: 48px 0; }
}

/* ========== SECTION HEADERS ========== */
.section-header { margin-bottom: 48px; }
.section-header .overline {
  font-size: 0.75rem; font-weight: 700; color: var(--red-primary);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.section-header p { font-size: 1rem; color: var(--text-secondary); max-width: 600px; }

/* ========== SEARCH ========== */
.search-container {
  position: relative; max-width: 600px; margin: 0 auto 48px;
}
.search-input {
  width: 100%; padding: 16px 20px 16px 52px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); color: var(--text-primary);
  font-size: 1rem; font-family: inherit; outline: none;
  transition: var(--transition);
}
.search-input:focus { border-color: var(--red-primary); box-shadow: 0 0 0 3px var(--red-glow); }
.search-input::placeholder { color: var(--text-muted); }
.search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); max-height: 400px; overflow-y: auto;
  z-index: 100; display: none; box-shadow: var(--shadow-lg);
}
.search-results.active { display: block; }
.search-result-item {
  padding: 14px 20px; border-bottom: 1px solid var(--border-color);
  cursor: pointer; transition: var(--transition);
}
.search-result-item:hover { background: var(--bg-card-hover); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item .result-brand {
  font-size: 0.7rem; color: var(--red-primary); text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 600;
}
.search-result-item .result-name { font-weight: 600; font-size: 0.95rem; margin: 2px 0; }
.search-result-item .result-category { font-size: 0.8rem; color: var(--text-muted); }
.search-result-item .result-models {
  font-size: 0.75rem; color: var(--text-muted); margin-top: 4px;
}

/* ========== SPEC TABLES ========== */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.85rem; }
.spec-table th {
  background: var(--bg-secondary); color: var(--text-secondary);
  padding: 10px 14px; text-align: left; font-weight: 600;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 2px solid var(--red-dark);
}
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-color); }
.spec-table tr:hover td { background: var(--bg-card-hover); }

/* ========== MODEL CODES ========== */
.model-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.model-tag {
  padding: 4px 10px; background: var(--bg-secondary);
  border: 1px solid var(--border-color); border-radius: 4px;
  font-size: 0.75rem; font-family: 'SF Mono', monospace; color: var(--text-secondary);
}

/* ========== PRODUCT DETAIL MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 2000; display: none; align-items: center; justify-content: center;
  padding: 24px; backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); max-width: 800px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: var(--bg-secondary);
  border: 1px solid var(--border-color); border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; color: var(--text-secondary);
  cursor: pointer; z-index: 10; transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); border-color: var(--red-primary); }
.modal-header { padding: 32px 32px 0; }
.modal-body { padding: 24px 32px 32px; }

/* ========== FILTERS ========== */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 500;
  transition: var(--transition); cursor: pointer;
}
.filter-btn:hover { border-color: var(--border-light); color: var(--text-primary); }
.filter-btn.active { background: var(--red-primary); border-color: var(--red-primary); color: white; }

/* ========== BREADCRUMB ========== */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted); padding: 24px 0;
}
.breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--red-primary); }
.breadcrumb .sep { color: var(--text-muted); }

/* ========== BRAND HERO ========== */
.brand-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0a0a 100%);
  position: relative;
}
.brand-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--border-color);
}
.brand-hero .brand-icon {
  width: 72px; height: 72px; border-radius: var(--radius-md);
  background: var(--red-dark); color: white; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 20px;
}
.brand-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 8px; }
.brand-hero .tagline {
  font-size: 1rem; color: var(--red-primary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.brand-hero p { font-size: 1rem; color: var(--text-secondary); max-width: 700px; line-height: 1.7; }
.brand-hero .brand-hero-stats {
  display: flex; gap: 32px; margin-top: 32px;
}
.brand-hero .stat-item {
  text-align: center; padding: 16px 24px;
  background: rgba(220, 38, 38, 0.08); border-radius: var(--radius-md);
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.brand-hero .stat-item h3 { font-size: 1.5rem; font-weight: 800; color: var(--red-primary); }
.brand-hero .stat-item p { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 16px; line-height: 1.7; }
.footer h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-primary); margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--text-muted); font-size: 0.88rem; transition: var(--transition); }
.footer ul li a:hover { color: var(--red-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-color); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-contact a { color: var(--text-secondary); transition: var(--transition); }
.footer-contact a:hover { color: var(--red-primary); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .brand-hero .brand-hero-stats { flex-wrap: wrap; gap: 16px; }
  .brand-hero h1 { font-size: 2rem; }
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition); cursor: pointer;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ========== PAGE HERO (smaller) ========== */
.page-hero {
  padding: 120px 0 48px;
  background: linear-gradient(135deg, var(--bg-primary), #1a0a0a);
  border-bottom: 1px solid var(--border-color);
}
.page-hero .overline {
  font-size: 0.75rem; color: var(--red-primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; }

/* ========== CONTACT ========== */
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; background: var(--bg-secondary);
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
  outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--red-primary); box-shadow: 0 0 0 3px var(--red-glow);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center; padding: 64px 24px; color: var(--text-muted);
}
.empty-state .material-symbols-outlined { font-size: 64px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 8px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
