/* ===== CSS Custom Properties ===== */
:root {
  --primary: #1B3A5C;
  --primary-light: #2A5580;
  --accent: #2196F3;
  --accent-light: #64B5F6;
  --accent-pale: #E3F2FD;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --text: #333333;
  --text-light: #6B7280;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

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

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-nav {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-nav:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* Pulse animation for CTA */
.btn-pulse {
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(33, 150, 243, 0); }
}

/* ===== Navigation ===== */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition), background var(--transition);
}

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

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}

.nav-logo i {
  font-size: 1.4rem;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.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-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding: 4px 0;
}

.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:not(.btn-nav):hover::after {
  width: 100%;
}

.nav-links a:not(.btn-nav):hover {
  color: var(--accent);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1B3A5C, #2A5580, #1B4A6C, #0D2137);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(33, 150, 243, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 50%);
}

/* Parallax container */
.hero-parallax {
  position: absolute;
  inset: -60px;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

/* Floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(1px);
}

.hero-shape--1 {
  width: 320px;
  height: 320px;
  top: 8%;
  left: -5%;
  background: radial-gradient(circle, var(--accent-light), transparent 70%);
  animation: floatA 18s ease-in-out infinite;
}

.hero-shape--2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 5%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  animation: floatB 22s ease-in-out infinite;
}

.hero-shape--3 {
  width: 160px;
  height: 160px;
  top: 20%;
  right: 20%;
  background: radial-gradient(circle, var(--white), transparent 70%);
  opacity: 0.05;
  animation: floatC 16s ease-in-out infinite;
}

.hero-shape--4 {
  width: 260px;
  height: 260px;
  bottom: 15%;
  left: 10%;
  background: radial-gradient(circle, var(--accent-light), transparent 70%);
  opacity: 0.06;
  animation: floatD 20s ease-in-out infinite;
}

.hero-shape--5 {
  width: 140px;
  height: 140px;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, var(--white), transparent 70%);
  opacity: 0.04;
  animation: floatA 24s ease-in-out infinite reverse;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 20px) scale(1.03); }
  66% { transform: translate(10px, -25px) scale(0.96); }
}

@keyframes floatC {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 30px); }
}

@keyframes floatD {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -15px) scale(1.06); }
}

/* Light streaks */
.hero-streak {
  position: absolute;
  width: 1px;
  height: 200%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: streak 8s ease-in-out infinite;
}

.hero-streak::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
  animation: streakSlide 8s ease-in-out infinite;
}

.hero-streak--1 {
  left: 25%;
  animation-delay: 0s;
}

.hero-streak--1::after {
  animation-delay: 0s;
}

.hero-streak--2 {
  left: 70%;
  animation-delay: 4s;
}

.hero-streak--2::after {
  animation-delay: 4s;
}

@keyframes streak {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 1; }
}

@keyframes streakSlide {
  0% { transform: translateY(-120px); }
  100% { transform: translateY(calc(100vh + 120px)); }
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hero-badge i {
  font-size: 0.75rem;
}

/* Hero word animation */
.hero-word {
  display: inline-block;
}

.hero-word--accent {
  color: var(--accent-light);
  text-shadow: 0 0 40px rgba(33, 150, 243, 0.4);
}

.hero-line-break {
  display: block;
  height: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  will-change: transform, opacity;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

.hero-scroll-indicator i {
  font-size: 0.9rem;
  animation: scrollArrow 1.5s ease-in-out infinite;
}

@keyframes scrollArrow {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Section Headers ===== */
.section-label {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--primary);
  font-weight: 700;
}

/* ===== About Section ===== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.about-image-placeholder {
  width: 280px;
  height: 340px;
  background: linear-gradient(135deg, var(--accent-pale), var(--white));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid var(--accent-pale);
}

.about-image-placeholder i {
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.about-content p {
  margin-bottom: 16px;
  color: var(--text-light);
}

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

.about-credentials {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--accent-pale);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.credential i {
  color: var(--accent);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* ===== Team Section ===== */
.team {
  padding: 100px 0;
  background: var(--off-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent);
}

.team-avatar {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent-pale), var(--white));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--accent-pale);
}

.team-avatar i {
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.5;
}

.team-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.team-role {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Services Section ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--accent-pale);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--accent);
}

.service-icon i {
  font-size: 1.3rem;
  color: var(--accent);
  transition: color var(--transition);
}

.service-card:hover .service-icon i {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact {
  padding: 100px 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.1rem;
  color: var(--accent);
}

.contact-item h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

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

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

.contact-info .btn {
  margin-top: 8px;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--accent-pale);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--off-white);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

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

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-logo i {
  color: var(--accent-light);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 4px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition);
}

.social-icons a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--accent-pale);
  }

  .nav-links .btn-nav {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }

  /* Sections */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-placeholder {
    width: 220px;
    height: 280px;
  }

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

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

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

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

  .hero h1 {
    font-size: 2rem;
  }

  .hero-shape--1 { width: 180px; height: 180px; }
  .hero-shape--2 { width: 120px; height: 120px; }
  .hero-shape--3 { width: 100px; height: 100px; }
  .hero-shape--4 { width: 150px; height: 150px; }
  .hero-shape--5 { width: 80px; height: 80px; }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .about,
  .team,
  .services,
  .contact {
    padding: 64px 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }
}

/* ===== Mobile nav overlay ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}