/* ============================================================
   CSS CUSTOM PROPERTIES — Edit these to restyle the whole site
   ============================================================ */
:root {
  /* CONFIG: Core color palette */
  --bg:           #0d0f14;
  --bg-card:      #13161e;
  --bg-card-hover:#181c27;
  --border:       #1e2333;
  --border-light: #252b3d;

  /* CONFIG: Accent color (used for highlights, active tabs, tags) */
  --accent:       #4af0a0;   /* Mint green — change to any hex you like */
  --accent-dim:   rgba(74, 240, 160, 0.12);
  --accent-glow:  rgba(74, 240, 160, 0.25);

  /* CONFIG: Text colors */
  --text-primary:  #e8eaf0;
  --text-secondary:#8892a4;
  --text-muted:    #4a5568;

  /* CONFIG: Typography */
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Syne', sans-serif;

  /* Layout */
  --max-width: 1100px;
  --nav-height: 56px;
  --radius: 10px;
  --radius-sm: 6px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

/* Noise texture overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

/* Dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border-light) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

/* Radial gradient vignette */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(74,240,160,0.05) 0%, transparent 70%),
              radial-gradient(ellipse 60% 80% at 20% 80%, rgba(74,240,160,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.8s ease both;
}

.hero-identity {
  padding: 3rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(74,240,160,0.2);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}

.hero-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.hero-link.muted { cursor: default; }
.hero-link.muted:hover {
  color: var(--text-secondary);
  border-color: var(--border);
  background: var(--bg-card);
  transform: none;
}

/* ============================================================
   NAVIGATION TABS (inside hero, at the bottom)
   ============================================================ */
.tab-nav {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(13, 15, 20, 0.6);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--border);
}

.tab-nav-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0;
}

.tab-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 18px 24px;
  cursor: pointer;
  transition: color 0.2s ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent); }

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

/* ============================================================
   MAIN CONTENT / SECTIONS
   ============================================================ */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.tab-section {
  display: none;
  animation: fadeUp 0.4s ease both;
}

.tab-section.active { display: block; }

.section-inner {
  padding: 4rem 0 6rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.heading-tag {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 400;
}

/* ============================================================
   SUMMARY TAB
   ============================================================ */
.summary-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.summary-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.85;
  font-size: 15px;
}

.summary-text p:last-child { margin-bottom: 0; }

.summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   SKILLS TAB
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease;
}

.skill-category:hover { border-color: var(--border-light); }

.skill-cat-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.skill-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all 0.15s ease;
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* CONFIG: "primary" tags are highlighted more prominently */
.skill-tag.primary {
  background: var(--accent-dim);
  border-color: rgba(74,240,160,0.25);
  color: var(--accent);
}

/* ============================================================
   PROJECTS TAB
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon { font-size: 1.6rem; }

.project-links { display: flex; gap: 8px; }

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.project-link-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

/* ============================================================
   EXPERIENCE TAB
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.edu-dot {
  border-color: var(--border-light);
  box-shadow: none;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.2s ease;
}

.timeline-content:hover { border-color: var(--border-light); }

.timeline-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.timeline-location {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  margin-bottom: 14px;
}

.timeline-bullets li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.65;
}

.timeline-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 4px var(--accent); }
  50%       { box-shadow: 0 0 12px var(--accent), 0 0 20px var(--accent-glow); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .summary-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .summary-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tab-btn {
    padding: 16px 14px;
    font-size: 12px;
  }
  .summary-stats {
    grid-template-columns: 1fr 1fr;
  }
  .section-inner {
    padding: 3rem 0 4rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 20px;
  }
  .timeline-dot {
    left: -26px;
    width: 11px;
    height: 11px;
  }
  .timeline-content {
    padding: 18px 20px;
  }
  .hero-name {
    font-size: clamp(2.6rem, 13vw, 5rem);
  }
}
