/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Nav transition ── */
#nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
  transition: color 0.3s;
}
#nav:not(.scrolled) .nav-logo-text {
  color: #0f172a;
}
#nav.scrolled .nav-logo-text {
  color: #0f172a;
}

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

/* ── Mobile menu ── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-line {
  transition: all 0.3s ease;
}
#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
  width: 24px;
  margin-left: 0;
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
  position: relative;
}

/* ── Hero shapes ── */
.hero-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.shape-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(30, 41, 59, 0.06) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  border-radius: 50%;
}

.shape-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(13, 148, 136, 0.06);
  border-radius: 24px;
  top: 25%;
  left: 8%;
  transform: rotate(15deg);
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(148, 163, 184, 0.1);
  top: 35%;
  right: 5%;
  transform: rotate(-20deg);
}

.shape-dot-grid {
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(13, 148, 136, 0.2) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  bottom: 20%;
  left: 15%;
  border-radius: 8px;
}

/* ── Float animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.hidden-reveal {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Form ── */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}
.form-input::placeholder {
  color: #94a3b8;
}

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: #f0fdfa;
  border: 2px solid #5eead4;
  border-radius: 12px;
  color: #0f766e;
  font-weight: 600;
  animation: fadeIn 0.4s ease;
}
.form-success.show {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }
