:root {
  --navy: #1a2744;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-glow: #60a5fa;
  --white: #ffffff;
  --off-white: #f0f4ff;
  --grey: #6b7280;
  --grey-light: #e5e9f5;
  --transition-duration: 0.45s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}

/* ─── PAGE TRANSITIONS ─── */

.page-wrapper {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: var(--white);
  transition: transform var(--transition-duration) cubic-bezier(0.77, 0, 0.18, 1),
              opacity var(--transition-duration) ease;
  will-change: transform, opacity;
  z-index: 1;
}

.page-wrapper.slide-in-right  { transform: translateX(100%); opacity: 0; }
.page-wrapper.slide-in-left   { transform: translateX(-100%); opacity: 0; }
.page-wrapper.slide-out-right { transform: translateX(100%); opacity: 0; }
.page-wrapper.slide-out-left  { transform: translateX(-100%); opacity: 0; }
.page-wrapper.active          { transform: translateX(0); opacity: 1; }

/* ─── NAV ─── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  box-shadow: 0 2px 20px rgba(37, 99, 235, 0.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-logo span em {
  color: var(--blue-light);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1.1rem;
  color: var(--grey-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(37, 99, 235, 0.25);
  color: var(--white);
}

.nav-links a.active {
  color: var(--blue-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ─── */

.hero {
  min-height: calc(100vh - 68px);
  background: linear-gradient(135deg, var(--navy) 0%, #0f1b3d 60%, #162040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

@keyframes wipe-in {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
  20%  { opacity: 1; }
  100% { clip-path: inset(0 0% 0 0);   opacity: 1; }
}

.hero-logo {
  width: min(220px, 55vw);
  margin-bottom: 2rem;
  filter:
    drop-shadow(0 0 0 3px white)
    drop-shadow(0 0 0 3px white)
    drop-shadow(0 0 40px rgba(37, 99, 235, 1))
    drop-shadow(0 0 80px rgba(37, 99, 235, 0.85))
    drop-shadow(0 0 120px rgba(37, 99, 235, 0.6));
  animation: wipe-in 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--blue-light);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--blue-light);
  border: 2px solid var(--blue-light);
}

.btn-outline:hover {
  background: rgba(37,99,235,0.12);
  transform: translateY(-2px);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── SECTION SHARED ─── */

section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title span {
  color: var(--blue);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 580px;
  line-height: 1.75;
}

.divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-glow));
  border-radius: 2px;
  margin: 1.25rem 0;
}

/* ─── HOME SERVICES PREVIEW ─── */

.services-preview {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(26, 39, 68, 0.07);
  border: 1px solid var(--grey-light);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.14);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.94rem;
  color: var(--grey);
  line-height: 1.7;
}

/* ─── WHY US STRIP ─── */

.why-strip {
  background: var(--navy);
  padding: 4rem 2rem;
}

.why-strip .section-title,
.why-strip .section-label {
  color: var(--white);
}

.why-strip .section-label {
  color: var(--blue-glow);
}

.why-strip .section-sub {
  color: rgba(255,255,255,0.65);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-item {
  text-align: center;
}

.why-item .number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
}

.why-item p {
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* ─── SERVICES PAGE ─── */

.services-page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #162040 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.services-page-header .section-title,
.services-page-header .section-label {
  color: var(--white);
}

.services-page-header .section-label { color: var(--blue-glow); }
.services-page-header .section-sub   { color: rgba(255,255,255,0.7); margin: 0 auto; }
.services-page-header .divider        { margin: 1.25rem auto; }

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-detail-card {
  border-radius: 16px;
  border: 1px solid var(--grey-light);
  padding: 2.25rem;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(26,39,68,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(37,99,235,0.12);
}

.service-detail-card .service-icon { margin-bottom: 1.5rem; }

.service-detail-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-detail-card p {
  color: var(--grey);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--navy);
}

.feature-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  border-radius: 18px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin-top: 4rem;
  box-shadow: 0 8px 32px rgba(37,99,235,0.3);
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
}

/* ─── ABOUT PAGE ─── */

.about-header {
  background: linear-gradient(135deg, var(--navy) 0%, #162040 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.about-header .section-title,
.about-header .section-label { color: var(--white); }
.about-header .section-label { color: var(--blue-glow); }
.about-header .divider        { margin: 1.25rem auto; }

.about-body {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.about-text p strong {
  color: var(--navy);
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.chip {
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: 99px;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.about-visual {
  background: linear-gradient(135deg, var(--navy) 0%, #162040 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(26,39,68,0.15);
}

.about-visual img {
  width: min(180px, 60%);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(37,99,235,0.4));
}

.about-visual h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.about-visual p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

.about-visual .blue-tag {
  display: inline-block;
  margin-top: 1rem;
  background: rgba(37,99,235,0.25);
  color: var(--blue-glow);
  border-radius: 99px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

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

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

.value-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--grey-light);
  box-shadow: 0 2px 10px rgba(26,39,68,0.05);
}

.value-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
}

.value-dot {
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* ─── PORTFOLIO PAGE ─── */

.portfolio-header {
  background: linear-gradient(135deg, var(--navy) 0%, #162040 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.portfolio-header .section-title,
.portfolio-header .section-label { color: var(--white); }
.portfolio-header .section-label { color: var(--blue-glow); }
.portfolio-header .divider        { margin: 1.25rem auto; }
.portfolio-header .section-sub    { color: rgba(255,255,255,0.7); margin: 0 auto; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26,39,68,0.1);
  border: 1px solid var(--grey-light);
  background: var(--white);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.16);
}

.portfolio-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--off-white);
}

.portfolio-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy) 0%, #162040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card-img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.portfolio-card-body p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.portfolio-tag {
  display: inline-block;
  background: var(--off-white);
  color: var(--blue);
  border: 1px solid var(--grey-light);
  border-radius: 99px;
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
}

.portfolio-link:hover { gap: 0.7rem; }

.portfolio-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-portfolio {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--grey);
}

.empty-portfolio svg {
  width: 64px;
  height: 64px;
  stroke: var(--grey-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
}

/* ─── CONTACT PAGE ─── */

.contact-header {
  background: linear-gradient(135deg, var(--navy) 0%, #162040 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.contact-header .section-title,
.contact-header .section-label { color: var(--white); }
.contact-header .section-label { color: var(--blue-glow); }
.contact-header .divider        { margin: 1.25rem auto; }
.contact-header .section-sub    { color: rgba(255,255,255,0.7); margin: 0 auto; }

.contact-body {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.contact-item-text a,
.contact-item-text span {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.contact-item-text a:hover { color: var(--blue); }

/* ─── FORM ─── */

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(26,39,68,0.08);
}

.contact-form-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--grey-light);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.form-submit:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success svg {
  width: 56px;
  height: 56px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
}

.form-success h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* ─── FOOTER ─── */

footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 2rem;
  text-align: center;
}

footer a {
  color: var(--blue-glow);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

footer .footer-logo {
  height: 36px;
  margin-bottom: 1rem;
  opacity: 0.85;
}

footer p { font-size: 0.88rem; margin-bottom: 0.4rem; }

/* ─── MOBILE ─── */

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }

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

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row { grid-template-columns: 1fr; }

  .hero-logo { width: 160px; }
}
