@import './fonts.css';

:root {
  --bg: #070707;
  --bg-soft: #111315;
  --ink: #f6f7fb;
  --muted: #aab0bc;
  --line: rgba(255, 255, 255, 0.12);
  --brand-red: #ed2434;
  --brand-blue: #214a9a;
  --cyan: #60d6ff;
  --green: #4fc17b;
  --yellow: #f6c642;
  --panel: rgba(255, 255, 255, 0.055);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Manrope', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: 'Neutral Face', 'Manrope', Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(2.9rem, 6.8vw, 7rem);
  line-height: 0.94;
  max-width: 980px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.25;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  background: rgba(7, 7, 7, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.logo-img {
  width: 116px;
  height: auto;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.24);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.12rem rgba(96, 214, 255, 0.35);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.nav-link {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  padding-inline: 0.85rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  padding: 0.78rem 1.25rem;
  line-height: 1;
  white-space: nowrap;
}

.btn-light {
  background: #ffffff;
  color: #090909;
  border-color: #ffffff;
}

.btn-light:hover {
  background: #e9eef8;
  border-color: #e9eef8;
  color: #090909;
}

.btn-outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-cta {
  padding: 0.68rem 1rem;
}

.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #050505;
  isolation: isolate;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0), var(--bg));
  z-index: -1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.72) 42%, rgba(5, 5, 5, 0.28) 100%),
    url('../assets/figma/hero-ai-vision.png') right 8% bottom / min(46vw, 520px) auto no-repeat,
    radial-gradient(circle at 82% 38%, rgba(96, 214, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(33, 74, 154, 0.34), rgba(237, 36, 52, 0.16));
}

.hero-content {
  padding: clamp(6rem, 14vh, 9rem) 0 clamp(5rem, 10vh, 7rem);
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-lead {
  margin-top: 1.35rem;
  font-size: clamp(1.25rem, 2.1vw, 2.05rem);
  color: #ffffff;
  max-width: 720px;
}

.hero-copy {
  margin-top: 1rem;
  max-width: 650px;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.2rem) 0;
}

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

.section-light {
  background: #f6f7f2;
  color: #111111;
}

.section-light h2,
.section-light h3 {
  color: #111111;
}

.section-light p {
  color: #535a63;
}

.section-intro {
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.section-intro.centered {
  text-align: center;
  margin-inline: auto;
}

.section-intro.centered p:not(.eyebrow) {
  margin: 1rem auto 0;
  max-width: 680px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
}

.about-copy {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  min-height: 150px;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-value {
  font-family: 'Neutral Face', 'Manrope', Arial, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  color: #ffffff;
}

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

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: 2.4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 420px;
  background: #ffffff;
  color: #111111;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.feature-card-large {
  grid-row: span 2;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-card div {
  padding: 1.3rem;
}

.feature-card p {
  margin-top: 0.75rem;
}

.tech-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.tech-visual {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 560px;
  background: #000000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tech-visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.tech-list {
  display: grid;
  gap: 1rem;
}

.tech-list article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.tech-list img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.tech-list p {
  margin-top: 0.5rem;
}

.subsidiary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.subsidiary-card {
  min-height: 360px;
  padding: 1.25rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subsidiary-card img {
  width: 100%;
  height: 96px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.6rem;
}

.subsidiary-card h3 {
  margin-bottom: 0.75rem;
}

.program-section {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.9), rgba(7, 7, 7, 0.94)),
    url('../assets/figma/stage-program.png') center / cover no-repeat;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.program-grid article {
  min-height: 290px;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-grid span {
  color: var(--yellow);
  font-weight: 900;
}

.program-grid p {
  margin-top: 0.85rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.person-card {
  min-height: 470px;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.person-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
  background: #121212;
  margin-bottom: 1rem;
}

.person-card h3 {
  font-size: 1rem;
}

.role {
  color: var(--cyan);
  margin: 0.35rem 0 0.7rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.person-card p:not(.role) {
  font-size: 0.92rem;
  line-height: 1.65;
}

.testimonial-section {
  background: #f6f7f2;
  color: #111111;
}

.testimonial-section h2 {
  color: #111111;
}

.testimonial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}

blockquote {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #ffffff;
  border-left: 6px solid var(--brand-red);
  border-radius: 8px;
}

blockquote p {
  color: #111111;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.45;
}

blockquote footer {
  margin-top: 1.25rem;
  color: #5a626f;
  font-weight: 800;
}

.section-contact {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.82), rgba(7, 7, 7, 0.96)),
    url('../assets/figma/technical-training.png') center / cover no-repeat;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  gap: 1rem;
}

.contact-panel,
.address-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-panel > p:not(.eyebrow) {
  margin-top: 1rem;
}

.contact-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  padding: 0.85rem 0.95rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.address-grid article {
  min-height: 205px;
  padding: 1.25rem;
}

.address-grid span {
  display: block;
  color: var(--cyan);
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.address-grid a {
  display: inline-block;
  margin-top: 0.75rem;
  color: #ffffff;
  font-weight: 900;
}

.address-grid .media-card {
  padding: 0;
  overflow: hidden;
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 205px;
  object-fit: cover;
}

.site-footer {
  padding: 2.5rem 0;
  background: #030303;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(140px, 0.5fr));
  gap: 1.5rem;
}

.footer-logo {
  width: 118px;
  margin-bottom: 1rem;
}

.site-footer h2 {
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 0.45rem 0;
}

.site-footer a:hover {
  color: #ffffff;
}

section {
  opacity: 1;
  transform: none;
}

section.visible {
  opacity: 1;
}

@media (max-width: 1100px) {
  .feature-grid,
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subsidiary-grid,
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .tech-visual,
  .tech-visual img {
    min-height: 420px;
  }
}

@media (max-width: 840px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-nav .navbar-collapse {
    padding: 1rem 0;
  }

  .hero-section {
    min-height: 84vh;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.98)),
      url('../assets/figma/hero-ai-vision.png') center bottom / min(76vw, 420px) auto no-repeat;
  }

  .hero-content {
    padding-top: 6.8rem;
  }

  .split-heading,
  .about-grid,
  .testimonial-layout {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .feature-grid,
  .subsidiary-grid,
  .program-grid,
  .people-grid,
  .address-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .program-grid article,
  .person-card,
  .subsidiary-card {
    min-height: auto;
  }

  .tech-list article {
    grid-template-columns: 1fr;
  }

  .tech-list img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.25rem, 11vw, 3.1rem);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 4rem 0;
  }
}
