/* ========================================
   LaraTech - Custom Styles
   ======================================== */

/* CSS Variables for Theme */
:root {
  --color-teal-blue: #00c8c8;
  --color-neon-blue: #00ffff;
  --color-electric-orange: #ff6b00;
  --color-jet-black: #0a0a0a;
  --color-off-white: #f3f4f6;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
}

.dark {
  --glass-bg: rgba(0, 0, 0, 0.3);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.5);
}

/* Smooth Scrolling with respect to prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Glassmorphism Effects */
.glass-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 var(--glass-shadow);
}

.glass-button {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.glass-button:hover {
  background: rgba(0, 200, 200, 0.2);
  border-color: var(--color-teal-blue);
  transform: scale(1.05);
}

.glass-badge {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
}

/* Navigation Styles */
#navbar {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#navbar.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-teal-blue),
    var(--color-neon-blue)
  );
  transition: width 0.3s ease;
}

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

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

.nav-link.active {
  color: var(--color-teal-blue);
}

.nav-link-mobile {
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-link-mobile:hover {
  color: var(--color-teal-blue);
  padding-left: 1rem;
}

.nav-link-mobile.active {
  color: var(--color-teal-blue);
  font-weight: 600;
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-teal-blue),
    var(--color-neon-blue),
    var(--color-electric-orange)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

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

/* Glitch Effect */
.glitch-text {
  position: relative;
  animation: glitch 5s infinite;
}

@keyframes glitch {
  0%,
  96%,
  100% {
    text-shadow: none;
  }
  97% {
    text-shadow: 3px 0 var(--color-electric-orange),
      -3px 0 var(--color-neon-blue);
  }
  98% {
    text-shadow: -3px 0 var(--color-electric-orange),
      3px 0 var(--color-neon-blue);
  }
  99% {
    text-shadow: 3px 0 var(--color-neon-blue),
      -3px 0 var(--color-electric-orange);
  }
}

/* Button Styles */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    var(--color-teal-blue),
    var(--color-neon-blue)
  );
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 200, 200, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

.secondary-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--color-teal-blue);
  font-weight: 600;
  border: 2px solid var(--color-teal-blue);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: var(--color-teal-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 200, 200, 0.4);
}

/* Magnetic Button Effect */
.magnetic-button {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3D Tilt Cards */
.service-card-3d,
.project-card-3d,
.testimonial-card {
  perspective: 1000px;
  transition: transform 0.3s ease;
}

.service-card-3d:hover,
.project-card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

/* Neural Network Particles Background */
#particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(0, 200, 200, 0.02) 100%
  );
  z-index: 0; /* behind content */
  pointer-events: none; /* never block interactions */
}

#neural-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Circuit Board Pattern Overlay */
/* Disable intrusive pseudo-element overlays for production */
#particles-container::before {
  content: none;
}

/* Data Stream Glow Effect */
#particles-container::after {
  content: none;
}

@keyframes data-flow {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
  }
  33% {
    transform: scale(1.1) rotate(120deg);
    opacity: 0.8;
  }
  66% {
    transform: scale(0.9) rotate(240deg);
    opacity: 0.6;
  }
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stat Cards */
.stat-card {
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.1);
}

/* Partner Logos */
.partner-logo {
  transition: all 0.3s ease;
  cursor: default;
  opacity: 1; /* Ensure visibility by default */
  visibility: visible;
}

.partner-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 200, 200, 0.3);
}

/* Loading Animation Arc */
@keyframes draw-arc {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .service-card-3d:hover,
  .project-card-3d:hover {
    transform: none;
  }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
  .glass-card,
  .glass-nav,
  .glass-button {
    border: 2px solid currentColor;
    background: var(--color-jet-black);
  }

  .text-gradient {
    -webkit-text-fill-color: currentColor;
  }
}

/* Print Styles */
@media print {
  #navbar,
  #loading-overlay,
  footer,
  .cta-button,
  .secondary-button {
    display: none !important;
  }

  .glass-card {
    border: 1px solid #000;
    background: white;
  }
}

/* Focus Styles for Keyboard Navigation */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-teal-blue);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* Selection Styles */
::selection {
  background: var(--color-teal-blue);
  color: white;
}

::-moz-selection {
  background: var(--color-teal-blue);
  color: white;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-jet-black);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--color-teal-blue),
    var(--color-neon-blue)
  );
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-electric-orange);
}

/* Utility Classes */
.blur-effect {
  filter: blur(10px);
  transition: filter 0.3s ease;
}

.blur-effect:hover {
  filter: blur(0);
}

.neon-glow {
  box-shadow: 0 0 10px var(--color-neon-blue), 0 0 20px var(--color-neon-blue),
    0 0 30px var(--color-neon-blue);
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.9);
  }
}

