*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --aqua: #00bcd4;
  --aqua-dark: #0097a7;
  --aqua-light: #b2ebf2;
  --teal: #009688;
  --navy: #0a1628;
  --gold: #d4a843;
  --white: #ffffff;
  --off-white: #f8fafb;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --rainbow-1: #00bcd4;
  --rainbow-2: #4caf50;
  --rainbow-3: #ffeb3b;
  --rainbow-4: #ff9800;
  --rainbow-5: #f44336;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--gray-900);
  overflow-x: hidden;
  background: var(--white);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.6rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.nav-logo img {
  height: 40px;
  transition: height 0.3s;
}
.navbar.scrolled .nav-logo img {
  height: 32px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aqua);
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/main-bg.jpg") center/cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.65) 0%,
    rgba(10, 22, 40, 0.5) 50%,
    rgba(10, 22, 40, 0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}
.hero-logo {
  width: min(500px, 70vw);
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease 0.3s both;
}
.hero-tagline {
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  animation: fadeUp 1s ease 0.6s both;
}
.hero-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  letter-spacing: 1px;
  animation: fadeUp 1s ease 0.9s both;
}
.hero-cta {
  margin-top: 2.5rem;
  animation: fadeUp 1s ease 1.2s both;
}
.hero-cta a {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
}
.hero-cta a:hover {
  background: var(--white);
  color: var(--navy);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
}

/* ===== RAINBOW SIDE BAR (like the PDF) ===== */
.section-with-bar {
  position: relative;
  padding-left: 60px;
}
.rainbow-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  display: flex;
  flex-direction: column;
}
.rainbow-bar span {
  flex: 1;
}
.rainbow-bar span:nth-child(1) {
  background: var(--rainbow-1);
}
.rainbow-bar span:nth-child(2) {
  background: var(--rainbow-2);
}
.rainbow-bar span:nth-child(3) {
  background: var(--rainbow-3);
}
.rainbow-bar span:nth-child(4) {
  background: var(--rainbow-4);
}
.rainbow-bar span:nth-child(5) {
  background: var(--rainbow-5);
}

.section-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--aqua-dark);
  white-space: nowrap;
  opacity: 0.2;
}

/* ===== SECTIONS COMMON ===== */
section {
  padding: 100px 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}
.section-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-heading .accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua), var(--teal));
  margin: 0 auto 1.5rem;
}
.section-heading p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--gray-500);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ===== ABOUT ===== */
.about {
  background: var(--off-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.about-text p {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}
.about-visual {
  position: relative;
}
.about-visual .stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
}
.stat-card .number {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--aqua-dark);
}
.stat-card .label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SERVICES ===== */
.services {
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: var(--off-white);
  border: 1px solid transparent;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--aqua), var(--teal));
  transform: scaleX(0);
  transition: transform 0.4s;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0, 188, 212, 0.1);
  border-color: var(--aqua-light);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--aqua), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--white);
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.service-card p {
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ===== VALUES ===== */
.values {
  background: var(--navy);
  color: var(--white);
}
.values .section-heading h2 {
  color: var(--white);
}
.values .section-heading p {
  color: rgba(255, 255, 255, 0.6);
}
.values .accent-line {
  background: linear-gradient(90deg, var(--aqua), var(--gold));
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}
.value-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}
.value-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}
.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.value-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 0.8rem;
}
.value-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ===== TEAM ===== */
.team {
  background: var(--off-white);
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.team-grid .team-card {
  width: calc(25% - 1.5rem);
}
.team-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.team-card-top {
  position: relative;
  overflow: hidden;
}
.team-card .photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.team-card:hover .photo {
  transform: scale(1.05);
}
.team-card .info {
  padding: 1.2rem 1.5rem 0;
  text-align: center;
}
.team-card .info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.team-card .info span {
  font-size: 0.75rem;
  color: var(--aqua-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.team-quote {
  padding: 1rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  align-items: flex-start;
  position: relative;
}
.team-quote::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--teal));
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
}
.team-quote p {
  font-family: "Playfair Display", serif;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--gray-500);
  line-height: 1.7;
  text-align: center;
  margin-top: 1rem;
}

/* ===== CLIENTS ===== */
.clients {
  background: var(--white);
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  align-items: center;
}
.clients-logos img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.75;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease, opacity 0.3s ease;
}
.clients-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.25);
}

/* ===== PROJECTS ===== */
.projects {
  background: var(--gray-900);
  color: var(--white);
}
.projects .section-heading h2 {
  color: var(--white);
}
.projects .section-heading p {
  color: rgba(255, 255, 255, 0.5);
}
.projects .accent-line {
  background: linear-gradient(90deg, var(--aqua), var(--gold));
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.project-card:hover img {
  transform: scale(1.08);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(10, 22, 40, 0.85) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: background 0.3s;
}
.project-card:hover .project-overlay {
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(0, 188, 212, 0.7) 100%
  );
}
.project-overlay h4 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.project-overlay p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.3rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    background 0.4s ease;
  cursor: zoom-out;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.92);
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.lightbox.active .lightbox-content {
  transform: scale(1);
}
.lightbox-content img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  text-align: center;
  padding: 1rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.lightbox-caption span {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  margin-top: 0.3rem;
}
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox-close svg {
  stroke: rgba(255, 255, 255, 0.8);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lightbox-nav svg {
  stroke: rgba(255, 255, 255, 0.8);
}
.lightbox-prev {
  left: -70px;
}
.lightbox-next {
  right: -70px;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: -5px;
  }
  .lightbox-next {
    right: -5px;
  }
  .lightbox-nav {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
  }
  .lightbox-close {
    top: -44px;
  }
}

