/* Combined CSS for EarthWatch Project */

/* Base Styles & Variables */
:root {
  /* Weather-Inspired Color Palette */
  --sky-morning: #87CEEB;
  --sky-noon: #4682B4;
  --sky-evening: #6A5ACD;
  --sky-night: #0F172A;
  --sun-light: #FFD700;
  --sun-intense: #FF8C00;
  --storm-light: #4B6587;
  --storm-dark: #2C3E50;
  --rain-light: #B0C4DE;
  --rain-heavy: #4682B4;
  --cloud-light: #F8F9FA;
  --cloud-dark: #BDC3C7;
  --earth-light: #228B22;
  --earth-dark: #1E5631;

  /* Alert Colors */
  --danger: #E74C3C;
  --warning: #F39C12;
  --success: #2ECC71;
  --info: #3498DB;

  /* Text Colors */
  --text-light: #F8F9FA;
  --text-dark: #2F4F4F;
  --text-muted: #7F8C8D;

  /* Glass Effects */
  --glass-light: rgba(255, 255, 255, 0.25);
  --glass-dark: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.18);

  /* Theme Variables */
  --primary: var(--sun-light);
  --primary-dark: var(--sun-intense);
  --secondary: var(--rain-heavy);
  --accent: var(--sky-evening);
  --danger: #E74C3C;
  --success: #2ECC71;

  /* Backgrounds */
  --bg-day: var(--sky-morning);
  --bg-night: var(--sky-night);
  --bg-card-day: var(--glass-light);
  --bg-card-night: var(--glass-dark);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 0.15s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
}

/* Base Theme (Dark) */
html:not(.light-theme) {
  --bg-primary: var(--bg-night);
  --bg-secondary: var(--storm-dark);
  --text-primary: var(--text-light);
  --text-secondary: var(--cloud-dark);
  --glass-bg: var(--bg-card-night);
  --glass-border: rgba(255, 255, 255, 0.15);
}

/* Light Theme */
html.light-theme {
  --bg-primary: var(--bg-day);
  --bg-secondary: var(--cloud-light);
  --text-primary: var(--text-dark);
  --text-secondary: var(--text-muted);
  --glass-bg: var(--bg-card-day);
  --glass-border: rgba(0, 0, 0, 0.1);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Exo 2", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal),
    color var(--transition-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Loader Styles */
.earthwatch-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #02101a 0%, #00070d 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Orbitron', 'Arial Narrow', sans-serif;
  overflow: hidden;
}

.radar-hud {
  position: relative;
  width: 320px;
  padding: 30px;
  background: rgba(0, 20, 40, 0.3);
  border: 1px solid rgba(0, 180, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 100, 255, 0.1),
              inset 0 0 20px rgba(0, 100, 255, 0.1);
  border-radius: 5px;
}

.radar-container {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 25px;
}

.radar-dish {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(0, 150, 255, 0.1),
              0 0 20px rgba(0, 150, 255, 0.1);
}

.radar-dish:before, .radar-dish:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 180, 255, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radar-dish:before {
  width: 66.66%;
  height: 66.66%;
}

.radar-dish:after {
  width: 33.33%;
  height: 33.33%;
}

.grid-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(0deg, transparent 49%, rgba(0, 180, 255, 0.1) 49%, rgba(0, 180, 255, 0.1) 51%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(0, 180, 255, 0.1) 49%, rgba(0, 180, 255, 0.1) 51%, transparent 51%),
    linear-gradient(45deg, transparent 49%, rgba(0, 180, 255, 0.05) 49%, rgba(0, 180, 255, 0.05) 51%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(0, 180, 255, 0.05) 49%, rgba(0, 180, 255, 0.05) 51%, transparent 51%);
}

.radar-sweep {
  position: absolute;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.7));
  top: 50%;
  left: 50%;
  transform-origin: left center;
  animation: sweep 2s infinite linear;
  filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.7));
}

.seismic-waves {
  position: absolute;
  width: 100%;
  height: 100%;
}

