/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: color-mix(in srgb, #5eead4 30%, transparent);
  color: #0a2540;
}

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

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

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

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

.mobile-link:last-child {
  border-bottom: none;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* ========== FORM ========== */
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #94a3b8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  #hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .floating-card {
    position: relative;
    margin-top: 1rem;
  }
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: #0a2540;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #3d5480;
}
