/* ===== Base & Typography ===== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(13, 148, 136, 0.2);
  color: #0f766e;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
  background: linear-gradient(135deg, #042f2e 0%, #0d9488 40%, #14b8a6 60%, #0f766e 80%, #042f2e 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
}

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

/* ===== Hero Decorative Orbs ===== */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-deco-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-deco-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-deco-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  top: 30%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ===== Navbar ===== */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.0);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.nav-fixed.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  padding-top: 0;
  padding-bottom: 0;
}

.nav-link {
  position: relative;
}

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

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

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

.mobile-menu-link {
  display: block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-link:hover {
  color: #0d9488;
  padding-left: 8px;
}

/* Hamburger Animation */
#bar1.open {
  transform: translateY(4px) rotate(45deg);
}

#bar2.open {
  opacity: 0;
  transform: scaleX(0);
}

#bar3.open {
  transform: translateY(-4px) rotate(-45deg);
}

/* ===== Hero CTAs ===== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #0d9488;
  padding: 16px 32px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background: #f0fdfa;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  padding: 16px 32px;
  border-radius: 60px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Service Cards ===== */
.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.service-card-img {
  overflow: hidden;
  height: 220px;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.service-card-content {
  padding: 24px 28px 28px;
}

.service-card-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(13, 148, 136, 0.1);
  line-height: 1;
  margin-bottom: 8px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  color: #0d9488;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.3s ease;
  gap: 0;
}

.service-card-link:hover {
  gap: 6px;
}

/* ===== Gallery ===== */
.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d9488;
  color: #fff;
  padding: 16px 32px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.35);
}

/* ===== Form Inputs ===== */
.input-field {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
  transition: all 0.2s ease;
  outline: none;
}

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

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

.input-field:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .hero-gradient {
    animation: none;
  }
  .hero-deco {
    animation: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-gradient {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-deco-1 {
    width: 300px;
    height: 300px;
  }

  .hero-deco-2 {
    width: 200px;
    height: 200px;
  }

  .hero-deco-3 {
    display: none;
  }

  .service-card-number {
    font-size: 2rem;
  }

  .gallery-item:first-child {
    grid-row: span 1;
    aspect-ratio: 4/5;
  }

  .floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 16px;
  }
}

/* ===== Utility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
