:root {
  --bg: #050505;
  --surface: #120d0d;
  --surface-2: #1d1515;
  --text: #fff7f2;
  --muted: #d6b7b7;
  --accent: #d7263d;
  --accent-2: #ff6b6b;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(215, 38, 61, 0.18), transparent 30%), linear-gradient(180deg, #020202 0%, #0a0607 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  background: linear-gradient(120deg, rgba(5, 5, 5, 0.95), rgba(34, 8, 12, 0.85)), url('./Images/bg.png') center/cover;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  font-size: 1.08rem;
}

.brand img {
  width: 92px;
  height: 92px;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 2rem;
  padding: 5rem 0 4rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero h1,
.section-heading h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.button {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(215, 38, 61, 0.28);
}

.hero-card,
.card,
article {
  background: linear-gradient(145deg, rgba(18, 13, 13, 0.95), rgba(32, 19, 20, 0.9));
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-card {
  padding: 1.5rem;
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.hero-card ul {
  padding-left: 1rem;
  color: var(--muted);
}

.section {
  padding: 5rem 0;
}

.alt-section {
  background: rgba(255, 255, 255, 0.03);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.about-grid,
.training-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.about-grid p,
.training-layout p,
.card p,
.features-grid p,
.contact-list a {
  color: var(--muted);
}

.features-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.features-grid article,
.card {
  padding: 1.4rem;
}

.features-grid h3,
.card h3,
.footer h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.software-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.software-gallery img {
  border-radius: 0.85rem;
  height: 220px;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.check-list {
  padding-left: 1.1rem;
  color: var(--muted);
}

.footer {
  padding: 3rem 0 1.5rem;
  background: #040404;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li + li {
  margin-top: 0.6rem;
}

.contact-list a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (hover: hover) and (pointer: fine) {
  .hero-card:hover,
  .card:hover,
  .features-grid article:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(215, 38, 61, 0.16);
    border-color: rgba(215, 38, 61, 0.45);
  }
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Tablet: 768px to 1024px */
@media (max-width: 1024px) {
  .container {
    width: min(100%, calc(100% - 1.5rem));
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0 2rem;
  }

  .services-grid,
  .courses-grid,
  .careers-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero h1,
  .section-heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
  }

  .lead {
    font-size: 1rem;
  }
}

/* Small Tablet/Large Mobile: 600px to 768px */
@media (max-width: 768px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 5, 0.98);
    padding: 1.5rem;
    gap: 1rem;
    justify-content: flex-start;
    display: none;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .brand span {
    font-size: 1rem;
  }

  .brand img {
    width: 92px;
    height: 92px;
  }

  .hero-content {
    padding: 2rem 0 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .hero h1,
  .section-heading h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .features-grid,
  .services-grid,
  .courses-grid,
  .careers-grid,
  .about-grid,
  .training-layout,
  .software-gallery,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card,
  .hero-card,
  article {
    padding: 1.2rem;
  }

  .button {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }

  .section-heading {
    margin-bottom: 1.5rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.9rem;
  }
}

/* Mobile: 480px to 600px */
@media (max-width: 600px) {
  .container {
    width: min(100%, calc(100% - 1rem));
  }

  .nav {
    padding: 1rem 0;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand span {
    font-size: 0.95rem;
    display: block;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .hero-content {
    padding: 1.5rem 0 0.5rem;
  }

  .hero h1,
  .section-heading h2 {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    margin-bottom: 0.75rem;
  }

  .lead {
    font-size: 0.9rem;
  }

  .section {
    padding: 1.5rem 0;
  }

  .section-heading {
    margin-bottom: 1rem;
  }

  .eyebrow {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
  }

  .button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  .card,
  .hero-card,
  article {
    padding: 1rem;
  }

  .card h3,
  .hero-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  .card p,
  article p {
    font-size: 0.9rem;
    margin: 0;
  }

  .footer {
    padding: 1.5rem 0 0.75rem;
  }

  .footer-grid {
    gap: 1rem;
  }

  .footer h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .footer p,
  .footer-grid p {
    font-size: 0.9rem;
  }

  .footer-bottom {
    margin-top: 1rem;
    padding-top: 0.75rem;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .contact-list li + li {
    margin-top: 0.4rem;
  }

  .hero-card ul {
    padding-left: 0.75rem;
    font-size: 0.9rem;
  }
}

/* Extra Small Mobile: below 480px */
@media (max-width: 480px) {
  .hero h1,
  .section-heading h2 {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  }

  .lead {
    font-size: 0.85rem;
  }

  .hero-content {
    padding: 1rem 0;
  }

  .section {
    padding: 1rem 0;
  }

  .card,
  .hero-card,
  article {
    padding: 0.9rem;
  }

  .section-heading {
    margin-bottom: 0.75rem;
  }

  .button {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
  }
}
