/* ============================================================
   RESUME THEME — Neon Cyberpunk
   Import this file into any resume HTML that uses data.json
   ============================================================ */

/* ── FONTS ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600&family=Share+Tech+Mono&display=swap');

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  --bg-deep:       #03050f;
  --bg-dark:       #070d1e;
  --bg-card:       rgba(12, 22, 50, 0.92);
  --neon-cyan:     #00f5ff;
  --neon-purple:   #b44fff;
  --neon-green:    #39ff14;
  --neon-orange:   #ff8c00;
  --neon-blue:     #1e90ff;
  --text-primary:  #ffffff;
  --text-secondary:#c8dff5;
  --text-dim:      #7a9dc0;
  --border-glow:   rgba(0, 245, 255, 0.25);
  --border-subtle: rgba(30, 144, 255, 0.15);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ── BASE ───────────────────────────────────────────────────── */
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 320px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(180, 79, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(0, 245, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(30, 144, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

canvas#mesh {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.35;
}

@media (max-width: 600px) { canvas#mesh { opacity: 0.18; } }

.page-wrap { position: relative; z-index: 1; }

/* ── HEADER ─────────────────────────────────────────────────── */
header {
  padding: clamp(36px, 8vw, 70px) clamp(16px, 5vw, 60px) clamp(28px, 5vw, 50px);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-glow);
  animation: fadeSlideUp 0.8s ease forwards;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%; transform: translateX(-50%);
  width: clamp(100px, 30vw, 200px); height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
}

.header-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(0, 245, 255, 0.3);
  padding: 5px clamp(10px, 3vw, 20px);
  border-radius: 2px;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 2vw, 11px);
  color: var(--neon-cyan);
  letter-spacing: clamp(1px, 0.5vw, 3px);
  margin-bottom: clamp(16px, 3vw, 28px);
  background: rgba(0, 245, 255, 0.04);
  white-space: nowrap;
}

.header-badge span { color: var(--text-dim); }

h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 7vw, 4rem);
  font-weight: 900;
  letter-spacing: clamp(1px, 1vw, 4px);
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-cyan) 50%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  word-break: break-word;
  animation: glowPulse 4s ease-in-out infinite;
}

.title-role {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(8px, 2vw, 13px);
  letter-spacing: clamp(1px, 1vw, 5px);
  color: var(--neon-purple);
  margin-bottom: 20px;
  text-transform: uppercase;
  padding: 0 10px;
}

.contact-row {
  display: flex;
  gap: clamp(10px, 3vw, 28px);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 0 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 2.5vw, 13px);
  color: #a0c8f0;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}

.contact-item:hover { color: var(--neon-cyan); }
.contact-icon { color: var(--neon-cyan); font-size: 13px; flex-shrink: 0; }

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 5, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px 10px;
}

nav a {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(7px, 1.8vw, 10px);
  letter-spacing: clamp(0.5px, 0.3vw, 2px);
  padding: clamp(5px, 1.2vw, 8px) clamp(8px, 2vw, 18px);
  text-decoration: none;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.2s;
  text-transform: uppercase;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  color: var(--neon-cyan);
  border-color: rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.05);
}

/* ── MAIN LAYOUT ────────────────────────────────────────────── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 60px) clamp(14px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 70px);
}

/* ── SECTION TITLES ─────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.section-number {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 1.5vw, 11px);
  color: var(--neon-cyan);
  opacity: 0.6;
  flex-shrink: 0;
}

.section-head h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(13px, 3vw, 18px);
  letter-spacing: clamp(2px, 0.8vw, 4px);
  color: var(--text-primary);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-glow), transparent);
  min-width: 20px;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: clamp(18px, 3vw, 32px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before { opacity: 1; }
@media (hover: hover) {
  .card:hover { border-color: rgba(0, 245, 255, 0.25); transform: translateY(-2px); }
}

/* ── SUMMARY ────────────────────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 20px);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.stat-box {
  background: rgba(0, 245, 255, 0.04);
  border: 1px solid rgba(0, 245, 255, 0.15);
  padding: clamp(12px, 2vw, 20px);
  border-radius: 3px;
  text-align: center;
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--neon-cyan);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: clamp(9px, 1.5vw, 11px);
  letter-spacing: clamp(1px, 0.5vw, 2px);
  color: var(--text-dim);
  text-transform: uppercase;
}

.summary-text {
  color: #d8eeff;
  font-size: clamp(14px, 2.2vw, 17px);
  line-height: 1.85;
  font-weight: 400;
}

/* ── EXPERIENCE ─────────────────────────────────────────────── */
.exp-list { display: flex; flex-direction: column; gap: clamp(16px, 2.5vw, 24px); }

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--neon-purple);
  padding: clamp(16px, 3vw, 30px) clamp(16px, 3vw, 32px);
  position: relative;
  transition: all 0.3s;
}

.exp-card:nth-child(2) { border-left-color: var(--neon-cyan); }
.exp-card:nth-child(3) { border-left-color: var(--neon-orange); }
.exp-card:nth-child(4) { border-left-color: var(--neon-blue); }
.exp-card:nth-child(5) { border-left-color: var(--neon-green); }
.exp-card:nth-child(5) .exp-company { color: var(--neon-green); }

