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

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

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: #0a1628;
  background: #f0fdf7;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========== NAVBAR ========== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(240, 253, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(52, 212, 168, 0.15);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(10, 22, 40, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #34d4a8;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile nav */
.nav-mobile {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-mobile-link {
  display: block;
}

/* ========== HERO ========== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1628;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/5605024/pexels-photo-5605024.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
  opacity: 0.35;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 14, 26, 0.92) 0%,
    rgba(10, 22, 40, 0.85) 50%,
    rgba(15, 32, 53, 0.80) 100%
  );
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(52, 212, 168, 0.06) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-badge {
  animation: fadeInDown 0.8s ease both;
}

.hero-headline {
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-ctas {
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-stats {
  animation: fadeInUp 0.8s ease 0.6s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating shapes */
.hero-float {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.08;
}

.hero-float-1 {
  width: 400px;
  height: 400px;
  background: #34d4a8;
  top: -100px;
  right: -100px;
  animation: float1 8s ease-in-out infinite;
}

.hero-float-2 {
  width: 250px;
  height: 250px;
  background: #86efac;
  bottom: -50px;
  left: 5%;
  animation: float2 10s ease-in-out infinite;
}

.hero-float-3 {
  width: 150px;
  height: 150px;
  background: #bbf7d9;
  top: 30%;
  left: -40px;
  animation: float1 6s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -30px) rotate(5deg); }
}

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

/* ========== BUTTONS ========== */
.btn-primary {
  background: #34d4a8;
  color: #0a1628;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #1db88a;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(52, 212, 168, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ========== SECTION COMMON ========== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #14966e;
  background: rgba(20, 150, 110, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 50px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0a1628;
  line-height: 1.2;
}

.section-desc {
  color: #4a5568;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-label-light {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #86efac;
}

.section-title-light {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.section-desc-light {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(52, 212, 168, 0.1);
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(10, 22, 40, 0.1);
  border-color: rgba(52, 212, 168, 0.3);
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #f0fdf7, #dcfce9);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, #34d4a8, #1db88a);
  transform: scale(1.05) rotate(-3deg);
}

.service-card:hover .service-icon-wrap svg {
  stroke: #0a1628;
}

.service-name {
  transition: color 0.3s ease;
}

.service-desc {
  font-size: 0.95rem;
}

/* ========== ABOUT ========== */
.about-img-main {
  box-shadow: 0 25px 60px rgba(10, 22, 40, 0.15);
}

.about-img-float {
  box-shadow: 0 20px 50px rgba(10, 22, 40, 0.2);
}

.about-feature {
  transition: all 0.3s ease;
}

.about-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.08);
}

/* ========== GALLERY ========== */
.gallery-item {
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(52, 212, 168, 0.3);
  transform: translateY(-4px);
}

/* ========== CONTACT ========== */
.contact-info-item {
  transition: transform 0.3s ease;
}

.contact-info-item:hover {
  transform: translateX(6px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f0fdf7, #dcfce9);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.input-field {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #0a1628;
  background: #f8fafc;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}

.input-field::placeholder {
  color: #94a3b8;
}

.input-field:focus {
  border-color: #34d4a8;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(52, 212, 168, 0.1);
}

.btn-submit {
  background: linear-gradient(135deg, #0a1628, #152d47);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #152d47, #0f2035);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(10, 22, 40, 0.25);
}

.btn-submit-icon {
  transition: transform 0.3s ease;
}

.btn-submit:hover .btn-submit-icon {
  transform: translate(3px, -3px);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #0a1628;
  color: #34d4a8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(10, 22, 40, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 999;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #152d47;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(10, 22, 40, 0.4);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { animation: none; }
  .hero-float { animation: none; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100svh;
    padding: 6rem 0 4rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .about-img-float {
    right: 0;
    bottom: -2rem;
  }

  .about-badge {
    left: 0 !important;
    top: -1rem !important;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .contact-info-item:hover {
    transform: none;
  }
}
