/* ============================================
   2.5D SPATIAL DYNAMIC UI SYSTEM
   ============================================ */

/* BimiSeek AI page skin (loaded first so overrides win when needed) */
@import url('bimiseek.css');

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 157, 255, 0.5);
}

/* ===== Hide Horizontal Scrollbar ===== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ===== 2.5D Keyframe Animations ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes cardFadeIn25D {
  from {
    opacity: 0;
    transform: perspective(800px) translateZ(-30px) translateY(8px);
  }
  to {
    opacity: 1;
    transform: perspective(800px) translateZ(0) translateY(0);
  }
}

@keyframes particleDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(15px, -20px); opacity: 0.6; }
}

@keyframes breatheGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 157, 255, 0); }
  50% { box-shadow: 0 0 12px 2px rgba(59, 157, 255, 0.08); }
}

@keyframes searchGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(59, 157, 255, 0.1), 0 0 20px rgba(59, 157, 255, 0.05); }
  50% { box-shadow: 0 0 0 3px rgba(59, 157, 255, 0.15), 0 0 30px rgba(59, 157, 255, 0.08); }
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -20px); }
  66% { transform: translate(-15px, 15px); }
}

@keyframes roadmapPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

@keyframes toastSlideIn25D {
  from { transform: translate(20px, 20px); opacity: 0; }
  to { transform: translate(0, 0); opacity: 1; }
}

/* ===== Skeleton Loading (Flow Light) ===== */
.skeleton-item {
  background: linear-gradient(
    90deg,
    rgba(30, 36, 52, 0.6) 25%,
    rgba(59, 157, 255, 0.15) 37%,
    rgba(30, 36, 52, 0.6) 63%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
}

/* ===== Card Entry (Perspective Depth Fade-in) ===== */
.card-enter {
  animation: cardFadeIn25D 0.35s ease-out forwards;
  opacity: 0;
}

/* ===== Project Cards (5px 3D Thickness + Perspective) ===== */
.project-card {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
  transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
  box-shadow: 0 5px 0 0 rgba(20, 25, 40, 0.9), 5px 5px 16px rgba(59, 157, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 50%;
  bottom: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  pointer-events: none;
  border-radius: inherit;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 9px 0 0 rgba(20, 25, 40, 0.9), 5px 13px 24px rgba(59, 157, 255, 0.2);
  border-color: rgba(59, 157, 255, 0.3);
}

/* ===== Category Tags (4px 3D Thickness) ===== */
.category-tag {
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 4px 0 0 rgba(20, 25, 40, 0.9), 3px 3px 8px rgba(59, 157, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}
.category-tag:hover {
  background: rgba(59, 157, 255, 0.15);
  color: #93c5fd;
}
.category-tag.active {
  background: rgba(59, 157, 255, 0.2);
  color: #3B9DFF;
  border-color: rgba(59, 157, 255, 0.4);
  box-shadow: 0 4px 0 0 rgba(20, 25, 40, 0.9), 3px 4px 12px rgba(59, 157, 255, 0.2);
}

/* ===== Search Focus (Flow Light Border) ===== */
#searchInput {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#searchInput:focus {
  border-color: rgba(59, 157, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 157, 255, 0.1), 0 0 20px rgba(59, 157, 255, 0.05), inset 0 0 8px rgba(59, 157, 255, 0.03);
  animation: searchGlow 2s ease-in-out infinite;
}

/* ===== Back to Top Button ===== */
#backToTop {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  box-shadow: 0 4px 0 0 rgba(20, 25, 40, 0.9), 3px 3px 10px rgba(59, 157, 255, 0.1);
}
#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}
#backToTop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 rgba(20, 25, 40, 0.9), 3px 5px 14px rgba(59, 157, 255, 0.15);
}
#backToTop:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 rgba(20, 25, 40, 0.9), 2px 3px 6px rgba(59, 157, 255, 0.08);
}

/* ===== Empty State ===== */
#emptyState.visible {
  display: flex;
}

