/* ============================================= */
/* ============ BASE STYLES =================== */
/* ============================================= */

:root {
  --primary: #00BFFF;
  --primary-dark: #0095D9;
  --secondary: #FFFFFF;
  --accent: linear-gradient(90deg, #FFA500, #FFD700, #9370DB);
  --dark: #0F172A;
  --gray-light: #F1F5F9;
  --gray-dark: #64748B;
  --perspective: 1000px;
  --depth: 100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8fafc;
  color: #334155;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  perspective: var(--perspective);
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* ============================================= */
/* ============ DARK MODE STYLES ============== */
/* ============================================= */

.dark {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #1e293b;
  --dark: #f8fafc;
  --gray-light: #1e293b;
  --gray-dark: #94a3b8;
}

.dark body {
  background-color: #0f172a;
  color: #e2e8f0;
}

/* Text Colors */
.dark .text-gray-800,
.dark .text-gray-900,
.dark h1, 
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
  color: #f8fafc !important;
}

.dark .text-gray-600,
.dark .text-gray-700,
.dark p {
  color: #94a3b8 !important;
}

/* Backgrounds */
.dark .bg-white {
  background-color: #1e293b !important;
}

.dark .bg-gray-50,
.dark .bg-gray-100 {
  background-color: #0f172a !important;
}

.dark .bg-blue-50,
.dark .bg-blue-100 {
  background-color: rgba(30, 41, 59, 0.8) !important;
}

/* Borders */
.dark .border-gray-200,
.dark .border-gray-300 {
  border-color: #334155 !important;
}

.dark .border-blue-500 {
  border-color: #3b82f6 !important;
}

/* Cards */
.dark .service-card,
.dark .team-card,
.dark .faq-item,
.dark .card-3d {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

.dark .service-card::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 41, 59, 0) 100%) !important;
}

/* Forms */
.dark .form-input,
.dark textarea,
.dark select {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

.dark .form-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

/* FAQ */
.dark .faq-toggle {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
}

.dark .faq-content {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border-top-color: #334155 !important;
}

/* Navbar */
.dark .navbar-glow {
  background: rgba(30, 41, 59, 0.9) !important;
}

/* Footer */
.dark footer {
  background: linear-gradient(to bottom, #0f172a, #020617) !important;
}

.dark .footer-grid::before {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
              linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px) !important;
}

/* Social Icons */
.dark .social-icon {
  background-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* ============================================= */
/* ============ BACKGROUND EFFECTS ============ */
/* ============================================= */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(0, 191, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(0, 191, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

.tech-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  z-index: -1;
  animation: float3d 15s infinite ease-in-out;
  transform-style: preserve-3d;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #00BFFF, transparent 70%);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #9370DB, transparent 70%);
  bottom: 10%;
  right: 10%;
  animation-delay: 3s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #FFA500, transparent 70%);
  top: 60%;
  left: 30%;
  animation-delay: 6s;
}

@keyframes float3d {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(0); }
  25% { transform: translate3d(50px, 50px, var(--depth)) rotateY(15deg); }
  50% { transform: translate3d(0, 100px, 0) rotateY(0); }
  75% { transform: translate3d(-50px, 50px, var(--depth)) rotateY(-15deg); }
}

.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.floating-particles::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(59, 130, 246, 0.1)'/%3E%3C/svg%3E");
  background-size: 20px 20px;
  animation: float 50s linear infinite;
}

/* ============================================= */
/* ============ NAVBAR STYLES ================= */
/* ============================================= */

.navbar-glow {
  box-shadow: 0 4px 30px rgba(0, 191, 255, 0.1);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

.dark .navbar-glow {
  box-shadow: 0 4px 30px rgba(59, 130, 246, 0.1);
}

.navbar-glow:hover {
  box-shadow: 0 4px 30px rgba(0, 191, 255, 0.2);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
  color: #334155;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.dark .nav-link {
  color: #e2e8f0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.dark [data-tooltip]::after {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: 120%;
}

/* Logo Animation */
.logo-container {
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05) rotate(-5deg);
}

.logo-circle {
  transition: all 0.3s ease;
  background: var(--primary);
}

.logo-container:hover .logo-circle {
  background: linear-gradient(135deg, #00BFFF, #9370DB);
  transform: rotate(15deg);
}

/* ============================================= */
/* ============ HERO SECTION ================== */
/* ============================================= */

.hero-gradient {
  background: linear-gradient(135deg, rgba(0,191,255,0.1) 0%, rgba(255,255,255,0.1) 100%);
}

.dark .hero-gradient {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 41, 59, 0.1) 100%);
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translate3d(0, 0px, 0); }
  50% { transform: translate3d(0, 15px, 0); }
  100% { transform: translate3d(0, -0px, 0); }
}

/* ============================================= */
/* ============ 3D CARD EFFECTS =============== */
/* ============================================= */

