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

body {
  overflow-x: hidden;
}

::selection {
  background: #5EEAD4;
  color: #0D1B2A;
}

/* ── Navigation ── */
.nav-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(94, 234, 212, 0.2);
  box-shadow: 0 1px 20px rgba(13, 27, 42, 0.06);
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
}

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

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

.mobile-nav-link {
  position: relative;
  padding-left: 0;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  border-left-color: #5EEAD4;
  padding-left: 12px;
  color: #5EEAD4;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/30797205/pexels-photo-30797205.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 13, 24, 0.92) 0%,
    rgba(13, 27, 42, 0.85) 50%,
    rgba(20, 37, 56, 0.80) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* ── Floating Cards ── */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  animation-delay: 0s;
}

.card-2 {
  animation-delay: -2s;
}

.card-3 {
  animation-delay: -4s;
}

.card-4 {
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-16px);
  }
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

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

/* Fallback: always visible when JS is disabled */
.no-js .reveal,
:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* ── Decorative Elements ── */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, #5EEAD4, transparent);
  border: none;
  margin: 0;
}

/* ── Button Focus States ── */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #5EEAD4;
  outline-offset: 2px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

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

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

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-content h1 {
    font-size: 2.5rem !important;
  }

  .hero-content p {
    font-size: 1.1rem !important;
  }
}