.seismic-waves:before, .seismic-waves:after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 60, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.seismic-waves:before {
  width: 20px;
  height: 20px;
  animation: seismic 2s infinite ease-out;
}

.seismic-waves:after {
  width: 40px;
  height: 40px;
  animation: seismic 2s infinite ease-out 0.4s;
}

.target-dots {
  position: absolute;
  width: 100%;
  height: 100%;
}

.target-dots:before, .target-dots:after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 60, 0, 0.8);
  border-radius: 50%;
  filter: drop-shadow(0 0 5px rgba(255, 60, 0, 0.8));
}

.target-dots:before {
  top: 30%;
  left: 40%;
  animation: targetPulse 3s infinite ease-in-out;
}

.target-dots:after {
  top: 60%;
  left: 70%;
  animation: targetPulse 3s infinite ease-in-out 1.5s;
}

.center-pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(0, 255, 255, 0.8);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
  animation: centerPulse 2s infinite ease-out;
}

.hud-data {
  color: rgba(0, 255, 255, 0.8);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.loading-text {
  text-align: center;
  font-size: 14px;
  margin-bottom: 15px;
  color: rgba(0, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  letter-spacing: 2px;
}

.progress-container {
  position: relative;
  height: 20px;
  margin: 20px 0;
  background: rgba(0, 50, 80, 0.3);
  border: 1px solid rgba(0, 180, 255, 0.2);
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, 
    rgba(0, 80, 120, 0.8), 
    rgba(0, 180, 255, 0.8));
  animation: progressLoad 3s forwards;
}

.progress-text {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: white;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 20px;
}

.status-item {
  display: flex;
  justify-content: space-between;
}

.status-label {
  color: rgba(0, 255, 255, 0.6);
}

.status-value {
  font-weight: bold;
}

.status-value.online {
  color: #00ff00;
}

.status-value.syncing {
  color: #ffff00;
  animation: textFlicker 1s infinite;
}

.status-value.encrypting {
  color: #ff6600;
}

.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: rgba(0, 180, 255, 0.6);
  border-style: solid;
  border-width: 0;
}

.corner-tl {
  top: 20px;
  left: 20px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.corner-tr {
  top: 20px;
  right: 20px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.corner-bl {
  bottom: 20px;
  left: 20px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.corner-br {
  bottom: 20px;
  right: 20px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

/* Floating Navigation */
.floating-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(10, 26, 47, 0.7);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.light-theme .floating-nav {
  background: rgba(248, 249, 250, 0.7);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  position: relative;
  width: 36px;
  height: 36px;
}

.sphere {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
      var(--primary),
      var(--secondary));
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 120%;
  height: 120%;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0.7;
}

.logo-text {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  position: relative;
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: var(--space-sm) 0;
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-normal) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
}

.toggle-circle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  transition: transform var(--transition-normal);
}

.light-theme .toggle-circle {
  transform: translateX(20px);
  background: var(--accent);
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-morning), var(--sky-noon));
}

.dark-theme .hero-section {
  background: linear-gradient(135deg, var(--sky-night), var(--storm-dark));
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  flex-grow: 1;
}

