/*
Theme Name: Brainilab Techno Hub
Theme URI: https://brainilab.com/
Author: Brainilab Techno Hub
Description: Custom WordPress theme converted from the Brainilab Techno Hub HTML/CSS/JS website.
Version: 1.0.0
Text Domain: brainilab-techno-hub
*/

/* ==========================================================================
   Brainilab Techno Hub — Design System & Custom CSS Styles (Light Theme)
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(14, 165, 233, 0.35);
  
  --primary-cyan: #0284c7;
  --primary-blue: #2563eb;
  --primary-indigo: #4f46e5;
  --primary-purple: #7c3aed;
  --accent-emerald: #059669;
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #64748b;

  --gradient-brand: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #9333ea 100%);
  --gradient-glow: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(124, 58, 237, 0.06) 50%, transparent 70%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow-x: hidden;
  selection-background-color: #0284c7;
  selection-color: #ffffff;
}

::selection {
  background: rgba(2, 132, 199, 0.2);
  color: #0f172a;
}

/* Typography Gradient Helpers */
.text-gradient {
  background: linear-gradient(135deg, #0f172a 30%, #334155 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-brand {
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Grids & Orbs */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 30%, rgba(2, 132, 199, 0.08) 0%, rgba(124, 58, 237, 0.05) 35%, transparent 70%);
}

.bg-radial-glow-bottom {
  background: radial-gradient(circle at 50% 80%, rgba(147, 51, 234, 0.08) 0%, rgba(2, 132, 199, 0.05) 45%, transparent 70%);
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.glass-panel-glow {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 25px -5px rgba(2, 132, 199, 0.1);
}

.glass-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Interactive Card Styles */
.service-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.6), rgba(124, 58, 237, 0.4), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: 0 20px 35px -10px rgba(2, 132, 199, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
  border-color: rgba(2, 132, 199, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover .service-icon-box {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(124, 58, 237, 0.15));
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.2);
}

.service-card:hover .service-arrow {
  transform: translateX(4px);
  color: #0284c7;
}

/* Floating Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.15), 0 0 30px rgba(124, 58, 237, 0.08);
  }
  50% {
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.3), 0 0 45px rgba(124, 58, 237, 0.15);
  }
}

@keyframes radarSweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatReverse 7s ease-in-out infinite;
  animation-delay: -2.5s;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Button & CTA Styling */
.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #9333ea 100%);
  background-size: 200% 200%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.28);
  overflow: hidden;
  color: #ffffff;
}

.btn-primary:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4), 0 0 15px rgba(124, 58, 237, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
  color: #ffffff;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
}

/* Floating WhatsApp Quick Action Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5), 0 0 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px -5px rgba(37, 211, 102, 0.7), 0 0 25px rgba(37, 211, 102, 0.4);
  background: #20ba5a;
}

/* Pulse ring around WhatsApp button */
.pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 9999px;
  border: 2px solid #25d366;
  opacity: 0.8;
  animation: pulseRing 2.5s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* Section Reveal Animations on Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Modal Backdrop & Container */
.modal-overlay {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Interactive Showcase Tab Transitions */
.showcase-tab-btn.active {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15);
}

/* Form Input Focus Glow */
.form-input-tech {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  transition: all 0.25s ease;
}

.form-input-tech:focus {
  outline: none;
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2), 0 0 15px rgba(2, 132, 199, 0.15);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-float,
  .animate-float-delayed,
  .animate-pulse-glow,
  .reveal-on-scroll,
  .pulse-ring {
    animation: none !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}
