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

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ========== NAVIGATION ========== */
.nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(10, 37, 64, 0.08);
}

.nav.scrolled .nav-line {
  background: #0a2540;
}

.nav.scrolled a:not(.btn-primary) {
  color: #0a2540 !important;
}

.nav-toggle {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 37, 64, 0.1);
}

.nav.scrolled .nav-toggle {
  background: rgba(10, 37, 64, 0.05) !important;
  border-color: rgba(10, 37, 64, 0.1);
}

.nav-toggle.active .nav-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active .nav-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(4px, -4px);
}

.nav-link {
  position: relative;
}

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

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

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #34d4a8;
  color: #0a2540;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 212, 168, 0.3);
}

.btn-primary:hover {
  background: #5eead4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 212, 168, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

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

/* ========== HERO ========== */
.hero {
  position: relative;
}

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

.hero-img {
  animation: heroZoom 20s ease-in-out infinite alternate;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.92) 0%, rgba(10, 37, 64, 0.7) 50%, rgba(10, 37, 64, 0.4) 100%);
}

.hero-badge {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.hero-badge span:first-child {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.hero p {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.hero .flex-wrap:first-of-type {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.8s;
}

.hero-stats {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 1s;
}

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

.hero-scroll {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 1.2s;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #34d4a8, #5eead4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

/* ========== WHY US CARDS ========== */
.why-card {
  position: relative;
}

.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.why-card:hover::after {
  opacity: 1;
}

/* ========== PROCESS ========== */
.process-step {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== AREA TAGS ========== */
.area-tag {
  transition: all 0.3s ease;
}

.area-tag:hover {
  background: #34d4a8;
  transform: translateX(4px);
}

.area-tag:hover span:first-child {
  background: #0a2540;
}

.area-tag:hover .font-display {
  color: #0a2540;
}

/* ========== CONTACT FORM ========== */
.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid rgba(10, 37, 64, 0.12);
  border-radius: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #0a2540;
  background: #ffffff;
  transition: all 0.3s ease;
  outline: none;
}

.input-field::placeholder {
  color: rgba(10, 37, 64, 0.3);
}

.input-field:hover {
  border-color: rgba(52, 212, 168, 0.4);
}

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

.input-field option {
  color: #0a2540;
}

.contact-form {
  position: relative;
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== MOBILE MENU ========== */
.nav-mobile {
  animation: slideDown 0.3s ease;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 6px;
  }

  .hero-stats > div {
    min-width: 80px;
  }

  .hero-stats .font-display {
    font-size: 2rem !important;
  }

  .shape-square,
  .shape-triangle,
  .shape-dots {
    display: none;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 8px;
  }
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(52, 212, 168, 0.3);
  color: #0a2540;
}

/* ========== FOCUS ========== */
:focus-visible {
  outline: 2px solid #34d4a8;
  outline-offset: 2px;
}

/* ========== 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;
  }

  .hero-img {
    animation: none;
  }

  .fade-in,
  .process-step {
    opacity: 1;
    transform: none;
  }
}
