/* ════════════════════════════════════════════════════════
   STEALTHWORM — Premium Redesign
   Fonts: Syne (display) + DM Sans (body)
   Palette: #080808 bg · #111 cards · #34d399 accent
════════════════════════════════════════════════════════ */

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

:root {
  --bg:        #080808;
  --bg-card:   #101010;
  --bg-card2:  #141414;
  --border:    rgba(255,255,255,0.06);
  --border-em: rgba(52,211,153,0.2);
  --accent:    #34d399;
  --accent-dim:#1a6b4a;
  --text:      #e8e8e8;
  --text-muted:#6b7280;
  --text-faint:#333;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius:    10px;
  --transition: 0.28s cubic-bezier(0.2,0.9,0.3,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: none; font-family: inherit; border: none; background: none; }

/* ── Scroll Progress ────────────────────────────────────── */
#progressBar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Custom Cursor ──────────────────────────────────────── */
.cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  opacity: 0.7;
}
.cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
}
body.cursor-hover .cursor-ring {
  width: 48px; height: 48px;
  background: rgba(52,211,153,0.08);
  border-color: var(--accent);
  opacity: 1;
}

/* ── Header ─────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background var(--transition), border-color var(--transition), padding var(--transition);
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--transition);
}
#header.scrolled .nav-inner { padding-top: 0.85rem; padding-bottom: 0.85rem; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo-img {
  width: 38px; height: 38px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform var(--transition);
}
.nav-logo:hover .nav-logo-img { transform: rotate(6deg) scale(1.06); }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  line-height: 1.2;
}
.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.menu-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
  transform-origin: center;
}
.menu-btn.open .menu-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--accent); }
.menu-btn.open .menu-bar:nth-child(2) { opacity: 0; }
.menu-btn.open .menu-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--accent); }

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(8,8,8,0.97);
  border-top: 1px solid transparent;
  transition: max-height 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}
.mobile-menu.open {
  max-height: 420px;
  border-color: var(--border);
  padding: 1rem 0;
}
.mobile-link {
  display: block;
  padding: 0.65rem 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-link:hover { color: var(--accent); padding-left: 2.4rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(52,211,153,0.3);
  background: #5eedb0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1px solid var(--border-em);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(52,211,153,0.06);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(52,211,153,0.1);
}
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.78rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Section Base ────────────────────────────────────────── */
.section {
  padding: 7rem 0;
  position: relative;
}

/* Full-screen sections */
.section--fullscreen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border-em);
  border-radius: 100px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}
.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Reveal animations ───────────────────────────────────── */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-item:nth-child(1) { transition-delay: 0s; }
.reveal-item:nth-child(2) { transition-delay: 0.08s; }
.reveal-item:nth-child(3) { transition-delay: 0.16s; }
.reveal-item:nth-child(4) { transition-delay: 0.24s; }
.reveal-item:nth-child(5) { transition-delay: 0.32s; }
.reveal-item:nth-child(6) { transition-delay: 0.40s; }

/* ── Hero ────────────────────────────────────────────────── */
.hero-section {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(52,211,153,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,211,153,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(52,211,153,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}
.title-line { display: inline; color: var(--text); }
.title-accent { color: var(--accent); }

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  min-height: 1.5em;
}
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
  margin-left: 1px;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem;
}
.stat-val {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-plus { font-size: 1.4rem; color: var(--accent); font-weight: 800; }
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100%{ transform: scaleY(1); opacity: 0.4; }
  50%{ transform: scaleY(1.3); opacity: 0.8; }
}

/* ── About ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.about-left .section-label { display: inline-block; }
.about-left .section-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  text-align: left;
  margin-bottom: 1.5rem;
}
.about-accent-line {
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.about-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.about-lead strong { color: var(--text); font-weight: 500; }
.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.about-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
}
.about-card:hover { transform: translateX(4px); border-color: var(--accent); }
.about-card-icon { font-size: 1.2rem; flex-shrink: 0; padding-top: 2px; }
.about-card-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.about-card-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* ── Team ────────────────────────────────────────────────── */
.team-lead-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-em);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(52,211,153,0.1);
}
.team-card--lead {
  display: flex;
  max-width: 680px;
  width: 100%;
}
.team-card--lead .team-card-img-wrap {
  width: 220px;
  flex-shrink: 0;
}
.team-card--lead .team-card-img { width: 100%; height: 100%; object-fit: cover; }
.team-card--lead .team-card-body { padding: 2rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.team-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(20%);
}
.team-card:hover .team-card-img { transform: scale(1.04); filter: grayscale(0%); }
.team-card-img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.6) 0%, transparent 50%);
}

