/* Custom Styles - Enhanced with More Life & Vibes */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Ensure in-page anchor scrolling accounts for sticky navbar height */
section[id] {
  scroll-margin-top: 5rem; /* adjust if navbar height changes */
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 4.25rem;
  }
}

/* Basic responsive media defaults */
img {
  max-width: 100%;
  height: auto;
}

video,
model-viewer,
iframe {
  max-width: 100%;
}

/* ===== ROOT VARIABLES FOR EASY THEMING ===== */
:root {
  --primary: #A81F24;
  --primary-glow: rgba(168, 31, 36, 0.4);
  --secondary: #0A482B;
  --accent: #119B4D;
  --accent-glow: rgba(17, 155, 77, 0.5);
  --bg-dark: #0f1419;
  --text-light: #f8fafc;
}

/* ===== ANIMATED GRADIENT BACKGROUND ===== */
.animated-gradient-bg {
  background: linear-gradient(-45deg, #0A482B, #A81F24, #119B4D, #1a1a2e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* ===== FLOATING PARTICLES ANIMATION ===== */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  animation: floatParticle 8s ease-in-out infinite;
}

.particle-1 { width: 10px; height: 10px; background: var(--accent); top: 20%; left: 10%; animation-delay: 0s; }
.particle-2 { width: 6px; height: 6px; background: var(--primary); top: 60%; left: 80%; animation-delay: 1s; }
.particle-3 { width: 8px; height: 8px; background: rgba(255,255,255,0.8); top: 80%; left: 20%; animation-delay: 2s; }
.particle-4 { width: 12px; height: 12px; background: var(--accent-glow); top: 30%; left: 70%; animation-delay: 3s; }
.particle-5 { width: 5px; height: 5px; background: rgba(255,255,255,0.6); top: 50%; left: 40%; animation-delay: 4s; }
.particle-6 { width: 7px; height: 7px; background: var(--primary-glow); top: 10%; left: 60%; animation-delay: 2.5s; }
.particle-7 { width: 9px; height: 9px; background: var(--accent); top: 70%; left: 90%; animation-delay: 1.5s; }
.particle-8 { width: 4px; height: 4px; background: rgba(255,255,255,0.7); top: 40%; left: 5%; animation-delay: 3.5s; }

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  25% { transform: translateY(-30px) translateX(10px) scale(1.2); opacity: 0.8; }
  50% { transform: translateY(-15px) translateX(-15px) scale(0.9); opacity: 0.5; }
  75% { transform: translateY(-40px) translateX(5px) scale(1.1); opacity: 0.7; }
}

/* ===== GLOW EFFECTS ===== */
.glow-primary {
  box-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(168, 31, 36, 0.2);
}

.glow-accent {
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(17, 155, 77, 0.2);
}

.glow-text {
  text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(17, 155, 77, 0.3);
}

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px var(--accent-glow), 0 0 10px rgba(17, 155, 77, 0.2); }
  50% { box-shadow: 0 0 25px var(--accent-glow), 0 0 50px rgba(17, 155, 77, 0.4); }
}

/* ===== STAGGERED FADE IN ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.8s ease-out forwards; }
.animate-fade-in-right { animation: fadeInRight 0.8s ease-out forwards; }
.animate-fade-in-scale { animation: fadeInScale 0.6s ease-out forwards; }
.animate-bounce-in { animation: bounceIn 0.8s ease-out forwards; }

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }
.delay-600 { animation-delay: 0.6s; opacity: 0; }
.delay-700 { animation-delay: 0.7s; opacity: 0; }
.delay-800 { animation-delay: 0.8s; opacity: 0; }

/* Line clamp utility classes */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Legacy fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ENHANCED CARD HOVER EFFECTS ===== */
.card-hover-effect {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.card-hover-effect:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-hover-effect:hover::before {
  left: 100%;
}

/* ===== MAGNETIC HOVER EFFECT ===== */
.magnetic-hover {
  transition: transform 0.3s ease;
}

/* ===== FLOATING ANIMATION FOR ELEMENTS ===== */
.float-animation {
  animation: floatElement 6s ease-in-out infinite;
}

.float-animation-slow {
  animation: floatElement 8s ease-in-out infinite;
}

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

/* ===== SHIMMER EFFECT ===== */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* ===== PULSING DOT INDICATOR ===== */
.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
  50% { transform: translateY(-50%) scale(1.5); opacity: 0.5; }
}

