:root {
  --bg-main: #08070c;
  --bg-card: rgba(23, 20, 38, 0.75);
  --bg-card-hover: rgba(32, 28, 54, 0.85);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 212, 255, 0.4);
  --text-main: #f0f3f9;
  --text-muted: #a0a5c0;
  
  /* Vibrant Palette: Purple, Blue, Pink */
  --color-purple: #9d4edd;
  --color-blue: #00d4ff;
  --color-pink: #ff007f;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-purple), var(--color-blue), var(--color-pink));
  --gradient-text: linear-gradient(90deg, #00d4ff, #9d4edd, #ff007f);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ambient Animated Background Lighting */
body::before {
  content: '';
  position: fixed;
  top: -15vw;
  left: -15vw;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  animation: pulse 8s infinite alternate ease-in-out;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15vw;
  right: -15vw;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(255, 0, 127, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  animation: pulse 10s infinite alternate-reverse ease-in-out;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* NAVIGATION */
header {
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(8, 7, 12, 0.7);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text; /* <--- ADD THIS LINE (Fixes Ln 92) */
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--color-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* TYPOGRAPHY & HEADINGS */
.eyebrow {
  color: var(--color-pink);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.display-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text; /* <--- ADD THIS LINE (Fixes Ln 140) */
  -webkit-text-fill-color: transparent;
  animation: textGradientShift 5s linear infinite;
}

/* BUTTONS */
.btn-gradient {
  position: relative;
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  background: var(--gradient-primary);
  background-size: 200% auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(157, 78, 221, 0.4);
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(255, 0, 127, 0.6);
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* CARDS & GRIDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(157, 78, 221, 0.2);
  background: var(--bg-card-hover);
}

.card h2, .card h3 {
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* TAGS */
.tag {
  display: inline-block;
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.3);
  color: var(--color-blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-right: 0.4rem;
  margin-bottom: 0.5rem;
}

/* FOOTER */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(8, 7, 12, 0.9);
}

footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--color-pink);
}

/* KEYFRAME ANIMATIONS */
@keyframes textGradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes pulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(25px, 15px); }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  footer .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}