/* ═══════════════════════════════════════════
   AltayCTF — Design System
   ═══════════════════════════════════════════ */

:root {
  --bg-primary: #06060c;
  --bg-secondary: #0c0c16;
  --bg-card: rgba(18, 18, 31, 0.7);
  --accent-red: #ef4444;
  --accent-crimson: #dc2626;
  --text-primary: #eaeaf2;
  --text-secondary: #a0a0b8;
  --text-muted: #5c5c72;
  --border-color: rgba(255, 255, 255, 0.08);
  --glow-red: 0 0 30px rgba(239, 68, 68, 0.2);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Effects */
.noise-overlay {
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

.glow-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

.glow-orb.red { background: var(--accent-red); top: -200px; right: -200px; }
.glow-orb.blue { background: #3b82f6; bottom: -200px; left: -200px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 500;
  background: rgba(6, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  will-change: transform, background;
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--accent-red);
}

.brand-text .main {
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}

.brand-text .sub {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--accent-red);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-red);
}

/* Sections */
.section {
  padding: 120px 0;
}

.section.alt-bg {
  background: rgba(255, 255, 255, 0.02);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ascii-art {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5vw;
  line-height: 1.1;
  color: var(--accent-red);
  opacity: 0.6;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.3));
  user-select: none;
}

.hero-content .badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 100px;
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
}

.hero-title .red {
  color: var(--accent-red);
  text-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 60px;
  margin-bottom: 60px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
  background: var(--accent-crimson);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  padding: 10px 24px;
}

.btn-outline:hover {
  background: rgba(239, 68, 68, 0.1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.team-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px 15px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-8px);
  box-shadow: var(--glow-red);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  will-change: opacity;
}

.team-card:hover .card-glow {
  opacity: 1;
}

.team-card h3 {
  font-size: 1.1rem;
  color: #fff;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 80px 0 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 20px;
  filter: grayscale(1);
  opacity: 0.5;
}

.footer-logo p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-inner h4 {
  color: #fff;
  margin-bottom: 24px;
}

.footer-inner a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-inner a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

@media (max-width: 768px) {
  .glow-orb { display: none; } /* Disable heavy blurs on mobile */
  .noise-overlay { opacity: 0.02; }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links { 
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 40px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: var(--transition);
    display: flex;
    backdrop-filter: none;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .mobile-toggle { display: flex; }
  .ascii-art { display: none; }
  .hero-title { font-size: 3.5rem; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .section-title { font-size: 2.2rem; }
  .site-header { backdrop-filter: none; background: var(--bg-primary); } /* Solid bg for mobile performance */
}
