@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Noto+Serif:wght@600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #050507;
  --card: #0e0e12;
  --line: #26262c;
  --line-light: #35353d;
  --text: #f2f2f5;
  --muted: #b4b4bd;
  --serif: 'Noto Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --wrap: 1160px;

  /* Accent glow */
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--serif); }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover { color: #fff; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #fff;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn.solid { background: #ececf0; color: #111; border-color: #ececf0; }
.btn.solid:hover { background: #fff; }
.btn.dark { background: #16161a; color: #fff; border-color: #2a2a30; }
.btn.dark:hover { border-color: #fff; }
.btn.sm { padding: 8px 20px; font-size: 0.85rem; }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #26262a, #121214 70%);
  z-index: 0;
  pointer-events: none;
}
.orb.o1 { width: 280px; height: 280px; left: -120px; top: -40px; }
.orb.o2 { width: 300px; height: 300px; right: 25%; top: 10px; }
.orb.o3 { width: 160px; height: 160px; right: 6%; top: 100px; }
.orb.o4 { width: 280px; height: 280px; right: -60px; bottom: -80px; }

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 65px;
  align-items: center;
}

.photo {
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 3px solid #e8e8ec;
  overflow: hidden;
  background: linear-gradient(135deg, #1e2430 0%, #0d121c 100%);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 7.5rem;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  position: relative;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 1.02;
  background: linear-gradient(180deg, #fff 30%, #8c8c98);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 24px 0 32px;
  max-width: 600px;
  line-height: 1.65;
}
.hero .btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── ABOUT & SKILLS ── */
.about {
  background: linear-gradient(135deg, #b9bcc6, #e9eaee 60%, #dcdde2);
  color: #16161a;
  padding: 85px 0;
  position: relative;
  overflow: hidden;
}
.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about h2 {
  font-size: 3.4rem;
  margin-bottom: 24px;
}
.about p {
  font-size: 1.08rem;
  color: #33343a;
  margin-bottom: 18px;
  line-height: 1.65;
}
.about h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  margin-top: 8px;
}
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.skill {
  background: linear-gradient(160deg, #1c1c22, #0a0a0d);
  color: #fff;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid #2a2a30;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  transition: transform 0.2s;
}
.skill:hover {
  transform: translateY(-2px);
}
.skill h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
}
.skill hr {
  width: 34px;
  border: 0;
  border-top: 2px solid #ddd;
  margin: 10px 0;
}
.skill span {
  color: #c6c6ce;
  font-size: 0.9rem;
  line-height: 1.5;
  display: block;
}

/* ── PROJECTS (Wide Horizontal Cards) ── */
.projects {
  padding: 95px 0 75px;
}
.proj-head {
  margin-bottom: 44px;
}
.proj-head h2 {
  font-size: 3.4rem;
  line-height: 1.1;
}
.proj-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 8px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.project-row-card {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-row-card:hover {
  border-color: #555;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.project-row-thumb {
  width: 100%;
  height: 290px;
  border-radius: 18px;
  background: #09090d;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-row-card:hover .project-row-thumb img {
  transform: scale(1.03);
}

.project-row-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  border: 1px solid #444;
  border-radius: 999px;
  padding: 3px 12px;
  color: var(--muted);
  margin-bottom: 12px;
  width: fit-content;
}

.tag.flagship {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  font-weight: 600;
}

.project-row-body h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.25;
}

.project-row-body p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.project-bullets {
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-bullets li {
  font-size: 0.92rem;
  color: #cbd5e1;
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.project-bullets li::before {
  content: '→';
  color: var(--accent-cyan);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.project-row-body .tools {
  font-size: 0.88rem;
  color: #ddd;
  font-family: var(--mono);
  margin-bottom: 20px;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  width: fit-content;
}

.project-link-btn:hover {
  color: var(--accent-cyan);
}

/* ── EXPERIENCE & EDUCATION (Resume-Aligned Sections) ── */
.resume-section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: 3rem;
  line-height: 1.1;
}
.section-head p {
  color: var(--muted);
  margin-top: 8px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: border-color 0.2s;
}
.timeline-item-card:hover {
  border-color: var(--line-light);
}

.timeline-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--serif);
}

.timeline-company {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.timeline-desc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-desc-list li {
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  padding-left: 20px;
  line-height: 1.6;
}

.timeline-desc-list li::before {
  content: '•';
  color: var(--accent-cyan);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  top: -2px;
}

/* ── EDUCATION & CERTIFICATIONS GRID ── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.info-box-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
}

.info-box-card h4 {
  font-size: 1.15rem;
  color: #fff;
  font-family: var(--serif);
  margin-bottom: 6px;
}

.info-box-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.info-box-card .meta-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #888;
}

/* ── CONTACT ── */
.contact {
  padding: 90px 0 50px;
  border-top: 1px solid var(--line);
}
.contact h2 {
  font-size: 3.6rem;
}
.contact p {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 12px 0 28px;
  max-width: 700px;
}
.contact .btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  color: #8d8d98;
  padding: 50px 0 40px;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .photo {
    width: 260px;
    height: 260px;
    font-size: 5rem;
    margin: 0 auto;
  }
  .about .wrap, .two-col-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .project-row-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  .project-row-thumb {
    height: 220px;
  }
  .nav ul {
    display: none;
  }
}
