/* NovaFortix Lab - Official Portal Styling */
:root {
  --bg-base: #090d16;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273549;
  --border-subtle: #334155;
  --border-glow: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Ambient Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Top Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.brand-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-weight: 600;
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-btn-sponsor {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, filter 0.15s;
}
.nav-btn-sponsor:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 850;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-gradient {
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
}

/* Search & Filter Bar */
.search-bar-wrap {
  max-width: 580px;
  margin: 0 auto 20px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  background: var(--bg-card);
  color: #fff;
}

.filter-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #0f172a;
}

/* Tools Grid */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.section-title {
  font-size: 18px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 24px -10px rgba(56, 189, 248, 0.25);
}

.tool-card.featured {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
}

.tool-badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.tool-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-info {
  flex: 1;
}

.tool-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.tool-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-bottom {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.tool-tag {
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.tool-arrow {
  color: var(--text-muted);
  font-size: 13px;
  transition: transform 0.15s;
}
.tool-card:hover .tool-arrow {
  transform: translateX(3px);
  color: var(--accent-cyan);
}

/* Sponsor & Donation Card */
.sponsor-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid #475569;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 30px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.sponsor-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.sponsor-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.sponsor-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-copy-box {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: monospace;
  font-size: 13px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy {
  background: #334155;
  border: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-copy:hover {
  background: #475569;
}

/* Ad Containers */
.ad-slot-wrap {
  margin: 30px auto;
  text-align: center;
  max-width: 728px;
}

.ad-slot-box {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.ad-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 5px;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

footer a {
  color: var(--accent-cyan);
  text-decoration: none;
}