/* ===== Tag Pills (4px 3D) ===== */
.tag-pill {
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 3px 0 0 rgba(20, 25, 40, 0.8), 2px 2px 6px rgba(59, 157, 255, 0.08);
}
.tag-pill:hover {
  background: rgba(59, 157, 255, 0.2);
  color: #93c5fd;
  box-shadow: 0 4px 0 0 rgba(20, 25, 40, 0.9), 3px 3px 10px rgba(59, 157, 255, 0.12);
}

/* ===== Icon Container ===== */
.icon-container {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover .icon-container {
  background: rgba(59, 157, 255, 0.15);
  box-shadow: 0 0 8px rgba(59, 157, 255, 0.1);
}

/* ===== Load More Button (4px 3D + Click Sink) ===== */
#loadMoreBtn {
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  box-shadow: 0 4px 0 0 rgba(20, 25, 40, 0.9), 4px 4px 12px rgba(59, 157, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
#loadMoreBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 rgba(20, 25, 40, 0.9), 4px 6px 16px rgba(59, 157, 255, 0.2);
}
#loadMoreBtn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 rgba(20, 25, 40, 0.9), 2px 3px 8px rgba(59, 157, 255, 0.1);
}

/* ===== Responsive Fine-tuning ===== */
@media (max-width: 640px) {
  .project-card {
    padding: 0.875rem;
    transform: none;
  }
  .project-card:hover {
    transform: translateY(-3px);
  }
}

/* ===== Lazy Image Fade-in ===== */
.lazy-img {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lazy-img.loaded {
  opacity: 1;
}

/* ===== Reduced Motion Preference ===== */
@media (prefers-reduced-motion: reduce) {
  .skeleton-item {
    animation: none;
  }
  .card-enter {
    animation: none;
    opacity: 1;
  }
  .project-card {
    transition: none;
    transform: none;
  }
  .category-tag {
    transition: none;
  }
  .hero-orb {
    animation: none;
  }
  .service-card {
    transition: none;
  }
  .particle {
    animation: none;
    display: none;
  }
  #searchInput:focus {
    animation: none;
  }
  .roadmap-dot.status-in_progress::after {
    animation: none;
  }
  #backToTop {
    transition: none;
  }
  #loadMoreBtn {
    transition: none;
  }
}

/* ============================================
   DARK MODE (PRIMARY) - 2.5D SPATIAL
   ============================================ */
html.dark body,
body {
  background-color: #0E1119;
  color: #E8EEF8;
}

/* ===== Light Mode Base ===== */
html:not(.dark) body {
  background-color: #F5F8FC;
  color: #1e293b;
}

/* ===== Header / Nav (5px 3D Panel) ===== */
header,
nav[class*="sticky"] {
  box-shadow: 0 5px 0 0 rgba(20, 25, 40, 0.9), 0 6px 20px rgba(59, 157, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
html:not(.dark) header,
html:not(.dark) nav[class*="sticky"] {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(226, 232, 240, 0.6);
  box-shadow: 0 5px 0 0 rgba(200, 210, 225, 0.8), 0 6px 20px rgba(100, 120, 150, 0.06);
}

/* ===== Project Cards - Light Mode ===== */
html:not(.dark) .project-card {
  background-color: #ffffff;
  border-color: rgba(226, 232, 240, 0.8);
  color: #1e293b;
  transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
  box-shadow: 0 5px 0 0 rgba(200, 210, 225, 0.8), 5px 5px 16px rgba(100, 120, 150, 0.08);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-left: 1px solid rgba(0, 0, 0, 0.03);
}
html:not(.dark) .project-card::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
}
html:not(.dark) .project-card:hover {
  box-shadow: 0 9px 0 0 rgba(200, 210, 225, 0.8), 5px 13px 24px rgba(100, 120, 150, 0.12);
  border-color: rgba(46, 134, 232, 0.3);
  transform: translateY(-4px);
}
html:not(.dark) .project-card .text-dark-400,
html:not(.dark) .project-card .text-dark-500 {
  color: #7a8699;
}
html:not(.dark) .project-card .text-dark-100,
html:not(.dark) .project-card .text-dark-200 {
  color: #1e293b;
}
html:not(.dark) .project-card .text-dark-300 {
  color: #475569;
}

/* ===== Search - Light Mode ===== */
html:not(.dark) #searchInput {
  background-color: #f1f5f9;
  border-color: rgba(203, 213, 225, 0.6);
  color: #1e293b;
}
html:not(.dark) #searchInput::placeholder {
  color: #a8b5c7;
}
html:not(.dark) #searchInput:focus {
  border-color: rgba(46, 134, 232, 0.5);
  box-shadow: 0 0 0 3px rgba(46, 134, 232, 0.1), 0 0 20px rgba(46, 134, 232, 0.05);
  animation: none;
}

