/* ============================================================
   Srijith Techno Pvt. Ltd. — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --gold: #f5a623;
  --gold-light: #ffd580;
  --green: #10b981;
  --blue: #3b82f6;
  --red: #ef4444;
  --bg-dark: #0a0d14;
  --bg-card: #111827;
  --bg-secondary: #0f1623;
  --border: rgba(255,255,255,0.08);
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s ease;
  --navbar-h: 68px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
h2 span { color: var(--gold); }
p { color: var(--text-muted); line-height: 1.75; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.page-top { padding-top: var(--navbar-h); }
.text-center { text-align: center; }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header p { max-width: 560px; margin: 12px auto 0; }
.divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 4px;
  margin: 16px auto 0;
}

/* Grids */
.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: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ── Animations ── */
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fade-up 0.7s ease both; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  background: rgba(10,13,20,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,13,20,0.98);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #e08b0a);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #000;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.logo-text span { color: var(--gold); }
.logo-sub { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--gold); background: rgba(245,158,11,0.08); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--navbar-h); left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
  .nav-cta { margin-top: 8px; text-align: center; justify-content: center; }
}

/* ── Ticker Bar ── */
.ticker-bar {
  position: sticky;
  top: var(--navbar-h);
  z-index: 900;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 40px;
}
.ticker-label {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  background: rgba(16,185,129,0.1);
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-content {
  display: flex;
  gap: 36px;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
  padding: 0 20px;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.8rem;
}
.ticker-item .name { color: var(--text-muted); font-weight: 500; }
.ticker-item .price { font-weight: 700; color: var(--text-primary); }
.ticker-item .change { font-weight: 700; font-size: 0.75rem; }
.ticker-item .change.up { color: var(--green); }
.ticker-item .change.down { color: var(--red); }
.ticker-sep { color: var(--border); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #e08b0a);
  color: #000;
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245,158,11,0.06);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; border-radius: 8px; }

/* ── Tag / Label ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.tag-pill {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-gold { background: rgba(245,158,11,0.15); color: var(--gold); }
.badge-green { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.badge-red { background: rgba(239,68,68,0.15); color: var(--red); }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.card:hover { border-color: rgba(245,158,11,0.25); }
.card-gold:hover {
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 8px 32px rgba(245,158,11,0.06);
  transform: translateY(-3px);
}

/* ── Stat Box ── */
.stat-box {
  text-align: center;
  padding: 24px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Product Card ── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(245,158,11,0.1);
  transform: translateY(-4px);
}
.product-img {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(59,130,246,0.06));
  border-bottom: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-size: 3.5rem;
}
.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-name { font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.product-desc { font-size: 0.83rem; color: var(--text-muted); }
.product-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
}
.product-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

/* ── News Card ── */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: var(--transition);
}
.news-card:hover { border-color: rgba(245,158,11,0.3); transform: translateY(-2px); }
.news-source {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.news-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; line-height: 1.4; color: var(--text-primary); }
.news-desc { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 10px; }
.news-time { font-size: 0.75rem; color: var(--text-muted); }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.form-control {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(245,158,11,0.04);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: var(--bg-card); color: var(--text-primary); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Alert ── */
.alert {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.875rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: var(--green); }
.alert-warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); color: var(--gold); }
.alert-info { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); color: var(--blue); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1rem; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.modal-body { padding: 24px; }

/* ── Footer ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; max-width: 300px; }
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.social-links a:hover { border-color: var(--gold); background: rgba(245,158,11,0.08); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-muted { color: var(--text-muted); }

/* ── Hero bg gradient ── */
.hero-bg {
  background: radial-gradient(ellipse at 20% 50%, rgba(245,158,11,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.05) 0%, transparent 50%),
              var(--bg-dark);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
