/* ── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a192f;
  --bg-card:   #112240;
  --bg-aside:  #0f2146;
  --teal:      #64ffda;
  --slate-300: #ccd6f6;
  --slate-400: #8892b0;
  --slate-700: #2d3a55;
  --dot:       rgba(255,255,255,0.05);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: #e6f1ff;
  antialiased: true;
  /* dot-grid overlay */
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 18px 18px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
strong { color: #e6f1ff; }
ul { list-style: none; }

/* ── Page shell ───────────────────────────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ── Aside / sidebar ─────────────────────────────────────────────── */
aside {
  width: 100%;
  padding: 3rem 1.5rem;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
}

.sidebar-inner img {
  width: 18rem;
  height: auto;
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.greeting {
  color: var(--teal);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.name {
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: clamp(1.5rem, 6vw, 3.5rem);
  font-weight: 600;
  color: var(--slate-300);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.bio {
  max-width: 36rem;
  color: rgba(204,214,246,0.9);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
}

/* social icons */
.socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(45,58,85,0.6);
  background: rgba(15,33,70,0.5);
  color: var(--slate-300);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-btn:hover {
  color: #fff;
  border-color: rgba(100,255,218,0.6);
  transform: translateY(-2px);
}

.social-btn svg { display: block; }

/* ── Main / right panel ──────────────────────────────────────────── */
main {
  width: 100%;
  padding: 0;
}

/* ── Section shared ──────────────────────────────────────────────── */
section {
  padding: 3rem 1.5rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.section-heading .bar {
  display: inline-block;
  width: 4px;
  height: 1.5rem;
  border-radius: 2px;
  background: var(--teal);
  flex-shrink: 0;
}

.section-heading span:last-child { color: var(--teal); }

/* ── Experience timeline ─────────────────────────────────────────── */
.timeline {
  position: relative;
  border-left: 1px solid rgba(45,58,85,0.6);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-item {
  position: relative;
}

/* dot marker */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 0.375rem;
  left: calc(-1.5rem - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.timeline-item:first-child::before {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(100,255,218,0.15);
}

.timeline-item:not(:first-child)::before {
  background: rgba(136,146,176,0.4);
  box-shadow: 0 0 0 2px rgba(136,146,176,0.2);
}

.job-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.job-meta {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-bottom: 0.75rem;
}

.job-bullets {
  list-style: disc;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--slate-300);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Projects grid ───────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card-wrap {
  position: relative;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(100,255,218,0.4) 0%, rgba(45,58,85,0.2) 50%, transparent 100%);
  transition: background 0.2s;
}

.project-card-wrap:hover {
  background: linear-gradient(135deg, rgba(100,255,218,0.6) 0%, rgba(45,58,85,0.2) 50%, transparent 100%);
}

.project-card {
  border-radius: calc(1rem - 1px);
  background: rgba(17,34,64,0.9);
  padding: 1.5rem;
  height: 100%;
  min-height: 10rem;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  transition: transform 0.3s;
}

.project-card-wrap:hover .project-card {
  transform: translate(3px, -3px);
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--slate-300);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.card-links {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-link {
  color: var(--teal);
  transition: color 0.2s, transform 0.2s;
  border-radius: 0.375rem;
  display: inline-flex;
}

.card-link:hover { color: #fff; }

.project-card-wrap:hover .card-link-ext {
  transform: translate(2px, -2px);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Education ───────────────────────────────────────────────────── */
.edu-card {
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(100,255,218,0.3) 0%, rgba(45,58,85,0.15) 60%, transparent 100%);
  display: inline-block;
  width: 100%;
}

.edu-card-inner {
  border-radius: calc(1rem - 1px);
  background: rgba(17,34,64,0.9);
  padding: 1.5rem;
}

.edu-card-inner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.edu-card-inner p {
  color: var(--slate-400);
  font-size: 0.9rem;
}

/* ── Desktop two-column layout ───────────────────────────────────── */
@media (min-width: 1024px) {
  body {
    /* dot grid only behind full page */
  }

  .page {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
  }

  aside {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    /* sticky effect via flex + overflow hidden on parent */
    padding: 0 5rem;
    height: 100vh;
    position: sticky;
    top: 0;
  }

  main {
    width: 50%;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) transparent;
  }

  section {
    padding: 5rem 5rem;
  }

  section:first-child {
    padding-top: 6rem;
  }

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

/* ── Tablet ──────────────────────────────────────────────────────── */
@media (min-width: 640px) and (max-width: 1023px) {
  aside { padding: 3rem 2.5rem; }
  section { padding: 3rem 2.5rem; }

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

/* ── Scrollbar (webkit) ──────────────────────────────────────────── */
main::-webkit-scrollbar { width: 6px; }
main::-webkit-scrollbar-track { background: transparent; }
main::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
