/* ============================================
   JAMB IT Group — Styles
   ============================================ */

:root {
  /* Brand Colors */
  --navy:       #0a1628;
  --navy-light: #132038;
  --blue:       #1e3a5f;
  --teal:       #2ec4b6;
  --teal-dark:  #25a59a;
  --teal-glow:  rgba(46, 196, 182, 0.15);
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1e293b;
  --gray-900:   #0f172a;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-padding: 6rem 0;

  /* Transitions */
  --transition: 0.3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-300);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ---- Container ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(46, 196, 182, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-nav {
  background: var(--teal);
  color: var(--navy);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 6px;
}

.btn-nav:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* ---- Section Labels ---- */
.section-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 540px;
  margin-bottom: 3rem;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo-jamb {
  color: var(--white);
}

.logo-it {
  color: var(--teal);
  font-size: 1.1rem;
}

.logo-group {
  color: var(--gray-400);
  font-weight: 500;
  font-size: 0.9rem;
  margin-left: 4px;
}

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

.nav-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-300);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--blue) 100%);
  padding: 10rem 0 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, var(--teal-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 58, 95, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Network Graphic */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.network-graphic {
  position: relative;
  width: 400px;
  height: 400px;
}

.connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.connections line {
  stroke: var(--teal);
  stroke-width: 1;
  opacity: 0.3;
  stroke-dasharray: 8 4;
}

.node {
  position: absolute;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 20px rgba(46, 196, 182, 0.4);
}

.node-center {
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s ease-in-out infinite;
}

.node-1 { width: 14px; height: 14px; top: 16%; left: 16%;  opacity: 0.7; animation: float 4s ease-in-out infinite; }
.node-2 { width: 12px; height: 12px; top: 16%; right: 18%; opacity: 0.6; animation: float 5s ease-in-out infinite 0.5s; }
.node-3 { width: 16px; height: 16px; bottom: 30%; left: 10%; opacity: 0.8; animation: float 4.5s ease-in-out infinite 1s; }
.node-4 { width: 10px; height: 10px; bottom: 30%; right: 12%; opacity: 0.5; animation: float 3.5s ease-in-out infinite 1.5s; }
.node-5 { width: 12px; height: 12px; top: 8%;  left: 48%;  opacity: 0.6; animation: float 4s ease-in-out infinite 0.8s; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(46, 196, 182, 0.4); }
  50%      { box-shadow: 0 0 40px rgba(46, 196, 182, 0.7); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: var(--section-padding);
  background: var(--navy-light);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.service-card {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 30px rgba(46, 196, 182, 0.12);
  transform: translateY(-2px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-list li {
  color: var(--gray-400);
  font-size: 0.9rem;
  padding-left: 1.25rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* ============================================
   Why Us
   ============================================ */
.why-us {
  padding: var(--section-padding);
  background: var(--navy);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  text-align: left;
}

.why-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.3;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.why-card p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  text-align: center;
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta p {
  color: var(--gray-400);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: var(--section-padding);
  background: var(--navy-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info p {
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-400);
}

.contact-item svg {
  color: var(--teal);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--teal);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--teal-dark);
}

/* Form */
.contact-form {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-300);
  margin-bottom: 0.4rem;
}

.form-group .optional {
  color: var(--gray-400);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--navy-light);
  color: var(--gray-200);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.cf-turnstile {
  margin-bottom: 1.25rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy);
  padding: 3rem 0 2rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 320px;
}

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

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.8rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

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

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

  .section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 4rem 0;
  }

  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

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

  .cta h2 {
    font-size: 1.75rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
  }

  .service-card {
    padding: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
