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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: #1a1a1a;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===== CSS Variables ===== */
:root {
  --accent: #21C25E;
  --accent-hover: #1aad50;
  --accent-light: rgba(33, 194, 94, 0.1);
  --dark: #1a1a1a;
  --gray-900: #212529;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --card-bg: #f5f5f5;
  --card-radius: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Layout ===== */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ===== Left Side - Profile Card Area ===== */
.profile-area {
  width: 40%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  padding: 2rem;
}

/* ===== Profile Card ===== */
.profile-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow);
}

/* Decorative dashed arcs */
.profile-card::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 140px;
  height: 140px;
  border: 3px dashed var(--accent);
  border-radius: 50%;
  clip-path: polygon(0 0, 60% 0, 0 60%);
  pointer-events: none;
}

.profile-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border: 3px dashed var(--accent);
  border-radius: 50%;
  clip-path: polygon(100% 40%, 100% 100%, 40% 100%);
  pointer-events: none;
}

/* Profile Photo */
.profile-card__photo-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  position: relative;
}

.profile-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profile Info */
.profile-card__name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.profile-card__role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.2rem;
  text-align: center;
}

.profile-card__location {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
  text-align: center;
}

.profile-card__tagline {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 1.75rem;
  text-align: center;
  line-height: 1.4;
}

/* Social Links */
.profile-card__social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.profile-card__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  color: var(--accent);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.profile-card__social-link:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

.profile-card__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(33, 194, 94, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.6rem 1.5rem;
}

.btn--outline:hover {
  background-color: var(--accent-light);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--dark);
  padding: 0.7rem 1.5rem;
}

.btn--ghost:hover {
  color: var(--accent);
}

.profile-card__cta {
  display: flex;
  gap: 0.5rem;
}

/* ===== Top Navigation (pill) ===== */
.topnav {
  position: fixed;
  top: 1.5rem;
  left: 40%;
  width: 60%;
  display: flex;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}

.topnav__pill {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--gray-900);
  border-radius: 50px;
  padding: 0.35rem;
  box-shadow: var(--shadow);
  pointer-events: all;
}

.topnav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--gray-400);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.topnav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.topnav__link.active {
  background: var(--accent);
  color: var(--white);
}

.topnav__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== Content Area ===== */
.content {
  width: 60%;
  margin-left: 40%;
  padding: 2rem 4rem 3rem;
  min-height: 100vh;
}

/* ===== Hero Section ===== */
.hero {
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4rem;
}

.hero__headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__headline span {
  color: var(--accent);
  display: block;
}

.hero__subtitle {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

/* Stats */
.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat__number {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-700);
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
  line-height: 1.3;
}

/* Hero Actions */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.75rem;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section__subtitle {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

/* ===== About Section ===== */
.about__text {
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--gray-700);
}

.about__text p {
  margin-bottom: 1rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* ===== Tools Grid ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tool-card {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.tool-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tool-card__name {
  font-size: 0.85rem;
  font-weight: 700;
}

.tool-card__star {
  font-size: 0.7rem;
  color: var(--accent);
}

.tool-card__desc {
  font-size: 0.72rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== Experience Cards ===== */
.experience-card {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.experience-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.experience-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.15rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-card__role {
  font-size: 0.95rem;
  font-weight: 700;
}

.experience-card__date {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 600;
  white-space: nowrap;
}

.experience-card__company {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.experience-card__desc {
  font-size: 0.78rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.experience-card__desc p {
  margin-bottom: 0.5rem;
}

.experience-card__desc p:last-child {
  margin-bottom: 0;
}

.experience-card__desc strong {
  color: var(--dark);
}

.experience-card__desc ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.experience-card__desc ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
}

.experience-card__desc ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.experience-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ===== Project Detail Cards ===== */
.project-detail {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-detail:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.project-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.15rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-detail__name {
  font-size: 0.95rem;
  font-weight: 700;
}

.project-detail__year {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 600;
}

.project-detail__org {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-detail__summary {
  font-size: 0.78rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-detail__block {
  margin-bottom: 0.75rem;
}

.project-detail__block-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}

.project-detail__block ul {
  list-style: none;
  padding-left: 0;
}

.project-detail__block ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.project-detail__block ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.project-detail__result {
  background: var(--accent-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.project-detail__result ul li::before {
  color: var(--accent);
}

.project-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

/* ===== Personal Projects (Showcase) ===== */
.personal-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.personal-project {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.75rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.personal-project:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Featured project spans full width */
.personal-project--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f4f8 100%);
  border-color: #3B5BDB;
  padding: 2rem 2.25rem;
}

.personal-project--featured:hover {
  border-color: #3B5BDB;
  box-shadow: 0 16px 40px rgba(59, 91, 219, 0.15);
}

.personal-project__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.personal-project__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.personal-project--featured .personal-project__name {
  font-size: 1.35rem;
}

.personal-project__badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.personal-project__badge--launched {
  background: var(--accent);
  color: #fff;
}

.personal-project__badge--soon {
  background: #e9ecef;
  color: #495057;
}

.personal-project__badge--active {
  background: #fff3e0;
  color: #e65100;
}

.personal-project__tagline {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.personal-project--featured .personal-project__tagline {
  font-size: 0.95rem;
}

.personal-project__desc {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.personal-project__features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.personal-project__features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.personal-project__features li::before {
  content: '>';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.personal-project--featured .personal-project__features li::before {
  color: #3B5BDB;
}

.personal-project__features li::before {
  color: var(--accent);
}

.personal-project__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 1rem;
  flex-wrap: wrap;
}

.personal-project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.personal-project__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.personal-project__cta:hover {
  transform: translateY(-1px);
}

.personal-project__cta--primary {
  background: #3B5BDB;
  color: #fff;
}

.personal-project__cta--primary:hover {
  background: #2f4abf;
}

.personal-project__cta--orange {
  background: #e8590c;
  color: #fff;
}

.personal-project__cta--orange:hover {
  background: #d04f0a;
}

.personal-project__cta--blue {
  background: #4C6EF5;
  color: #fff;
}

.personal-project__cta--blue:hover {
  background: #3b5de7;
}

.personal-project__cta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .personal-projects-grid {
    grid-template-columns: 1fr;
  }

  .personal-project--featured {
    grid-column: 1;
  }
}

/* ===== Certifications ===== */
.cert-card {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cert-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.cert-card__name {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.cert-card__issuer {
  font-size: 0.7rem;
  color: var(--gray-500);
}

.cert-card__date {
  font-size: 0.68rem;
  color: var(--gray-400);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== Achievements ===== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.achievement-card {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.achievement-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.achievement-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.achievement-card__value {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.achievement-card__label {
  font-size: 0.72rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact-card {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.contact-card__label {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.contact-card__value {
  font-size: 0.82rem;
  font-weight: 600;
}

.contact-card__value a {
  color: var(--accent);
}

.contact-card__value a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 3rem 0 2rem;
  font-size: 0.72rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
  margin-top: 2rem;
}

.footer__location {
  margin-top: 0.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .content {
    padding: 2rem 2.5rem 3rem;
  }

  .hero__headline {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .profile-area {
    width: 100%;
    position: relative;
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .profile-card {
    max-width: 360px;
  }

  .topnav {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
  }

  .content {
    width: 100%;
    margin-left: 0;
    padding: 0 1.5rem 2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .section {
    padding: 3rem 0;
  }

  .experience-card__header {
    flex-direction: column;
  }

  .cert-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero__headline {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

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