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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

strong { color: #fff; font-weight: 600; }

/* ======================== */
/* GRID OVERLAY             */
/* ======================== */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 0),
    linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 60px 60px;
}

/* ======================== */
/* DOCK NAVIGATION          */
/* ======================== */
.dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 8px 16px;
  background: rgb(250, 249, 245);
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.dock-hidden {
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
}

.dock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s;
}

.dock-item:hover {
  background: #333;
  transform: scale(1.15) translateY(-2px);
}

a.dock-item.dock-item-label {
  width: auto;
  padding: 0 14px;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.dock-separator {
  width: 1px;
  height: 24px;
  background: #ddd;
  margin: 0 6px;
}

/* ======================== */
/* HERO                     */
/* ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 60px 100px;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-line {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  letter-spacing: -1.2px;
  filter: drop-shadow(0 2px 16px rgba(255,255,255,0.15));
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 32px;
  filter: drop-shadow(0 2px 20px rgba(255,255,255,0.2));
}

.hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgb(156, 163, 175);
  line-height: 1.7;
  letter-spacing: -0.3px;
  margin-bottom: 40px;
  max-width: 480px;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  color: #a78bfa;
  font-size: 0.95em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 9999px;
  border: 1px solid rgb(55, 65, 81);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
  letter-spacing: -0.3px;
}

.hero-cta:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.cta-arrow {
  font-size: 18px;
  transition: transform 0.2s;
}

.hero-cta:hover .cta-arrow {
  transform: translateX(4px);
}

.hero-image-area {
  flex-shrink: 0;
}

.hero-img-wrapper {
  width: 320px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.hero-img-wrapper::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167,139,250,0.25), transparent 60%, rgba(255,0,128,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======================== */
/* SECTIONS                 */
/* ======================== */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ======================== */
/* GLOWY SECTION HEADINGS   */
/* ======================== */
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 64px;
  max-width: 700px;
  filter: drop-shadow(0 2px 16px rgba(255,255,255,0.15));
}

.glowy {
  text-shadow:
    0 0 5px rgba(160,120,255,0.25),
    0 0 15px rgba(160,120,255,0.15),
    0 0 30px rgba(160,120,255,0.08);
  animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow:
      0 0 5px rgba(160,120,255,0.2),
      0 0 15px rgba(160,120,255,0.1);
  }
  to {
    text-shadow:
      0 0 8px rgba(160,120,255,0.35),
      0 0 20px rgba(160,120,255,0.2),
      0 0 40px rgba(160,120,255,0.1);
  }
}

/* ======================== */
/* FEATURED PROJECTS        */
/* ======================== */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.featured-card {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  position: relative;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(45deg, #7928ca, #ff0080);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.featured-card:hover::before {
  opacity: 0.6;
}

.featured-card:hover {
  box-shadow: 0 20px 60px rgba(121, 40, 202, 0.1);
}

.featured-icon {
  font-size: 32px;
  color: #a78bfa;
  margin-bottom: 24px;
}

.featured-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

.featured-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.featured-card p {
  font-size: 15px;
  color: rgb(156, 163, 175);
  line-height: 1.7;
  margin-bottom: 24px;
  letter-spacing: -0.2px;
}

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

.featured-tags span {
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.3s;
}

.featured-tags span:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
}

/* View More */
.view-more-wrap {
  text-align: center;
  margin-top: 32px;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: -0.2px;
}

.view-more-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-1px);
}

.view-more-arrow {
  font-size: 14px;
  transition: transform 0.3s;
}

.hidden-projects {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.hidden-projects.show {
  display: grid;
}

/* Card as link */
a.featured-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.featured-card:hover h3 {
  color: #c084fc;
  transition: color 0.3s;
}

/* ======================== */
/* EXPERIENCE               */
/* ======================== */
.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.exp-card {
  display: flex;
  gap: 40px;
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.exp-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.exp-meta {
  flex-shrink: 0;
  width: 120px;
}

.exp-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #666;
}

.exp-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

.exp-list {
  list-style: none;
  margin-bottom: 20px;
}

.exp-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: rgb(156, 163, 175);
  margin-bottom: 10px;
  line-height: 1.65;
  letter-spacing: -0.2px;
}

.exp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a78bfa;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tags span {
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 12px;
  color: #888;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ======================== */
/* TECH STACK               */
/* ======================== */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tech-box {
  padding: 28px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
  transition: all 0.3s;
}

.tech-box:hover {
  background: rgba(255,255,255,0.07);
}

.tech-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: #fff;
  margin-bottom: 16px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pills span {
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s;
  cursor: default;
}

.tech-pills span:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,255,255,0.1);
}

/* ======================== */
/* PUBLICATIONS             */
/* ======================== */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-card {
  padding: 28px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.3s;
}

.pub-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.pub-venue {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.pub-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.pub-authors {
  font-size: 14px;
  color: #888;
}

/* ======================== */
/* EDUCATION & CERTS        */
/* ======================== */
.edu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.edu-card {
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.3s;
}

.edu-card:hover {
  background: rgba(255,255,255,0.06);
}

.edu-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #666;
  display: block;
  margin-bottom: 8px;
}

.edu-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 4px;
}

.edu-card p {
  font-size: 14px;
  color: #999;
  margin-bottom: 4px;
}

.edu-loc {
  font-size: 13px;
  color: #555;
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-pill {
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.cert-pill:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.03);
}

.cert-hl {
  color: #fff;
  background: rgba(167,139,250,0.1);
  border-color: rgba(167,139,250,0.25);
}

.cert-hl:hover {
  background: rgba(167,139,250,0.18);
}

/* ======================== */
/* FOOTER                   */
/* ======================== */
.footer {
  text-align: center;
  padding: 48px 40px 100px;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 15px;
  color: #fff;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer p {
  font-size: 13px;
  color: #444;
}

/* ======================== */
/* ANIMATIONS               */
/* ======================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.featured-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.exp-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.tech-box.reveal:nth-child(2) { transition-delay: 0.08s; }
.tech-box.reveal:nth-child(3) { transition-delay: 0.16s; }
.tech-box.reveal:nth-child(4) { transition-delay: 0.24s; }
.pub-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.pub-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.cert-pill.reveal:nth-child(2) { transition-delay: 0.05s; }
.cert-pill.reveal:nth-child(3) { transition-delay: 0.1s; }
.cert-pill.reveal:nth-child(4) { transition-delay: 0.15s; }

/* ======================== */
/* RESPONSIVE               */
/* ======================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 100px 32px 60px;
    gap: 40px;
  }

  .hero-content { max-width: 100%; }

  .hero-line, .hero-name { font-size: 40px; }

  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }

  .hero-cta { margin: 0 auto; }

  .hero-img-wrapper { width: 200px; height: 250px; }

  .container { padding: 0 24px; }

  .section-heading { font-size: 32px; margin-bottom: 40px; }

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

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

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

  .edu-row { grid-template-columns: 1fr; }

  .exp-card { flex-direction: column; gap: 12px; }

  .exp-meta { width: auto; }

  .dock {
    padding: 6px 10px;
    gap: 2px;
  }

  .dock-item { width: 32px; height: 32px; font-size: 12px; }
}

@media (max-width: 600px) {
  .hero-line, .hero-name { font-size: 32px; }

  .section { padding: 60px 0; }

  .section-heading { font-size: 26px; }

  .cert-row { flex-direction: column; }
}
