:root {
  --primary: #0b4f8a;
  --primary-soft: #e5f0fb;
  --accent: #e53935;
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --text: #1a2530;
  --muted: #6c7a8a;
  --border: #dde3ee;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(8, 35, 71, 0.08);
  --transition-fast: 0.25s ease-out;
  --transition: 0.4s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* HEADER / NAVBAR */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 227, 238, 0.6);
  transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 18px rgba(10, 32, 70, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.92rem;
}

.nav a {
  padding: 0.3rem 0.1rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition-fast);
}

.nav a:hover::after {
  width: 100%;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 12px 22px rgba(10, 63, 133, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    opacity var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10, 63, 133, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(11, 79, 138, 0.4);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(229, 240, 251, 0.8);
  box-shadow: 0 10px 20px rgba(10, 63, 133, 0.15);
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #1f2b3b;
  border-radius: 999px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
}

/* HERO */

.hero {
  padding: 6.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 32rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.stat-number {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-media {
  position: relative;
}

.hero-main-image {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(8, 38, 82, 0.35);
}

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  max-width: 14rem;
}

.hero-floating-card h3 {
  font-size: 0.9rem;
  margin: 0 0 0.3rem;
}

.hero-floating-card--top {
  top: -1.1rem;
  right: -1.2rem;
}

.hero-floating-card--bottom {
  bottom: -1.4rem;
  left: -1rem;
}

/* SECTIONS */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--muted);
  max-width: 38rem;
  margin-inline: auto;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 2.5rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid rgba(221, 227, 238, 0.7);
}

.about-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.about-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

.about-info-card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
  border: 1px solid rgba(11, 79, 138, 0.16);
  box-shadow: 0 18px 40px rgba(8, 38, 82, 0.12);
}

.about-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.about-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-info-card li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1.2rem;
}

.about-info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

/* PRODUCTS */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(221, 227, 238, 0.7);
  padding: 1.4rem 1.3rem 1.3rem;
}

.product-card h3 {
  margin-top: 0.7rem;
  margin-bottom: 0.3rem;
}

.product-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0.7rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.product-image {
  border-radius: 14px;
  overflow: hidden;
  max-height: 170px;
}

.product-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(8, 38, 82, 0.18);
  border-color: rgba(11, 79, 138, 0.35);
}

/* ACHIEVEMENTS */

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.timeline-item h3 {
  margin-top: 0;
}

/* CLIENTS */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
  align-items: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.client-logo img {
  max-height: 54px;
  object-fit: contain;
  filter: grayscale(0.1);
  opacity: 0.9;
}

.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(8, 38, 82, 0.16);
}

/* CAREERS */

.career-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.career-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(11, 79, 138, 0.06);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 500;
}

.careers-footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  gap: 0.25rem;
}

input,
select,
textarea {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

textarea {
  border-radius: 16px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(11, 79, 138, 0.12);
  background: #ffffff;
}

.contact-info-wrapper h3 {
  margin-top: 0;
}

.contact-details {
  font-size: 0.9rem;
  color: var(--muted);
}

.map-wrapper {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* FOOTER */

.footer {
  padding: 2.3rem 0;
  background: #0b1521;
  color: #dce4f4;
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 1.8rem;
  align-items: start;
}

.footer h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-links a {
  color: #dce4f4;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-meta {
  text-align: right;
  color: #a8b7d2;
}

/* REVEAL ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-reveal-delay="80"] {
  transition-delay: 0.08s;
}
.reveal[data-reveal-delay="120"] {
  transition-delay: 0.12s;
}
.reveal[data-reveal-delay="160"] {
  transition-delay: 0.16s;
}
.reveal[data-reveal-delay="240"] {
  transition-delay: 0.24s;
}
.reveal[data-reveal-delay="320"] {
  transition-delay: 0.32s;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .product-grid,
  .timeline,
  .clients-grid,
  .career-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-media {
    order: -1;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(245, 247, 251, 0.98);
    border-bottom: 1px solid rgba(221, 227, 238, 0.9);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 1.2rem 0.9rem;
    gap: 0.2rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform-origin: top;
    transform: translateY(-6px);
    transition: max-height 0.2s ease-out, opacity 0.2s ease-out, transform 0.2s ease-out;
  }

  .nav.open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-grid,
  .about-grid,
  .product-grid,
  .timeline,
  .clients-grid,
  .career-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5.4rem;
  }

  .hero-floating-card--top {
    right: 0;
  }

  .hero-floating-card--bottom {
    left: 0;
  }

  .section {
    padding: 3.3rem 0;
  }

  .footer-meta {
    text-align: left;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 1.6rem, 100%);
  }
}
