/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
}

.geo-circle-1 {
  top: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 2px solid rgba(244, 85, 47, 0.15);
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
  bottom: 15%;
  left: -5%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 85, 47, 0.08) 0%, transparent 70%);
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
  top: 30%;
  left: 8%;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(244, 85, 47, 0.2);
  transform: rotate(45deg);
  animation: spin-slow 25s linear infinite;
}

.geo-square-2 {
  bottom: 25%;
  right: 10%;
  width: 50px;
  height: 50px;
  background: rgba(244, 85, 47, 0.1);
  transform: rotate(30deg);
  animation: spin-slow 18s linear infinite reverse;
}

.geo-triangle-1 {
  top: 60%;
  left: 3%;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(244, 85, 47, 0.12);
  animation: float-slow 12s ease-in-out infinite;
}

.geo-line-1 {
  top: 20%;
  left: 15%;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 85, 47, 0.3), transparent);
  transform: rotate(-15deg);
  animation: pulse-line 4s ease-in-out infinite;
}

.geo-line-2 {
  bottom: 35%;
  right: 15%;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 85, 47, 0.2), transparent);
  transform: rotate(25deg);
  animation: pulse-line 5s ease-in-out infinite 1s;
}

/* ===== FLOATING CARDS ===== */
.floating-card {
  z-index: 20;
}

.card-float-1 {
  animation: float-card-1 6s ease-in-out infinite;
}

.card-float-2 {
  animation: float-card-2 7s ease-in-out infinite;
}

.card-float-3 {
  animation: float-card-3 8s ease-in-out infinite;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ===== KEYFRAMES ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes float-card-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-card-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-1deg); }
}

@keyframes float-card-3 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(5px); }
}

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

/* ===== MOBILE MENU ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: none;
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== NAV SCROLL STATE ===== */
nav.scrolled {
  background: rgba(11, 11, 16, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 85, 47, 0.1);
}

/* ===== CURSOR GLOW (desktop only) ===== */
@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 85, 47, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
  }
}
