/* ===== MODERN RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Modern Color Palette */
  --primary-dark: #0a0a0f;
  --primary-darker: #050508;
  --accent-red: #ff2a6d;
  --accent-blue: #05d9e8;
  --accent-purple: #d16ba5;
  --text-light: #ffffff;
  --text-gray: #a0a0a0;
  --card-bg: rgba(15, 15, 25, 0.8);
  --glass-bg: rgba(10, 10, 20, 0.7);
  --menu-bg: rgba(5, 5, 15, 0.95);
  --border-glow: linear-gradient(45deg, var(--accent-red), var(--accent-blue));
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--primary-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(5, 217, 232, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 42, 109, 0.05) 0%, transparent 20%),
    linear-gradient(to bottom, var(--primary-darker), var(--primary-dark));
  color: var(--text-light);
  line-height: 1.7;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 80px;
  overflow-x: hidden;
}

/* ===== GLASSMORPHISM HEADER ===== */
.glass-header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  animation: slideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--accent-red), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  position: relative;
  min-width: 220px;
}

.logo svg {
  width: 100%;
  height: auto;
}

/* ===== SIMPLIFIED NAVIGATION ===== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links li:not(:last-child)::after {
  content: '|';
  color: rgba(255, 255, 255, 0.3);
  margin: 0 1rem;
  font-weight: 300;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
}

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* ===== MAIN CONTAINER ===== */
.container {
  max-width: 1275px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ===== CARD STYLING ===== */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--border-glow);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 35px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card:hover::before {
  opacity: 0.3;
}

/* ===== TYPOGRAPHY ===== */
.intro h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.2;
  background: linear-gradient(45deg, var(--text-light), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.glitch {
  position: relative;
  animation: glitch-anim 5s infinite;
}

@keyframes glitch-anim {
  0%, 100% { transform: translate(0); }
  2% { transform: translate(-2px, 2px); }
  4% { transform: translate(-2px, -2px); }
  6% { transform: translate(2px, 2px); }
  8% { transform: translate(2px, -2px); }
}

.intro h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  color: var(--accent-red);
  animation: glitch-top 3s infinite;
  opacity: 0.8;
}

@keyframes glitch-top {
  0%, 100% { transform: translate(0); }
  33% { transform: translate(-5px, 5px); }
  66% { transform: translate(5px, -5px); }
}

.intro h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  color: var(--text-light);
  position: relative;
  padding-bottom: 1rem;
}

.intro h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--border-glow);
  border-radius: 2px;
}

.intro p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.8;
}

/* ===== WARNING STYLING ===== */
.warning {
  background: linear-gradient(45deg, rgba(255, 42, 109, 0.15), rgba(179, 0, 0, 0.1));
  border: 1px solid rgba(255, 42, 109, 0.3);
  border-left: 4px solid var(--accent-red);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  font-weight: 500;
  color: #ff99b3;
  box-shadow: 0 8px 32px rgba(255, 42, 109, 0.1);
  position: relative;
  overflow: hidden;
}

.warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-glow);
}

.warning strong {
  color: var(--text-light);
}

/* ===== CALL TO ACTION ===== */
.cta {
  background: linear-gradient(45deg, rgba(5, 217, 232, 0.1), rgba(209, 107, 165, 0.1));
  border: 1px solid rgba(5, 217, 232, 0.3);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 3rem 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.cta a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.cta a:hover {
  color: var(--text-light);
  border-bottom-color: var(--accent-blue);
  text-shadow: 0 0 20px var(--accent-blue);
}

/* ===== LISTS STYLING ===== */
ol, ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

ol li, ul li {
  margin-bottom: 1rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

ol li::before {
  content: counter(list-item) ".";
  color: var(--accent-red);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

ul li::before {
  content: "▶";
  color: var(--accent-blue);
  position: absolute;
  left: -1rem;
  font-size: 0.8rem;
  top: 2px;
}

/* ===== LINKS ===== */
a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

a:hover {
  color: var(--text-light);
  text-shadow: 0 0 20px var(--accent-blue);
}

a.active {
  color: var(--text-light);
  font-weight: 600;
}

/* ===== FIXED FOOTER ===== */
footer {
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(5, 5, 15, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

footer p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin: 0;
}

footer a {
  color: var(--accent-blue);
  transition: all 0.2s ease;
}

footer a:hover {
  color: var(--text-light);
  text-shadow: 0 0 15px var(--accent-blue);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 42, 109, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(5, 217, 232, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
  .container {
    max-width: 1100px;
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 950px;
  }
}

@media (max-width: 1024px) {
  .intro h1 {
    font-size: 2.8rem;
  }
  
  .card {
    padding: 2rem;
  }
  
  .container {
    max-width: 850px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
    padding-bottom: 80px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--menu-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
    z-index: 1001;
    padding: 2rem;
  }
  
  .nav-links li:not(:last-child)::after {
    display: none;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    width: 80%;
    text-align: center;
    padding: 1.2rem;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
  }
  
  nav {
    padding: 1rem 1.5rem;
  }
  
  .logo {
    font-size: 1.3rem;
    min-width: 180px;
  }
  
  .container {
    max-width: 100%;
    padding: 2rem 1rem;
  }
  
  .card {
    padding: 1.5rem;
    border-radius: 16px;
    margin: 0 0.5rem 2rem;
  }
  
  .intro h1 {
    font-size: 2.3rem;
  }
  
  .intro h2 {
    font-size: 1.6rem;
  }
  
  .intro p {
    font-size: 1rem;
  }
  
  .warning, .cta {
    padding: 1.2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .intro h1 {
    font-size: 2rem;
  }
  
  .container {
    padding: 1.5rem 0.8rem;
  }
  
  .card {
    padding: 1.2rem;
    margin: 0 0.5rem 2rem;
  }
  
  nav {
    padding: 0.8rem;
  }
  
  .logo {
    min-width: 150px;
  }
  
  .nav-links a {
    width: 90%;
    font-size: 1.1rem;
    padding: 1rem;
  }
  
  footer {
    padding: 1rem;
    height: 80px;
  }
  
  footer p {
    font-size: 0.8rem;
  }
}

/* ===== SCROLLBAR CUSTOMIZATION ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 20, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--accent-red), var(--accent-blue));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-red));
}

/* ===== SELECTION COLORS ===== */
::selection {
  background: rgba(255, 42, 109, 0.3);
  color: var(--text-light);
}

/* ===== PARTICLE EFFECTS ===== */
.card {
  background: 
    radial-gradient(circle at 10% 20%, rgba(5, 217, 232, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 42, 109, 0.05) 0%, transparent 20%),
    var(--card-bg);
}