/* ========== CUSTOM STYLES ========== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
  background-color: #95d5c4;
  color: #090d2b;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f2faf8;
}
::-webkit-scrollbar-thumb {
  background: #95d5c4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #61bd9f;
}

/* ========== NAVBAR ========== */
#navbar.scrolled {
  background: rgba(9, 13, 43, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

#navbar.scrolled #nav-logo {
  color: #ffffff !important;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  border: 1px solid rgba(149, 213, 196, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(149, 213, 196, 0.5);
}

/* ========== GALLERY ========== */
.gallery-item {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  border-color: rgba(149, 213, 196, 0.4);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobile-menu.closing {
  animation: slideUp 0.25s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

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

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

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

/* Staggered delays */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

.gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-item:nth-child(6) { transition-delay: 0.3s; }

/* ========== BACK TO TOP ========== */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #95d5c4;
  outline-offset: 2px;
}

/* ========== DECORATIVE DIVIDER ========== */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #95d5c4, #61bd9f);
  border-radius: 2px;
  margin: 0 auto;
}