/* ===== Category Tags - Light Mode ===== */
html:not(.dark) .category-tag {
  color: #475569;
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(226, 232, 240, 0.6);
  box-shadow: 0 4px 0 0 rgba(200, 210, 225, 0.8), 3px 3px 8px rgba(100, 120, 150, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-left: 1px solid rgba(0, 0, 0, 0.02);
}
html:not(.dark) .category-tag:hover {
  background: rgba(46, 134, 232, 0.1);
  color: #2E86E8;
}
html:not(.dark) .category-tag.active {
  background: rgba(46, 134, 232, 0.15);
  color: #2563eb;
  border-color: rgba(46, 134, 232, 0.4);
  box-shadow: 0 4px 0 0 rgba(200, 210, 225, 0.8), 3px 4px 12px rgba(46, 134, 232, 0.12);
}

/* ===== Skeleton - Light Mode ===== */
html:not(.dark) .skeleton-item {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 200% 100%;
}

/* ===== Back to Top - Light Mode ===== */
html:not(.dark) #backToTop {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(226, 232, 240, 0.6);
  color: #7a8699;
  box-shadow: 0 4px 0 0 rgba(200, 210, 225, 0.8), 3px 3px 10px rgba(100, 120, 150, 0.06);
}
html:not(.dark) #backToTop:hover {
  background: #f1f5f9;
  color: #1e293b;
  box-shadow: 0 6px 0 0 rgba(200, 210, 225, 0.8), 3px 5px 14px rgba(100, 120, 150, 0.08);
}

/* ===== Tag Pills - Light Mode ===== */
html:not(.dark) .tag-pill {
  color: #475569;
  background: rgba(241, 245, 249, 0.8);
  box-shadow: 0 3px 0 0 rgba(200, 210, 225, 0.8), 2px 2px 6px rgba(100, 120, 150, 0.05);
}
html:not(.dark) .tag-pill:hover {
  background: rgba(46, 134, 232, 0.15);
  color: #2E86E8;
  box-shadow: 0 4px 0 0 rgba(200, 210, 225, 0.8), 3px 3px 10px rgba(46, 134, 232, 0.1);
}

/* ===== Icon Container - Light Mode ===== */
html:not(.dark) .icon-container {
  background: rgba(241, 245, 249, 0.8);
}
html:not(.dark) .project-card:hover .icon-container {
  background: rgba(46, 134, 232, 0.1);
}

/* ===== Load More - Light Mode ===== */
html:not(.dark) #loadMoreBtn {
  background: #f1f5f9;
  border-color: rgba(226, 232, 240, 0.6);
  color: #475569;
  box-shadow: 0 4px 0 0 rgba(200, 210, 225, 0.8), 4px 4px 12px rgba(100, 120, 150, 0.06);
}
html:not(.dark) #loadMoreBtn:hover {
  background: #e2e8f0;
  color: #1e293b;
  box-shadow: 0 6px 0 0 rgba(200, 210, 225, 0.8), 4px 6px 16px rgba(100, 120, 150, 0.08);
}

/* ===== Empty State - Light Mode ===== */
html:not(.dark) #emptyState svg,
html:not(.dark) #emptyState p {
  color: #a8b5c7;
}

/* ===== Utility Classes - Light Mode ===== */
html:not(.dark) .text-dark-400 {
  color: #7a8699;
}
html:not(.dark) .bg-dark-800 {
  background-color: #f1f5f9;
}
html:not(.dark) .border-dark-600\/50 {
  border-color: rgba(203, 213, 225, 0.5);
}
html:not(.dark) .hover\:bg-dark-800:hover {
  background-color: #e2e8f0;
}
html:not(.dark) .hover\:text-dark-200:hover {
  color: #334155;
}
html:not(.dark) .text-dark-100 {
  color: #1e293b;
}
html:not(.dark) .text-dark-300 {
  color: #475569;
}

