/* ================================================================
   STYLE.CSS — Portfolio Stylesheet
   ✏️ UPDATE: CSS Variables at the top to change the entire theme
================================================================ */

/* ----------------------------------------------------------------
   ROOT VARIABLES — Change these to retheme the whole site
---------------------------------------------------------------- */
:root {
  /* ✏️ UPDATE: Core brand color (used for highlights, accents) */
  --accent:       #00e5ff;
  --accent-dim:   #00e5ff33;
  --accent-glow:  0 0 24px #00e5ff55;

  /* Background layers */
  --bg-base:      #080c10;
  --bg-surface:   #0d1117;
  --bg-card:      #111820;
  --bg-card-hover:#141e28;

  /* Text */
  --text-primary: #e8edf3;
  --text-muted:   #6b7a8d;
  --text-faint:   #3a4654;

  /* Borders */
  --border:       #1e2d3d;
  --border-light: #243447;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing */
  --header-h:     68px;
  --max-w:        1100px;
  --radius:       12px;
  --radius-sm:    8px;

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  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; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ----------------------------------------------------------------
   NOISE OVERLAY (grain texture)
---------------------------------------------------------------- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ----------------------------------------------------------------
   BACKGROUND GLOW BLOBS
---------------------------------------------------------------- */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}

body::before {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, #00e5ff18 0%, transparent 70%);
}

body::after {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, #00b0ff12 0%, transparent 70%);
}

/* ----------------------------------------------------------------
   HEADER
---------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--border);
}

.tab-btn.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.tab-btn.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Header Icons */
.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
}

.icon-link svg { width: 16px; height: 16px; }

.icon-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: var(--accent-glow);
}

/* ----------------------------------------------------------------
   MAIN LAYOUT
---------------------------------------------------------------- */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  min-height: 100vh;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 100px;
}

/* ----------------------------------------------------------------
   TAB CONTENT (show/hide)
---------------------------------------------------------------- */
.tab-content {
  display: none;
  animation: fadeSlideUp 0.45s var(--ease) both;
}

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

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------
   SECTION HEADER
---------------------------------------------------------------- */
.section-header {
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--text-primary);
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ================================================================
   TAB 1 — SUMMARY
================================================================ */
.summary-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 72px);
}

.greeting {
  font-size: 15px;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.greeting::before {
  content: '//';
  opacity: 0.4;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 112px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -4px;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.hero-name::after {
  content: '.';
  color: var(--accent);
}

.hero-role {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  display: inline-block;
}

.hero-bio {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-bio strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* CTA Buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  background: var(--accent);
  color: #080c10;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease);
  box-shadow: var(--accent-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #33ecff;
  box-shadow: 0 0 36px #00e5ff88;
  transform: translateY(-2px);
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease);
}

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

/* Info Cards (stacked on the right) */
.summary-card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

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

.info-card:hover::before { opacity: 1; }
.info-card:hover { border-color: var(--border-light); background: var(--bg-card-hover); }

.card-label {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-value {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.card-1 .card-value { color: var(--accent); }

/* ================================================================
   TAB 2 — SKILLS
================================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

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

.skill-category:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}

.category-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-icon { font-size: 18px; }

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

.tag {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.02em;
}

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

.tag-learning {
  border-color: #ff6b3533;
  color: #ff8c5a;
  background: #ff6b3511;
}

.tag-learning:hover {
  border-color: #ff6b35;
  color: #ff8c5a;
  background: #ff6b3522;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

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

.project-card:hover::after { opacity: 1; }

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

.project-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.project-link {
  color: var(--text-faint);
  transition: color 0.2s var(--ease);
  display: flex;
}

.project-link svg { width: 18px; height: 18px; }
.project-link:hover { color: var(--accent); }

.project-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  line-height: 1.3;
}

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

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.project-stack span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ================================================================
   TAB 4 — EXPERIENCE (TIMELINE)
================================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 40%, transparent 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 56px;
}

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

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-base);
  box-shadow: 0 0 14px var(--accent);
  transition: all 0.3s var(--ease);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
}

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

.timeline-content:hover {
  border-color: var(--border-light);
  transform: translateX(6px);
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tl-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  line-height: 1.3;
}

.tl-org {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-top: 5px;
  letter-spacing: 0.04em;
}

.tl-date {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  white-space: nowrap;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tl-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.tl-tags span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

footer strong { color: var(--text-muted); font-weight: 500; }

/* ================================================================
   RESPONSIVE — MOBILE
================================================================ */
@media (max-width: 768px) {

  .header-inner { gap: 12px; }
  .header-links { display: none; }

  .tab-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .summary-hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
    padding-top: 24px;
  }

  .summary-card-stack {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .info-card { min-width: 160px; }

  .hero-name { letter-spacing: -2px; }

  .tl-header { flex-direction: column; }

  .section-inner { padding: 48px 20px 80px; }

  .projects-grid, .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tab-nav { gap: 2px; }
  .tab-btn { padding: 6px 10px; font-size: 11px; }
  .logo-text { font-size: 17px; }
}
