/* Base & Typography */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #030D18;
  color: #ffffff;
}

::selection {
  background-color: rgba(126, 223, 176, 0.3);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #051120;
}
::-webkit-scrollbar-thumb {
  background: rgba(126, 223, 176, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(126, 223, 176, 0.5);
}

/* Navigation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #B8F0D4;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-link {
  font-size: 1.125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-anim {
  opacity: 0;
  transform: translateY(32px);
}

@media (prefers-reduced-motion: no-preference) {
  .section-anim.animated {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-anim {
    opacity: 1;
    transform: none;
  }
}

/* Hero animations */
.reveal-hero {
  opacity: 1;
  transform: translateY(0);
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.reveal-hero:nth-child(2) { animation-delay: 0.12s; }
.reveal-hero:nth-child(3) { animation-delay: 0.24s; }
.reveal-hero:nth-child(4) { animation-delay: 0.36s; }
.reveal-hero:nth-child(5) { animation-delay: 0.48s; }

.reveal-hero-image {
  opacity: 1;
  transform: translateX(0);
  animation: heroSlideRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.reveal-hero-card {
  opacity: 1;
  animation: heroCardFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

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

@keyframes heroSlideRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Staggered section animations */
.section-anim:nth-child(1) { transition-delay: 0s; }
.section-anim:nth-child(2) { transition-delay: 0.1s; }
.section-anim:nth-child(3) { transition-delay: 0.2s; }
.section-anim:nth-child(4) { transition-delay: 0.3s; }
.section-anim:nth-child(5) { transition-delay: 0.4s; }

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #B8F0D4;
  outline-offset: 2px;
}

/* Smooth image loading */
img {
  loading: lazy;
  decoding: async;
}

/* Print styles */
@media print {
  .nav-fixed { position: static; }
  body { background: white; color: black; }
}