/* ===== QUOTE ===== */
.quote-section {
  background: linear-gradient(135deg, var(--aqua-dark), var(--teal));
  text-align: center;
  padding: 80px 2rem;
}
.quote-section blockquote {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--off-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.contact-info p {
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.contact-detail .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--aqua), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail div {
  font-size: 0.95rem;
  color: var(--gray-700);
}
.contact-detail .label-text {
  font-size: 0.78rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--aqua);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--aqua), var(--teal));
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    opacity 0.3s,
    transform 0.2s;
}
.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form toast */
.form-toast {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 1.5rem;
  border-radius: 12px;
  background: rgba(0, 188, 212, 0.06);
  border: 1px solid rgba(0, 188, 212, 0.2);
  animation: toastIn 0.5s ease both;
}
.form-toast.visible {
  display: flex;
}
.form-toast.error {
  background: rgba(244, 67, 54, 0.06);
  border-color: rgba(244, 67, 54, 0.2);
}
.form-toast-msg {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-top: 0.8rem;
}
.form-toast.error .form-toast-msg {
  color: #c62828;
}

/* Animated checkmark */
.checkmark {
  width: 52px;
  height: 52px;
}
.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--aqua-dark);
  animation: checkStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: var(--aqua-dark);
  animation: checkStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}
.form-toast.error .checkmark-circle,
.form-toast.error .checkmark-check {
  stroke: #c62828;
}

@keyframes checkStroke {
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 2.5rem;
}
footer .footer-logo {
  height: 30px;
  margin-bottom: 1rem;
  opacity: 0.7;
}
footer p {
  font-size: 0.82rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --- Scroll reveal base --- */
[data-anim] {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-duration: 0.9s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-anim].visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Direction variants */
[data-anim="fade-up"] {
  transform: translateY(60px);
}
[data-anim="fade-down"] {
  transform: translateY(-60px);
}
[data-anim="fade-left"] {
  transform: translateX(80px);
}
[data-anim="fade-right"] {
  transform: translateX(-80px);
}
[data-anim="zoom-in"] {
  transform: scale(0.85);
}
[data-anim="zoom-out"] {
  transform: scale(1.1);
  filter: blur(4px);
}
[data-anim="flip-up"] {
  transform: perspective(800px) rotateX(12deg) translateY(40px);
}
[data-anim="fade-up-soft"] {
  transform: translateY(35px);
  filter: blur(6px);
}

/* Stagger children: each child gets an incremental delay */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-stagger].visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-stagger].visible > *:nth-child(1) {
  transition-delay: 0.05s;
}
[data-stagger].visible > *:nth-child(2) {
  transition-delay: 0.12s;
}
[data-stagger].visible > *:nth-child(3) {
  transition-delay: 0.19s;
}
[data-stagger].visible > *:nth-child(4) {
  transition-delay: 0.26s;
}
[data-stagger].visible > *:nth-child(5) {
  transition-delay: 0.33s;
}
[data-stagger].visible > *:nth-child(6) {
  transition-delay: 0.4s;
}
[data-stagger].visible > *:nth-child(7) {
  transition-delay: 0.47s;
}
[data-stagger].visible > *:nth-child(8) {
  transition-delay: 0.54s;
}

/* Hero parallax layer */
.hero-bg {
  transition: transform 0.1s linear;
}

/* Stat counter glow on reveal */
.stat-card .number {
  transition:
    color 0.5s,
    text-shadow 0.5s;
}
.stat-card.counted .number {
  text-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

/* Section heading special entrance */
.section-heading[data-anim] h2 {
  display: inline-block;
  transition: clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  clip-path: inset(0 100% 0 0);
}
.section-heading[data-anim].visible h2 {
  clip-path: inset(0 0% 0 0);
}
.section-heading[data-anim] .accent-line {
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.section-heading[data-anim].visible .accent-line {
  transform: scaleX(1);
}
.section-heading[data-anim] p {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.6s ease 0.55s,
    transform 0.6s ease 0.55s;
}
.section-heading[data-anim].visible p {
  opacity: 1;
  transform: translateY(0);
}

/* Quote special */
.quote-section blockquote {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.quote-section.q-visible blockquote {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Rainbow bar grows in */
.rainbow-bar {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.section-with-bar.bar-visible .rainbow-bar {
  transform: scaleY(1);
}

/* Client logos pop-in */
.clients-logos img {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    filter 0.3s ease;
}
.clients-logos.visible img {
  opacity: 0.75;
  transform: translateY(0) scale(1);
}
.clients-logos.visible img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-grid .team-card {
    width: calc(33.333% - 1.34rem);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 80px 0 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a:hover {
    background: rgba(0, 188, 212, 0.1);
    color: var(--aqua);
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }
  .nav-overlay.active {
    display: block;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid .team-card {
    width: calc(50% - 1rem);
  }
  .team-card .photo {
    height: 280px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .section-with-bar {
    padding-left: 0;
  }
  .rainbow-bar {
    display: none;
  }
  .section-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .team-grid .team-card {
    width: 100%;
  }
}