@media (hover: hover) {
  .exp-card:hover { border-color: rgba(180, 79, 255, 0.35); transform: translateX(4px); }
  .exp-card:nth-child(2):hover { border-color: rgba(0, 245, 255, 0.35); }
}

.exp-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-company {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(10px, 2vw, 14px);
  color: var(--neon-purple);
  letter-spacing: clamp(1px, 0.5vw, 2px);
  margin-bottom: 4px;
}

.exp-card:nth-child(2) .exp-company { color: var(--neon-cyan); }
.exp-card:nth-child(3) .exp-company { color: var(--neon-orange); }
.exp-card:nth-child(4) .exp-company { color: var(--neon-blue); }

.exp-role {
  font-size: clamp(15px, 3vw, 20px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.exp-period {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 1.8vw, 11px);
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 4px clamp(8px, 1.5vw, 12px);
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  align-self: flex-start;
}

.exp-location {
  font-size: clamp(11px, 1.8vw, 13px);
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: clamp(10px, 2vw, 16px);
}

.exp-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vw, 10px);
}

.exp-points li {
  display: flex;
  gap: 10px;
  font-size: clamp(13px, 2.2vw, 15px);
  color: #cce4ff;
  font-weight: 400;
  line-height: 1.7;
}

.exp-points li::before {
  content: '▸';
  color: var(--neon-cyan);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
}

/* ── SKILLS ─────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: clamp(16px, 2.5vw, 22px) clamp(16px, 2.5vw, 24px);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.skill-group::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--neon-cyan);
}

.skill-group:nth-child(2)::before { background: var(--neon-purple); }
.skill-group:nth-child(3)::before { background: var(--neon-orange); }
.skill-group:nth-child(4)::before { background: var(--neon-green); }
.skill-group:nth-child(5)::before { background: var(--neon-blue); }
.skill-group:nth-child(6)::before { background: #ff4d6d; }

@media (hover: hover) {
  .skill-group:hover { background: rgba(0, 245, 255, 0.04); border-color: rgba(0, 245, 255, 0.2); }
}

.skill-group-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(8px, 1.5vw, 10px);
  letter-spacing: clamp(1px, 0.5vw, 3px);
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.skill-group:nth-child(2) .skill-group-title { color: var(--neon-purple); }
.skill-group:nth-child(3) .skill-group-title { color: var(--neon-orange); }
.skill-group:nth-child(4) .skill-group-title { color: var(--neon-green); }
.skill-group:nth-child(5) .skill-group-title { color: var(--neon-blue); }
.skill-group:nth-child(6) .skill-group-title { color: #ff4d6d; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.skill-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 1.8vw, 12px);
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: #c8e8ff;
  background: rgba(0, 245, 255, 0.07);
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

@media (hover: hover) {
  .skill-tag:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); background: rgba(0, 245, 255, 0.12); }
}

/* ── EDUCATION ──────────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: clamp(18px, 3vw, 28px);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.edu-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(180, 79, 255, 0.15), transparent 70%);
}

.edu-degree {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(10px, 1.8vw, 13px);
  color: var(--neon-purple);
  letter-spacing: 1px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.edu-institution {
  font-size: clamp(13px, 2.2vw, 16px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.edu-year {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 1.8vw, 12px);
  color: var(--text-dim);
}

/* ── CERTIFICATIONS ─────────────────────────────────────────── */
.cert-badges { display: flex; flex-wrap: wrap; gap: 12px; }

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.04);
  padding: clamp(10px, 2vw, 14px) clamp(14px, 2.5vw, 20px);
  border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(11px, 2vw, 13px);
  color: var(--neon-green);
}

.cert-badge::before { content: '◆'; font-size: 10px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: clamp(24px, 4vw, 40px) 20px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}

.footer-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 1.8vw, 11px);
  color: var(--text-dim);
  letter-spacing: 2px;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.25)); }
  50%       { filter: drop-shadow(0 0 18px rgba(0, 245, 255, 0.55)); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (min-width: 1400px) {
  main { max-width: 1300px; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  nav { gap: 2px; }
}

@media (max-width: 767px) {
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .exp-meta { flex-direction: column; gap: 6px; }
  .exp-period { align-self: flex-start; }
  nav { padding: 6px 8px; gap: 2px; overflow-x: auto; justify-content: flex-start; }
  nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 479px) {
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .header-badge { font-size: 9px; letter-spacing: 1px; padding: 5px 12px; }
  .contact-row { gap: 10px; }
  .title-role { font-size: 8px; letter-spacing: 1.5px; }
}

@media (max-width: 359px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.4rem; }
  .header-badge { display: none; }
  nav a { padding: 5px 7px; font-size: 7px; }
}

@media (hover: none) {
  .exp-card:hover { transform: none; }
  .card:hover { transform: none; }
}

@media print {
  canvas#mesh, nav { display: none !important; }
  body { background: white; color: black; }
  .card, .exp-card, .skill-group, .edu-card {
    border: 1px solid #ccc !important;
    background: white !important;
    break-inside: avoid;
  }
  main { padding: 0; }
  h1 { color: black; -webkit-text-fill-color: black; background: none; }
  .exp-company, .skill-group-title { color: #333 !important; }
}
