/* Section-Specific Styles */

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-black);
  color: var(--green);
  margin-bottom: var(--space-8);
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

.loading-bar {
  width: 300px;
  height: 4px;
  background: rgba(0, 255, 127, 0.2);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-full);
}

.loading-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  animation: loadingProgress 2s ease-in-out;
  width: 100%;
}

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

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  z-index: 9999;
  transition: width 0.1s;
  width: 0;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 999;
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--black);
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  box-shadow: 0 10px 40px var(--green-glow);
  opacity: 0;
  transform: translateY(100px);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.sticky-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px var(--green-glow);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  left: var(--space-8);
  width: 60px;
  height: 60px;
  background: rgba(0, 255, 127, 0.1);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  opacity: 0;
  transition: all var(--transition-base);
  position: fixed;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: var(--green);
}

.back-to-top:hover i {
  color: var(--black);
}

.back-to-top i {
  color: var(--green);
  font-size: var(--fs-2xl);
}

.back-to-top .percentage {
  position: absolute;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--green);
  bottom: -20px;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 100px;
  right: var(--space-8);
  width: 60px;
  height: 60px;
  background: rgba(0, 255, 127, 0.1);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  background: var(--green);
  transform: rotate(180deg);
}

.theme-toggle i {
  color: var(--green);
  font-size: var(--fs-2xl);
  transition: color var(--transition-base);
}

.theme-toggle:hover i {
  color: var(--black);
}

/* Live Stats */
.live-stats {
  position: fixed;
  top: 180px;
  right: var(--space-8);
  background: rgba(0, 255, 127, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid var(--green);
  padding: var(--space-5);
  z-index: 999;
  min-width: 200px;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.live-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
}

.live-stat:last-child {
  margin-bottom: 0;
}

.live-stat-label {
  color: var(--gray-light);
  font-weight: var(--fw-semibold);
}

.live-stat-value {
  color: var(--green);
  font-weight: var(--fw-black);
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
}

/* Purchase Ticker */
.purchase-ticker {
  position: fixed;
  bottom: 120px;
  left: var(--space-8);
  background: rgba(0, 255, 127, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid var(--green);
  padding: var(--space-4) var(--space-5);
  z-index: 999;
  max-width: 350px;
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
  opacity: 0;
  transform: translateX(-400px);
  transition: all var(--transition-base);
}

.purchase-ticker.show {
  opacity: 1;
  transform: translateX(0);
}

.purchase-ticker-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.purchase-avatar {
  width: 40px;
  height: 40px;
  background: var(--green);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-extrabold);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  flex-shrink: 0;
}

.purchase-text {
  flex: 1;
}

.purchase-name {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-1);
}

.purchase-product {
  font-size: var(--fs-xs);
  color: var(--gray-light);
}

.purchase-time {
  font-size: 11px;
  color: var(--gray);
  margin-top: var(--space-1);
}

/* Matrix Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

/* Light Mode Adjustments */
body.light-mode .services,
body.light-mode .features,
body.light-mode footer {
  background: var(--off-white);
}

body.light-mode .hero,
body.light-mode .pricing,
body.light-mode .testimonials,
body.light-mode .cta {
  background: var(--white);
}

body.light-mode .service-card,
body.light-mode .feature-card,
body.light-mode .pricing-card,
body.light-mode .testimonial-card {
  background: var(--white);
  color: var(--black);
  border-color: rgba(0, 255, 127, 0.3);
}

body.light-mode p,
body.light-mode .stat-label,
body.light-mode .section-subtitle {
  color: var(--gray);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4 {
  color: var(--black);
}
