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

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

body {
  margin: 0;
}

::selection {
  background: rgba(45, 212, 191, 0.3);
  color: #f0fdf9;
}

/* ========== NAVBAR ========== */
.nav-scrolled {
  background: rgba(15, 23, 51, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .logo-text {
  color: #f0fdf9 !important;
}

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

.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */
.hero-content {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-delay-1 { animation-delay: 0.1s; opacity: 0; }
.hero-delay-2 { animation-delay: 0.2s; opacity: 0; }
.hero-delay-3 { animation-delay: 0.3s; opacity: 0; }
.hero-delay-4 { animation-delay: 0.4s; opacity: 0; }
.hero-delay-5 { animation-delay: 0.5s; opacity: 0; }

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

/* ========== SERVICE CARDS ========== */
.service-card {
  will-change: transform;
}

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

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  will-change: transform;
}

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

  .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; }
}

/* ========== BACK TO TOP ========== */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* ========== FORM FOCUS ========== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #2dd4bf;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .font-display {
    line-height: 1.1;
  }
}