/* ===== RTL SUPPORT FOR ARABIC ===== */
html.rtl {
  direction: rtl;
}

html.rtl body.rtl-body {
  text-align: right;
}

/* Keep explicitly centered content centered in RTL */
html.rtl body.rtl-body .text-center {
  text-align: center;
}

/* ===== BORDER GRADIENT ANIMATION ===== */
.border-gradient-animate {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
}

.border-gradient-animate::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--secondary), var(--primary));
  border-radius: 1.5rem;
  animation: rotateBorder 4s linear infinite;
  z-index: -1;
}

.border-gradient-animate::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: inherit;
  border-radius: calc(1.5rem - 2px);
  z-index: -1;
}

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

/* ===== ICON BOUNCE ON HOVER ===== */
.icon-bounce:hover i,
.icon-bounce:hover svg {
  animation: iconBounce 0.4s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-4px); }
  50% { transform: translateY(2px); }
  75% { transform: translateY(-2px); }
}

/* ===== TYPEWRITER EFFECT ===== */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--accent);
  white-space: nowrap;
  animation: typewriter 3.5s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent); }
}

/* Gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, #A81F24 0%, #E52128 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, #0A482B 0%, #119B4D 100%);
}

.gradient-accent-radial {
  background: radial-gradient(ellipse at center, var(--accent) 0%, transparent 70%);
}

/* ===== ENHANCED HERO GRADIENT ===== */
.hero-gradient {
  background: linear-gradient(135deg, #0A482B 0%, #0f2d1a 40%, #1a1a2e 60%, #A81F24 100%);
  position: relative;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(17, 155, 77, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168, 31, 36, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== WAVE ANIMATION FOR SECTIONS ===== */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #A81F24, #0A482B);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #E52128, #119B4D);
}

/* Image zoom effect */
.image-zoom {
  overflow: hidden;
}

.image-zoom img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-zoom:hover img {
  transform: scale(1.1);
}

/* ===== ENHANCED BUTTON EFFECTS ===== */
.btn-hover-slide {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn-hover-slide::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.4s ease;
  z-index: -1;
}

.btn-hover-slide:hover::before {
  left: 100%;
}

.btn-hover-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Ripple effect button */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Loading spinner */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #A81F24;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== STAT COUNTER ANIMATION ===== */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ===== ICON SPIN ON HOVER ===== */
.icon-spin-hover:hover i {
  animation: iconSpin 0.6s ease;
}

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

/* Responsive utilities */
@media (max-width: 768px) {
  .text-responsive {
    font-size: 0.9rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Accessibility */
.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-to-content:focus {
  left: 0;
  top: 0;
  background: #A81F24;
  color: white;
  padding: 10px;
}

/* Utility: hide scrollbars on carousels */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Utility: fade edges for horizontal overflow containers */
.mask-edges {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

/* Utility: scroll padding so first/last items can center nicely */
.scroll-pad-24 {
  scroll-padding-left: 24px;
  scroll-padding-right: 24px;
}

/* ===== ENHANCED CERTIFICATES CARDS ===== */
.certificate-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.certificate-card:hover {
  transform: translateY(-8px) rotateZ(2deg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

/* Certificates viewport and sizing */
.cert-viewport {
  position: relative;
  min-height: 560px;
}
.cert-item .cert-image-wrap {
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.cert-item img.cert-image {
  max-height: 540px;
  width: auto;
  object-fit: contain;
}

/* Focus effect: center slide larger */
.cert-item {
  transition: transform 0.35s ease, z-index 0.35s ease, box-shadow 0.35s ease;
  transform-origin: center bottom;
}
.cert-item .cert-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-radius: 1.75rem;
  overflow: hidden;
}
.cert-item .cert-image {
  transition: transform 0.6s ease;
}
.cert-item .cert-card:hover .cert-image {
  transform: scale(1.05);
}
.cert-item.cert-center {
  transform: scale(1.04);
  z-index: 10;
}
.cert-item.cert-center .cert-card {
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.18);
  transform: translateY(-8px);
}

/* Make certificate section more flexible on small screens */
@media (max-width: 768px) {
  .cert-viewport {
    min-height: auto;
  }
  .cert-item .cert-image-wrap {
    height: auto;
    padding: 1rem;
  }
  .cert-item img.cert-image {
    max-height: 320px;
    width: 100%;
  }
}

/* Carousel arrows */
.carousel-arrow {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  border: 2px solid rgba(17, 24, 39, 0.1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  background: #ffffff;
  color: #111827;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.carousel-arrow:hover {
  background: #A81F24;
  border-color: #A81F24;
  color: #ffffff;
  transform: scale(1.1);
}

/* Form validation styles */
.form-control.is-invalid {
  border-color: #dc2626;
}

.form-control.is-valid {
  border-color: #16a34a;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.toast.success {
  border-left: 4px solid #16a34a;
}

.toast.error {
  border-left: 4px solid #dc2626;
}

.toast.warning {
  border-left: 4px solid #f59e0b;
}

.toast.info {
  border-left: 4px solid #A81F24;
}

/* ===== ENHANCED VIEWER CHIPS ===== */
.viewer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  color: #374151;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.viewer-chip:hover {
  background: #ffffff;
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(17, 155, 77, 0.2);
}
.viewer-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  transition: transform 0.3s ease;
}
.viewer-chip:hover .viewer-chip-icon {
  transform: rotate(15deg) scale(1.1);
}
.viewer-chip-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.showroom-fab {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
}
.showroom-fab-core {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.showroom-fab:hover .showroom-fab-core {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.showroom-fab-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  border: 2px dashed rgba(0,0,0,0.08);
  animation: ringPulse 2s linear infinite;
}
@keyframes ringPulse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Aspect ratio utility to avoid arbitrary class syntax */
.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

/* Overlays and panels */
.showroom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1rem;
}
.panel-card {
  width: 100%;
  max-width: 920px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}
.panel-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}
.panel-close {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.panel-close:hover {
  background: #f9fafb;
}
.panel-content {
  padding: 1rem;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.panel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #374151;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.panel-item i {
  font-size: 1.25rem;
}
.panel-item:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.panel-list {
  display: grid;
  gap: 0.5rem;
}
.panel-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  color: #374151;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.panel-list-item:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Support strip */
.support-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.5rem 0.75rem;
}
.support-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(1.1) blur(4px);
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.support-hide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.support-hide-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.support-hidden {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* ===== PROCESS STEP CONNECTOR LINE ===== */
.process-step {
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1rem;
  width: calc(2rem + 2px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.process-step:last-child::after {
  display: none;
}

@media (max-width: 768px) {
  .process-step::after {
    display: none;
  }
}

/* ===== SECTION HEADING UNDERLINE ===== */
.heading-underline {
  position: relative;
  display: inline-block;
}

.heading-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* ===== ENERGY ICON ANIMATION ===== */
.energy-pulse {
  animation: energyPulse 2s ease-in-out infinite;
}

@keyframes energyPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.2); }
}

/* ===== TOOLTIP STYLES ===== */
.tooltip-trigger {
  position: relative;
  cursor: help;
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #1f2937;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.tooltip-trigger:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* ===== GLASSMORPHISM ===== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== NEON GLOW TEXT ===== */
.neon-text {
  color: #fff;
  text-shadow: 
    0 0 5px var(--accent),
    0 0 10px var(--accent),
    0 0 20px var(--accent),
    0 0 40px var(--accent);
}

/* ===== ROTATING BORDER ===== */
.rotating-border {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.rotating-border::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(transparent, var(--accent), transparent 30%);
  animation: rotateBorder 4s linear infinite;
}

.rotating-border > * {
  position: relative;
  z-index: 1;
  background: inherit;
  border-radius: inherit;
}
