/* =====================================================
   TechBurst — Premium Dark Mode Stylesheet
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080b14;
  --bg2: #0d1120;
  --bg3: #111827;
  --surface: rgba(255,255,255,0.05);
  --surface-hover: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.08);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --accent3: #06b6d4;
  --green: #10b981;
  --pink: #ec4899;
  --yellow: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 64px rgba(0,0,0,0.6);
  --font: 'Inter', system-ui, sans-serif;
  --font2: 'Space Grotesk', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-family: var(--font2); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin: 12px 0 16px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }
.section-badge {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 99px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 0 24px rgba(99,102,241,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(99,102,241,0.6); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: var(--transition);
  backdrop-filter: blur(0px);
}
.navbar.scrolled {
  background: rgba(8,11,20,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 12px 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-family: var(--font2); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  padding: 8px 16px; border-radius: 99px; font-size: 0.9rem; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 99px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 48px 80px;
  max-width: 1300px; margin: 0 auto;
  position: relative; gap: 80px;
}
.hero-bg-glow {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(99,102,241,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 70% 60%, rgba(139,92,246,0.08) 0%, transparent 70%);
}
.hero-content { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 99px; margin-bottom: 24px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  animation: fadeSlideDown 0.6s ease both;
}
.hero-title {
  font-family: var(--font2); font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 24px;
  animation: fadeSlideDown 0.7s ease 0.1s both;
}
.hero-sub {
  color: var(--text-muted); font-size: 1.1rem; line-height: 1.7;
  margin-bottom: 36px; max-width: 480px;
  animation: fadeSlideDown 0.7s ease 0.2s both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; animation: fadeSlideDown 0.7s ease 0.3s both; }
.hero-stats { display: flex; align-items: center; gap: 24px; animation: fadeSlideDown 0.7s ease 0.4s both; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font2); font-size: 1.4rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Hero Visual */
.hero-visual {
  flex: 0 0 420px; position: relative; height: 460px;
  display: none;
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.orb-1 { width: 300px; height: 300px; background: rgba(99,102,241,0.2); top: 0; right: 0; animation: orb 6s ease-in-out infinite; }
.orb-2 { width: 200px; height: 200px; background: rgba(139,92,246,0.15); bottom: 40px; left: 20px; animation: orb 8s ease-in-out infinite reverse; }
.floating-card {
  position: absolute; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); backdrop-filter: blur(12px);
  border: 1px solid var(--border); font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow); white-space: nowrap;
}
.card-1 { top: 40px; right: 20px; animation: float 4s ease-in-out infinite; }
.card-2 { top: 140px; left: 0; animation: float 5s ease-in-out infinite 0.5s; }
.card-3 { top: 250px; right: 40px; animation: float 4.5s ease-in-out infinite 1s; }
.card-4 { bottom: 40px; left: 20px; animation: float 5.5s ease-in-out infinite 1.5s; }
.tag {
  padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 700;
  background: rgba(16,185,129,0.2); color: var(--green);
}
.tag-new { background: rgba(99,102,241,0.2); color: var(--accent); }
.tag-hot { background: rgba(239,68,68,0.2); color: #ef4444; }

/* ===== AD STRIP ===== */
.ad-strip {
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 24px; text-align: center; min-height: 100px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
}
.ad-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.ad-mid { background: var(--bg3); margin: 0; }

/* ===== CATEGORIES ===== */
.categories-section { background: var(--bg2); }
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px;
}
.category-card {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: var(--transition); opacity: 0; transform: translateY(20px);
}
.category-card.visible { opacity: 1; transform: translateY(0); }
.category-card:hover {
  background: var(--surface-hover); border-color: var(--accent);
  transform: translateY(-4px); box-shadow: 0 8px 32px rgba(99,102,241,0.15);
}
.cat-icon { font-size: 2rem; }
.category-card h3 { font-family: var(--font2); font-size: 1rem; font-weight: 700; }
.category-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.cat-count { font-size: 0.75rem; font-weight: 600; color: var(--accent); margin-top: 4px; }