/* ===== Toast (6px 3D Floating Badge) ===== */
#appToastContent.toast-info {
  background: #3B9DFF;
  color: white;
  box-shadow: 0 6px 0 0 rgba(20, 25, 40, 0.9), 6px 6px 20px rgba(59, 157, 255, 0.15);
  animation: toastSlideIn25D 0.3s ease-out;
}
#appToastContent.toast-warning {
  background: #FF8A5B;
  color: white;
  box-shadow: 0 6px 0 0 rgba(20, 25, 40, 0.9), 6px 6px 20px rgba(255, 138, 91, 0.15);
  animation: toastSlideIn25D 0.3s ease-out;
}
#appToastContent.toast-error {
  background: #ef4444;
  color: white;
  box-shadow: 0 6px 0 0 rgba(20, 25, 40, 0.9), 6px 6px 20px rgba(239, 68, 68, 0.15);
  animation: toastSlideIn25D 0.3s ease-out;
}
#appToastContent.toast-success {
  background: #44D8C8;
  color: white;
  box-shadow: 0 6px 0 0 rgba(20, 25, 40, 0.9), 6px 6px 20px rgba(68, 216, 200, 0.15);
  animation: toastSlideIn25D 0.3s ease-out;
}

/* ============================================
   ENTERPRISE PROMOTIONAL WEBSITE - 2.5D
   ============================================ */

html {
  scroll-behavior: smooth;
}

/* ===== Hero Section (2.5D Depth) ===== */
.hero-section {
  background: linear-gradient(135deg, #0E1119 0%, #111827 40%, #0f172a 70%, #0E1119 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 157, 255, 0.5), transparent 70%);
  top: -100px;
  right: -100px;
  animation: heroFloat 8s ease-in-out infinite;
  box-shadow: inset 0 0 40px rgba(59, 157, 255, 0.2), 0 0 60px rgba(59, 157, 255, 0.1);
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
  bottom: -50px;
  left: -50px;
  animation: heroFloat 10s ease-in-out infinite reverse;
  box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.2), 0 0 50px rgba(139, 92, 246, 0.1);
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(68, 216, 200, 0.4), transparent 70%);
  top: 40%;
  left: 30%;
  animation: heroFloat 12s ease-in-out infinite;
  box-shadow: inset 0 0 20px rgba(68, 216, 200, 0.2), 0 0 40px rgba(68, 216, 200, 0.1);
}

/* ===== Hero CTA (4px 3D + Colored Shadow) ===== */
.hero-cta-primary {
  background: linear-gradient(135deg, #3B9DFF, #8b5cf6);
  color: white;
  box-shadow: 0 4px 0 0 rgba(20, 25, 40, 0.9), 4px 4px 16px rgba(59, 157, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.hero-cta-primary:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 rgba(20, 25, 40, 0.9), 4px 6px 20px rgba(59, 157, 255, 0.3);
}
.hero-cta-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 rgba(20, 25, 40, 0.9), 2px 3px 8px rgba(59, 157, 255, 0.15);
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  box-shadow: 0 4px 0 0 rgba(20, 25, 40, 0.9), 3px 3px 10px rgba(59, 157, 255, 0.08);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 rgba(20, 25, 40, 0.9), 3px 5px 14px rgba(59, 157, 255, 0.12);
}
.hero-cta-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 rgba(20, 25, 40, 0.9), 2px 3px 6px rgba(59, 157, 255, 0.06);
}

