/* ===================================
   Avenue Hematology Oncology
   Custom Styles
   =================================== */

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

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030B14;
}
::-webkit-scrollbar-thumb {
  background: rgba(94, 234, 212, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(94, 234, 212, 0.4);
}

/* Selection */
::selection {
  background: rgba(94, 234, 212, 0.3);
  color: #5EEAD4;
}

/* ===================================
   Navigation
   =================================== */
#navbar {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(3, 11, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #5EEAD4 !important;
}

/* Mobile Menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
  color: #5EEAD4;
  transform: translateX(4px);
}

/* Hamburger Animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.25rem;
}

/* ===================================
   Hero Section
   =================================== */
.hero-headline {
  opacity: 1;
  transform: translateY(0);
  animation: heroHeadlineIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-eyebrow {
  opacity: 0;
  transform: translateX(-20px);
  animation: heroEyebrowIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-subtext {
  opacity: 0;
  transform: translateY(20px);
  animation: heroSubtextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-ctas {
  opacity: 0;
  transform: translateY(20px);
  animation: heroCtasIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-stats {
  opacity: 0;
  transform: translateY(20px);
  animation: heroStatsIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

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

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

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

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

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

/* CTA Buttons */
.cta-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-secondary {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-secondary:hover {
  background: rgba(94, 234, 212, 0.05);
  transform: translateY(-2px);
}

/* ===================================
   Scroll Reveal Animations
   =================================== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0) translateX(0);
  }

  /* Staggered delays for service cards */
  .service-card:nth-child(1) { transition-delay: 0.05s; }
  .service-card:nth-child(2) { transition-delay: 0.1s; }
  .service-card:nth-child(3) { transition-delay: 0.15s; }
  .service-card:nth-child(4) { transition-delay: 0.2s; }
  .service-card:nth-child(5) { transition-delay: 0.25s; }
  .service-card:nth-child(6) { transition-delay: 0.3s; }
}

/* ===================================
   Service Cards
   =================================== */
.service-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ===================================
   Input Focus States
   =================================== */
input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.07) !important;
}

/* ===================================
   Image Hover Effects
   =================================== */
aspect-ratio {
  display: block;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 767px) {
  .hero-headline {
    font-size: 2.75rem !important;
  }

  .hero-stats {
    gap: 6px !important;
  }

  .hero-stats > div {
    flex: 1;
    min-width: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-headline {
    font-size: 3.5rem !important;
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  #navbar,
  .hero-stats,
  #contactForm {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }
}