/* ===== TOOLS ===== */
.tools-section { position: relative; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 48px; }
.tool-card {
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: var(--transition); opacity: 0; transform: translateY(24px);
  display: flex; flex-direction: column; gap: 12px;
}
.tool-card.visible { opacity: 1; transform: translateY(0); }
.tool-card:hover { background: var(--surface-hover); border-color: rgba(99,102,241,0.4); transform: translateY(-6px); box-shadow: var(--shadow); }
.tool-card.featured { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.07); }
.tool-header { display: flex; align-items: flex-start; justify-content: space-between; }
.tool-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.tool-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 4px 10px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; }
.badge-free { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-new { background: rgba(99,102,241,0.15); color: var(--accent); }
.badge-hot { background: rgba(239,68,68,0.15); color: #ef4444; }
.tool-card h3 { font-family: var(--font2); font-size: 1.1rem; font-weight: 700; }
.tool-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; flex: 1; }
.tool-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-tags span {
  padding: 4px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 500;
  background: rgba(255,255,255,0.07); color: var(--text-muted);
}
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 99px; font-size: 0.85rem; font-weight: 600;
  background: rgba(99,102,241,0.15); color: var(--accent);
  text-decoration: none; transition: var(--transition); border: 1px solid rgba(99,102,241,0.2);
  align-self: flex-start; margin-top: auto;
}
.tool-btn:hover { background: var(--accent); color: #fff; border-color: transparent; }
.tools-cta { text-align: center; }

/* ===== ARTICLES ===== */
.articles-section { background: var(--bg2); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.article-card {
  display: flex; flex-direction: column; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: var(--transition); overflow: hidden;
  opacity: 0; transform: translateY(24px);
}
.article-card.visible { opacity: 1; transform: translateY(0); }
.article-card:hover { transform: translateY(-6px); border-color: rgba(99,102,241,0.4); box-shadow: var(--shadow); }
.featured-article { grid-row: span 1; }
.article-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.article-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-tag {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  font-size: 0.75rem; font-weight: 700; align-self: flex-start;
  background: rgba(99,102,241,0.15); color: var(--accent);
}
.article-body h3 { font-family: var(--font2); font-size: 1rem; font-weight: 700; line-height: 1.4; }
.article-body p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; flex: 1; }
.article-meta { display: flex; gap: 16px; font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ===== NEWSLETTER ===== */
.newsletter-section { background: var(--bg); }
.newsletter-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.25); border-radius: 24px;
  padding: 60px 48px; text-align: center; max-width: 700px; margin: 0 auto;
}
.newsletter-icon { font-size: 3rem; margin-bottom: 16px; }
.newsletter-card h2 { font-family: var(--font2); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 16px; }
.newsletter-card p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }
.newsletter-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto 16px; flex-wrap: wrap; }
.newsletter-input {
  flex: 1; min-width: 200px; padding: 13px 20px; border-radius: 99px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  color: var(--text); font-size: 0.95rem; outline: none; font-family: var(--font);
  transition: var(--transition);
}
.newsletter-input:focus { border-color: var(--accent); background: rgba(99,102,241,0.1); }
.newsletter-note { font-size: 0.8rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 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; max-width: 240px; line-height: 1.7; }
.footer-links h4 { font-family: var(--font2); font-weight: 700; margin-bottom: 20px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; line-height: 1.8; }
.footer-bottom a { color: var(--accent); text-decoration: none; }
.disclaimer { font-size: 0.75rem !important; opacity: 0.6; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--accent); color: #fff; padding: 14px 28px; border-radius: 99px;
  font-size: 0.9rem; font-weight: 600; z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s;
  opacity: 0; box-shadow: 0 8px 32px rgba(99,102,241,0.5); white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes orb { 0%, 100% { transform: scale(1) translate(0,0); } 50% { transform: scale(1.1) translate(-20px, 20px); } }

/* ===== RESPONSIVE ===== */
@media (min-width: 900px) { .hero-visual { display: block; } }

@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 100px 24px 60px; gap: 40px; text-align: center; }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-links { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--bg2); padding: 24px; flex-direction: column; border-bottom: 1px solid var(--border); z-index: 999; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .newsletter-card { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p { max-width: 100%; }
}
