:root {
  --blue-500: #005a8c;
  --blue-700: #003d5c;
  --blue-100: #e6f2f8;
  --white: #ffffff;
  --gray-700: #4a4a4a;
  --orange-500: #ff6b35;
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: var(--blue-100);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--blue-500);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  color: var(--blue-700);
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.section-subtitle {
  max-width: 700px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.topbar {
  background: var(--blue-700);
  color: var(--white);
  font-size: 0.9rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 700;
  color: var(--blue-700);
}

.logo span {
  font-size: 1.5rem;
}

.logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transform: scale(1.25);
  transform-origin: left center;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.6rem;
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, rgba(0, 61, 92, 0.9), rgba(0, 90, 140, 0.75));
  overflow: hidden;
}

.hero.has-rotator .hero-rotator {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transition: opacity 0.8s ease;
}

.hero.has-rotator .hero-rotator.fade-out {
  opacity: 0.08;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/isa-logo.jpg") center/cover no-repeat;
  opacity: 0.08;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  max-width: 640px;
}

.hero-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin: 0;
}

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

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

.trust-bar {
  background: var(--blue-100);
  padding: 2.5rem 0;
}

.partners-section {
  background: var(--white);
}

.partners-marquee {
  position: relative;
  padding: 1.5rem 0;
  min-height: 130px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.partners-marquee.full-bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.partners-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

.partners-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, #ffffff, rgba(255, 255, 255, 0));
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 0 2.5rem;
  width: max-content;
  animation: partners-marquee 28s linear infinite;
}

.marquee-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 130px;
  padding: 0.5rem 0.8rem;
}

.marquee-item img {
  height: 130px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.marquee-item img.partner-scale-lg {
  transform: scale(1.2);
  transform-origin: center;
}

@keyframes partners-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.4rem;
  text-align: center;
}

.trust-item h3 {
  font-size: 2rem;
  margin: 0 0 0.3rem;
  color: var(--blue-700);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.service-card {
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card h3 {
  margin-top: 0.6rem;
  color: var(--blue-700);
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-100);
  display: grid;
  place-items: center;
  color: var(--blue-700);
  font-weight: 700;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
  padding: 2rem;
  background: var(--blue-700);
  color: var(--white);
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.project-gallery-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
}

.project-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.project-card h3 {
  margin: 0;
  color: var(--blue-700);
  font-size: 1.05rem;
}

.project-card p {
  margin: 0;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

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

.stat-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--blue-500);
  background: var(--white);
  color: var(--blue-500);
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--blue-500);
  color: var(--white);
}

.portfolio-grid {
  columns: 3 280px;
  column-gap: 1rem;
}

.portfolio-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.portfolio-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  cursor: pointer;
  margin: 0.6rem 0;
}

.search-input {
  width: min(420px, 100%);
  margin-top: 1rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.image-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
  padding: 1.5rem;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: min(960px, 92vw);
  max-height: 82vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 16px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  border: none;
  background: var(--white);
  color: var(--blue-700);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.timeline {
  border-left: 3px solid var(--blue-100);
  padding-left: 1.5rem;
  display: grid;
  gap: 1.4rem;
}

.timeline-item {
  position: relative;
}

.timeline-item h4 {
  margin: 0 0 0.35rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-500);
}

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

.job-card {
  border-radius: 18px;
  padding: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #d7d7d7;
  font: inherit;
}

textarea {
  min-height: 140px;
}

.footer {
  background: var(--blue-700);
  color: var(--white);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
}

.footer a {
  color: var(--white);
  opacity: 0.9;
}

.muted {
  opacity: 0.75;
}

.note {
  padding: 1rem;
  border-left: 4px solid var(--orange-500);
  background: rgba(255, 107, 53, 0.08);
  border-radius: 12px;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 100%;
    right: 4%;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 70vh;
  }

  .project-gallery-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-marquee::before,
  .partners-marquee::after {
    width: 70px;
  }

  .marquee-item {
w    width: 170px;
    height: 92px;
  }

  .marquee-item img {
    height: 66px;
  }

  .marquee-item img.partner-scale-lg {
    transform: scale(1.25);
  }

  .carousel-slide {
    padding: 1.5rem;
  }

  .portfolio-grid {
    columns: 1;
  }
}
