/* ============================================================
   PORTFOLIO CYBERSEC — VIOLET GALAXY THEME
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --bg-primary:     #060010;
  --bg-secondary:   #0D0020;
  --bg-card:        #110025;
  --bg-card-hover:  #1A0038;
  --bg-glass:       rgba(17, 0, 37, 0.7);

  --purple-100: #F3E8FF;
  --purple-300: #C084FC;
  --purple-400: #A855F7;
  --purple-500: #8B5CF6;
  --purple-600: #7C3AED;
  --purple-700: #6D28D9;
  --purple-900: #2D1B69;

  --accent:       #A855F7;
  --accent-glow:  rgba(168, 85, 247, 0.4);
  --accent-dim:   rgba(168, 85, 247, 0.15);
  --green:        #00FF41;
  --green-dim:    rgba(0, 255, 65, 0.15);
  --pink:         #E879F9;
  --cyan:         #22D3EE;

  --text-primary:   #F0E6FF;
  --text-secondary: #B09FCC;
  --text-muted:     #6B5F80;

  --border:        rgba(168, 85, 247, 0.18);
  --border-active: rgba(168, 85, 247, 0.55);

  --glow-sm:  0 0 12px rgba(168, 85, 247, 0.35);
  --glow-md:  0 0 25px rgba(168, 85, 247, 0.45);
  --glow-lg:  0 0 50px rgba(168, 85, 247, 0.3);
  --glow-green: 0 0 12px rgba(0, 255, 65, 0.4);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-height: 68px;
  --section-pad: 100px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--purple-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── MATRIX CANVAS ── */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
}

/* ── BOOT TERMINAL OVERLAY ── */
#boot-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#boot-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.boot-terminal {
  width: min(700px, 90vw);
  background: #0a0010;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-lg), inset 0 0 30px rgba(168,85,247,0.05);
  overflow: hidden;
}
.boot-terminal-bar {
  background: var(--bg-card);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.boot-terminal-bar span {
  width: 12px; height: 12px; border-radius: 50%;
}
.boot-terminal-bar span:nth-child(1) { background: #ff5f57; }
.boot-terminal-bar span:nth-child(2) { background: #ffbd2e; }
.boot-terminal-bar span:nth-child(3) { background: #28c840; }
.boot-terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}
.boot-terminal-body {
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  min-height: 220px;
}
#boot-lines { display: flex; flex-direction: column; gap: 6px; }
.boot-line { display: flex; gap: 8px; align-items: baseline; }
.boot-prompt { color: var(--accent); }
.boot-text { color: var(--green); }
.boot-text.dim { color: var(--text-muted); }
.boot-text.ok { color: var(--green); }
.boot-text.err { color: #FF5555; }
.boot-text.info { color: var(--cyan); }
.cursor {
  display: inline-block;
  width: 9px; height: 16px;
  background: var(--green);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
  box-shadow: var(--glow-green);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── SKIP BOOT BUTTON ── */
#skip-boot {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 4px;
  transition: var(--transition);
}
#skip-boot:hover { color: var(--accent); border-color: var(--border-active); }

/* ── MAIN WRAPPER ── */
#main-content { position: relative; z-index: 1; opacity: 0; transition: opacity 0.8s ease; }
#main-content.visible { opacity: 1; }

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
nav.scrolled {
  background: rgba(6, 0, 16, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--glow-sm);
  white-space: nowrap;
}
.nav-logo span { color: var(--green); }
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Lang switcher */
.lang-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 10px;
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}
.lang-btn:hover:not(.active) { color: var(--text-primary); }

/* CV button */
.btn-cv {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-active);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  background: var(--accent-dim);
}
.btn-cv:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow-sm);
}
.btn-cv i { font-size: 11px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── SECTIONS ── */
section {
  padding: var(--section-pad) 0;
  position: relative;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--purple-600), var(--pink));
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(168,85,247,0.5);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(124, 58, 237, 0.18);
  top: -100px; right: -100px;
}
.orb-2 {
  width: 350px; height: 350px;
  background: rgba(232, 121, 249, 0.1);
  bottom: 0; left: -80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0,255,65,0.25);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--glow-green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.hero-name {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-300) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--accent);
  margin-bottom: 8px;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  padding: 12px 28px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-active);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: var(--accent-dim);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.hero-socials { display: flex; gap: 12px; }
