:root {
  --dark: #10131b;
  --dark-2: #161b27;
  --light: #f5f4ef;
  --paper: #fbfaf6;
  --text: #1f2430;
  --muted: #737887;
  --line: #deddd7;
  --blue: #526df5;
  --blue-soft: #e8ebff;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(16, 19, 27, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, rgba(82, 109, 245, .10), transparent 30%), var(--light);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(82, 109, 245, 0.12);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(245, 244, 239, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(222, 221, 215, 0.8);
}

.brand { font-weight: 700; letter-spacing: -0.05em; line-height: .9; font-size: 22px; }
.brand span, .brand strong { display: block; }

.main-nav { display: flex; gap: 22px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.main-nav a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--dark); }

main { position: relative; z-index: 1; }
.section-grid, .section, .contact-section { max-width: 1180px; margin: 0 auto; padding: 86px 6vw; }
.section-grid { display: grid; grid-template-columns: 320px 1fr; gap: 52px; align-items: stretch; padding-top: 58px; }

.panel-dark {
  background: linear-gradient(180deg, var(--dark), #0b0e15);
  color: #fff;
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.eyebrow, .signature {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .22em;
}

.hero-sidebar h1 { font-size: clamp(44px, 8vw, 66px); line-height: .88; letter-spacing: -0.08em; margin: 0 0 22px; }
.role { text-transform: uppercase; color: #a7aec6; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.availability { margin: 28px 0; padding: 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.04); color: #d8dbea; font-size: 14px; }
.quick-info { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.1); }
.quick-info li { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #d7dbea; }
.quick-info span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: #777f99; margin-bottom: 4px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.social-links a { padding: 9px 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; font-size: 12px; font-weight: 700; }
.social-links a:hover { background: var(--blue); }

.hero-content { display: flex; flex-direction: column; justify-content: center; }
.hero-content h2 { max-width: 780px; font-size: clamp(36px, 5vw, 64px); line-height: .98; letter-spacing: -0.07em; margin: 0 0 24px; }
.hero-content p:not(.signature) { max-width: 760px; color: #555b69; font-size: 18px; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 16px 34px rgba(82, 109, 245, .28); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn:hover { transform: translateY(-2px); transition: .2s ease; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.stats article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stats strong { display: block; font-size: 26px; letter-spacing: -0.05em; }
.stats span { color: var(--muted); font-size: 13px; font-weight: 700; }

.section-heading { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 28px; }
.section-heading span { display: inline-grid; place-items: center; width: 30px; height: 24px; background: var(--blue); color: #fff; border-radius: 6px; font-size: 11px; font-weight: 800; }
.section-heading h2 { margin: 0; font-size: 22px; text-transform: uppercase; letter-spacing: .08em; }

.profile-grid, .skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.large-card { grid-column: span 2; }
.card, .project-card, .timeline-item {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(16, 19, 27, 0.05);
}
.card h3, .project-card h3, .timeline-item h3 { margin: 0 0 8px; letter-spacing: -0.04em; }
.card p, .project-card p, .timeline-item p { margin: 0; color: #5c6270; }

.timeline { display: grid; gap: 18px; }
.timeline-item { display: grid; grid-template-columns: 170px 1fr; gap: 28px; position: relative; overflow: hidden; }
.timeline-item::before, .project-card::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--blue); opacity: .8; }
time { color: var(--muted); font-weight: 800; font-size: 13px; }
.company { color: var(--blue) !important; font-weight: 800; margin-bottom: 8px !important; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span { display: inline-flex; padding: 7px 10px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { position: relative; min-height: 230px; display: flex; flex-direction: column; align-items: flex-start; }
.project-card > p:first-child { color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 8px; }
.project-more { margin-top: auto; border: 0; background: var(--dark); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 800; cursor: pointer; }
.project-more:hover { background: var(--blue); }

.skills-grid { grid-template-columns: repeat(2, 1fr); }
.skill-card .tags { margin-top: 0; }
.interests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.contact-section { margin-bottom: 70px; background: var(--dark); color: #fff; border-radius: 28px; box-shadow: var(--shadow); }
.contact-section h2 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.06em; line-height: 1; max-width: 760px; margin: 0 0 18px; }
.contact-section p:not(.signature) { color: #c7ccdb; max-width: 680px; }
.contact-section .btn.secondary { color: #fff; border-color: rgba(255,255,255,.22); }

.project-modal { max-width: 560px; border: 0; border-radius: 24px; padding: 34px; box-shadow: var(--shadow); background: var(--paper); }
.project-modal::backdrop { background: rgba(16,19,27,.55); backdrop-filter: blur(4px); }
.modal-close { position: absolute; right: 18px; top: 14px; border: 0; background: none; font-size: 32px; cursor: pointer; color: var(--muted); }
.project-modal h2 { margin: 0 0 12px; letter-spacing: -0.05em; }

footer { text-align: center; padding: 28px; color: var(--muted); font-size: 14px; }

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

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 64px 18px auto 18px; flex-direction: column; background: var(--paper); padding: 20px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transform: translateY(-20px); opacity: 0; pointer-events: none; transition: .2s ease; }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .section-grid { grid-template-columns: 1fr; gap: 24px; }
  .profile-grid, .skills-grid, .projects-grid, .interests { grid-template-columns: 1fr; }
  .large-card { grid-column: auto; }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 20px; }
  .section-grid, .section, .contact-section { padding: 56px 20px; }
  .hero-sidebar { padding: 26px; border-radius: 20px; }
  .stats { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .hero-content p:not(.signature) { font-size: 16px; }
  .section-heading h2 { font-size: 18px; }
}
