:root {
  /* MAIN BRAND COLORS */
  --primary-blue: #0350A2;
  --secondary-navy: #213448;

  /* TEXT COLORS */
  --text-cream: #ECEFCA;
  --text-white: #FFFFFF;

  /* ACCENTS */
  --soft-glow: rgba(236, 239, 202, 0.16);
  --soft-border: rgba(236, 239, 202, 0.35);

  --max-width: 1200px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   FULLSCREEN LOADING SCREEN
========================= */

#loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
  animation: fadeScale 1.2s ease infinite alternate;
}

.loader-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ECEFCA, #FFFFFF);
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.loader-text {
  color: var(--text-cream);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

@keyframes fadeScale {
  from {
    opacity: 0.4;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* GLOBAL */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, var(--primary-blue) 0, var(--secondary-navy) 55%);
  color: var(--text-cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4rem 0;
}

/* BUTTONS */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.45), transparent 60%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::after {
  width: 200px;
  height: 200px;
}

.btn-primary {
  background-color: var(--text-cream);
  color: var(--primary-blue);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-cream);
  border: 1px solid var(--soft-border);
}

.btn-outline:hover {
  background-color: var(--text-cream);
  color: var(--primary-blue);
}

/* HEADER / NAVBAR */

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(135deg, rgba(3, 80, 162, 0.98), rgba(33, 52, 72, 0.98));
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-cream);
  font-weight: 700;
}

.nav-logo small {
  font-weight: 400;
  opacity: 0.85;
  display: block;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--text-cream), var(--text-white));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary-blue);
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-cream);
}

.nav-menu a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-cream);
  transition: width 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active-link::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta-btn {
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-cream);
  border-radius: 999px;
}

/* Make the hamburger animate and stay visible above the slide-in menu */
.nav-toggle {
  position: relative; /* allow z-index stacking */
  z-index: 100001; /* higher than .nav-menu (99999) so it's still clickable/visible */
}

.nav-toggle span {
  display: block;
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), opacity 0.18s ease, background-color 0.18s ease;
}

/* SECTION TITLE BASE */

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  color: var(--text-cream);
  opacity: 0.9;
}

.section-heading {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.section-subtitle {
  max-width: 680px;
  font-size: 0.95rem;
  color: var(--text-cream);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* HERO (HOME) */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(148, 180, 193, 0.5) 0, transparent 55%),
    linear-gradient(135deg, var(--primary-blue), var(--secondary-navy));
  color: var(--text-cream);
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

/* Cream glow bergerak halus di background hero */
.hero::before {
  content: "";
  position: absolute;
  width: 2000px;
  height: 2000px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--text-cream) 0, rgba(236, 239, 202, 0) 60%);
  top: 60%;
  left: 80%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.75;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: heroCreamGlow 22s ease-in-out infinite alternate;
}

@keyframes heroCreamGlow {
  0% {
    transform: translate(-40%, -40%) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translate(-55%, -10%) scale(1.08);
    opacity: 0.9;
  }
  50% {
    transform: translate(-30%, 10%) scale(0.96);
    opacity: 0.75;
  }
  75% {
    transform: translate(-65%, -20%) scale(1.05);
    opacity: 0.88;
  }
  100% {
    transform: translate(-50%, -35%) scale(1.02);
    opacity: 0.8;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 0.9rem;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 34rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  color: var(--text-cream);
}

.hero-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-list li span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background-color: rgba(236, 239, 202, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-note {
  font-size: 0.8rem;
  opacity: 0.85;
}

.hero-right {
  background: radial-gradient(circle at top left, rgba(236,239,202,0.22), rgba(12, 23, 52, 0.92));
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--soft-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.hero-right-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.metric-card {
  padding: 0.75rem;
  border-radius: 16px;
  background-color: rgba(9, 18, 40, 0.65);
  border: 1px solid rgba(236, 239, 202, 0.35);
}

.metric-label {
  font-size: 0.7rem;
  opacity: 0.85;
  color: var(--text-cream);
}

.metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
}

.metric-caption {
  font-size: 0.7rem;
  opacity: 0.9;
  color: var(--text-cream);
}

.hero-cap-text {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  opacity: 0.9;
}

.hero-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.hero-pill {
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 180, 193, 0.65);
  color: var(--text-cream);
}

.hero-contact-card {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--soft-border);
  font-size: 0.8rem;
  opacity: 0.9;
}

.hero-contact-card strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  color: var(--text-white);
}

/* ABOUT + WHY AIRA + CORE */

.about {
  background: linear-gradient(180deg, rgba(3,80,162,0.1), rgba(33,52,72,0.95));
}

.about-home {
  padding-top: 3rem;
}