/* Text Reveal Animation */
.text-reveal {
  opacity: 0;
  animation: text-reveal 0.05s steps(1) forwards;
}

@keyframes text-reveal {
  to {
    opacity: 1;
  }
}

/* Loading Spinner (Fallback) */
.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--color-teal-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 20px var(--glass-shadow);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner-text {
  flex: 1;
  min-width: 250px;
  font-size: 0.875rem;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-accept-btn,
.cookie-reject-btn,
.cookie-learn-more-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.cookie-accept-btn {
  background: linear-gradient(
    135deg,
    var(--color-teal-blue),
    var(--color-neon-blue)
  );
  color: white;
  border-color: var(--color-teal-blue);
}

.cookie-accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 200, 200, 0.3);
}

.cookie-reject-btn {
  background: transparent;
  color: var(--color-teal-blue);
  border-color: var(--color-teal-blue);
}

.cookie-reject-btn:hover {
  background: rgba(0, 200, 200, 0.1);
}

.cookie-learn-more-btn {
  background: transparent;
  color: var(--color-electric-orange);
  border-color: var(--color-electric-orange);
}

.cookie-learn-more-btn:hover {
  background: rgba(255, 107, 0, 0.1);
}

/* Form Styles */
input,
textarea,
select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-teal-blue);
  box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.1);
}

/* Image Lazy Load Placeholder */
img[data-src] {
  filter: blur(10px);
  transition: filter 0.3s ease;
}

img[data-src].loaded {
  filter: blur(0);
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Before/After Slider */
.before-after-slider {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
}

.before-after-slider .after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.3s ease;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Performance Optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Dark Mode Specific Adjustments */
.dark .glass-card {
  background: rgba(15, 15, 15, 0.6);
}

.dark .glass-nav {
  background: rgba(10, 10, 10, 0.8);
}

/* Logo Theme Adjustments */
.logo-theme {
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  /* Add a subtle border to help visualize the logo area */
  border-radius: 4px;
  padding: 2px;
}

/* Ensure logo theme styles have high specificity */
html.light .logo-theme,
html.dark .logo-theme {
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Light mode logo adjustments - keep original colors for light background */
html.light .logo-theme {
  filter: none !important;
  opacity: 1 !important;
}

/* Dark mode logo adjustments - invert colors so black becomes white on dark background */
html.dark .logo-theme {
  filter: invert(1) !important;
  opacity: 1 !important;
}

/* Hover effects for logo in both themes */
.logo-theme:hover {
  transform: scale(1.05);
}

html.light .logo-theme:hover {
  filter: brightness(0.8) !important;
}

html.dark .logo-theme:hover {
  filter: invert(1) brightness(0.8) !important;
}

/* Footer Logo - always white/inverted for contrast on dark footer */
footer .logo-theme,
footer img[alt*="Logo"],
footer img[alt*="logo"] {
  filter: invert(1) brightness(2) !important;
  background: transparent !important;
}

footer .logo-theme:hover,
footer img[alt*="Logo"]:hover,
footer img[alt*="logo"]:hover {
  filter: invert(1) brightness(1.8) !important;
}

html.dark footer .logo-theme,
html.dark footer img[alt*="Logo"],
html.dark footer img[alt*="logo"] {
  filter: invert(1) brightness(2) !important;
}

html.light footer .logo-theme,
html.light footer img[alt*="Logo"],
html.light footer img[alt*="logo"] {
  filter: invert(1) brightness(2) !important;
}

/* Light Mode Specific Adjustments */
.light .glass-card {
  background: rgba(255, 255, 255, 0.7);
}

.light .glass-nav {
  background: rgba(255, 255, 255, 0.8);
}

/* Map Container */
.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Social Feed Embed */
.social-feed {
  max-height: 600px;
  overflow-y: auto;
}

.social-feed::-webkit-scrollbar {
  width: 6px;
}

/* Counter Animation */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Testimonial Slider Controls */
.slider-controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-controls button:hover {
  background: var(--color-teal-blue);
  transform: scale(1.1);
}

.slider-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Blog Card Styles */
.blog-card {
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
}

.blog-card img {
  transition: transform 0.3s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

/* Tag Cloud */
.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag:hover {
  background: var(--color-teal-blue);
  color: white;
  transform: scale(1.05);
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-teal-blue),
    var(--color-neon-blue),
    var(--color-electric-orange)
  );
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease;
  box-shadow: 0 0 10px rgba(0, 200, 200, 0.5);
}

/* AI-Themed Additional Effects */
.neural-glow {
  position: relative;
}

.neural-glow::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--color-teal-blue),
    var(--color-neon-blue),
    var(--color-electric-orange),
    var(--color-teal-blue)
  );
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: neural-pulse 3s ease-in-out infinite;
}

.neural-glow:hover::before {
  opacity: 0.7;
}

