/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.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; }

/* ===== 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, #99f6e4, #2dd4bf);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ===== AREA CHIPS ===== */
.area-chip {
  cursor: default;
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

/* ===== HAMBURGER ANIMATION ===== */
#menu-toggle.active #bar1 {
  transform: translateY(4px) rotate(45deg);
}

#menu-toggle.active #bar2 {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ===== HEADER SCROLLED STATE ===== */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(153, 246, 228, 0.3);
  box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}

#site-header.scrolled .nav-link {
  color: #374151;
}

#site-header.scrolled .nav-link:hover {
  color: #0f766e;
}

#site-header.scrolled .logo-text {
  color: #0f172a;
}

/* ===== NAV LINKS ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #99f6e4, #2dd4bf);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 60%;
  left: 20%;
}

/* ===== FORM STYLES ===== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(153, 246, 228, 0.3);
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(153, 246, 228, 0.4);
  color: #0f172a;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0fdf9;
}

::-webkit-scrollbar-thumb {
  background: #99f6e4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5eead4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .font-display {
    font-size: 2rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .font-display {
    font-size: 2.5rem;
  }
}