.about-text {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

/* Panel wrapper */
.about-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card base */
.about-card {
  background: radial-gradient(circle at top left, rgba(236,239,202,0.12), rgba(6,12,30,0.98));
  border-radius: 24px;
  padding: 1.8rem 1.6rem 2rem;
  border: 1px solid rgba(236, 239, 202, 0.4);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.about-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.about-card-subtitle {
  font-size: 0.95rem;
  color: var(--text-cream);
  opacity: 0.9;
  max-width: 720px;
}

/* WHY AIRA inside top card */

.about-why-block {
  text-align: center;
}

.about-why-block .about-card-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-why-block .about-card-subtitle {
  margin: 0 auto 2rem;
}

/* A I R A grid */

.aira-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 2rem;
  align-items: flex-start;
}

.aira-why-item {
  text-align: center;
  padding: 0 0.5rem;
}

.aira-why-circle {
  width: 82px;
  height: 82px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-cream);
  box-shadow: 0 16px 32px rgba(0,0,0,0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aira-why-item h4 {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 0.3rem;
}

.aira-why-item p {
  font-size: 0.85rem;
  color: var(--text-cream);
  opacity: 0.9;
  line-height: 1.5;
}

.aira-why-item:hover .aira-why-circle {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.9);
}

/* Vision / Mission row */

.about-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.5rem;
}

.about-vm p {
  font-size: 0.95rem;
  color: var(--text-cream);
}

.mission-list {
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--text-cream);
}

.mission-list li {
  margin-bottom: 0.4rem;
}

/* Core values cards */



.core-values-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cv-card {
  display: block;
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(236,239,202,0.18), rgba(15,23,42,0.98));
  border: 1px solid rgba(236, 239, 202, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.cv-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.cv-header h4 {
  font-size: 1rem;
  color: var(--text-white);
  font-weight: 700;
  margin: 0;
}

.cv-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* icon colors */
.cv-icon-blue {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  color: #e0f2fe;
}

.cv-icon-red {
  background: linear-gradient(135deg, #fb7185, #f97316);
  color: #fff7ed;
}

.cv-icon-green {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #ecfdf3;
}

.cv-icon-gold {
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #fefce8;
}

.cv-icon-pink {
  background: linear-gradient(135deg, #e879f9, #f97316);
  color: #fdf2ff;
}

.cv-card p {
  font-size: 0.88rem;
  color: var(--text-cream);
  line-height: 1.55;
  margin: 0;
}

/* CLIENT LOGO CAROUSEL */

.clients {
  background:
    radial-gradient(circle at top, rgba(236,239,202,0.10) 0, transparent 55%),
    linear-gradient(135deg, var(--secondary-navy), #020617);
}


.client-carousel {
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
}

.client-track {
  display: flex;
  width: max-content;
  animation: scrollClients 25s linear infinite;
}

.client-logo {
  min-width: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.client-logo img {
  max-height: 70px;
  max-width: 140px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.client-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

.client-carousel:hover .client-track {
  animation-play-state: paused;
}

.client-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-cream);
  opacity: 0.8;
  text-align: center;
}

@keyframes scrollClients {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* CTA STRIP */

.cta-strip {
  background: linear-gradient(135deg, var(--secondary-navy), #020617);
  color: var(--text-cream);
  padding: 2.5rem 0;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-strip h2 {
  margin-bottom: 0.35rem;
  color: var(--text-white);
}

.cta-strip p {
  font-size: 0.95rem;
  opacity: 0.95;
}

/* FOOTER */

footer {
  background-color: #020617;
  color: var(--text-cream);
  padding: 1.25rem 0;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  opacity: 0.9;
}

/* UNIVERSAL CARD HOVER */

.core-card,
.project-card,
.service-card,
.cv-card,
.about-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.core-card:hover,
.project-card:hover,
.service-card:hover,
.cv-card:hover,
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(236, 239, 202, 0.9);
}

/* SCROLL REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero-right {
    order: -1;
  }
}

@media (max-width: 768px) {
  /* Show only logo + toggle in header; menu is a slide-in panel from the right */
  .nav-menu {
    display: flex; /* kept as flex for internal layout but hidden with transform */
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%; /* covers the full viewport as requested */
    transform: translateX(100%); /* hidden by default (moved off-screen to the right) */
    transition: transform 0.36s cubic-bezier(.2,.9,.2,1);
    flex-direction: column;
    gap: 1.25rem;
    padding: 3.25rem 1.5rem 1.5rem;
    border-radius: 0; /* full-screen so no radius */
    background: linear-gradient(180deg, rgba(3,80,162,0.98), rgba(3,80,162,0.96));
    box-shadow: -12px 0 30px rgba(0,0,0,0.6);
    z-index: 99999;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: none; /* prevent interaction when hidden */
  }

  /* Visible state: slide to place and become interactive */
  .nav-menu.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Make each link larger and easier to tap on touch screens */
  .nav-menu a {
    width: 100%;
    padding: 0.9rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(236,239,202,0.06);
    color: var(--text-cream);
  }

  /* Hide secondary CTA in header (we surface actions inside the slide-in menu) */
  .nav-cta-btn {
    display: none;
  }

  /* Show the hamburger toggle */
  .nav-toggle {
    display: flex;
  }

  /* Optional: animate the three bars into an X when active */
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Ensure hero spacing is slightly tighter on small screens */
  .hero {
    padding-top: 2.8rem;
  }

  .cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-row {
    grid-template-columns: minmax(0,1fr);
  }

  .aira-why-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 600px) {
  section {
    padding: 3rem 0;
  }

  .hero-inner {
    gap: 2rem;
  }

  .cta-strip {
    padding: 2rem 0;
  }

  .client-logo {
    min-width: 140px;
  }

  .client-logo img {
    max-height: 55px;
  }

  .aira-why-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