.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  will-change: transform;
}

.floating-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* ============================================= */
/* ============ CIRCUIT BACKGROUND ============ */
/* ============================================= */

.circuit-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2300bfff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.dark .circuit-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233b82f6' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.circuit-animated {
  animation: circuit-animation 20s linear infinite;
}

@keyframes circuit-animation {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

/* ============================================= */
/* ============ FORM STYLES =================== */
/* ============================================= */

.form-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  background-color: white;
  color: #334155;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.2);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.dark .form-input {
  background-color: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

.dark .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ============================================= */
/* ============ CARD EFFECTS ================== */
/* ============================================= */

.service-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  color: #334155;
}

.dark .service-card {
  background: #1e293b;
  color: #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 0;
}

.dark .service-card::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 41, 59, 0) 100%);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 191, 255, 0.1);
}

.dark .service-card:hover {
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.service-card:hover::before {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.dark .service-card:hover::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(30, 41, 59, 0) 100%);
}

/* ============================================= */
/* ============ PULSE EFFECT ================== */
/* ============================================= */

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 191, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 191, 255, 0); }
}

.dark .pulse {
  animation: pulse-dark 2s infinite;
}

@keyframes pulse-dark {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ============================================= */
/* ============ SOCIAL ICONS ================== */
/* ============================================= */

.social-icon {
  transition: all 0.3s ease;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
}

.social-icon.facebook {
  background: #EFF6FF;
  color: #3B82F6;
}

.social-icon.facebook:hover {
  background: #3B82F6 !important;
  color: white !important;
}

.social-icon.twitter {
  background: #F0F9FF;
  color: #1DA1F2;
}

.social-icon.twitter:hover {
  background: #1DA1F2 !important;
  color: white !important;
}

.social-icon.instagram {
  background: #FDF2F8;
  color: #E1306C;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D) !important;
  color: white !important;
}

.social-icon.linkedin {
  background: #ECFDF5;
  color: #0077B5;
}

.social-icon.linkedin:hover {
  background: #0077B5 !important;
  color: white !important;
}

.dark .social-icon {
  background: #334155 !important;
  color: #e2e8f0 !important;
}

.dark .social-icon.facebook:hover {
  background: #3B82F6 !important;
  color: white !important;
}

.dark .social-icon.twitter:hover {
  background: #1DA1F2 !important;
  color: white !important;
}

.dark .social-icon.instagram:hover {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D) !important;
  color: white !important;
}

.dark .social-icon.linkedin:hover {
  background: #0077B5 !important;
  color: white !important;
}

/* ============================================= */
/* ============ MAP CONTAINER ================= */
/* ============================================= */

.map-container {
  position: relative;
  z-index: 10;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}

