:root {
  --bg: #050710;
  --bg-alt: #0b1020;
  --card-bg: #11172a;
  --accent: #35a8ff;
  --accent-soft: rgba(53,168,255,0.2);
  --text: #f5f7ff;
  --text-muted: #a4acc4;
  --border-subtle: #232a3f;
  --danger: #ff4b6a;
  --shadow-soft: 0 18px 50px rgba(0,0,0,0.45);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --nav-height:120px;

  --card-padding: 1.1rem 1.2rem 1.2rem;
  --card-gap: 1.2rem;
}

/* RESET */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 50%, #000 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.site-wrapper { flex: 1; display: flex; flex-direction: column; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(2,6,23,0.75);
  border-bottom: 1px solid rgba(148,163,184,0.1);
}

.navbar {
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; gap: 0.6rem; }

.nav-logo {
  width: 55px; height: 55px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(148,163,184,0.4), 0 0 25px rgba(56,189,248,0.7);
}

.nav-title {
  font-size: 1.24rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #e5f0ff, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(56,189,248,0.7);
}

.nav-subtitle {
  margin-top: 0.12rem;
  font-size: 0.62rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.18em;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.5);
  color: #e2e8f0;
}

.nav-links {
  display: flex; align-items: center; gap: 1.2rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #7dd3fc;
  padding-bottom: 0.25rem;
  position: relative;
}

.nav-links a.nav-active,
.nav-links a:hover { color: #a5f3fc; }

.nav-links a.nav-active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg,#22d3ee,#3b82f6,#a855f7);
  border-radius: 999px;
}

.nav-cta { display: none; }

@media (min-width: 840px) { .nav-cta { display: inline-flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.6);
  color: var(--text);
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: all 0.18s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg,#22d3ee,#3b82f6,#a855f7);
  border-color: transparent;
  box-shadow: 0 12px 36px rgba(37,99,235,0.45);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 20px 60px rgba(59,130,246,0.7);
}

/* Services Section */
.services-section {
  padding: 2rem 0 2.4rem;
}

.services-header {
  margin-bottom: 1.6rem;
  text-align: left;
}

.services-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.services-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(270px,1fr));
  gap: var(--card-gap);
  margin-bottom: 2.2rem;
}

/* Cards */
.service-card {
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(148,163,184,0.35);
  padding: var(--card-padding);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease-out;
}

.service-card:hover {
  transform: translateY(-3px);
}

.pill-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.3rem;
  color: #9ca3af;
}

.service-card h3 {
  font-size: 1.05rem;
  margin: 0.25rem 0 0.45rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.service-card ul li {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 0.28rem;
}

/* Highlighted featured card */
.highlight-card {
  border: 1px solid #3b82f6;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 60%),
              rgba(15,23,42,0.96);
  box-shadow: 0 0 25px rgba(37,99,235,0.4);
}

/* SMB Section */
.smb-heading {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148,163,184,0.18);
  color: #e2e8f0;
}

/* CTA */
.cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.cta-btn {
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  box-shadow: 0 18px 50px rgba(59,130,246,0.55);
}

/* Responsive */
@media (max-width: 840px) {
  :root { --nav-height: 72px; }

  /* Hide desktop links, show toggle */
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text);
  }

  .nav-toggle:focus { outline: 2px solid var(--accent); }

  .hamburger {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: transform 0.18s ease-out;
  }

  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform 0.18s ease-out, opacity 0.12s ease-out;
  }

  .hamburger::before { top: -7px; }
  .hamburger::after { top: 7px; }

  /* When open, make a subtle X */
  .navbar.open .hamburger { transform: rotate(45deg); }
  .navbar.open .hamburger::before { transform: rotate(90deg) translateX(0); top: 0; }
  .navbar.open .hamburger::after { opacity: 0; }

  /* Mobile dropdown panel */
  .navbar.open .nav-links {
    display: flex;
    position: absolute;
    right: 1.25rem;
    top: var(--nav-height);
    background: rgba(2,6,23,0.9);
    border: 1px solid rgba(148,163,184,0.08);
    padding: 0.8rem;
    border-radius: 12px;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  }

  .navbar.open { z-index: 60; }

  /* Make nav-brand elements more compact on small screens */
  .nav-title { font-size: 1rem; }
  .nav-subtitle { display: none; }

  /* Increase tappable areas */
  .nav-links a, .btn { padding: 0.65rem 0.9rem; }
}
/* Ensure contact page links are readable */
.contact-card a,
.contact-panel a,
.contact-info a {
  color: #ffffff !important;
  font-weight: 500;
  text-decoration: none;
}

.contact-card a:hover,
.contact-panel a:hover,
.contact-info a:hover {
  color: #38bdf8 !important;
  text-decoration: underline;
}
/* Fix link readability in contact section */
.service-card a {
  color: #ffffff !important;     /* clean white */
  font-weight: 500;
  text-decoration: none;
}

.service-card a:hover {
  color: #38bdf8 !important;     /* accent blue on hover */
  text-decoration: underline;
}
