/* ===== Custom Styles for Pelican Diagnostics ===== */

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

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

::selection {
  background: rgba(94, 234, 212, 0.3);
  color: #0c254c;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f5fa;
}
::-webkit-scrollbar-thumb {
  background: #b3c8e0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8daccf;
}

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, #0c254c 0%, #1a3f6e 50%, #2d5a8f 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #14b8a6 0%, #0c254c 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg,
.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Input Fields --- */
.input-field {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #0c254c;
  background: #f8fafc;
  transition: all 0.25s ease;
  outline: none;
  width: 100%;
}

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

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

.input-field:focus {
  border-color: #14b8a6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* --- Service Cards --- */
.card-service {
  background: #fff;
  border-radius: 20px;
  padding: 0.5rem;
  border: 1px solid #f1f5f9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(12, 37, 76, 0.12);
  border-color: transparent;
}

/* --- Feature Cards --- */
.card-feature {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-feature:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 20px 60px -20px rgba(12, 37, 76, 0.1);
}

/* --- Navigation --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #14b8a6, #5eead4);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

/* --- Mobile Menu --- */
.mobile-link {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid #e2e8f0;
  transition: all 0.25s ease;
}

.mobile-link:hover {
  border-left-color: #14b8a6;
  color: #0c254c;
  padding-left: 1.25rem;
}

/* --- Animations --- */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }
.hero-anim:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-image {
  opacity: 0;
  transform: translateX(40px);
  animation: slideIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Navbar scroll state --- */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 0 rgba(12, 37, 76, 0.06), 0 4px 20px rgba(12, 37, 76, 0.06) !important;
}

.nav-transparent {
  background: transparent !important;
  box-shadow: none !important;
}

/* --- Subtle hover for images --- */
img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Focus visible --- */
*:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-anim {
    transform: translateY(16px);
  }
  .hero-image {
    transform: translateY(20px);
  }
}