.social-link {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition);
  background: var(--bg-card);
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--border-active);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}
.hero-photo-wrapper {
  position: relative;
  flex-shrink: 0;
}
.hero-photo-ring {
  width: 260px; height: 260px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--purple-600), var(--pink), var(--purple-400));
  box-shadow: var(--glow-md);
  position: relative;
}
.hero-photo-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(168,85,247,0.2);
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-placeholder {
  width: 100%; height: 252px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--text-muted);
  overflow: hidden;
}
.hero-photo-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  justify-content: center;
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  text-shadow: var(--glow-sm);
}
.hero-stat span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── ABOUT ── */
#about { background: linear-gradient(180deg, transparent 0%, rgba(17,0,37,0.5) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}
.about-bio {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
}
.about-bio p { margin-bottom: 16px; }
.alternance-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.alternance-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-600), var(--pink));
}
.alternance-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alternance-label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--glow-green);
  animation: pulse 2s ease-in-out infinite;
}
.alternance-role {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.alternance-company {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}
.alternance-dates {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.alternance-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── SKILLS ── */
#skills { }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.skill-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}
.skill-category {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.skill-level-bar {
  height: 3px;
  background: var(--bg-secondary);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}
.skill-level-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-600), var(--pink));
  border-radius: 2px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--accent-glow);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(168,85,247,0.08);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  transition: var(--transition);
}
.skill-tag:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-active);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow: var(--glow-md);
}
.project-img {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--purple-900));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-glass));
}
.project-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 4px;
}
.project-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.project-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.project-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.project-link:hover { text-shadow: var(--glow-sm); }

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--purple-600), var(--pink), transparent);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--purple-600);
  border: 2px solid var(--bg-primary);
  box-shadow: var(--glow-sm);
}
.timeline-dot.current {
  background: var(--green);
  box-shadow: var(--glow-green);
  animation: pulse 2s ease-in-out infinite;
}
.timeline-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.timeline-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--glow-sm);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.timeline-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}
.timeline-org {
  font-size: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}
.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.timeline-badge.work { background: rgba(168,85,247,0.15); color: var(--accent); border: 1px solid rgba(168,85,247,0.3); }
.timeline-badge.certification { background: rgba(34,211,238,0.1); color: var(--cyan); border: 1px solid rgba(34,211,238,0.3); }
.timeline-badge.diploma { background: rgba(232,121,249,0.1); color: var(--pink); border: 1px solid rgba(232,121,249,0.3); }

