:root {
  --bg: #061a33;
  --bg-2: #061a33;
  --text: #c7d2e4;
  --muted: #c7d2e4;
  --accent: #c7d2e4;
  --card: #061a33;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --radius: 18px;

  /* Responsive breakpoints */
  --mobile: 480px;
  --tablet: 768px;
  --desktop: 1024px;
  --desktop-large: 1200px;
}
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.cert-item {
  text-align: center;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cert-item img {
  max-width: 120px;
  height: auto;
  margin-bottom: 10px;
}

.cert-item .badge {
  display: block;
  font-weight: bold;
  color: #330606;
}

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.cert-item {
  text-align: center;
  background: #0c2244ee;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cert-item img {
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
}

.cert-item .badge {
  display: var(--bg);
  font-weight: bold;
  color: #331a06;
}

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

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

/* NAVBAR */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(
    to bottom,
    rgba(6, 26, 51, 0.85),
    rgba(6, 26, 51, 0.35),
    rgba(6, 26, 51, 0)
  );
  backdrop-filter: saturate(140%) blur(2px);
  z-index: 50;
}
.brand {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
  border-radius: 12px;
}
.brand:hover {
  transform: translateY(-2px);
  background: rgba(199, 210, 228, 0.1);
  box-shadow: 0 8px 25px rgba(199, 210, 228, 0.15);
}
.brand .logo {
  width: 45px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #c7d2e4, #c7d2e4);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand:hover .logo {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(199, 210, 228, 0.3);
}
.brand span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand:hover span {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(199, 210, 228, 0.4);
}
.navlinks {
  display: flex;
  gap: 24px;
  align-items: center;
}
.navlinks a {
  opacity: 0.9;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.navlinks a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199, 210, 228, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}
.navlinks a:hover::before {
  left: 100%;
}
.navlinks a:hover,
.navlinks a:focus {
  opacity: 1;
  color: #ffffff;
  background: rgba(199, 210, 228, 0.1);
  transform: translateY(-1px);
  text-shadow: 0 2px 8px rgba(199, 210, 228, 0.3);
}
.navlinks a.active {
  opacity: 1;
  text-decoration: underline;
  background: rgba(199, 210, 228, 0.15);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.burger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
@media (max-width: 900px) {
  .navlinks {
    position: fixed;
    top: 64px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    gap: 12px;
    background: var(--card);
    padding: 16px;
    border-radius: var(--radius);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .navlinks.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .navlinks a {
    padding: 12px 16px;
    text-align: center;
  }
  .burger {
    display: flex;
  }

  /* Reduce animations on mobile for better performance */
  .brand:hover {
    transform: translateY(-1px);
  }
  .brand:hover .logo {
    transform: scale(1.05) rotate(2deg);
  }
}

.nav-search {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.nav-search input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
}

.nav-search button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: -30px;
  font-size: 16px;
}

/* HERO / SLIDER (Home only) */
.hero {
  position: relative;
  height: 84vh;
  min-height: 600px;
  isolation: isolate;
}
.slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active {
  opacity: 1;
}
.slide img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: brightness(0.5) saturate(130%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 60% at 70% 30%,
    rgba(46, 209, 255, 0.12),
    transparent 60%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 160px 22px 0;
}
.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  margin: 0 0 14px;
}
.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.btn.primary {
  background: #ffffff;
  color: #0a1f3f;
}
.btn.ghost {
  border-color: #7fb5ff99;
  background: transparent;
}
.btn:hover {
  transform: translateY(-1px);
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(12, 34, 68, 0.6);
  display: grid;
  place-items: center;
  border: 1px solid #ffffff22;
  cursor: pointer;
  z-index: 3;
}
.arrow:hover {
  background: rgba(12, 34, 68, 0.85);
}
.arrow svg {
  width: 22px;
  height: 22px;
}
.arrow.left {
  left: 14px;
}
.arrow.right {
  right: 14px;
}
.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  z-index: 3;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff8;
  cursor: pointer;
  border: 1px solid #fff9;
}
.dot.active {
  background: #fff;
}

/* SECTIONS / PAGES */
.page {
  padding: 110px 22px 84px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  font-size: 12px;
}
h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  margin: 10px 0 12px;
}
.lead {
  color: var(--muted);
  max-width: 820px;
}

/* cards/grid */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.card {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid #ffffff14;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0.2rem 0 0.3rem;
}
.card p {
  color: var(--muted);
}
@media (max-width: 900px) {
  .card {
    grid-column: span 12;
  }
}

/* badges */
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.badge {
  padding: 10px 14px;
  border: 1px dashed #86b7ff66;
  border-radius: 999px;
  background: #0f2e63;
}

/* contact */
.contact {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.contact .info {
  grid-column: span 5;
}
.contact form {
  grid-column: span 7;
  background: var(--card);
  border: 1px solid #ffffff14;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #90b4ff33;
  background: #0b2144;
  color: #fff;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
@media (max-width: 900px) {
  .contact .info,
  .contact form {
    grid-column: span 12;
  }
}

/* footer */
footer {
  padding: 40px 22px;
  background: #061a33;
  border-top: 1px solid #061a33;
  color: #9fb5d4;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.spacer {
  height: 64px;
}

.logo-slider {
  overflow: hidden;
  background: #fff; /* optional */
  width: 100%;
}

.logo-slide-track {
  display: flex;
  width: calc(200px * 10); /* adjust based on logo width * number of items */
  animation: scroll 20s linear infinite;
}

.logo-slide-track img {
  width: 120px;
  height: 80px;
  margin: 0 20px;
  object-fit: contain;
}

/* Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
  .page {
    padding: 90px 16px 60px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }

  .hero-content {
    padding: 120px 16px 0;
  }

  .hero h1 {
    font-size: clamp(28px, 6vw, 48px);
  }

  .hero p {
    font-size: 16px;
    margin: 0 0 20px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
    padding: 14px 20px;
  }

  .grid {
    gap: 16px;
  }

  .card {
    grid-column: span 12;
    padding: 16px;
  }

  h2 {
    font-size: clamp(24px, 5vw, 32px);
  }

  .badges {
    justify-content: center;
  }

  .badge {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
  .nav {
    padding: 12px 16px;
  }

  .brand {
    font-size: 14px;
  }

  .brand .logo {
    width: 35px;
    height: 30px;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 100px 16px 0;
  }

  .hero h1 {
    font-size: clamp(24px, 8vw, 36px);
    line-height: 1.2;
  }

  .hero p {
    font-size: 14px;
  }

  .arrow {
    width: 36px;
    height: 36px;
  }

  .arrow.left {
    left: 8px;
  }

  .arrow.right {
    right: 8px;
  }

  .page {
    padding: 80px 12px 40px;
  }

  .card {
    padding: 14px;
  }

  .field input,
  .field textarea {
    padding: 10px 12px;
  }

  footer {
    padding: 30px 16px;
  }
}

/* Large Desktop Styles (1200px and above) - maintain current sizes */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .hero-content {
    max-width: 1200px;
  }

  .grid {
    gap: 20px;
  }
}

/* Extra responsive utilities */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }

  .show-mobile {
    display: block;
  }
}