.team-card-body { padding: 1.5rem; }
.team-card-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.team-card-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.team-card-handle {
  font-size: 0.78rem;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
}
.team-card-spec {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.team-card-bio {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.team-card-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.team-link {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.team-link:hover {
  color: var(--accent);
  border-color: var(--border-em);
  background: rgba(52,211,153,0.06);
  transform: translateY(-2px);
}

/* HackTheBox */
.team-link--htb {
  background: rgba(159,239,95,0.06);
  border-color: rgba(159,239,95,0.2);
}
.team-link--htb:hover {
  background: rgba(159,239,95,0.12);
  border-color: rgba(159,239,95,0.5);
}
.htb-icon {
  width: 16px; height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  display: inline-block;
}
.team-link--htb:hover .htb-icon { opacity: 1; }

/* TryHackMe */
.team-link--thm {
  background: rgba(255,60,0,0.06);
  border-color: rgba(255,60,0,0.2);
  color: rgba(255,120,80,0.7);
}
.team-link--thm:hover {
  background: rgba(255,60,0,0.12);
  border-color: rgba(255,60,0,0.5);
  color: #ff7850;
  transform: translateY(-2px);
}

/* ── Radar Chart Skill Visualization ────────────────────── */
.radar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.radar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.radar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-em);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.radar-member-name {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.radar-member-role {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: -0.5rem;
}
.radar-wrap {
  width: 180px;
  height: 180px;
  position: relative;
}
.radar-canvas {
  width: 100% !important;
  height: 100% !important;
}
.radar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ── Achievements / Scoreboard ───────────────────────────── */
.scoreboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.scoreboard-header {
  display: grid;
  grid-template-columns: 130px 1fr 160px 1fr;
  padding: 0.85rem 1.5rem;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scoreboard-row {
  display: grid;
  grid-template-columns: 130px 1fr 160px 1fr;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background var(--transition);
}
.scoreboard-row:last-child { border-bottom: none; }
.scoreboard-row:hover { background: rgba(255,255,255,0.02); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge--silver { background: rgba(192,192,192,0.12); color: #c0c0c0; border: 1px solid rgba(192,192,192,0.2); }
.badge--green  { background: rgba(52,211,153,0.1);  color: var(--accent); border: 1px solid var(--border-em); }
.badge--blue   { background: rgba(96,165,250,0.1);  color: #60a5fa; border: 1px solid rgba(96,165,250,0.2); }

.row-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.row-detail { font-size: 0.82rem; color: var(--text-muted); }
.row-host { font-size: 0.78rem; color: var(--text-muted); }

.writeups-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.writeups-title { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.writeups-sub { font-size: 0.8rem; color: var(--text-muted); }

/* ── Skill Matrix Table ──────────────────────────────────── */
.skill-matrix {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.skill-matrix-head {
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  padding: 0.85rem 1.5rem;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  gap: 1rem;
}
.sm-col-label { color: var(--text-faint); }
.sm-member {
  text-align: center;
  color: var(--accent);
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}
.sm-row {
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  padding: 1rem 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background var(--transition);
}
.sm-row:last-child { border-bottom: none; }
.sm-row:hover { background: rgba(255,255,255,0.02); }
.sm-domain {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.sm-domain-icon {
  font-size: 0.56rem;
  padding: 2px 7px;
  flex-shrink: 0;
}
.sm-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}
.sm-bar {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.sm-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  width: 0;
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.sm-fill.animated { width: var(--pct); }
.sm-pct {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.sm-note {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ── Services ────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.service-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-em);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}
.service-num {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.service-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.8;
}
.service-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.service-cats {
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.service-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.services-cta { text-align: center; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-left .section-label { display: inline-block; }
.contact-left .section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  text-align: left;
  margin-bottom: 1rem;
}
.contact-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-info { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.contact-info-item i { color: var(--accent); width: 16px; }
.contact-info-item:hover { color: var(--text); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.form-field { position: relative; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 0.5rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-field textarea { min-height: 130px; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.08);
}
.form-field label {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}
.form-field input:not(:placeholder-shown) ~ label,
.form-field input:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label {
  top: 0.3rem;
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.field-error {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.3rem;
  min-height: 1em;
}
.form-msg {
  font-size: 0.85rem;
  text-align: center;
  min-height: 1em;
}
.form-msg.success { color: var(--accent); }
.form-msg.error { color: #f87171; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--bg);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo {
  width: 32px; height: 32px;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0.7;
}
.footer-name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}
.footer-tagline { font-size: 0.7rem; color: var(--text-faint); }

.footer-socials {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.footer-social {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition), border-color var(--transition), transform var(--transition), background var(--transition);
}
.footer-social:hover {
  color: var(--accent);
  border-color: var(--border-em);
  background: rgba(52,211,153,0.05);
  transform: translateY(-3px);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: right;
}

/* ── Focus visible ───────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Category tags ───────────────────────────────────────── */
.tl-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(52,211,153,0.08);
  border: 1px solid var(--border-em);
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}
.tl-new-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 100px;
  animation: newPulse 2s ease-in-out infinite;
}
@keyframes newPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.1rem;
}
.tl-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid;
}
.tl-tag--web      { color: #60a5fa; background: rgba(96,165,250,0.1);  border-color: rgba(96,165,250,0.25); }
.tl-tag--crypto   { color: #c084fc; background: rgba(192,132,252,0.1); border-color: rgba(192,132,252,0.25); }
.tl-tag--rev      { color: #fb923c; background: rgba(251,146,60,0.1);  border-color: rgba(251,146,60,0.25); }
.tl-tag--osint    { color: #f472b6; background: rgba(244,114,182,0.1); border-color: rgba(244,114,182,0.25); }
.tl-tag--forensics{ color: #2dd4bf; background: rgba(45,212,191,0.1);  border-color: rgba(45,212,191,0.25); }
.tl-tag--social   { color: #f87171; background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.25); }
.tl-tag--pwn      { color: #facc15; background: rgba(250,204,21,0.1);  border-color: rgba(250,204,21,0.25); }

/* ══════════════════════════════════════════════════════════
   EVENTS — FULLSCREEN SLIDER
══════════════════════════════════════════════════════════ */
.events-slider-section {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.ev-hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(8,8,8,0.85) 0%, transparent 100%);
  pointer-events: none;
}
.ev-hud-label { pointer-events: all; }
.ev-hud-counter {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.ev-hud-counter span:first-child { font-size: 1.4rem; color: var(--accent); }
.ev-hud-sep { color: var(--text-faint); }
.ev-hud-arrows {
  display: flex;
  gap: 0.5rem;
  pointer-events: all;
}
.ev-arrow {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: none;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition), opacity var(--transition);
}
.ev-arrow:hover {
  background: rgba(52,211,153,0.1);
  border-color: var(--border-em);
  color: var(--accent);
  transform: scale(1.08);
}
.ev-arrow:disabled { opacity: 0.3; pointer-events: none; }

.ev-dots {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 8px;
}
.ev-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  border: none;
  cursor: none;
  transition: background var(--transition), transform var(--transition), width var(--transition);
  padding: 0;
}
.ev-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.ev-dot:hover { background: var(--text-muted); }

/* ── Track & Slides ──────────────────────────────────────── */
.ev-track {
  position: relative;
  width: 100%; height: 100%;
  flex: 1;
}
.ev-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: flex;
  will-change: transform, opacity;
}
.ev-slide--hidden { display: none !important; }

/* SMOOTH slide animations — using transform only, GPU accelerated */
@keyframes slideInRight {
  from { transform: translateX(6%); opacity: 0; }
  to   { transform: translateX(0);  opacity: 1; }
}
@keyframes slideInLeft {
  from { transform: translateX(-6%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}
@keyframes slideOutLeft {
  from { transform: translateX(0);   opacity: 1; }
  to   { transform: translateX(-6%); opacity: 0; }
}
@keyframes slideOutRight {
  from { transform: translateX(0);  opacity: 1; }
  to   { transform: translateX(6%); opacity: 0; }
}

.entering-slide-left  { animation: slideInRight 0.45s cubic-bezier(0.22,1,0.36,1) forwards; }
.entering-slide-right { animation: slideInLeft  0.45s cubic-bezier(0.22,1,0.36,1) forwards; }
.leaving-slide-left   { animation: slideOutLeft  0.35s cubic-bezier(0.22,1,0.36,1) forwards; pointer-events: none; }
.leaving-slide-right  { animation: slideOutRight 0.35s cubic-bezier(0.22,1,0.36,1) forwards; pointer-events: none; }

.ev-slide-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  width: 100%; height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 7rem 3rem 4rem;
  gap: 3rem;
  align-items: center;
}

.ev-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-right: 1rem;
}
.ev-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.ev-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.ev-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.85rem;
}
.ev-title em { font-style: normal; color: var(--accent); }
.ev-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.ev-location i { color: var(--accent); font-size: 0.72rem; }
.ev-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.ev-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
}
.ev-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  text-align: center;
}
.ev-stat:last-child { border-right: none; }
.ev-stat-num {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.ev-stat-lbl {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ── Photo gallery ───────────────────────────────────────── */
.ev-gallery {
  display: grid;
  height: 100%;
  max-height: calc(100dvh - 11rem);
  gap: 6px;
  align-content: start;
}

.ev-photo {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card2);
  min-height: 140px;
}
.ev-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ev-photo img:hover { transform: scale(1.03); }

/* 3-photo layout */
.ev-gallery--three {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.ev-gallery--three .ev-photo--tall { grid-row: span 2; }

/* 2-photo layout */
.ev-gallery--two {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

/* 1-photo layout */
.ev-gallery--single {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.ev-gallery--single .ev-photo,
.ev-photo--fill { height: 100%; }

/* Swipe hint */
.ev-swipe-hint {
  position: absolute;
  bottom: 4.5rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  white-space: nowrap;
}
.ev-swipe-hint.visible  { opacity: 1; }
.ev-swipe-hint.hidden   { opacity: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .radar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-left .section-title { text-align: center; }
  .about-accent-line { margin: 0 auto; }
  .about-lead { text-align: center; }
  .scoreboard-header,
  .scoreboard-row { grid-template-columns: 100px 1fr 120px; }
  .scoreboard-header span:last-child,
  .scoreboard-row .row-host { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-left .section-title { text-align: center; }
  .contact-sub { text-align: center; }
  .contact-info { align-items: center; }
  .ev-slide-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding: 5.5rem 2rem 4rem;
    gap: 1.5rem;
    align-items: start;
    overflow-y: auto;
  }
  .ev-info { padding-right: 0; height: auto; }
  .ev-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .ev-gallery { max-height: 300px; min-height: 200px; }
  .skill-matrix-head { grid-template-columns: 150px repeat(4, 1fr); font-size: 0.6rem; }
  .sm-row { grid-template-columns: 150px repeat(4, 1fr); }
  .sm-domain { font-size: 0.78rem; }
  .sm-domain-icon { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .section--fullscreen { padding: 6rem 0; }
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .nav-logo-text { display: none; }
  .team-card--lead { flex-direction: column; }
  .team-card--lead .team-card-img-wrap { width: 100%; height: 220px; }
  .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer-brand { justify-content: center; }
  .footer-copy { text-align: center; }
  .scoreboard-header,
  .scoreboard-row { grid-template-columns: 90px 1fr; }
  .scoreboard-header span:nth-child(3),
  .scoreboard-header span:last-child,
  .scoreboard-row .row-detail,
  .scoreboard-row .row-host { display: none; }
  .radar-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-hud { padding: 1.25rem 1.25rem; }
  .ev-slide-inner { padding: 5rem 1.25rem 3.5rem; }
  .ev-gallery--two { grid-template-columns: 1fr 1fr; max-height: 220px; }
  .ev-gallery--three { grid-template-columns: 1fr 1fr; max-height: 220px; }
  .ev-gallery--three .ev-photo--tall { grid-row: unset; }
  .ev-dots { bottom: 1.25rem; }
  .writeups-bar { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3.5rem; }
  .hero-stats { gap: 0; }
  .stat-item { padding: 0 1.25rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .radar-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .radar-wrap { width: 130px; height: 130px; }
  .skill-matrix { overflow-x: auto; }
  .skill-matrix-head,
  .sm-row {
    grid-template-columns: 110px repeat(4, 80px);
    min-width: 450px;
  }
}