/* ── CTF ── */
.ctf-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.platform-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.platform-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.platform-card.htb::before { background: linear-gradient(90deg, #9FEF00, #27c93f); }
.platform-card.thm::before { background: linear-gradient(90deg, #1DB954, #00B0FF); }
.platform-card:hover { border-color: var(--border-active); box-shadow: var(--glow-sm); transform: translateY(-3px); }
.platform-logo {
  font-size: 40px;
  margin-bottom: 12px;
}
.platform-name {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.platform-score {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.platform-rank {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}
.platform-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 4px;
  transition: var(--transition);
}
.platform-link:hover { border-color: var(--border-active); background: var(--accent-dim); }

/* CTF Filters */
.ctf-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  color: var(--accent);
  border-color: var(--border-active);
  background: var(--accent-dim);
}

/* CTF Table */
.ctf-table-wrapper { overflow-x: auto; }
.ctf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ctf-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ctf-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(168,85,247,0.07);
  color: var(--text-secondary);
  vertical-align: middle;
}
.ctf-table tr:hover td { background: rgba(168,85,247,0.04); }
.ctf-table tr:last-child td { border-bottom: none; }
.diff-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.diff-easy { background: rgba(0,255,65,0.1); color: #00FF41; border: 1px solid rgba(0,255,65,0.2); }
.diff-medium { background: rgba(255,189,46,0.1); color: #FFC107; border: 1px solid rgba(255,189,46,0.2); }
.diff-hard { background: rgba(255,85,85,0.1); color: #FF5555; border: 1px solid rgba(255,85,85,0.2); }
.diff-insane { background: rgba(232,121,249,0.1); color: var(--pink); border: 1px solid rgba(232,121,249,0.3); }

/* ── CONTACT ── */
#contact { background: linear-gradient(180deg, transparent 0%, rgba(17,0,37,0.4) 100%); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}
.contact-socials { display: flex; flex-direction: column; gap: 14px; }
.contact-social {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 15px;
  transition: var(--transition);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.contact-social:hover {
  color: var(--text-primary);
  border-color: var(--border);
  background: var(--bg-card);
}
.contact-social i {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  transition: var(--transition);
  outline: none;
  resize: none;
}
.form-control:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: var(--bg-card);
}
.form-control::placeholder { color: var(--text-muted); }
/* honeypot */
.hp-field { display: none !important; }
.btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }
.btn-submit:disabled { opacity: 0.5; pointer-events: none; }
.form-status {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  min-height: 20px;
}
.form-status.success { color: var(--green); }
.form-status.error { color: #FF5555; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.footer-logo span { color: var(--green); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-social:hover { color: var(--accent); border-color: var(--border-active); box-shadow: var(--glow-sm); }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── NOTIFICATION TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: var(--glow-sm);
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: rgba(0,255,65,0.4); }
.toast.error { border-color: rgba(255,85,85,0.4); }

/* ── LOADING SPINNER ── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
  margin: 60px auto;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo-wrapper { order: -1; margin: 0 auto; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 70px;
    --nav-height: 60px;
  }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
  nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(6,0,16,0.97);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  nav.mobile-open .nav-actions {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--nav-height) + 280px);
    left: 0; right: 0;
    background: rgba(6,0,16,0.97);
    backdrop-filter: blur(20px);
    padding: 16px 20px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
  }
  .hero-photo-ring { width: 200px; height: 200px; }
  .hero-photo-placeholder { height: 192px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .ctf-table th:nth-child(4),
  .ctf-table td:nth-child(4) { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-title { font-size: 26px; }
  .hero-name { font-size: 36px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .toast { bottom: 16px; right: 16px; left: 16px; max-width: unset; }
}

/* ── DETAIL PAGE (project.html) ── */
.detail-hero {
  padding: calc(var(--nav-height) + 60px) 0 60px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  transition: var(--transition);
}
.back-link:hover { color: var(--accent); }
.detail-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-300) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  align-items: center;
}
.detail-content {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
  line-height: 1.85;
  color: var(--text-secondary);
  font-size: 15px;
}
.detail-content h2, .detail-content h3 { color: var(--text-primary); margin: 28px 0 12px; }
.detail-content h2 { font-size: 22px; }
.detail-content h3 { font-size: 18px; color: var(--accent); }
.detail-content p { margin-bottom: 14px; }
.detail-content ul, .detail-content ol { padding-left: 20px; margin-bottom: 14px; }
.detail-content li { margin-bottom: 6px; }
.detail-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(168,85,247,0.1);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.detail-content pre {
  background: #0a0018;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.detail-content pre code {
  background: none;
  border: none;
  color: var(--green);
  font-size: 13px;
  padding: 0;
}
.detail-content strong { color: var(--text-primary); font-weight: 600; }
.detail-content a { color: var(--accent); border-bottom: 1px solid var(--border-active); }
.detail-content a:hover { text-shadow: var(--glow-sm); }