.hero-text {
  max-width: 600px;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  background: linear-gradient(to right, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-line {
  display: block;
  background: linear-gradient(to right, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 80%;
}

.search-container {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  width: 100%;
}

.search-input {
  position: relative;
  flex-grow: 1;
  min-width: 200px;
}

.search-input i {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
}

.search-input input {
  width: 100%;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) * 2 + 1rem);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(5px);
}

.search-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.input-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.search-input input:focus~.input-border {
  opacity: 1;
}

.search-btn {
  padding: 0 var(--space-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg-night);
  border: none;
  border-radius: 8px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.quick-status {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.status-card {
  padding: var(--space-sm) var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-fast);
  flex: 1 1 auto;
}

.weather-status i {
  color: var(--sun-light);
}

.quake-status i {
  color: var(--danger);
}

.tech-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: flex-start;
}

.tech-tags span {
  padding: var(--space-xs) var(--space-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.hero-visual {
  position: relative;
  width: clamp(280px, 50vw, 600px);
  height: clamp(280px, 50vw, 600px);
}

.globe-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.globe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
      #2a6e96 0%,
      #1a4b6e 20%,
      #0c2a4a 40%,
      #061020 100%),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/9/97/The_Earth_seen_from_Apollo_17.jpg/1200px-The_Earth_seen_from_Apollo_17.jpg");
  background-size: cover;
  background-blend-mode: overlay;
  box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.3),
    inset 0 0 60px rgba(0, 100, 255, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 0 40px rgba(0, 150, 255, 0.6);
  animation: rotate 60s linear infinite;
  transform-style: preserve-3d;
}

.weather-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23FFD700" fill-opacity="0.05" d="M..."/></svg>');
  opacity: 0.7;
}

.seismic-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23f59e0b" fill-opacity="0.05" d="M..."/></svg>');
  opacity: 0.5;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  margin-bottom: var(--space-sm);
  animation: scrollBounce 2s infinite;
}

