:root {
  --midnight-900: #060d1f;
  --midnight-800: #0a1628;
  --midnight-700: #0f2140;
  --midnight-600: #142d56;
  --midnight-500: #1a3a6e;
  --midnight-200: #c8d6e8;
  --midnight-100: #e8eef5;
  --mint-400: #4ade80;
  --mint-500: #22c55e;
  --mint-600: #16a34a;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: #0a1628;
  background-color: #ffffff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* NAV */
#navbar {
  background: transparent;
  backdrop-filter: none;
}

#navbar.scrolled {
  background: rgba(6, 13, 31, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 222, 128, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* MOBILE MENU */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-size: 0.875rem;
}

.menu-line {
  display: block;
}

#menu-btn.active .menu-line:first-child {
  transform: rotate(45deg) translate(2px, 2px);
}

#menu-btn.active .menu-line:last-child {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* HERO */
#hero {
  position: relative;
}

/* SERVICES */
.service-card {
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: #4ade80;
  transition: height 0.4s ease;
}

.service-card:hover::before {
  height: 100%;
}

/* GALLERY */
.gallery-item {
  position: relative;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 31, 0);
  transition: background 0.4s ease;
}

.gallery-item:hover::after {
  background: rgba(6, 13, 31, 0.15);
}

/* FORM */
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #22c55e !important;
}

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

/* SCROLL REVEAL — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* REDUCED MOTION — content always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* FOCUS VISIBLE */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid #4ade80;
  outline-offset: 4px;
}

/* SELECTION */
::selection {
  background: rgba(74, 222, 128, 0.2);
  color: #0a1628;
}
