:root {
  --bg: #f5f5f7;
  --bg2: #ffffff;
  --surface: rgba(255,255,255,0.72);
  --border: rgba(0,0,0,0.08);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-light: #e8f0fe;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 32px rgba(0,0,0,0.10);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.16);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(245,245,247,0.82);
  border-bottom: 1px solid var(--border);
  height: 52px;
  display: flex; align-items: center;
  padding: 0 40px;
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: 1080px; width: 100%; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--text-primary); letter-spacing: .5px; text-decoration: none;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; color: var(--text-secondary); text-decoration: none;
  letter-spacing: .2px; transition: color .2s;
}
.nav-links a:hover { color: var(--text-primary); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(0,113,227,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 70%, rgba(90,200,250,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); color: var(--accent);
  border-radius: 100px; padding: 6px 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 28px;
  animation: fadeUp .8s ease both;
}
.hero-badge i { font-size: 10px; }
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 700; line-height: 1.05; letter-spacing: -2px;
  color: var(--text-primary);
  animation: fadeUp .8s .15s ease both;
}
.hero-name em { font-style: italic; color: var(--accent); }
.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px); color: var(--text-secondary);
  font-weight: 300; margin-top: 18px; max-width: 560px;
  line-height: 1.5;
  animation: fadeUp .8s .3s ease both;
}
.hero-cta {
  display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp .8s .45s ease both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 980px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; border: none;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 24px rgba(0,113,227,0.28);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,113,227,0.36); }
.btn-secondary {
  background: rgba(0,0,0,0.06); color: var(--text-primary);
}
.btn-secondary:hover { background: rgba(0,0,0,0.10); transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeUp .8s .8s ease both;
}
.hero-scroll span { font-size: 11px; color: var(--text-tertiary); letter-spacing: 1.5px; text-transform: uppercase; font-family: var(--font-mono); }
.scroll-line {
  width: 1px; height: 36px; background: linear-gradient(to bottom, var(--text-tertiary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── SECTIONS ── */
section { padding: 100px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.section-label::after {
  content: ''; flex: 1; max-width: 48px; height: 1px; background: var(--accent); opacity: .4;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.1; letter-spacing: -1.5px;
  color: var(--text-primary); margin-bottom: 56px;
}

/* ── ABOUT ── */
#about { background: var(--bg2); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-photo-wrap {
  position: relative;
}
.about-photo-placeholder {
  width: 100%; aspect-ratio: 4/5; border-radius: 24px;
  background: linear-gradient(135deg, #e3eeff 0%, #f0f4ff 50%, #e8f5fe 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.about-photo-placeholder i {
  font-size: 80px; color: rgba(0,113,227,0.18);
}
.about-photo-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 20px; box-shadow: var(--shadow);
}
.about-photo-badge .badge-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--accent); line-height: 1;
}
.about-photo-badge .badge-label {
  font-size: 12px; color: var(--text-secondary); margin-top: 4px;
}
.about-text h3 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  margin-bottom: 18px; color: var(--text-primary);
}
.about-text p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.75;
  margin-bottom: 20px;
}
.skills-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; color: var(--text-secondary); font-family: var(--font-body);
}
.chip i { font-size: 11px; color: var(--accent); }

/* ── EXPERIENCE ── */
#experience { background: var(--bg); }
.jobs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.job-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.job-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #5ac8fa);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.job-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(0,113,227,0.15); }
.job-card:hover::before { transform: scaleX(1); }
.job-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.job-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.job-card-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); font-size: 13px;
  transition: background .2s, color .2s, transform .3s;
}
.job-card:hover .job-card-arrow { background: var(--accent); color: #fff; transform: rotate(45deg); }
.job-company { font-size: 13px; color: var(--text-tertiary); font-family: var(--font-mono); margin-bottom: 6px; }
.job-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.2; }
.job-period {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--accent); background: var(--accent-light);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
  font-family: var(--font-mono);
}
.job-preview { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.job-tag {
  font-size: 11px; color: var(--text-tertiary);
  background: var(--bg); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 100px; font-family: var(--font-mono);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity .35s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg2); border-radius: 24px;
  max-width: 680px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  transform: translateY(24px) scale(.97); opacity: 0;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal-hero {
  padding: 40px 40px 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--text-secondary);
  transition: background .2s, color .2s;
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }
.modal-icon-title { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.modal-icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0;
}
.modal-company { font-size: 13px; color: var(--accent); font-family: var(--font-mono); margin-bottom: 6px; }
.modal-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1.15; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.modal-meta-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-secondary);
  background: var(--bg); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
}
.modal-meta-item i { color: var(--accent); font-size: 11px; }

.modal-body { padding: 36px 40px 40px; }
.modal-section { margin-bottom: 32px; }
.modal-section-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.modal-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.responsibility-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.responsibility-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; color: var(--text-secondary); line-height: 1.6;
}
.resp-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; margin-top: 1px;
}
.tech-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 10px;
  font-size: 13px; font-family: var(--font-mono); color: var(--text-secondary);
}
.tech-badge i { font-size: 14px; }

/* ── GITHUB BANNER ── */
.github-banner-section {
  background: var(--bg);
  padding: 0 24px 64px;
}
.github-banner {
  background: linear-gradient(135deg, #0d1117 0%, #1a2035 100%);
  border-radius: var(--radius); padding: 28px 36px;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.github-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.github-banner-left { display: flex; align-items: center; gap: 18px; }
.github-banner-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.github-banner-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff;
}
.github-banner-sub { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 3px; }
.btn-github {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 980px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; border: none;
  background: #fff; color: #0d1117;
  box-shadow: 0 4px 20px rgba(255,255,255,.12);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.btn-github:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,255,255,.18); }

/* ── EDUCATION ── */
#education { background: var(--bg); }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.edu-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  margin-bottom: 20px;
}
.edu-school { font-size: 13px; color: var(--text-tertiary); font-family: var(--font-mono); margin-bottom: 6px; }
.edu-degree { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.edu-period { font-size: 12px; color: var(--accent); font-family: var(--font-mono); }

/* ── CONTACT ── */
#contact {
  background: linear-gradient(160deg, #0a0a0a 0%, #1a1a2e 100%);
  color: #fff; text-align: center;
}
#contact .section-label { color: #5ac8fa; }
#contact .section-label::after { background: #5ac8fa; }
#contact .section-title { color: #fff; }
.contact-subtitle { font-size: 18px; color: rgba(255,255,255,.55); margin-bottom: 48px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 20px 28px;
  text-decoration: none; color: #fff;
  transition: background .25s, transform .25s, border-color .25s;
  min-width: 200px;
}
.contact-card:hover { background: rgba(255,255,255,.11); transform: translateY(-4px); border-color: rgba(255,255,255,.25); }
.contact-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.contact-card-label { font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 3px; }
.contact-card-value { font-size: 15px; font-weight: 500; }

footer {
  background: #0a0a0a; color: rgba(255,255,255,.25);
  text-align: center; padding: 24px;
  font-size: 12px; font-family: var(--font-mono);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 360px; margin: auto; }
  .edu-grid { grid-template-columns: 1fr; }
  .modal-hero, .modal-body { padding: 28px 24px; }
}
