:root {
  --primary: #6C4DF6;
  --primary-dark: #5A3EE8;
  --secondary: #FFD166;
  --dark: #12141D;
  --darker: #0C0E15;
  --light: #F8F9FA;
  --success: #4CAF50;
  --danger: #F44336;
  --text: #E0E0E0;
  --text-secondary: #A0A0A0;
}

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

body {
  background-color: var(--darker);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  background-image: linear-gradient(to bottom, rgba(12, 14, 21, 0.9), rgba(12, 14, 21, 0.95)), url('i.webp');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: white;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.5rem);
  line-height: 1.2;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2rem);
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
  text-align: center;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

h3 {
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  color: var(--secondary);
  text-align: center;
}

p {
  margin-bottom: 1.2rem;
  font-size: clamp(1rem, 2.5vw, 1.05rem);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 20, 29, 0.98);
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(108, 77, 246, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--secondary);
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

.register-btn {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 77, 246, 0.4);
  font-size: 0.9rem;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 77, 246, 0.6);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== CONTENT ===== */
.content {
  padding-top: 6.5rem;
  padding-bottom: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  text-align: center;
}

/* ===== MOBILE ADAPTATION ===== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(18,20,29,0.98);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem;
    gap: 1rem;
    border-top: 1px solid rgba(108,77,246,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  }
  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .mobile-menu-btn { display: block; }
  .header { padding: 0.75rem 1rem; }
  .logo-text { font-size: 1.2rem; }
  .register-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
}

@media (max-width: 768px) {
  body { background-attachment: scroll; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .content { padding-top: 5rem; padding-left: 1rem; padding-right: 1rem; }
  .section { padding: 1rem; }
  .footer-cta { flex-direction: column; gap: 0.75rem; padding: 1rem; text-align: center; }
  .footer-cta-content { flex-direction: column; gap: 0.5rem; }
  .btn { width: 100%; max-width: 300px; padding: 0.75rem; }
  table { font-size: 0.85rem; }
  th, td { padding: 0.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  p, li { font-size: 0.95rem; }
  .logo-icon { width: 28px; height: 28px; font-size: 1rem; }
  .register-btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
}