/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0D0F17;
  color: #fff;
  overflow-x: hidden;
}

::selection {
  background: #FF4F2A;
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0F17;
}
::-webkit-scrollbar-thumb {
  background: #FF4F2A40;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF4F2A60;
}

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

#navbar.scrolled {
  background: rgba(13, 15, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile Menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #FF4F2A;
  transition: width 0.25s ease;
}

.mobile-link:hover::after,
.mobile-link:active::after {
  width: 100%;
}

/* Geometric Background Shapes */
.geo-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}

.geo-circle {
  border-radius: 50%;
}

.geo-coral-1 {
  background: rgba(255, 79, 42, 0.08);
  border: 1px solid rgba(255, 79, 42, 0.12);
}

.geo-coral-2 {
  background: rgba(255, 111, 74, 0.06);
  border: 1px solid rgba(255, 111, 74, 0.1);
}

.geo-coral-3 {
  background: rgba(255, 79, 42, 0.05);
  border: 1px solid rgba(255, 79, 42, 0.08);
}

.geo-charcoal-1 {
  background: rgba(26, 29, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.geo-triangle {
  width: 80px !important;
  height: 80px !important;
  background: rgba(255, 79, 42, 0.07);
  border: 1px solid rgba(255, 79, 42, 0.12);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.geo-ring {
  border-radius: 50%;
  border: 2px solid rgba(255, 111, 74, 0.15);
  background: transparent !important;
  width: 120px !important;
  height: 120px !important;
}

/* 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, #FF4F2A, #FF8F76);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}

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

/* Stagger children */
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.32s; }
.service-card:nth-child(6) { transition-delay: 0.40s; }

/* Pulse animation */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Image hover */
.rounded-2xl.overflow-hidden img {
  display: block;
}

/* Form focus */
input:focus, textarea:focus {
  outline: none;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .font-display.text-6xl {
    font-size: 3.5rem;
  }
}
