@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #06090f;
  --bg-secondary: #0c1220;
  --bg-card: rgba(12, 18, 32, 0.7);
  --bg-card-hover: rgba(18, 28, 48, 0.85);
  --border: rgba(56, 189, 248, 0.1);
  --border-hover: rgba(56, 189, 248, 0.25);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #22d3ee;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-purple: #a78bfa;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --gradient-main: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #a78bfa 100%);
  --gradient-green: linear-gradient(135deg, #10b981 0%, #22d3ee 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.15);
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.15);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

a { color: var(--accent-cyan); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--accent-blue); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 9, 15, 0.8);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(6, 9, 15, 0.95); box-shadow: var(--glow-cyan); }
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav-logo {
  font-family: var(--font-mono); font-weight: 700; font-size: 18px;
  background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: color 0.25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gradient-main); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-cyan); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero-avatar {
  width: 140px; height: 140px; border-radius: 50%;
  border: 3px solid transparent; background-origin: border-box; background-clip: padding-box, border-box;
  background-image: linear-gradient(var(--bg-primary), var(--bg-primary)), var(--gradient-main);
  margin: 0 auto 28px; overflow: hidden; box-shadow: var(--glow-cyan);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.hero h1 .gradient-text {
  background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-roles {
  font-family: var(--font-mono); font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--accent-green); margin-bottom: 28px; min-height: 1.5em;
}
.hero-roles .cursor { animation: blink 1s step-end infinite; color: var(--accent-cyan); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-secondary);
  background: var(--bg-card); backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.hero-links a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); transform: translateY(-2px); box-shadow: var(--glow-cyan); }
.hero-links a.btn-primary-gradient {
  background: var(--gradient-main); border: none; color: #fff;
  font-weight: 600;
}
.hero-links a.btn-primary-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25); }

/* ── Section Layout ── */
.section { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px;
}
.section-header h2 .gradient-text {
  background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header p { color: var(--text-secondary); font-size: 16px; max-width: 600px; margin: 0 auto; }
.section-divider {
  width: 60px; height: 3px; margin: 16px auto 0;
  background: var(--gradient-main); border-radius: 2px;
}

/* ── Cards ── */
.glass-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s ease;
}
.glass-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-4px); box-shadow: var(--glow-blue); }

/* ── Skills ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.skill-card-icon { font-size: 28px; margin-bottom: 14px; }
.skill-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  font-family: var(--font-mono); border: 1px solid transparent;
}
.skill-tag.cyan { background: rgba(34, 211, 238, 0.08); color: var(--accent-cyan); border-color: rgba(34, 211, 238, 0.15); }
.skill-tag.blue { background: rgba(59, 130, 246, 0.08); color: var(--accent-blue); border-color: rgba(59, 130, 246, 0.15); }
.skill-tag.green { background: rgba(16, 185, 129, 0.08); color: var(--accent-green); border-color: rgba(16, 185, 129, 0.15); }
.skill-tag.purple { background: rgba(167, 139, 250, 0.08); color: var(--accent-purple); border-color: rgba(167, 139, 250, 0.15); }
.skill-tag.amber { background: rgba(245, 158, 11, 0.08); color: var(--accent-amber); border-color: rgba(245, 158, 11, 0.15); }

/* ── Security Research ── */
.research-tabs { display: flex; gap: 4px; justify-content: center; margin-bottom: 40px; background: var(--bg-secondary); border-radius: 10px; padding: 4px; max-width: 440px; margin-left: auto; margin-right: auto; }
.research-tab {
  flex: 1; padding: 10px 20px; border-radius: 8px; border: none;
  background: transparent; color: var(--text-secondary); font-family: var(--font-body);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.25s;
}
.research-tab.active { background: var(--gradient-main); color: #fff; }
.research-tab:hover:not(.active) { color: var(--text-primary); }
.research-panel { display: none; }
.research-panel.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px;
  margin-bottom: 40px;
}
.stat-item {
  text-align: center; padding: 20px 12px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.stat-number {
  font-family: var(--font-mono); font-size: 28px; font-weight: 800;
  background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

.target-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 28px; }
.target-card { padding: 20px; }
.target-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.target-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.target-icon.web2 { background: rgba(34, 211, 238, 0.1); color: var(--accent-cyan); }
.target-icon.web3 { background: rgba(167, 139, 250, 0.1); color: var(--accent-purple); }
.target-card h4 { font-size: 15px; font-weight: 600; }
.target-card .target-type { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.target-card .target-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.target-card .target-tags span {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: rgba(59, 130, 246, 0.08); color: var(--accent-blue);
  font-family: var(--font-mono);
}

.methodology-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 32px; }
.method-card { padding: 24px; }
.method-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--accent-cyan); }
.method-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.method-badge {
  display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px;
  font-weight: 600; font-family: var(--font-mono); margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.method-badge.high { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); }
