/* ---------- Root & Themes ---------- */
:root {
  --bg: #020617;
  --bg-alt: #050816;
  --bg-elevated: #0b1120;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.18);
  --accent-strong: #4f46e5;
  --accent-2: #22c55e;
  --accent-2-soft: rgba(34, 197, 94, 0.18);
  --text: #f9fafb;
  --text-soft: #e2e8f0;
  --border-subtle: rgba(148, 163, 184, 0.27);
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.8);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --nav-height: 72px;
  --transition-fast: 160ms ease-out;
  --transition-med: 260ms ease;
}


/* ---------- Global ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #111827 0, #020617 46%, #000 100%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.section {
  padding: 4rem 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
  padding: 3.75rem 2.25rem;
  margin: 4rem -2.25rem;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

/* reveal animation */
.section--hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section__header h2 {
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section__header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ---------- Nav ---------- */
.site-header {
  position: relative;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  margin: 0 -1.25rem;
  backdrop-filter: blur(18px);
  background: linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.97),
      rgba(15, 23, 42, 0.92)
    );
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}


.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand-title {
  font-weight: 600;
  font-size: 1rem;
}

.brand-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.nav__links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}








/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  padding-top: 2.75rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
}

.hero__title {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0;
}

.hero__highlight {
  background: radial-gradient(circle at top left, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-card {
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 255, 0.6);
  font-size: 0.8rem;
}


.meta-card__label {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.meta-card__value {
  font-weight: 500;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar__ring {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: conic-gradient(
    from 140deg,
    var(--accent),
    var(--accent-2),
    var(--accent),
    var(--accent-strong)
  );
  filter: blur(0.5px);
  opacity: 0.95;
}

.hero-avatar__img {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 10px;
  background: radial-gradient(circle at top, #020617, #020617);
  border: 2px solid rgba(148, 163, 255, 0.7);
}

.hero-avatar__badge {
  position: absolute;
  left: -8px;
  transform: translateY(-40%);
}

.hero-avatar__badge--bottom {
  left: auto;
  right: -4px;
  bottom: 10px;
  top: auto;
  transform: translateY(40%);
}

.badge-label {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 255, 0.7);
  color: var(--text-soft);
  backdrop-filter: blur(14px);
}


/* Hero stat grid */
.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  background: #0b1120;
  border: 1px solid rgba(148, 163, 255, 0.6);
  font-size: 0.9rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.75);
}


.stat-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.stat-card p {
  margin: 0;
  color: var(--text-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(79, 70, 229, 0.6);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.9);
}

.btn--ghost {
  border: 1px solid rgba(148, 163, 255, 0.6);
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.9);
}


.btn--ghost:hover {
  background: rgba(15, 23, 42, 1);
  color: #e5e7eb;
  transform: translateY(-1px);
}


.btn--full {
  width: 100%;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.about-grid__main p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.info-card {
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
}


.info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list span:first-child {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.info-list span:last-child,
.info-list a {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.skills-column {
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}


.skills-column h3 {
  margin-top: 0;
  font-size: 1rem;
}

.skills-column ul {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---------- Timeline ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-left: 1px solid rgba(148, 163, 184, 0.7);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 0.3rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

.timeline-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.4rem;
}

.timeline-item__role {
  font-weight: 600;
}

.timeline-item__company {
  font-size: 0.9rem;
  color: var(--accent-2);
}

.timeline-item__date {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.timeline-item__body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---------- Projects (HIGH CONTRAST) ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .project-card {
  background: #1e293b;
  color: #f9fafb;
  border: 1px solid #475569;
}

.project-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: inherit;
}

.project-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: inherit !important;
  line-height: 1.45;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-list li {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 50px;
  background: #e2e8f0;
  color: #0f172a;
  border: none;
}

[data-theme="dark"] .tag-list li {
  background: #334155;
  color: #f9fafb;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-grid__info p {
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.contact-list a {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.contact-form {
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(148, 163, 255, 0.6);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.85);
}


.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}

.form-field label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.form-field input,
.form-field textarea {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 255, 0.6);
  background: #020617;
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}


.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.form-hint {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: center;
}

/* ---------- Responsiveness ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    order: -1;
  }

  .section--alt {
    margin: 3rem -1.25rem;
    padding: 3.25rem 1.5rem;
  }

  .about-grid,
  .skills-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    inset: var(--nav-height) 1.2rem auto;
    background: var(--bg-elevated);
    border-radius: 18px;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.7);
    padding: 0.85rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    transform-origin: top right;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .nav__links--open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav__toggle {
    display: flex;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .hero-stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section--alt {
    border-radius: 24px;
  }
}

@media (max-width: 500px) {
  .page-shell {
    padding: 1.2rem 1rem 2.2rem;
  }

  .hero__meta {
    gap: 0.55rem;
  }

  .meta-card {
    font-size: 0.78rem;
  }

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