/* ============================================= */
/* ============ FAQ STYLES ==================== */
/* ============================================= */

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-toggle {
  width: 100%;
  padding: 1rem;
  text-align: left;
  background: #f8fafc;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-content {
  display: none;
  padding: 1rem;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.faq-content.active {
  display: block;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Dark mode adjustments */
.dark .faq-item {
  border-color: #334155;
}

.dark .faq-toggle {
  background: #1e293b;
  color: #e2e8f0;
}

.dark .faq-content {
  background: #1e293b;
  border-top-color: #334155;
  color: #e2e8f0;
}

/* ============================================= */
/* ============ FOOTER STYLES ================ */
/* ============================================= */

.footer-grid {
  position: relative;
  overflow: hidden;
}

.footer-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(0, 191, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(0, 191, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.dark .footer-grid::before {
  background: 
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px);
}

/* ============================================= */
/* ============ BUTTON EFFECTS ================ */
/* ============================================= */

.btn-primary {
  background: var(--primary);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(0, 191, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .btn-outline:hover {
  background: rgba(59, 130, 246, 0.1);
}

/* ============================================= */
/* ============ TYPOGRAPHY ==================== */
/* ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #0F172A;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
  color: #f8fafc;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: #64748B;
  margin-bottom: 1rem;
}

.dark p {
  color: #94a3b8;
}

.text-gradient {
  background: linear-gradient(90deg, #00BFFF, #9370DB);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dark .text-gradient {
  background: linear-gradient(90deg, #3b82f6, #9333ea);
}

/* ============================================= */
/* ============ UTILITY CLASSES =============== */
/* ============================================= */

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 5rem;
  height: 0.25rem;
  background: var(--primary);
  margin: 1rem auto;
}

/* ============================================= */
/* ============ CHAT WIDGET =================== */
/* ============================================= */

.chat-container {
  width: 20rem;
  background: white;
  border-radius: 0.5rem 0.5rem 0 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 50;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.dark .chat-container {
  background: #1e293b;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.chat-container.open {
  transform: translateY(0);
  opacity: 1;
}

.chat-header {
  background: var(--primary);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  height: 16rem;
  padding: 1rem;
  overflow-y: auto;
  background: #F8FAFC;
}

.dark .chat-messages {
  background: #0f172a;
}

.message {
  margin-bottom: 1rem;
  display: flex;
}

.message.bot {
  justify-content: flex-start;
}

.message.user {
  justify-content: flex-end;
}

.message-content {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
}

.bot .message-content {
  background: white;
  border-radius: 0 1rem 1rem 1rem;
}

.dark .bot .message-content {
  background: #334155;
  color: #e2e8f0;
}

.user .message-content {
  background: var(--primary);
  color: white;
  border-radius: 1rem 1rem 0 1rem;
}

.chat-input-container {
  padding: 1rem;
  border-top: 1px solid #E2E8F0;
  background: white;
}

.dark .chat-input-container {
  background: #1e293b;
  border-top-color: #334155;
}

/* ============================================= */
/* ============ FLOATING BUTTONS ============== */
/* ============================================= */

.floating-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: fixed;
  right: 1.5rem;
  z-index: 40;
  transition: all 0.3s ease;
  cursor: pointer;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.whatsapp {
  background: #25D366;
  color: white;
  bottom: 7rem;
}

.floating-btn.phone {
  background: var(--primary);
  color: white;
  bottom: 11rem;
}

.floating-btn.chat {
  background: var(--primary);
  color: white;
  bottom: 1.5rem;
}

/* ============================================= */
/* ============ ANIMATION CLASSES ============= */
/* ============================================= */

@keyframes floating {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(0); }
  25% { transform: translate3d(10px, 15px, 20px) rotateY(5deg); }
  50% { transform: translate3d(0, 20px, 0) rotateY(0); }
  75% { transform: translate3d(-10px, 15px, 20px) rotateY(-5deg); }
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes gradient-x {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 8s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.section-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================= */
/* ============ RESPONSIVE STYLES ============= */
/* ============================================= */

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }

  .section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .faq-toggle {
    padding: 0.75rem;
  }

  .chat-container {
    width: 90%;
    right: 5%;
  }

  .floating-btn {
    width: 3rem;
    height: 3rem;
  }

  .floating-btn.whatsapp {
    bottom: 6rem;
  }

  .floating-btn.phone {
    bottom: 10rem;
  }

  .floating-btn.chat {
    bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .tech-orb {
    display: none;
  }

  .section-title::after {
    width: 3rem;
  }

  .chat-container {
    width: 95%;
    right: 2.5%;
  }
}

/* ============================================= */
/* ============ MODAL STYLES =================== */
/* ============================================= */

.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 9999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.modal.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10000 !important;
}

.modal-content {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: white !important;
  border-radius: 12px !important;
  max-width: 600px !important;
  width: 100% !important;
  max-height: 90vh !important;
  height: auto !important;
  overflow-y: auto !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
  padding: 0 !important;
  color: #1f2937 !important;
  position: relative !important;
}

.dark .modal-content {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.modal-header {
  padding: 24px !important;
  border-bottom: 2px solid #e5e7eb !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: white !important;
  flex-shrink: 0 !important;
}

.dark .modal-header {
  background-color: #1e293b !important;
  border-bottom-color: #334155 !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: flex !important;
}

.modal-header h2 {
  font-size: 24px !important;
  font-weight: bold !important;
  margin: 0 !important;
  color: #1f2937 !important;
}

.dark .modal-header h2 {
  color: #f1f5f9 !important;
}

.modal-body {
  padding: 24px !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #374151 !important;
  overflow-y: auto !important;
}

.dark .modal-body {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.modal-body h3 {
  font-weight: 600 !important;
  margin-top: 16px !important;
  margin-bottom: 8px !important;
  color: #00BFFF !important;
}

.dark .modal-body h3 {
  color: #3b82f6 !important;
}

.modal-body p {
  margin-bottom: 12px !important;
  color: #374151 !important;
}

.dark .modal-body p {
  color: #94a3b8 !important;
}

.modal-body ul {
  margin-left: 20px !important;
  margin-bottom: 12px !important;
  color: #374151 !important;
}

.dark .modal-body ul {
  color: #94a3b8 !important;
}

.modal-body li {
  margin-bottom: 8px !important;
  color: #374151 !important;
}

.dark .modal-body li {
  color: #94a3b8 !important;
}

.modal-body strong {
  color: #1f2937 !important;
  font-weight: 600 !important;
}

.dark .modal-body strong {
  color: #f1f5f9 !important;
}

.modal-close {
  background: none !important;
  border: none !important;
  font-size: 32px !important;
  cursor: pointer !important;
  color: #6b7280 !important;
  transition: color 0.2s ease !important;
  padding: 0 !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.dark .modal-close {
  color: #9ca3af !important;
}

.modal-close:hover {
  color: #00BFFF !important;
}

.dark .modal-close:hover {
  color: #3b82f6 !important;
}