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

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0F1117;
}
::-webkit-scrollbar-thumb {
  background: #252836;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E85D4A;
}

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

.geo-circle-1 {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(232, 93, 74, 0.12);
  top: 10%;
  right: 5%;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(232, 93, 74, 0.06);
  bottom: 15%;
  right: 15%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square {
  width: 120px;
  height: 120px;
  border: 1px solid rgba(232, 93, 74, 0.15);
  top: 25%;
  right: 38%;
  transform: rotate(45deg);
  animation: spin-slow 30s linear infinite;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(232, 93, 74, 0.07);
  bottom: 25%;
  right: 30%;
  animation: float-slow 18s ease-in-out infinite;
}

.geo-dots {
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(232, 93, 74, 0.3) 1px, transparent 1px);
  background-size: 12px 12px;
  top: 40%;
  right: 42%;
  animation: float-slow 12s ease-in-out infinite reverse;
}

/* ===== ANIMATIONS ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(2deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

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

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

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

.animate-dash {
  animation: dash 1s linear infinite;
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  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; }

/* ===== NAVBAR SCROLL EFFECT ===== */
.navbar-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
.menu-line {
  transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 1.05rem;
}

/* ===== 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, #E85D4A, #F07560);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

/* ===== FORM INPUTS ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(232, 93, 74, 0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .geo-circle-1 {
    width: 250px;
    height: 250px;
  }
  .geo-circle-2 {
    width: 120px;
    height: 120px;
  }
  .geo-square {
    width: 70px;
    height: 70px;
  }
  .geo-triangle {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(232, 93, 74, 0.07);
  }
  .geo-dots {
    width: 50px;
    height: 50px;
  }
}
