/* ============= GREEN CYBER THEME (HTB-INSPIRED) ============= */
:root {
  --bg: #0d0d0d;
  --card: #1e1e1e;
  --accent: #00ff8c;        /* Terminal green */
  --accent-hover: #00e07a;
  --text: #ffffff;
  --text-muted: #b0b0b0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 255, 140, 0.15);
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  line-height: 1.6;
}

.hidden { display: none; }

/* ============= LOADER ============= */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.terminal {
  width: 90%; max-width: 600px;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 140, 0.2);
  font-family: 'Courier New', monospace;
  color: var(--accent);
  font-size: 16px;
  border: 1px solid var(--border);
}

.terminal-header {
  background: #141414;
  padding: 10px 16px;
  display: flex; gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-body {
  padding: 24px; text-align: left; line-height: 1.8;
}
.terminal-body p {
  margin-bottom: 8px; opacity: 0;
  animation: fadeIn 0.6s forwards;
}
.terminal-body p:nth-child(1) { animation-delay: 0.2s; }
.terminal-body p:nth-child(2) { animation-delay: 0.6s; }
.terminal-body p:nth-child(3) { animation-delay: 1.0s; }
.terminal-body .prompt {
  margin-top: 16px; color: var(--accent);
  opacity: 0; animation: blink 1s infinite 1.4s;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ============= MAIN CONTENT ============= */
#main-content {
  opacity: 0;
  animation: fadeInMain 0.6s 0.3s forwards;
}
@keyframes fadeInMain { to { opacity: 1; } }

.container {
  max-width: 520px; width: 100%; text-align: center;
}

/* Logo */
.logo-container { margin-bottom: 24px; display: flex; justify-content: center; }
.logo {
  width: 100px; height: 100px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(0, 255, 140, 0.2);
  transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.05); }

/* Header */
.badge {
  display: inline-block;
  background: rgba(0, 255, 140, 0.1);
  color: var(--accent);
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  letter-spacing: 0.5px; margin-bottom: 12px;
  font-family: 'Courier New', monospace;
  border: 1px solid rgba(0, 255, 140, 0.3);
}

h1 {
  font-family: 'Courier New', monospace;
  font-size: 2.2rem; font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0, 255, 140, 0.3);
}

/* Status Badge */
.status-badge {
  background: rgba(0, 255, 140, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin: 12px 0;
  font-family: monospace;
}
.dot.online {
  display: inline-block;
  width: 8px; height: 8px;
  background: #00ff41;
  border-radius: 50%;
  margin-right: 6px;
}

/* Profile Bio (renamed from .bio to avoid conflict) */
.profile-bio {
  background: var(--card);
  padding: 22px;
  border-radius: 12px;
  margin: 16px 0;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Achievements */
.achievements {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin: 16px 0;
}
.badge-sm {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.8rem; font-family: monospace;
}

/* Event Banner */
.event-banner {
  background: rgba(255, 42, 109, 0.15);
  border-left: 3px solid #ff2a6d;
  padding: 14px;
  border-radius: 0 8px 8px 0;
  margin: 20px auto;
  max-width: 480px;
  font-size: 0.95rem;
  color: #ff9eaa;
}

/* Links */
.links {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 32px;
}
.link {
  display: block;
  padding: 16px 24px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid var(--border);
  text-align: left;
  position: relative;
  padding-left: 52px;
}
.link::before {
  position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%);
  content: "→"; color: var(--accent);
  font-family: monospace; font-weight: bold;
}
.link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px var(--shadow);
  color: var(--accent);
}
.vuln::before { content: "!"; color: #ff2a6d; }
.cta {
  background: rgba(0, 255, 140, 0.1);
  color: var(--accent) !important;
  text-align: center;
  padding-left: 24px;
  border: 1px solid var(--accent);
}
.cta::before {
  content: "$"; color: var(--accent); left: 18px;
}
.cta:hover {
  background: rgba(0, 255, 140, 0.2);
  box-shadow: 0 6px 20px var(--shadow);
}

/* ===== Shared Styles for About Page ===== */
.section {
  margin: 32px 0;
  background: var(--card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.section h2 {
  color: var(--accent);
  font-family: 'Courier New', monospace;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.section p, .section li {
  color: var(--text-muted);
  line-height: 1.7;
}

.section ul {
  padding-left: 20px;
  margin: 12px 0;
}

.section a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== TEAM CAROUSEL ===== */
.team-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 12px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--accent) var(--card);
}

.team-carousel::-webkit-scrollbar {
  height: 6px;
}
.team-carousel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}
.team-carousel::-webkit-scrollbar-track {
  background: var(--card);
}

/* Team Member Card */
.team-member {
  flex: 0 0 auto;
  width: 180px;
  height: 340px; /* fixed height for consistent layout */
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.25s, border-color 0.25s;
}

.team-member:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* Profile Image - Takes 70% of card */
.member-photo {
  width: 100%;
  height: 70%;
  object-fit: cover;
  display: block;
}

/* Text Info - Takes bottom 30% */
.member-info {
  padding: 15px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.member-info h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--text);
}

.role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 8px;
}

/* Team Member Bio - Specific to about page team cards */
.member-info .bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
  background: transparent;
  padding: 0;
  border: none;
  text-align: center;
}

/* Footer */
footer {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 1.9rem; }
  .profile-bio { padding: 18px; }
  .link { padding: 14px 20px; padding-left: 48px; }
  .logo { width: 90px; height: 90px; }
}