/* ===== Section Title ===== */
.section-title {
  background: linear-gradient(135deg, #3B9DFF, #44D8C8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Service Cards (5px 3D + Glass-morphism) ===== */
.service-card {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
  transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 0 0 rgba(20, 25, 40, 0.9), 5px 5px 16px rgba(59, 157, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 50%;
  bottom: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  pointer-events: none;
  border-radius: inherit;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 9px 0 0 rgba(20, 25, 40, 0.9), 5px 13px 24px rgba(59, 157, 255, 0.2);
  border-color: rgba(59, 157, 255, 0.3);
}

/* ===== Service Process Steps ===== */
.process-step {
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: linear-gradient(90deg, rgba(59, 157, 255, 0.3), rgba(59, 157, 255, 0.1));
  box-shadow: 0 1px 3px rgba(59, 157, 255, 0.1);
}

@media (max-width: 640px) {
  .process-step:not(:last-child)::after {
    display: none;
  }
}

/* ===== Roadmap Timeline (3D Depth) ===== */
.roadmap-timeline {
  position: relative;
  padding-left: 32px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, rgba(59, 157, 255, 0.5), rgba(139, 92, 246, 0.4), rgba(100, 116, 139, 0.2));
  box-shadow: 1px 0 4px rgba(59, 157, 255, 0.15);
  border-radius: 2px;
}

.roadmap-item {
  position: relative;
  padding-bottom: 32px;
}

.roadmap-item:last-child {
  padding-bottom: 0;
}

/* ===== Roadmap Dots (5px Micro-3D) ===== */
.roadmap-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 3px 0 0 rgba(20, 25, 40, 0.8), 2px 2px 6px rgba(59, 157, 255, 0.1);
}

.roadmap-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.roadmap-dot.status-planned {
  background: rgba(59, 157, 255, 0.15);
}
.roadmap-dot.status-planned::after {
  background: #3B9DFF;
}

.roadmap-dot.status-in_progress {
  background: rgba(255, 138, 91, 0.15);
}
.roadmap-dot.status-in_progress::after {
  background: #FF8A5B;
  animation: roadmapPulse 2s ease-in-out infinite;
}

.roadmap-dot.status-completed {
  background: rgba(68, 216, 200, 0.15);
}
.roadmap-dot.status-completed::after {
  background: #44D8C8;
}

/* ===== Roadmap Badges (4px 3D) ===== */
.roadmap-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
  box-shadow: 0 3px 0 0 rgba(20, 25, 40, 0.8), 2px 2px 6px rgba(59, 157, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.roadmap-badge.status-planned {
  background: rgba(59, 157, 255, 0.15);
  color: #3B9DFF;
}

.roadmap-badge.status-in_progress {
  background: rgba(255, 138, 91, 0.15);
  color: #FF8A5B;
}

.roadmap-badge.status-completed {
  background: rgba(68, 216, 200, 0.15);
  color: #44D8C8;
}

/* ===== Nav Active State (Glow + Deeper Shadow) ===== */
.nav-link.active {
  color: #3B9DFF;
  background: rgba(59, 157, 255, 0.1);
  box-shadow: 0 0 8px rgba(59, 157, 255, 0.1);
}

/* ===== Language Dropdown ===== */
#langDropdown.show {
  display: block;
}

.lang-option.active {
  color: #3B9DFF;
  background: rgba(59, 157, 255, 0.1);
}

/* ===== Contact Form (5px 3D Panel + Focus Flow Light) ===== */
.form-error.show {
  display: block;
}

#contactForm input,
#contactForm textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 0 0 rgba(20, 25, 40, 0.8), 2px 2px 6px rgba(59, 157, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: rgba(59, 157, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 157, 255, 0.1), 0 0 20px rgba(59, 157, 255, 0.05);
}

#contactForm input.error,
#contactForm textarea.error {
  border-color: rgba(239, 68, 68, 0.5);
}

/* ===== Contact Submit Button (4px 3D) ===== */
#contactForm button[type="submit"],
.contact-submit-btn {
  box-shadow: 0 4px 0 0 rgba(20, 25, 40, 0.9), 4px 4px 12px rgba(59, 157, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
#contactForm button[type="submit"]:hover,
.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 rgba(20, 25, 40, 0.9), 4px 6px 16px rgba(59, 157, 255, 0.2);
}
#contactForm button[type="submit"]:active,
.contact-submit-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 rgba(20, 25, 40, 0.9), 2px 3px 8px rgba(59, 157, 255, 0.1);
}

