/* ============================================================
   AI CLUB — style.css
   ============================================================ */

/* ---------- CSS Variables / Themes ---------- */
:root {
   --bg: #f0f9ff;
  --bg2: #e0f2fe;
  --surface: rgba(0, 0, 0, 0.03);
  --surface2: rgba(0, 0, 0, 0.06);
  --accent: #0f1d62;
  --accent2: #ed3a3a;
  --text: #0f172a;
  --text-muted: #475569;
  --border: rgba(8, 145, 178, 0.3);
  --card-bg: rgba(255, 255, 255, 0.7);
  --shadow: 0 0 30px rgba(8, 145, 178, 0.15);
  --nav-bg: rgba(240, 249, 255, 0.9);
}

[data-theme="light"] {
 --bg: #0f172a;
  --bg2: #1e293b;
  --surface: rgba(255, 255, 255, 0.05);
  --surface2: rgba(255, 255, 255, 0.08);
  --accent: #2fffd0;
  --accent2: #7c3aed;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(47, 255, 208, 0.2);
  --card-bg: rgba(255, 255, 255, 0.04);
  --shadow: 0 0 30px rgba(47, 255, 208, 0.15);
  --nav-bg: rgba(15, 23, 42, 0.85);
  --radius: 12px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tahoma', monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  cursor: default;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ---------- Custom Cursor ---------- */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.2s, height 0.2s;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  opacity: 0.6;
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor.hover { width: 20px; height: 20px; }
.cursor-ring.hover { width: 60px; height: 60px; opacity: 0.3; }

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text-muted);
  padding: 8px 16px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-color: var(--border);
  background: var(--surface);
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  pointer-events: all;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.theme-toggle:hover {
  background: var(--accent);
  color: #000;
}

/* ---------- Pages ---------- */
.page { display: none; }
.page.active { display: block; }

/* ---------- Hero ---------- */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(47, 255, 208, 0.08) 0%, transparent 70%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  animation: gridPan 20s linear infinite;
}

@keyframes gridPan {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

.hero-badge {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 32px;
  background: var(--surface);
  animation: fadeDown 0.8s ease both;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(47, 255, 208, 0.4);
  line-height: 1;
  letter-spacing: 4px;
  animation: fadeDown 0.8s 0.15s ease both, glitch 6s 2s infinite;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 20px;
  letter-spacing: 2px;
  animation: fadeDown 0.8s 0.3s ease both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  animation: fadeDown 0.8s 0.45s ease both;
}

.hero-stats {
  display: flex;
  gap: 60px;
  margin-top: 80px;
  animation: fadeDown 0.8s 0.6s ease both;
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  padding: 12px 28px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  pointer-events: all;
  font-family: 'Arial', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn:hover { color: #000; }
.btn:hover::before { transform: translateX(0); }

.btn.filled { background: var(--accent); color: #000; }
.btn.filled::before { background: var(--accent2); }
.btn.filled:hover { color: #fff; }

/* ---------- Sections ---------- */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 48px;
  color: var(--text);
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0 40px;
}

/* ---------- Member Cards ---------- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.member-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.member-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.member-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(47, 255, 208, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;  
}

.member-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px) !important;
}

.member-card:hover::before { opacity: 1; }

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--surface2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  color: var(--accent);
  overflow: hidden;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.member-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.member-role {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.member-bio {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.member-edit-btn {
  margin-top: 16px;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Arial', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.2s ease;
}

.member-edit-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Project Cards ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px) !important;
}

.project-thumb {
  height: 160px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--card-bg));
}

.project-body { padding: 24px; }

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--surface);
}

.project-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.project-status {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.status-done {
  background: rgba(47, 255, 208, 0.1);
  color: var(--accent);
  border: 1px solid var(--border);
}

.status-wip {
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

/* ---------- Workshop Cards ---------- */
.workshops-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workshop-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.workshop-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.workshop-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.workshop-date {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  min-width: 80px;
  text-align: center;
}

.workshop-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.workshop-info { flex: 1; }

.workshop-name {
  font-family: 'Tahoma', sans-serif;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}

.workshop-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.workshop-count {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 60px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 90%;
  max-width: 480px;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 2px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-family: 'Arial', monospace;
  font-size: 13px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.avatar-preview {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* ---------- Animations ---------- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glitch {
  0%, 94% { text-shadow: 0 0 60px rgba(47, 255, 208, 0.4); }
  95%      { text-shadow: -3px 0 #f00, 3px 0 #0ff; }
  96%      { text-shadow: 3px 0 #f00, -3px 0 #0ff; }
  97%      { text-shadow: 0 0 60px rgba(47, 255, 208, 0.4); }
  98%      { text-shadow: -3px 0 #f00, 3px 0 #0ff; }
  100%     { text-shadow: 0 0 60px rgba(47, 255, 208, 0.4); }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 10px;
  }

  .section { padding: 60px 20px; }

  .hero-stats { gap: 30px; }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .workshop-card {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ---------- Join / Workshop Banner ---------- */
.join-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  padding: 32px 40px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.join-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(47, 255, 208, 0.06), transparent 70%);
  pointer-events: none;
}

.join-banner-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.join-banner-sub {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ---------- Member Social Links ---------- */
.member-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  pointer-events: all;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface);
}

/* ---------- Workshop Register Button ---------- */
.workshop-register-btn {
  display: inline-block;
  padding: 8px 18px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
  pointer-events: all;
  position: relative;
  overflow: hidden;
}

.workshop-register-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.25s ease;
  z-index: -1;
}

.workshop-register-btn:hover {
  color: #000;
}

.workshop-register-btn:hover::before {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .join-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}

/* ---------- Alumni Divider ---------- */
.alumni-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 64px 0 12px;
}

.alumni-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.alumni-divider-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.section-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 32px;
}

/* ---------- Alumni Card ---------- */
.alumni-card {
  opacity: 0.75;
}

.alumni-card:hover {
  opacity: 1;
}

.alumni-card .member-avatar {
  filter: grayscale(40%);
  border-style: dashed;
}

.alumni-card:hover .member-avatar {
  filter: grayscale(0%);
}

/* ---------- Grad Year Badge ---------- */
.grad-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--surface);
  margin-bottom: 10px;
}