.method-badge.critical { background: rgba(239, 68, 68, 0.12); color: var(--accent-red); }

/* ── Toolkit ── */
.toolkit-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.toolkit-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.toolkit-info p { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }
.toolkit-features { list-style: none; }
.toolkit-features li {
  padding: 8px 0; color: var(--text-secondary); font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.toolkit-features li::before { content: '\25B8'; color: var(--accent-green); font-size: 12px; }
.toolkit-terminal {
  background: #0a0e17; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; font-family: var(--font-mono); font-size: 13px;
}
.terminal-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }
.terminal-title { margin-left: 8px; font-size: 12px; color: var(--text-muted); }
.terminal-body { padding: 16px; line-height: 1.9; color: var(--text-secondary); overflow-x: auto; }
.terminal-body .prompt { color: var(--accent-green); }
.terminal-body .cmd { color: var(--accent-cyan); }
.terminal-body .flag { color: var(--accent-purple); }
.terminal-body .output { color: var(--text-muted); }
.terminal-body .success { color: var(--accent-green); }
.terminal-body .finding { color: var(--accent-amber); }

/* ── Projects ── */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.project-card { padding: 24px; display: flex; flex-direction: column; }
.project-card h4 { font-size: 16px; font-weight: 600; color: var(--accent-cyan); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.project-card p { font-size: 13px; color: var(--text-secondary); flex-grow: 1; margin-bottom: 16px; }
.project-links { display: flex; gap: 12px; margin-bottom: 12px; }
.project-links a {
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border); color: var(--text-secondary);
  transition: all 0.2s;
}
.project-links a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.project-tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech-tags span {
  font-size: 11px; color: var(--text-muted); font-family: var(--font-mono);
  display: flex; align-items: center; gap: 4px;
}
.project-tech-tags span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); display: inline-block; }

/* ── Experience ── */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}
.timeline-item { position: relative; padding-left: 56px; margin-bottom: 36px; }
.timeline-item::before {
  content: ''; position: absolute; left: 14px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-primary); border: 3px solid var(--accent-cyan);
  z-index: 1;
}
.timeline-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.timeline-header h4 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.timeline-company { font-size: 14px; color: var(--accent-cyan); font-weight: 500; }
.timeline-date { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); margin-left: auto; }
.timeline-body { list-style: none; }
.timeline-body li {
  padding: 4px 0; font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 8px;
}
.timeline-body li::before { content: '\25B8'; color: var(--accent-green); margin-top: 2px; flex-shrink: 0; }

/* ── Certifications ── */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cert-item { padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.cert-year {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08); padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.cert-item .cert-name { font-size: 14px; color: var(--text-secondary); }
.cert-item .cert-provider { font-size: 12px; color: var(--text-muted); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border); padding: 40px 24px;
  text-align: center; color: var(--text-muted); font-size: 13px;
}
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-links a { color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-cyan); }

/* ── Reveal Animation ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .toolkit-layout { grid-template-columns: 1fr; }
  .target-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 56px; left: 0; right: 0; background: rgba(6,9,15,0.97); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 60px 16px; }
  .skills-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 12px; }
  .timeline-item { padding-left: 40px; }
  .timeline-item::before { left: 6px; }
  .timeline-date { margin-left: 0; width: 100%; }
  .methodology-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
}
