/* ═══════════════════════════════════════════════════════════════
   MDR Tecnologia — Custom CSS
   Design: dark tech, neon glow, glassmorphism
═══════════════════════════════════════════════════════════════ */

/* ── Fonts ───────────────────────────────────────────────────── */
* { font-family: 'Inter', 'Space Grotesk', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }

/* ── Root tokens ─────────────────────────────────────────────── */
:root {
  --cyan:   #00d4ff;
  --purple: #7c3aed;
  --dark:   #0a0f1e;
  --card:   #0f1829;
  --card2:  #111a2e;
  --border: rgba(0, 212, 255, 0.12);
  --glow-c: rgba(0, 212, 255, 0.35);
  --glow-p: rgba(124, 58, 237, 0.35);
}

/* ── Custom scrollbar ─────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--cyan) #0a0f1e;
  scrollbar-width: thin;
}

body {
  scrollbar-color: var(--cyan) #0a0f1e;
  scrollbar-width: thin;
}

::-webkit-scrollbar              { width: 8px; }
::-webkit-scrollbar-track        { background: #0a0f1e; }
::-webkit-scrollbar-thumb        { background: var(--cyan); border-radius: 99px; border: 2px solid rgba(10, 15, 30, 0.85); }
::-webkit-scrollbar-thumb:hover  { background: var(--purple); }

/* ── Smooth scroll ───────────────────────────────────────────── */

/* ── Background overrides ────────────────────────────────────── */
body, .bg-base-100 { background-color: var(--dark) !important; }

/* ── Gradient texts ──────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-2 {
  background: linear-gradient(135deg, var(--purple) 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
#navbar {
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 40px rgba(0, 212, 255, 0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo-icon {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
}
.logo-text { color: #fff; font-family: 'Space Grotesk', sans-serif; }
.logo-accent { color: var(--cyan); }

.nav-link {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem !important;
  transition: color 0.25s, background 0.25s !important;
}
.nav-link:hover,
.nav-link.active {
  color: var(--cyan) !important;
  background: rgba(0,212,255,0.1) !important;
}

/* ── Glow button ─────────────────────────────────────────────── */
.btn-glow {
  background: linear-gradient(135deg, var(--cyan), var(--purple)) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(0,212,255,0.3), 0 0 40px rgba(124,58,237,0.15);
  transition: box-shadow 0.3s, transform 0.2s !important;
}
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(0,212,255,0.5), 0 0 60px rgba(124,58,237,0.3) !important;
  transform: translateY(-1px) !important;
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero-section { background-color: var(--dark); }

/* Animated gradient orbs */
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  top: -200px; right: -150px;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  bottom: -180px; left: -150px;
  animation: orbFloat 14s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: 50%; left: 40%;
  animation: orbFloat 10s ease-in-out infinite alternate;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* Grid overlay */
.hero-grid {
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Hero badge */
.hero-badge {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--cyan);
  letter-spacing: 0.12em;
}
.badge-dot { background: var(--cyan); }

.hero-title { font-family: 'Space Grotesk', sans-serif; }
.hero-subtitle { font-size: 1.1rem; }

/* ══════════════════════════════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════════════════════════════ */
.section-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--cyan);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  text-align: center;
  line-height: 1.15;
}
.section-subtitle {
  color: rgba(255,255,255,0.5);
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
}
.section-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* ══════════════════════════════════════════════════════════════
   SERVICE CARDS
══════════════════════════════════════════════════════════════ */
.service-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
  will-change: transform;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,212,255,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 0 40px rgba(0,212,255,0.1), inset 0 1px 0 rgba(0,212,255,0.1);
}
.service-card:hover::before { opacity: 1; }

.service-icon-wrapper {
  width: 3rem; height: 3rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.15));
  border: 1px solid rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.3s;
}
.service-card:hover .service-icon-wrapper {
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}
.service-icon { color: var(--cyan); }

.tech-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  color: rgba(0,212,255,0.8);
}

/* ══════════════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════════════ */
.about-section {
  background: linear-gradient(135deg, rgba(10,15,30,1) 0%, rgba(15,24,41,1) 100%);
}
.feature-check {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
}

/* Stat cards */
.stat-card {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,58,237,0.06));
  border: 1px solid rgba(0,212,255,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,212,255,0.15);
}
.stat-card-alt {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(236,72,153,0.06));
  border: 1px solid rgba(124,58,237,0.15);
}
.stat-card-alt:hover {
  box-shadow: 0 12px 40px rgba(124,58,237,0.2);
}

/* ══════════════════════════════════════════════════════════════
   TECHNOLOGY PILLS
══════════════════════════════════════════════════════════════ */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.15);
  color: rgba(255,255,255,0.75);
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.tech-pill:hover {
  background: rgba(0,212,255,0.15);
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,212,255,0.15);
}
.tech-pill-alt {
  background: rgba(124,58,237,0.07);
  border-color: rgba(124,58,237,0.15);
}
.tech-pill-alt:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 4px 15px rgba(124,58,237,0.2);
}
.tech-pill-acc {
  background: rgba(59,130,246,0.07);
  border-color: rgba(59,130,246,0.15);
}
.tech-pill-acc:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 4px 15px rgba(59,130,246,0.2);
}
.tech-pill-warn {
  background: rgba(234,179,8,0.07);
  border-color: rgba(234,179,8,0.15);
}
.tech-pill-warn:hover {
  background: rgba(234,179,8,0.13);
  border-color: rgba(234,179,8,0.35);
  box-shadow: 0 4px 15px rgba(234,179,8,0.15);
}

/* ══════════════════════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(124,58,237,0.12) 100%);
  border: 1px solid rgba(0,212,255,0.15);
}
.cta-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.1), transparent 70%);
}

/* ══════════════════════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════════════════════ */
.contact-info-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-info-card:hover {
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 4px 20px rgba(0,212,255,0.07);
}

.contact-form-card {
  background: var(--card2);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

/* Form inputs */
.input-form {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 0.75rem !important;
  color: #fff !important;
  transition: border-color 0.25s, box-shadow 0.25s !important;
  font-size: 0.875rem !important;
}
.input-form::placeholder { color: rgba(255,255,255,0.25) !important; }
.input-form:focus {
  outline: none !important;
  border-color: rgba(0,212,255,0.5) !important;
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1) !important;
}
.input-form option {
  background: #0f1829;
  color: #fff;
}

/* DaisyUI alert overrides */
.alert { border-radius: 0.75rem; }
.alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer-bg { background: rgba(5, 8, 18, 0.95); }

.social-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.social-btn:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,212,255,0.2);
}

/* ══════════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
══════════════════════════════════════════════════════════════ */
.whatsapp-float {
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}
.whatsapp-float:hover {
  background: #20ba5a;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}
.whatsapp-pulse {
  background: rgba(37,211,102,0.4);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  80%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   SCROLL INDICATOR
══════════════════════════════════════════════════════════════ */
.scroll-indicator { animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════════════════════════
   PARTICLES CANVAS
══════════════════════════════════════════════════════════════ */
#particles-js canvas { position: absolute !important; inset: 0; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .orb-1, .orb-2, .orb-3 { display: none; }
  .hero-grid { opacity: 0.05; }
}
