@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --dark: #0c1220;
  --light: #f8fafc;
  --text: #334155;
  --text-light: #94a3b8;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 3.25rem; font-weight: 800; line-height: 1.15; color: var(--secondary); }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; color: var(--secondary); }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--secondary); }
p { font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.text-light { color: var(--text-light); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.visible > *:nth-child(1) { transition-delay: 0.05s; }
.animate-on-scroll.visible > *:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.visible > *:nth-child(3) { transition-delay: 0.15s; }
.animate-on-scroll.visible > *:nth-child(4) { transition-delay: 0.2s; }
.animate-on-scroll.visible > *:nth-child(5) { transition-delay: 0.25s; }
.animate-on-scroll.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 32, 0.72);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 0;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 3.5rem;
}
.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 560px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--secondary);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}
.btn-primary svg {
  width: 20px;
  height: 20px;
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.about-text h2 {
  margin-bottom: 20px;
}
.about-text p {
  margin-bottom: 24px;
}
.about-text .btn-primary {
  margin-top: 8px;
}

/* ===== STATS ===== */
.stats {
  padding: 80px 0;
  background: var(--secondary);
}
.stats h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 50px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item .stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card-image {
  height: 220px;
  overflow: hidden;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-image img {
  transform: scale(1.05);
}
.service-card-body {
  padding: 28px;
}
.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
}
.service-card-icon svg {
  width: 24px;
  height: 24px;
}
.service-card-body h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.service-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
}
.feature-card h3 {
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-light);
  font-size: 0.93rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cta-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 64, 175, 0.88);
}
.cta-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-banner-content h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 2.25rem;
}
.cta-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-size: 1.1rem;
}
.cta-banner .btn-primary {
  font-size: 1.1rem;
  padding: 18px 42px;
}

/* ===== GALLERY ===== */
.gallery {
  padding: 100px 0;
  background: var(--light);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 32, 0);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay {
  background: rgba(12, 18, 32, 0.5);
}
.gallery-item-overlay span {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--accent);
}
.testimonial-stars svg {
  width: 18px;
  height: 18px;
}
.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-info .testimonial-name {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
}
.testimonial-info .testimonial-role {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--light);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h2 {
  margin-bottom: 12px;
}
.contact-info > p {
  color: var(--text-light);
  margin-bottom: 36px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-detail-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.contact-detail-icon svg {
  width: 22px;
  height: 22px;
}
.contact-detail-text h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.contact-detail-text p {
  color: var(--text-light);
  font-size: 0.95rem;
}
.contact-detail-text a {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s;
}
.contact-detail-text a:hover {
  color: var(--primary-light);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--light);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  padding: 60px 0 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}
.footer-brand .nav-logo {
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  max-width: 300px;
}
.footer-links h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  text-align: center;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  .hero-content h1 { font-size: 2.75rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero-content h1 { font-size: 2.25rem; }
  .hero-content p { font-size: 1.05rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { order: -1; }
  .about-image img { height: 280px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item .stat-value { font-size: 2.25rem; }

  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 32px; }

  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  .hero-content h1 { font-size: 1.85rem; }
  .hero-content { padding: 100px 0 80px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .btn-primary { width: 100%; justify-content: center; }
  .contact-form { padding: 24px; }
}
