/* CSS Variables - Dark Theme (Default) */
:root, [data-theme="dark"] {
  --bg-primary: #0A0A0A;
  --bg-secondary: #1A1A1A;
  --bg-tertiary: #2A2A2A;
  --text-primary: #EAEAEA;
  --text-secondary: #B0B0B0;
  --accent-primary: #00FFFF; /* Cyan */
  --accent-secondary: #FF00FF; /* Magenta */
  --border-color: #3A3A3A;
  --card-bg: #1C1C1C;
  --input-bg: #252525;
  --btn-bg: var(--accent-primary);
  --btn-text: #000000;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F0F0F0;
  --bg-tertiary: #E0E0E0;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --accent-primary: #0000FF; /* Blue */
  --accent-secondary: #8A2BE2; /* BlueViolet */
  --border-color: #DCDCDC;
  --card-bg: #FFFFFF;
  --input-bg: #F5F5F5;
  --btn-bg: var(--accent-primary);
  --btn-text: #FFFFFF;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-secondary);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
  text-align: center;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-secondary);
}

/* Navigation */
.navigation-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 5px var(--accent-primary);
}

/* Header */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.header-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Sections */
main {
  padding: 6rem 0 2rem;
}

section {
  padding: 4rem 0;
}

/* Card */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--input-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

/* Button */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

/* Glitch Effect */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  opacity: 0.8;
  clip: rect(0, 0, 0, 0);
}
.glitch::before {
  color: var(--accent-secondary); /* Magenta/BlueViolet */
}
.glitch::after {
  color: var(--accent-primary); /* Cyan/Blue */
}

@keyframes glitch {
  0% { clip: rect(20px, 9999px, 21px, 0); }
  10% { clip: rect(0px, 9999px, 5px, 0); }
  20% { clip: rect(10px, 9999px, 25px, 0); }
  30% { clip: rect(5px, 9999px, 15px, 0); }
  40% { clip: rect(25px, 9999px, 30px, 0); }
  50% { clip: rect(0px, 9999px, 10px, 0); }
  60% { clip: rect(15px, 9999px, 20px, 0); }
  70% { clip: rect(5px, 9999px, 15px, 0); }
  80% { clip: rect(20px, 9999px, 25px, 0); }
  90% { clip: rect(10px, 9999px, 12px, 0); }
  100% { clip: rect(0px, 9999px, 8px, 0); }
}

.glitching::before, .glitching::after {
  animation: glitch 0.2s infinite;
}