/* ===== Contact Info Card (5px 3D) ===== */
.contact-info > div {
  box-shadow: 0 5px 0 0 rgba(20, 25, 40, 0.9), 5px 5px 16px rgba(59, 157, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== Footer (5px 3D Panel) ===== */
footer {
  background: rgba(14, 17, 25, 0.5);
  box-shadow: 0 -5px 0 0 rgba(20, 25, 40, 0.9), 0 -3px 12px rgba(59, 157, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================
   BACKGROUND PARTICLES (CSS-only)
   ============================================ */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: fixed;
  width: 2px;
  height: 2px;
  background: rgba(59, 157, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  animation: particleDrift 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 5s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 1.5s; animation-duration: 6s; }
.particle:nth-child(3) { left: 40%; top: 30%; animation-delay: 0.8s; animation-duration: 7s; width: 3px; height: 3px; background: rgba(68, 216, 200, 0.25); }
.particle:nth-child(4) { left: 55%; top: 75%; animation-delay: 2.2s; animation-duration: 5.5s; }
.particle:nth-child(5) { left: 70%; top: 15%; animation-delay: 3s; animation-duration: 6.5s; width: 3px; height: 3px; background: rgba(139, 92, 246, 0.25); }
.particle:nth-child(6) { left: 85%; top: 45%; animation-delay: 1s; animation-duration: 7.5s; }
.particle:nth-child(7) { left: 15%; top: 85%; animation-delay: 2.8s; animation-duration: 5.8s; }
.particle:nth-child(8) { left: 60%; top: 10%; animation-delay: 0.5s; animation-duration: 6.2s; width: 2px; height: 2px; background: rgba(68, 216, 200, 0.2); }
.particle:nth-child(9) { left: 90%; top: 70%; animation-delay: 1.8s; animation-duration: 5.2s; }
.particle:nth-child(10) { left: 35%; top: 50%; animation-delay: 3.5s; animation-duration: 6.8s; width: 3px; height: 3px; background: rgba(59, 157, 255, 0.2); }

/* ===== Breathing Glow on Key Elements ===== */
.nav-link.active {
  animation: breatheGlow 4s ease-in-out infinite;
}

/* ============================================
   LIGHT MODE - ENTERPRISE SECTIONS (2.5D)
   ============================================ */

html:not(.dark) .hero-section {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #faf5ff 100%);
}

html:not(.dark) .hero-cta-primary {
  box-shadow: 0 4px 0 0 rgba(200, 210, 225, 0.8), 4px 4px 16px rgba(46, 134, 232, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}
html:not(.dark) .hero-cta-primary:hover {
  box-shadow: 0 6px 0 0 rgba(200, 210, 225, 0.8), 4px 6px 20px rgba(46, 134, 232, 0.2);
}
html:not(.dark) .hero-cta-primary:active {
  box-shadow: 0 2px 0 0 rgba(200, 210, 225, 0.8), 2px 3px 8px rgba(46, 134, 232, 0.1);
}

html:not(.dark) .hero-cta-secondary {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
  box-shadow: 0 4px 0 0 rgba(200, 210, 225, 0.8), 3px 3px 10px rgba(100, 120, 150, 0.06);
}
html:not(.dark) .hero-cta-secondary:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 6px 0 0 rgba(200, 210, 225, 0.8), 3px 5px 14px rgba(100, 120, 150, 0.08);
}
html:not(.dark) .hero-cta-secondary:active {
  box-shadow: 0 2px 0 0 rgba(200, 210, 225, 0.8), 2px 3px 6px rgba(100, 120, 150, 0.04);
}

html:not(.dark) .hero-orb {
  opacity: 0.2;
}

html:not(.dark) .section-title {
  background: linear-gradient(135deg, #2E86E8, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html:not(.dark) .service-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(226, 232, 240, 0.6);
  transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
  box-shadow: 0 5px 0 0 rgba(200, 210, 225, 0.8), 5px 5px 16px rgba(100, 120, 150, 0.08);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-left: 1px solid rgba(0, 0, 0, 0.03);
}
html:not(.dark) .service-card::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
}
html:not(.dark) .service-card:hover {
  border-color: rgba(46, 134, 232, 0.3);
  box-shadow: 0 9px 0 0 rgba(200, 210, 225, 0.8), 5px 13px 24px rgba(100, 120, 150, 0.1);
  transform: translateY(-4px);
}

html:not(.dark) .roadmap-timeline::before {
  background: linear-gradient(to bottom, rgba(46, 134, 232, 0.3), rgba(139, 92, 246, 0.3), rgba(203, 213, 225, 0.3));
  box-shadow: 1px 0 3px rgba(100, 120, 150, 0.08);
}

html:not(.dark) .roadmap-item h4 {
  color: #1e293b;
}

html:not(.dark) .roadmap-item p {
  color: #7a8699;
}

html:not(.dark) .roadmap-dot {
  box-shadow: 0 3px 0 0 rgba(200, 210, 225, 0.8), 2px 2px 6px rgba(100, 120, 150, 0.06);
}

html:not(.dark) .roadmap-badge {
  box-shadow: 0 3px 0 0 rgba(200, 210, 225, 0.8), 2px 2px 6px rgba(100, 120, 150, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

html:not(.dark) .contact-info > div,
html:not(.dark) #contactForm > div > div,
html:not(.dark) #contactForm {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(226, 232, 240, 0.6);
  box-shadow: 0 5px 0 0 rgba(200, 210, 225, 0.8), 5px 5px 16px rgba(100, 120, 150, 0.06);
}

html:not(.dark) #contactForm input,
html:not(.dark) #contactForm textarea {
  background: #f8fafc;
  border-color: rgba(226, 232, 240, 0.6);
  color: #1e293b;
  box-shadow: 0 3px 0 0 rgba(200, 210, 225, 0.8), 2px 2px 6px rgba(100, 120, 150, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-left: 1px solid rgba(0, 0, 0, 0.02);
}

html:not(.dark) #contactForm input::placeholder,
html:not(.dark) #contactForm textarea::placeholder {
  color: #a8b5c7;
}

html:not(.dark) #contactForm label {
  color: #475569;
}

html:not(.dark) #contactForm input:focus,
html:not(.dark) #contactForm textarea:focus {
  border-color: rgba(46, 134, 232, 0.5);
  box-shadow: 0 0 0 3px rgba(46, 134, 232, 0.1), 0 0 20px rgba(46, 134, 232, 0.05);
}

html:not(.dark) #contactForm button[type="submit"],
html:not(.dark) .contact-submit-btn {
  box-shadow: 0 4px 0 0 rgba(200, 210, 225, 0.8), 4px 4px 12px rgba(46, 134, 232, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}
html:not(.dark) #contactForm button[type="submit"]:hover,
html:not(.dark) .contact-submit-btn:hover {
  box-shadow: 0 6px 0 0 rgba(200, 210, 225, 0.8), 4px 6px 16px rgba(46, 134, 232, 0.15);
}
html:not(.dark) #contactForm button[type="submit"]:active,
html:not(.dark) .contact-submit-btn:active {
  box-shadow: 0 2px 0 0 rgba(200, 210, 225, 0.8), 2px 3px 8px rgba(46, 134, 232, 0.08);
}

html:not(.dark) .contact-info > div {
  box-shadow: 0 5px 0 0 rgba(200, 210, 225, 0.8), 5px 5px 16px rgba(100, 120, 150, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-left: 1px solid rgba(0, 0, 0, 0.02);
}

html:not(.dark) footer {
  background: rgba(241, 245, 249, 0.5);
  border-color: rgba(226, 232, 240, 0.6);
  box-shadow: 0 -5px 0 0 rgba(200, 210, 225, 0.8), 0 -3px 12px rgba(100, 120, 150, 0.04);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

html:not(.dark) .nav-link {
  color: #475569;
}

html:not(.dark) .nav-link:hover {
  color: #1e293b;
  background: rgba(241, 245, 249, 0.8);
}

html:not(.dark) .nav-link.active {
  color: #2E86E8;
  background: rgba(46, 134, 232, 0.1);
  animation: none;
}

html:not(.dark) #langDropdown {
  background: #ffffff;
  border-color: rgba(226, 232, 240, 0.6);
  box-shadow: 0 5px 0 0 rgba(200, 210, 225, 0.8), 5px 5px 16px rgba(100, 120, 150, 0.08);
}

html:not(.dark) .lang-option {
  color: #475569;
}

html:not(.dark) .lang-option:hover {
  color: #1e293b;
  background: #f1f5f9;
}

html:not(.dark) .lang-option.active {
  color: #2E86E8;
  background: rgba(46, 134, 232, 0.1);
}

html:not(.dark) .process-step-number {
  background: rgba(46, 134, 232, 0.1);
}

html:not(.dark) .roadmap-badge.status-planned {
  background: rgba(46, 134, 232, 0.1);
  color: #2563eb;
}

html:not(.dark) .roadmap-badge.status-in_progress {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

html:not(.dark) .roadmap-badge.status-completed {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

/* ===== Light Mode Particles ===== */
html:not(.dark) .particle {
  background: rgba(46, 134, 232, 0.15);
}
html:not(.dark) .particle:nth-child(3),
html:not(.dark) .particle:nth-child(8) {
  background: rgba(68, 216, 200, 0.12);
}
html:not(.dark) .particle:nth-child(5) {
  background: rgba(139, 92, 246, 0.12);
}
html:not(.dark) .particle:nth-child(10) {
  background: rgba(46, 134, 232, 0.1);
}

/* ===== Light Mode Toast ===== */
html:not(.dark) #appToastContent.toast-info {
  box-shadow: 0 6px 0 0 rgba(200, 210, 225, 0.8), 6px 6px 20px rgba(46, 134, 232, 0.1);
}
html:not(.dark) #appToastContent.toast-warning {
  box-shadow: 0 6px 0 0 rgba(200, 210, 225, 0.8), 6px 6px 20px rgba(245, 158, 11, 0.1);
}
html:not(.dark) #appToastContent.toast-error {
  box-shadow: 0 6px 0 0 rgba(200, 210, 225, 0.8), 6px 6px 20px rgba(239, 68, 68, 0.1);
}
html:not(.dark) #appToastContent.toast-success {
  box-shadow: 0 6px 0 0 rgba(200, 210, 225, 0.8), 6px 6px 20px rgba(34, 197, 94, 0.1);
}

/* ============================================
   MOBILE RESPONSIVE (2.5D Adjusted)
   ============================================ */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
  }

  .hero-orb-1 {
    width: 200px;
    height: 200px;
  }

  .hero-orb-2 {
    width: 150px;
    height: 150px;
  }

  .hero-orb-3 {
    width: 100px;
    height: 100px;
  }

  .roadmap-timeline {
    padding-left: 28px;
  }

  .roadmap-dot {
    left: -28px;
    width: 20px;
    height: 20px;
  }

  .roadmap-dot::after {
    width: 8px;
    height: 8px;
  }

  .project-card {
    box-shadow: 0 4px 0 0 rgba(20, 25, 40, 0.9), 4px 4px 12px rgba(59, 157, 255, 0.1);
  }
  .project-card:hover {
    box-shadow: 0 7px 0 0 rgba(20, 25, 40, 0.9), 4px 10px 18px rgba(59, 157, 255, 0.15);
  }

  .service-card {
    box-shadow: 0 4px 0 0 rgba(20, 25, 40, 0.9), 4px 4px 12px rgba(59, 157, 255, 0.1);
  }

  .category-tag {
    box-shadow: 0 3px 0 0 rgba(20, 25, 40, 0.8), 2px 2px 6px rgba(59, 157, 255, 0.08);
  }

  .particle {
    display: none;
  }

  .particle:nth-child(1),
  .particle:nth-child(4),
  .particle:nth-child(7) {
    display: block;
    width: 1px;
    height: 1px;
  }
}

/* ===== Mobile Light Mode 2.5D ===== */
@media (max-width: 768px) {
  html:not(.dark) .project-card {
    box-shadow: 0 4px 0 0 rgba(200, 210, 225, 0.8), 4px 4px 12px rgba(100, 120, 150, 0.06);
  }
  html:not(.dark) .project-card:hover {
    box-shadow: 0 7px 0 0 rgba(200, 210, 225, 0.8), 4px 10px 18px rgba(100, 120, 150, 0.08);
  }
  html:not(.dark) .service-card {
    box-shadow: 0 4px 0 0 rgba(200, 210, 225, 0.8), 4px 4px 12px rgba(100, 120, 150, 0.06);
  }
  html:not(.dark) .category-tag {
    box-shadow: 0 3px 0 0 rgba(200, 210, 225, 0.8), 2px 2px 6px rgba(100, 120, 150, 0.04);
  }
}