/* Dashboard Section */
.dashboard-section {
  padding: var(--space-xxl) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: var(--space-sm);
  background: linear-gradient(to right, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 600px;
  margin: 0 auto;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Dashboard Cards */
.dashboard-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Weather Card Specific Styles */
.weather-card {
  border-left: 4px solid var(--primary);
}

.weather-icon {
  color: var(--primary);
}

.temp {
  color: var(--primary);
}

/* Forecast Card */
.forecast-card {
  border-left: 4px solid var(--info);
}

/* Earthquake Card Specific Styles */
.seismic-card {
  border-left: 4px solid var(--danger);
}

.quake-list-card {
  border-left: 4px solid var(--warning);
}

/* Prediction Card Specific Styles */
.prediction-card {
  border-left: 4px solid var(--accent);
}

/* Data Stream Card Specific Styles */
.stream-card {
  border-left: 4px solid var(--secondary);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--glass-border);
}

.card-header h3 {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.card-actions {
  display: flex;
  gap: var(--space-sm);
}

.card-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.card-content {
  flex-grow: 1;
  margin-bottom: var(--space-lg);
}

#report {
  max-height: 500px;
  overflow-y: scroll;
}

#report::-webkit-scrollbar {
  display: none;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.seismic-map {
  height: 500px;
  width: 100%;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  border-top: 1px solid #eee;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.legend-color {
  width: 15px;
  height: 15px;
  border-radius: 3px;
}

.quake-item {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quake-magnitude {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.quake-details {
  flex: 1;
  padding-left: 15px;
}

.quake-location {
  font-weight: bold;
  margin-bottom: 3px;
}

.quake-time {
  font-size: 12px;
  color: #666;
}

.quake-depth {
  font-size: 12px;
  color: #666;
}

.last-updated {
  padding: 10px 20px;
  font-size: 12px;
  color: #666;
  text-align: right;
  border-top: 1px solid #eee;
}

.skeleton-item {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-magnitude {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eee;
}

.skeleton-details {
  flex: 1;
  padding-left: 15px;
}

.skeleton-line {
  height: 12px;
  background: #eee;
  margin-bottom: 6px;
  border-radius: 2px;
}

.skeleton-line.short {
  width: 70%;
}

.skeleton-line.medium {
  width: 85%;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.weather-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent);
}

.weather-data {
  flex-grow: 1;
}

.temp {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
  font-family: "Orbitron", sans-serif;
}

.location {
  font-size: 1rem;
  color: var(--text-secondary);
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.detail span:first-child {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.detail span:last-child {
  font-weight: 600;
  font-size: 0.9rem;
}

.weather-graph {
  height: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  position: relative;
  padding: var(--space-md);
}

.graph-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--glass-border);
}

.time-markers {
  position: absolute;
  bottom: var(--space-md);
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-md);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Forecast Days */
.forecast-days {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.forecast-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.forecast-day .day {
  font-weight: 600;
  width: 100px;
}

.forecast-day .icon {
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

.forecast-day .temps {
  display: flex;
  gap: var(--space-md);
}

.forecast-day .high {
  font-weight: 600;
  color: var(--danger);
}

.forecast-day .low {
  color: var(--text-secondary);
}

/* Seismic Alerts */
.seismic-alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.alert-level {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.level-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.high .level-indicator {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}

.alert-level span {
  font-size: 0.9rem;
  font-weight: 600;
}

.alert-details {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.seismic-map {
  height: 420px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%230a1a2f" d="M..."/></svg>');
  opacity: 0.8;
}

.quake-marker {
  position: absolute;
  top: calc(var(--y) * 1%);
  left: calc(var(--x) * 1%);
  width: calc(var(--size) * 8px);
  height: calc(var(--size) * 8px);
  border-radius: 50%;
  background: var(--danger);
  transform: translate(-50%, -50%);
  opacity: 0.7;
}

/* Quake List */
.quake-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.quake-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.quake-item .magnitude {
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--danger);
  min-width: 40px;
}

.quake-item .quake-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.quake-item .quake-details span:last-child {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* History Section */
.history-section {
  padding: var(--space-xxl) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.history-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
}

.history-tabs {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.history-tab {
  flex: 1;
  padding: var(--space-lg);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  min-width: 150px;
}

.history-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.history-tab.active {
  color: var(--text-primary);
}

.history-tab.active::after {
  transform: scaleX(1);
}

.history-content {
  padding: var(--space-xxl);
}

.history-panel {
  display: none;
}

.history-panel.active {
  display: block;
}

.chart-container {
  height: 400px;
  position: relative;
}

/* Education Section */
.education-section {
  padding: var(--space-xxl) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.education-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
}

.education-cards {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.edu-card {
  flex: 1 1 300px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.edu-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.weather-animation {
  background: linear-gradient(to bottom, #87CEEB, #E0F7FA);
}

.quake-animation {
  background: linear-gradient(to bottom, #3E2723, #5D4037);
}

.sun {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60px;
  height: 60px;
  background: var(--sun-light);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--sun-light);
}

.cloud {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 100px;
  height: 40px;
  background: var(--cloud-light);
  border-radius: 20px;
}

.cloud::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: var(--cloud-light);
  border-radius: 50%;
}

.rain {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, transparent, rgba(174, 214, 241, 0.8));
  animation: rainFall 3s infinite;
}

.tectonic-plate {
  position: absolute;
  top: 50%;
  width: 40%;
  height: 20px;
  background: #795548;
}

.tectonic-plate.left {
  left: 5%;
  transform: translateY(-50%) rotate(-5deg);
}

.tectonic-plate.right {
  right: 5%;
  transform: translateY(-50%) rotate(5deg);
  background: #5D4037;
}

.fault-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 0;
  background: var(--danger);
  transform: translate(-50%, -50%);
  animation: faultLine 5s infinite;
}

.edu-content {
  padding: var(--space-lg);
}

.edu-content h3 {
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.edu-content ul {
  margin-top: var(--space-md);
  padding-left: var(--space-md);
  color: var(--text-secondary);
}

.edu-content li {
  margin-bottom: var(--space-sm);
}

/* News Section */
.news-section {
  padding: var(--space-xxl) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-lg);
}

.news-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: var(--space-lg);
}

.news-content h3 {
  margin-bottom: var(--space-sm);
}

.news-excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: var(--space-sm);
}

.news-link {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Feedback Section */
.feedback-section {
  padding: var(--space-xxl) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.feedback-container {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.feedback-form {
  flex: 1 1 400px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-sm) var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: "Exo 2", sans-serif;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-btn {
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg-night);
  border: none;
  border-radius: 8px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.community-reports {
  flex: 1 1 400px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-lg);
}

.community-reports h3 {
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.reports-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.report-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  flex-wrap: wrap;
}

.report-type {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.report-type.weather {
  background: rgba(52, 152, 219, 0.2);
  color: var(--info);
}

.report-type.quake {
  background: rgba(231, 76, 60, 0.2);
  color: var(--danger);
}

.report-content {
  flex-grow: 1;
}

.report-content h4 {
  margin-bottom: var(--space-xs);
}

.report-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.report-severity {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.report-severity.mild {
  background: rgba(46, 204, 113, 0.2);
  color: var(--success);
}

.report-severity.moderate {
  background: rgba(243, 156, 18, 0.2);
  color: var(--warning);
}

/* Footer */
.main-footer {
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-xxl) var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-xxl);
  max-width: 1400px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.footer-col h4 {
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1400px;
  margin: var(--space-xxl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.newsletter {
  max-width: 400px;
  margin: 0 auto var(--space-lg);
  width: 100%;
}

.newsletter h4 {
  margin-bottom: var(--space-sm);
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.newsletter-form input {
  flex-grow: 1;
  min-width: 200px;
  padding: var(--space-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
}

.newsletter-form button {
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg-night);
  border: none;
  border-radius: 8px;
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-normal);
  flex: 1;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  text-align: center;
}

.legal-links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.legal-links a:hover {
  color: var(--primary);
}

/* Prediction Cards */
.prediction-card {
  border-left: 4px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.prediction-visual {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.prediction-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.prediction-result {
  flex-grow: 1;
  padding: var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  min-height: 100px;
}

.prediction-result p {
  margin: 0;
  color: var(--text-secondary);
}

.prediction-action-btn {
  width: 100%;
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg-night);
  border: none;
  border-radius: 8px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.prediction-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Prediction Modals */
.prediction-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: var(--space-lg);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
  box-shadow: var(--shadow-xl);
}

.close-modal {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-modal:hover {
  color: var(--danger);
}

.modal-content h3 {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary);
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal-submit-btn {
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--bg-night);
  border: none;
  border-radius: 8px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.modal-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Prediction Results */
.prediction-result.active {
  background: rgba(46, 204, 113, 0.1);
  border-color: var(--success);
  animation: pulseGlow 2s infinite alternate;
}

.prediction-details {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--glass-border);
}

.prediction-details p {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}

.prediction-details span:last-child {
  font-weight: 600;
  color: var(--primary);
}

.risk-indicator {
  height: 10px;
  background: var(--glass-bg);
  border-radius: 5px;
  margin-top: var(--space-sm);
  overflow: hidden;
  position: relative;
}

.risk-level {
  height: 100%;
  background: linear-gradient(to right, var(--success), var(--warning), var(--danger));
  width: 0;
  transition: width 1s ease;
}

/* Cyberpunk Neon Scroll Button */
.cyber-scroll-btn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(10, 15, 30, 0.8);
  border: 2px solid rgba(100, 150, 255, 0.3);
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  box-shadow:
    0 0 15px rgba(80, 120, 255, 0.3),
    inset 0 0 10px rgba(100, 150, 255, 0.2);
}

.cyber-scroll-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Hologram Core (Glowing Center) */
.hologram-core {
  position: absolute;
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(100, 180, 255, 0.8) 0%,
      rgba(80, 120, 255, 0.6) 50%,
      transparent 80%);
  filter: blur(5px);
  animation: pulse-core 2s infinite alternate;
}

/* Neon Ring (Cyberpunk Circle) */
.neon-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 50%;
  border-top-color: rgba(100, 180, 255, 0.8);
  border-right-color: rgba(120, 100, 255, 0.6);
  animation: rotate-ring 4s linear infinite, neon-flicker 3s infinite alternate;
  box-shadow:
    0 0 10px rgba(100, 180, 255, 0.5),
    inset 0 0 10px rgba(100, 180, 255, 0.3);
}

/* Energy Trail (Hover Effect) */
.energy-trail {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(to top,
      rgba(100, 180, 255, 0.8),
      transparent);
  box-shadow: 0 0 10px 2px rgba(100, 180, 255, 0.5);
  transition: height 0.3s ease;
}

/* Arrow Icon (Futuristic SVG) */
.arrow-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(180, 220, 255, 0.9);
  filter: drop-shadow(0 0 5px rgba(100, 180, 255, 0.7));
}

/* Particle Field (Floating Dots) */
.particle-field {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.particle-field::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle,
      rgba(100, 180, 255, 0.3) 0%,
      transparent 70%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="50" r="0.8" fill="rgba(180,220,255,0.6)"/><circle cx="70" cy="30" r="0.6" fill="rgba(180,220,255,0.5)"/><circle cx="40" cy="80" r="0.5" fill="rgba(180,220,255,0.4)"/><circle cx="90" cy="60" r="0.7" fill="rgba(180,220,255,0.5)"/></svg>');
  animation: float-particles 20s linear infinite;
}

/* Hover Effects */
.cyber-scroll-btn:hover {
  box-shadow:
    0 0 25px rgba(100, 180, 255, 0.7),
    inset 0 0 15px rgba(100, 180, 255, 0.4);
  border-color: rgba(120, 100, 255, 0.6);
}

.cyber-scroll-btn:hover .energy-trail {
  height: 30px;
}

.cyber-scroll-btn:hover .hologram-core {
  animation: pulse-core-fast 1s infinite alternate;
}

/* Animations */
@keyframes sweep {
  0% { transform: rotate(0deg); opacity: 0.8; }
  100% { transform: rotate(360deg); opacity: 0.8; }
}

@keyframes seismic {
  0% { transform: translate(-50%, -50%) scale(0.1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}

@keyframes targetPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes centerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.4; }
}

@keyframes progressLoad {
  0% { width: 0%; }
  20% { width: 15%; }
  40% { width: 35%; }
  60% { width: 65%; }
  80% { width: 85%; }
  100% { width: 100%; }
}

@keyframes textFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow: 0 0 5px #ffff00;
  }
  20%, 22%, 24%, 55% {
    opacity: 0.5;
    text-shadow: none;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 65, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(249, 65, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 65, 68, 0); }
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes beam {
  0% { height: 0; opacity: 0; }
  50% { height: 100px; opacity: 0.7; }
  100% { height: 0; opacity: 0; }
}

@keyframes rainFall {
  0% { height: 0; }
  100% { height: 100%; }
}

@keyframes faultLine {
  0%, 100% { height: 0; }
  50% { height: 100%; }
}

@keyframes wavePulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.1; }
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.1); }
  100% { box-shadow: 0 0 20px 5px rgba(46, 204, 113, 0.3); }
}

@keyframes pulse-core {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 1; }
}

@keyframes pulse-core-fast {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes float-particles {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1400px) {
  .nav-container,
  .hero-content,
  .dashboard-section,
  .history-section,
  .education-section,
  .news-section,
  .feedback-section,
  .footer-grid,
  .footer-bottom {
    max-width: 1200px;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

@media (max-width: 1200px) {
  .hero-content {
    flex-direction: column;
    gap: var(--space-xxl);
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .search-container {
    justify-content: center;
  }

  .tech-tags {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg) 0;
    gap: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-link {
    padding: var(--space-sm) var(--space-lg);
  }

  .nav-menu-btn {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 var(--space-md);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .weather-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .history-tab {
    min-width: 120px;
    padding: var(--space-md);
  }
}

@media (max-width: 576px) {
  .nav-container {
    padding: 0 var(--space-sm);
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-content {
    padding: var(--space-xl) var(--space-md);
  }

  .search-container {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  .weather-details,
  .prediction-matrix {
    grid-template-columns: 1fr;
  }

  .history-tab {
    min-width: 100%;
  }

  .history-content {
    padding: var(--space-lg);
  }

  .modal-content {
    padding: var(--space-lg) var(--space-md);
  }
}

@media (max-width: 400px) {
  html {
    font-size: 90%;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .status-card {
    min-width: 100%;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }
}