/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 640px) {
  .header-inner { height: 80px; }
}

.header-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

@media (min-width: 640px) {
  .header-logo img { height: 40px; }
}

.header.scrolled .header-logo img {
  filter: brightness(0);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

.header-nav a:hover { color: #0077cc; }

.header.scrolled .header-nav a {
  color: #333;
}

.header.scrolled .header-nav a:hover {
  color: #0077cc;
}

.btn-primary {
  background: #0077cc;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #005fa3;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
  background: transparent;
  font-size: 14px;
  display: inline-flex;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu */
.mobile-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: white;
}

@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

.header.scrolled .mobile-toggle { color: #001f3f; }

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid #f0f0f0;
  padding: 16px 24px;
}

.mobile-menu.open { display: block; }

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu a {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s;
}

.mobile-menu a:hover { color: #0077cc; }

.mobile-menu .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero { min-height: 100vh; }
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.92), rgba(0, 70, 140, 0.85));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 80px 16px;
}

@media (min-width: 640px) {
  .hero-content { padding: 0 24px; }
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero h1 span { color: #4db8ff; }

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 672px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; justify-content: center; }
}

.hero-buttons .btn-primary {
  padding: 14px 32px;
  font-size: 15px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .hero-pills { gap: 24px; margin-top: 64px; }
}

.hero-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

@media (min-width: 640px) {
  .hero-pill { font-size: 14px; }
}

.hero-pill svg { color: #4db8ff; width: 16px; height: 16px; flex-shrink: 0; }

/* ===== Sections ===== */
.section {
  padding: 64px 0;
}

@media (min-width: 640px) {
  .section { padding: 96px 0; }
}

.section-gray { background: #f5f7fa; }
.section-dark { background: #001f3f; }

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #001f3f;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  text-align: center;
}

.section-dark .section-title { color: white; }

.section-subtitle {
  color: #666;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 672px;
  margin: 0 auto 48px;
  text-align: center;
}

@media (min-width: 640px) {
  .section-subtitle { margin-bottom: 64px; }
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: white;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-card-image {
  position: relative;
  padding-top: 75%; /* 4:3 */
  background: #f0f0f0;
  overflow: hidden;
}

.service-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

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

.service-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 119, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  color: #0077cc;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #001f3f;
}

@media (min-width: 640px) {
  .service-card h3 { font-size: 18px; }
}

.service-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #e5e7eb;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .about-text p { font-size: 16px; }
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 640px) {
  .stats-grid { margin-top: 64px; }
}

.stat-card {
  text-align: center;
  background: white;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card svg {
  width: 28px;
  height: 28px;
  color: #0077cc;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  margin: 0 auto 12px;
}

.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #001f3f;
}

@media (min-width: 640px) {
  .stat-value { font-size: 1.875rem; }
}

.stat-label {
  color: #888;
  font-size: 12px;
  margin-top: 4px;
}

@media (min-width: 640px) {
  .stat-label { font-size: 14px; }
}

/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  background: white;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: all 0.3s;
}

.project-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-card-image {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #f0f0f0;
  overflow: hidden;
}

.project-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0077cc;
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 9999px;
}

.project-card-body {
  padding: 20px 24px;
}

.project-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #001f3f;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .project-card h3 { font-size: 18px; }
}

.project-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ===== Customers ===== */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .customers-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.customer-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.customer-card:hover { background: rgba(255, 255, 255, 0.15); }

.customer-card span {
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .customer-card span { font-size: 16px; }
}

/* ===== Contact ===== */
.contact-form {
  max-width: 672px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .contact-form { padding: 32px; }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  outline: none;
  background: white;
}

.form-input:focus {
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15);
}

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

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

textarea ~ .input-icon,
.input-wrapper--textarea .input-icon {
  top: 12px;
  transform: none;
}

.form-privacy {
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}

.btn-submit {
  width: 100%;
  background: #0077cc;
  color: white;
  padding: 12px;
  border-radius: 6px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-submit:hover { background: #005fa3; }
.btn-submit:disabled { background: rgba(0, 119, 204, 0.6); cursor: not-allowed; }

.btn-submit svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 32px;
  display: none;
}

.success-message.show { display: block; }

.success-icon {
  width: 48px;
  height: 48px;
  color: #22c55e;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  margin: 0 auto 16px;
}

.success-message h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #001f3f;
  margin-bottom: 8px;
}

.success-message p {
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.footer {
  background: #001f3f;
  color: white;
  padding: 48px 0;
}

@media (min-width: 640px) {
  .footer { padding: 64px 0; }
}

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

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

.footer-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

.footer h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.footer-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-nav a:hover { color: #0077cc; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: #0077cc;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ===== Center CTA ===== */
.text-center { text-align: center; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  z-index: 100;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { background: #22c55e; }
.toast.error { background: #ef4444; }
