/* ========================================
   Inference Africa - Stylesheet
   ======================================== */

:root {
  --primary: #76b900;       /* NVIDIA green */
  --primary-dark: #5a8f00;
  --primary-light: #8ed600;
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --surface: #1e1e1e;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888888;
  --text-dim: #555555;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

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

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
}

.btn--primary {
  background: var(--primary);
  color: #000;
}
.btn--primary:hover {
  background: var(--primary-light);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(118, 185, 0, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav__logo:hover { color: var(--white); }
.nav__logo strong { color: var(--primary); }
.nav__logo-icon {
  color: var(--primary);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

.nav__cta {
  background: var(--primary) !important;
  color: #000 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.nav__cta:hover {
  background: var(--primary-light) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(118, 185, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(118, 185, 0, 0.04) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(118, 185, 0, 0.1);
  border: 1px solid rgba(118, 185, 0, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero__stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Sections ── */
.section {
  padding: 6rem 0;
}

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

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

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section__header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(118, 185, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.card__link:hover { color: var(--primary-light); }

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature {
  padding: 2rem;
}

.feature__num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.08), rgba(118, 185, 0, 0.02));
  border-top: 1px solid rgba(118, 185, 0, 0.15);
  border-bottom: 1px solid rgba(118, 185, 0, 0.15);
}

.cta__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta__inner h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta__inner p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ── Page Hero ── */
.page-hero {
  padding: 10rem 0 4rem;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(118, 185, 0, 0.06) 0%, transparent 60%);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
}

/* ── Services Detail ── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail--reverse {
  direction: rtl;
}
.service-detail--reverse > * {
  direction: ltr;
}

.service-detail__content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-detail__content > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.service-detail__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-detail__list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

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

.training-track h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* ── Service Visuals ── */
.service-visual {
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-visual__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 2rem;
}

.sv-block {
  width: 80px;
  height: 80px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.6s ease;
  animation: blockPulse 3s ease-in-out infinite;
}

.sv-block:nth-child(odd) { animation-delay: 0.5s; }
.sv-block--accent {
  background: rgba(118, 185, 0, 0.15);
  border-color: rgba(118, 185, 0, 0.3);
}

@keyframes blockPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.service-visual--mgmt {
  position: relative;
}

.sv-pulse {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulse 2s ease-out infinite;
}
.sv-pulse--2 { animation-delay: 0.6s; }
.sv-pulse--3 { animation-delay: 1.2s; }

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.service-visual--train {
  align-items: flex-end;
  gap: 16px;
  padding: 2rem;
}

.sv-bar {
  width: 40px;
  height: var(--h, 50%);
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  border-radius: 6px 6px 0 0;
  opacity: 0.7;
  animation: barGrow 2s ease-out forwards;
}

@keyframes barGrow {
  from { height: 0; }
}

.service-visual--consult {
  position: relative;
}

.sv-node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
}

.sv-node--center {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 30px rgba(118, 185, 0, 0.3);
}

.sv-node--orbit {
  animation: orbit 6s linear infinite;
}

.sv-node--1 { animation-delay: 0s; --orbit-radius: 80px; }
.sv-node--2 { animation-delay: 2s; --orbit-radius: 80px; }
.sv-node--3 { animation-delay: 4s; --orbit-radius: 80px; }

@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-radius)); }
  to { transform: rotate(360deg) translateX(var(--orbit-radius)); }
}

/* ── About Page ── */
.about-grid {
  display: grid;
  gap: 4rem;
}

.about-text {
  max-width: 700px;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-values h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.value-card h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

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

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.tech-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tech-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-card);
}

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

.alert {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.alert--success {
  background: rgba(118, 185, 0, 0.1);
  border: 1px solid rgba(118, 185, 0, 0.3);
  color: var(--primary-light);
}

.alert--error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info__card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-info__item {
  margin-bottom: 1.25rem;
}

.contact-info__item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.contact-info__item a {
  font-size: 0.95rem;
}

.contact-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-step__num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(118, 185, 0, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.contact-step strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact-step p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Footer ── */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-dim);
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer__col a:hover { color: var(--primary); }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__bottom p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ── Animations ── */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-detail--reverse {
    direction: ltr;
  }
  .service-visual {
    max-width: 300px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    border-left: 1px solid var(--border);
    transition: right var(--transition);
  }

  .nav__links.open { right: 0; }

  .nav__links a {
    font-size: 1.1rem;
    padding: 0.75rem 0;
  }

  .nav__cta {
    margin-top: 1rem;
    text-align: center !important;
  }

  .hero { padding: 7rem 0 3rem; min-height: auto; }
  .hero h1 { font-size: 2.4rem; }
  .hero__stats { flex-direction: column; gap: 1.5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .section { padding: 4rem 0; }
  .section__header h2 { font-size: 2rem; }
  .page-hero { padding: 8rem 0 3rem; }

  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }

  .training-tracks { grid-template-columns: 1fr; }

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

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

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .values-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
}
