/* ===== Vision — Stylesheet ===== */
:root {
  --primary: #0045a0;
  --primary-dark: #003380;
  --text: #1c2333;
  --text-mid: #4a5568;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7f8fc;
  --bg-dark: #0a1628;
  --border: #e2e8f0;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ===== HEADER / NAV ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}

header.scrolled { box-shadow: var(--shadow); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-name span { color: var(--primary); }

nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav ul a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

nav ul a:hover,
nav ul a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: none !important;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ===== SLIDER ===== */
.slider {
  position: relative;
  height: 100vh;
  min-height: 580px;
  max-height: 800px;
  overflow: hidden;
  margin-top: 72px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active { opacity: 1; z-index: 2; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.slide.active .slide-bg { transform: scale(1); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 100%);
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.slide-inner {
  max-width: 640px;
  color: #fff;
}

.slide-sub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
  display: block;
}

.slide-title {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.slide-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.slide-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}

.slide-btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }

/* Slider controls */
.slider-nav {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 28px;
  height: 3px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
  border-radius: 2px;
}

.slider-dot.active {
  background: #fff;
  width: 48px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  border-radius: 2px;
  transition: background var(--transition);
}

.slider-arrow:hover { background: rgba(255,255,255,0.25); }
.slider-arrow.prev { right: 24px; }
.slider-arrow.next { left: 24px; }

/* ===== SECTION BASE ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 56px; }
.section-head.centered { text-align: center; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 560px;
}

.section-head.centered .section-desc { margin: 0 auto; }

/* ===== CLIENTS STRIP ===== */
.clients-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

.clients-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 28px;
}

.clients-track-wrap { overflow: hidden; position: relative; }

.clients-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.clients-track:hover { animation-play-state: paused; }

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

.clients-track img {
  height: 36px;
  width: auto;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: opacity var(--transition), filter var(--transition);
}

.clients-track img:hover { opacity: 0.85; filter: grayscale(0%); }

/* ===== ABOUT PREVIEW (Homepage) ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--primary);
  color: #fff;
  padding: 22px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
}

.about-img-badge strong {
  display: block;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.about-img-badge span { font-size: 13px; opacity: 0.85; }

.about-text { padding-right: 8px; }

.about-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 36px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

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

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.service-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img { transform: scale(1.04); }

.service-card-body { padding: 24px 28px 28px; }

.service-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter---spacing: -0.01em;
}

.service-card-body p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 18px;
}

.service-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.service-link::after {
  content: '←';
  transition: transform var(--transition);
}

.service-link:hover { border-bottom-color: var(--primary); }
.service-link:hover::after { transform: translateX(-4px); }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}

.project-overlay h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--primary);
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text h2 {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cta-text p { color: rgba(255,255,255,0.78); font-size: 15px; }

.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); color: var(--primary); }

/* ===== CONTACT SECTION ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-info p { color: var(--text-mid); margin-bottom: 36px; line-height: 1.8; }

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.c-item-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
}

.c-item-val { font-size: 15px; font-weight: 600; color: var(--text); }

/* Contact Form */
.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,69,160,0.1);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
  font-family: inherit;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-full { width: 100%; text-align: center; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  height: 380px;
  margin-top: 72px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.6), rgba(0,0,0,0.35));
}

.page-hero-content {
  position: relative;
  color: #fff;
}

.page-hero-content h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.45); }
.breadcrumb strong { color: #fff; }

/* ===== SERVICE DETAIL ===== */
.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.service-detail-content img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 28px 0;
}

.rich-content h2 { font-size: 26px; font-weight: 800; margin: 28px 0 14px; letter-spacing: -0.01em; }
.rich-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; color: var(--primary); }
.rich-content p  { margin-bottom: 16px; color: var(--text-mid); line-height: 1.8; }
.rich-content ul { padding-right: 20px; margin-bottom: 20px; }
.rich-content ul li { list-style: disc; color: var(--text-mid); margin-bottom: 8px; }
.rich-content strong { color: var(--text); }

.service-sidebar {
  position: sticky;
  top: 96px;
}

.services-list-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.services-list-card h4 {
  font-size: 14px;
  font-weight: 800;
  padding: 18px 20px;
  background: var(--primary);
  color: #fff;
  letter-spacing: 0.02em;
}

.services-list-card ul { padding: 8px 0; }
.services-list-card li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}

.services-list-card li:last-child a { border-bottom: none; }
.services-list-card li a:hover,
.services-list-card li a.current { color: var(--primary); background: rgba(0,69,160,0.05); }

.contact-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #fff;
}

.contact-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.contact-card p  { font-size: 14px; opacity: 0.82; margin-bottom: 20px; line-height: 1.7; }
.contact-card .btn { background: #fff; color: var(--primary); font-size: 14px; }

/* ===== ABOUT PAGE ===== */
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-page-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 56px;
}

.footer-brand .logo-name { color: #fff; }

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 16px;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.footer-social:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a { color: rgba(255,255,255,0.25); }
.footer-bottom a:hover { color: rgba(255,255,255,0.5); }

/* ===== ALERTS ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-split { gap: 48px; }
  .service-detail-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

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

  nav ul {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 800;
  }

  nav ul.open { display: flex; }
  nav ul a { font-size: 18px; }

  .about-split,
  .about-page-grid,
  .contact-wrap,
  .projects-grid,
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }

  .services-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

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

  .about-img-badge { position: static; margin-top: 16px; display: inline-block; }

  .cta-inner { text-align: center; }
  .cta-btn { margin: 0 auto; }

  .slider { max-height: 600px; }
  .slide-title { font-size: 28px; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

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