/* Madevu Apps – Dark Tech Theme */

:root {
  --neon: #00ff41;
  --neon-dim: #00cc33;
  --dark: #050505;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Background Effects ===== */
.bg-grid {
  background-image: 
    linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.animate-pulse-slow {
  animation: pulseSlow 8s ease-in-out infinite;
}
.delay-1000 { animation-delay: 1s; }

@keyframes pulseSlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* ===== Logo Glow ===== */
.logo-glow {
  filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.5));
  transition: filter 0.3s;
}
.logo-glow:hover {
  filter: drop-shadow(0 0 16px rgba(0, 255, 65, 0.8));
}

/* ===== Navigation ===== */
.nav-link {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--neon);
}

/* ===== Buttons ===== */
.btn-neon {
  background: var(--neon);
  color: #000;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-neon:hover {
  background: #33ff66;
  box-shadow: 0 0 35px rgba(0, 255, 65, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid rgba(0, 255, 65, 0.4);
  color: var(--neon);
  border-radius: 9999px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

/* ===== Text Glow ===== */
.glow-text {
  text-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}

/* ===== Service Cards ===== */
.service-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
  background: rgba(0, 255, 65, 0.04);
  border-color: rgba(0, 255, 65, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 255, 65, 0.15);
}
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 255, 65, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ===== Project Cards ===== */
.project-card {
  display: block;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.35s;
  text-decoration: none;
  color: inherit;
}
.project-card:hover {
  border-color: rgba(0, 255, 65, 0.35);
  box-shadow: 0 25px 50px -15px rgba(0, 255, 65, 0.2);
  transform: translateY(-6px);
}
.project-image {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, #0a0a0a 0%, #111 50%, #0d1a0d 100%);
  overflow: hidden;
}
.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(0,255,65,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,255,65,0.08) 0%, transparent 40%);
  transition: opacity 0.4s;
}
.project-card:hover .project-image::before {
  opacity: 1.4;
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.stat-box:hover {
  border-color: rgba(0, 255, 65, 0.3);
  background: rgba(0, 255, 65, 0.04);
}

/* ===== CTA Box ===== */
.cta-box {
  background: linear-gradient(135deg, rgba(0,255,65,0.08) 0%, rgba(0,0,0,0.4) 100%);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,65,0.08) 0%, transparent 60%);
  animation: rotateGlow 15s linear infinite;
}
@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cta-box > * {
  position: relative;
  z-index: 1;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Particles (canvas) ===== */
#particles {
  opacity: 0.6;
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .project-image { height: 200px; }
  .cta-box { padding: 2rem 1.25rem; }
}