@keyframes neural-pulse {
  0%,
  100% {
    background-size: 200% 200%;
    background-position: 0% 50%;
  }
  50% {
    background-size: 200% 200%;
    background-position: 100% 50%;
  }
}

/* Binary Code Rain Effect */
.binary-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.binary-rain::before {
  content: "01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 200%;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: rgba(0, 200, 200, 0.3);
  line-height: 1.2;
  word-spacing: 20px;
  animation: binary-fall 20s linear infinite;
  white-space: pre-wrap;
  z-index: 1;
}

@keyframes binary-fall {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* Holographic Effect */
.holographic {
  background: linear-gradient(
    45deg,
    rgba(0, 200, 200, 0.1),
    rgba(0, 255, 255, 0.1),
    rgba(255, 107, 0, 0.1),
    rgba(0, 200, 200, 0.1)
  );
  background-size: 400% 400%;
  animation: holographic-shift 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.holographic::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: holographic-scan 3s ease-in-out infinite;
}

@keyframes holographic-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes holographic-scan {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Language Dropdown with Flags */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 200, 200, 0.5);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-dropdown-btn:hover {
  background: rgba(0, 200, 200, 0.2);
  border-color: var(--color-teal-blue);
  transform: scale(1.05);
}

.lang-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.lang-code {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Mobile: Flag only */
@media (max-width: 768px) {
  .lang-dropdown-btn {
    padding: 0.5rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    justify-content: center;
  }

  .lang-flag {
    font-size: 1.5rem;
  }

  .lang-code {
    display: none;
  }

  .lang-dropdown-btn svg {
    display: none;
  }
}

.lang-dropdown-content {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.lang-dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-option:hover {
  background: rgba(0, 200, 200, 0.2);
}

.lang-option.active {
  background: rgba(0, 200, 200, 0.3);
  border-left: 3px solid var(--color-teal-blue);
}

.lang-option:first-child {
  border-radius: 0.5rem 0.5rem 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 0.5rem 0.5rem;
}

/* Theme Toggle - Sun/Moon Design */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 200, 200, 0.5);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--color-teal-blue);
  transform: scale(1.05);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: linear-gradient(
    135deg,
    var(--color-teal-blue),
    var(--color-neon-blue)
  );
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 1;
}

.dark .theme-toggle::before {
  transform: translateX(28px);
  background: linear-gradient(135deg, #1e293b, #334155);
}

.sun-icon,
.moon-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  line-height: 1;
  transition: all 0.3s ease;
  z-index: 2;
}

.sun-icon {
  left: 6px;
  opacity: 1;
}

.moon-icon {
  right: 6px;
  opacity: 0.3;
}

.dark .sun-icon {
  opacity: 0.3;
}

.dark .moon-icon {
  opacity: 1;
}

/* Floating WhatsApp CTA Button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9999;
  animation: float-bounce 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--color-teal-blue),
    var(--color-neon-blue)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 200, 200, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(0, 200, 200, 0.6);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: white;
}

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

/* Full Width Navbar - Removed conflicting styles */

/* Technologies & Partners Floating Animation */
.tech-logo,
.partner-logo {
  transition: all 0.3s ease;
  animation: float-gentle 6s ease-in-out infinite;
}

.tech-logo:hover,
.partner-logo:hover {
  animation-play-state: paused;
  transform: translateY(-20px) scale(1.15) !important;
  filter: brightness(1.3) drop-shadow(0 10px 20px rgba(0, 200, 200, 0.3));
}

.tech-logo:nth-child(1) {
  animation-delay: 0s;
}
.tech-logo:nth-child(2) {
  animation-delay: 0.5s;
}
.tech-logo:nth-child(3) {
  animation-delay: 1s;
}
.tech-logo:nth-child(4) {
  animation-delay: 1.5s;
}
.tech-logo:nth-child(5) {
  animation-delay: 2s;
}
.tech-logo:nth-child(6) {
  animation-delay: 2.5s;
}
.tech-logo:nth-child(7) {
  animation-delay: 3s;
}
.tech-logo:nth-child(8) {
  animation-delay: 3.5s;
}

@keyframes float-gentle {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Loading Screen Enhancements */
.loading-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--color-teal-blue),
    var(--color-neon-blue)
  );
  border-radius: 50%;
  top: -10px;
  animation: particle-fall 8s linear infinite;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

@keyframes particle-fall {
  0% {
    top: -10px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: calc(100% + 10px);
    opacity: 0;
  }
}

.logo-glow-pulse {
  background: radial-gradient(
    circle,
    rgba(0, 255, 255, 0.4) 0%,
    transparent 70%
  );
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Loading screen logo - always inverted for dark background */
#loading-logo {
  filter: invert(1) brightness(2) !important;
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 1rem;
  background: var(--color-jet-black);
  color: white;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}
