/* ============================================
   DAWA.AI - Section Specific Styles (Enhanced)
   Future Tech Design
   ============================================ */

/* ========== Scenarios Section Enhancements ========== */

.scenarios-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

.scenarios-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-400) 50%, transparent 100%);
  opacity: 0.15;
}

.scenarios-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.4;
}

/* ========== FilmOS Section Enhancements ========== */

.filmos-section {
  background: var(--bg-dark);
}

.filmos-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.filmos-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  opacity: 0.3;
}

/* FilmOS Section Title Typography Enhancement */
.filmos-section .section-title {
  letter-spacing: 0.08em;
  word-spacing: 0.15em;
  font-weight: var(--font-bold);
  text-transform: none;
}

.filmos-section .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gradient-primary);
  margin: 16px auto 0;
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.filmos-section .section-subtitle {
  letter-spacing: 0.18em;
  word-spacing: 0.25em;
  font-weight: var(--font-medium);
  font-size: 1rem;
  color: var(--text-muted);
}

/* ========== Milestones Section Enhancements ========== */

.milestones-section {
  background: linear-gradient(180deg, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
}

.milestones-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.04) 100%);
}

.milestones-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-400) 50%, transparent 100%);
  opacity: 0.2;
}

/* ========== Works Section Enhancements ========== */

.works-section {
  background: var(--bg-dark);
}

.works-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
  background-size: 45px 45px;
  pointer-events: none;
  opacity: 0.25;
}

.works-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-400) 50%, transparent 100%);
  opacity: 0.25;
}

/* ========== Contact Section Enhancements ========== */

.contact-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
  filter: blur(60px);
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-400) 50%, transparent 100%);
  opacity: 0.15;
}

/* ========== Gradient SVG Definitions (Inline) ========== */

.hero-lines svg defs {
  position: absolute;
}

/* ========== Line Gradient Definitions ========== */

#lineGradient1 stop:first-child {
  stop-color: #00d4ff;
}

#lineGradient1 stop:last-child {
  stop-color: #00a2d4;
}

#lineGradient2 stop:first-child {
  stop-color: #00f0ff;
}

#lineGradient2 stop:last-child {
  stop-color: #00d4ff;
}

/* ========== Animated Gradient Borders ========== */

.scenario-card.featured::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: var(--gradient-border);
  border-radius: var(--radius-2xl);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.scenario-card.featured:hover::after {
  opacity: 1;
  animation: pulse 2s ease-in-out infinite;
}

/* ========== Hover Card Glow Effects ========== */

.scenario-card:hover .scenario-icon {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* ========== Workflow Animation ========== */

.workflow-diagram .workflow-steps {
  position: relative;
}

.workflow-diagram .workflow-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg,
    var(--color-primary-400) 0%,
    var(--color-accent-400) 50%,
    var(--color-neon-400) 100%);
  opacity: 0.4;
  z-index: 1;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.workflow-step .step-node::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--color-accent-400);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.workflow-step:hover .step-node::after {
  opacity: 1;
  animation: pulse 1s ease-in-out infinite;
}

/* ========== Timeline Animations ========== */

.timeline-item.current .timeline-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
}

/* ========== Works Card Hover Effects ========== */

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.work-card:hover::before {
  opacity: 1;
}

/* ========== Filter Button Active Animation ========== */

.filter-btn.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: var(--glow-primary);
}

/* ========== Form Focus Effects ========== */

.form-input:focus + .form-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* ========== Social Link Hover ========== */

.social-link::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid var(--color-accent-400);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-normal);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.social-link:hover::before {
  opacity: 1;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ========== Back to Top Glow ========== */

.back-to-top::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--color-accent-400);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.back-to-top:hover::before {
  opacity: 0.6;
}

/* ========== Particle Styles ========== */

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent-400);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 10s linear infinite;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.particle:nth-child(2n) {
  background: var(--color-neon-400);
  animation-delay: 2s;
}

.particle:nth-child(3n) {
  width: 6px;
  height: 6px;
  animation-delay: 4s;
}

.particle:nth-child(4n) {
  background: var(--color-gold-400);
  animation-delay: 6s;
}

/* ========== Section Header Glow ========== */

