/* ============================================================
   ReviveTech LLC — style.css
   Dark mode is the default theme; [data-theme="light"] overrides.
   ============================================================ */

:root {
  --bg: #0d1117;
  --bg-alt: #151b24;
  --surface: #1a212c;
  --surface-hover: #202937;
  --border: #2a3442;
  --text: #e6edf3;
  --text-muted: #9baec2;
  --accent: #3b82f6;
  --accent-2: #34d399;
  --grad: linear-gradient(100deg, #3b82f6 0%, #34d399 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(13, 17, 23, 0.85);
}

[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-hover: #f0f4f9;
  --border: #dde4ec;
  --text: #1a2433;
  --text-muted: #55677e;
  --accent: #2563eb;
  --accent-2: #0ea371;
  --grad: linear-gradient(100deg, #2563eb 0%, #0ea371 100%);
  --shadow: 0 10px 30px rgba(26, 36, 51, 0.1);
  --nav-bg: rgba(247, 249, 252, 0.85);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; }

h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }

/* Show the logo matching the active theme */
.logo-light { display: none; }
[data-theme="light"] .logo-light { display: block; }
[data-theme="light"] .logo-dark { display: none; }

/* ============ Navbar ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brand-logo {
  height: 46px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover { background: var(--surface-hover); transform: translateY(-1px); }

.theme-toggle svg { color: var(--accent); }

/* Sun shown in dark mode (click to go light), moon in light mode */
.icon-moon { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0 9px;
}

.menu-toggle span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
    radial-gradient(600px 300px at 80% 10%, rgba(52, 211, 153, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 800px;
  margin: 0 auto 1.25rem;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(59, 130, 246, 0.45); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-2px); }

.hero-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}

.hero-badges li {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============ Sections ============ */
.section { padding: 5.5rem 0; }

.section-alt { background: var(--bg-alt); }

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
  align-items: start;
}

.about-text p { margin-bottom: 1.2rem; color: var(--text-muted); }

.about-text strong { color: var(--text); }

.about-cards {
  display: grid;
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { color: var(--text-muted); font-size: 0.92rem; }

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  margin-bottom: 1.2rem;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }

.service-card p { color: var(--text-muted); font-size: 0.94rem; }

/* ============ Contact ============ */
.contact-inner { text-align: center; }

.contact-inner .section-sub { margin-left: auto; margin-right: auto; }

.contact-cards {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 240px;
  padding: 1.6rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--accent);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.contact-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-muted);
}

.contact-value { font-weight: 700; color: var(--text); }

.social-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo { height: 40px; width: auto; border-radius: 8px; }

.footer p { color: var(--text-muted); font-size: 0.88rem; }

/* ============ Responsive ============ */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 1rem 4%;
    border-top: 1px solid var(--border);
  }

  .services-grid { grid-template-columns: 1fr; }

  .hero { padding: 4.5rem 0 4rem; }

  .footer-inner { justify-content: center; text-align: center; }
}
