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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
}

::selection {
  background: rgba(232, 96, 75, 0.3);
  color: #fff;
}

/* === NAVBAR === */
#navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(10, 11, 15, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === MOBILE MENU === */
.mobile-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

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

/* === HERO FLOATING CARDS ANIMATION === */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  .absolute.top-0.right-0 {
    animation: float-slow 6s ease-in-out infinite;
  }
  .absolute.top-44.left-0 {
    animation: float-medium 5s ease-in-out infinite 0.5s;
  }
  .absolute.bottom-8.right-8 {
    animation: float-fast 4s ease-in-out infinite 1s;
  }
}

/* === SERVICE CARDS === */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E8604B, #f87156);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 2rem 2rem 0 0;
}

.service-card:hover::before {
  opacity: 1;
}

/* === SCROLL REVEAL (below fold only) === */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

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

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

/* === FORM INPUTS === */
input:focus,
textarea:focus {
  outline: none;
}

/* === BUTTON HOVER TRANSITIONS === */
a, button {
  transition: all 0.2s ease;
}

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

::-webkit-scrollbar-track {
  background: #13151a;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #52565e;
}

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

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

/* === RESPONSIVE TWEAKS === */
@media (max-width: 640px) {
  .font-serif {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}