.section-header::after {
  content: '';
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* ========== Stat Number Gradient ========== */

.stat-number::selection {
  background: rgba(0, 212, 255, 0.3);
}

/* ========== Hero Badge Glow ========== */

.hero-badge::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1px solid var(--color-accent-400);
  border-radius: var(--radius-full);
  opacity: 0.4;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* ========== Visual Card Pulse ========== */

.visual-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: var(--gradient-border);
  border-radius: var(--radius-2xl);
  z-index: -1;
  opacity: 0.4;
}

/* ========== Hero Stats FX Component ========== */

.hero-stats-fx {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-bottom: 48px;
  position: relative;
  padding: 20px 0;
}

.stat-fx-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  animation: statFXEntrance 0.8s ease forwards;
  animation-delay: calc(var(--delay, 0) * 1ms);
  opacity: 0;
}

.stat-fx-item:nth-child(1) { --delay: 0; }
.stat-fx-item:nth-child(2) { --delay: 200; }
.stat-fx-item:nth-child(3) { --delay: 400; }

/* Glow Background */
.stat-fx-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: glowPulseFX 3s ease-in-out infinite;
  border-radius: 50%;
  z-index: 0;
}

/* Ring with Particles */
.stat-fx-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ringRotate 20s linear infinite;
  z-index: 1;
}

.stat-fx-item:nth-child(2) .stat-fx-ring {
  animation: ringRotateReverse 15s linear infinite;
}

.stat-fx-item:nth-child(3) .stat-fx-ring {
  animation: ringRotate 18s linear infinite;
}

.ring-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-accent-400);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.4);
  animation: particleOrbit 4s linear infinite;
}

.ring-particle:nth-child(1) { animation-delay: 0s; top: 0; left: 50%; transform: translateX(-50%); }
.ring-particle:nth-child(2) { animation-delay: 1s; top: 50%; right: 0; transform: translateY(-50%); }
.ring-particle:nth-child(3) { animation-delay: 2s; bottom: 0; left: 50%; transform: translateX(-50%); }
.ring-particle:nth-child(4) { animation-delay: 3s; top: 50%; left: 0; transform: translateY(-50%); }

/* Content Container */
.stat-fx-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
}

/* Icon */
.stat-fx-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  color: var(--bg-dark);
  font-size: var(--font-xl);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
  animation: iconBounce 2s ease-in-out infinite;
}

.stat-fx-item:nth-child(2) .stat-fx-icon {
  animation-delay: 0.3s;
}

.stat-fx-item:nth-child(3) .stat-fx-icon {
  animation-delay: 0.6s;
}

/* Number */
.stat-fx-number {
  font-size: var(--font-5xl);
  font-weight: var(--font-black);
  background: var(--gradient-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  animation: numberShimmer 4s ease infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.3));
}

.stat-fx-item:nth-child(2) .stat-fx-number {
  animation-delay: 1s;
}

.stat-fx-item:nth-child(3) .stat-fx-number {
  animation-delay: 2s;
}

/* Label */
.stat-fx-label {
  font-size: var(--font-sm);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: var(--font-medium);
  text-transform: uppercase;
  animation: hologramFlicker 5s ease-in-out infinite;
}

/* Pulse Ring */
.stat-fx-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRingFX 4s ease-in-out infinite;
  z-index: -1;
}

.stat-fx-item:nth-child(2) .stat-fx-pulse {
  animation-delay: 1.5s;
}

.stat-fx-item:nth-child(3) .stat-fx-pulse {
  animation-delay: 3s;
}

/* Connector Lines */
.stat-fx-connectors {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.connector-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
  background-size: 200% 100%;
  animation: connectorFlow 3s ease infinite;
}

.connector-line:nth-child(1) {
  left: calc(33% - 30px);
  width: 60px;
}

.connector-line:nth-child(2) {
  left: calc(66% - 30px);
  width: 60px;
}

/* Hover Effects */
.stat-fx-item:hover .stat-fx-glow {
  animation-duration: 1s;
  box-shadow: 0 0 80px rgba(0, 212, 255, 0.6);
}

.stat-fx-item:hover .stat-fx-icon {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.7);
}

.stat-fx-item:hover .stat-fx-number {
  filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.5));
}

/* ========== Footer ICP Styles ========== */

.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.icp-info, .police-icp-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.icp-link, .police-icp-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.icp-link:hover, .police-icp-link:hover {
  color: rgba(255, 255, 255, 0.8);
}