@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.92);
  --bg-soft: rgba(15, 23, 42, 0.8);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.18);
  --accent-2: #a855f7;
  --accent-3: #22c55e;
  --border-subtle: rgba(148, 163, 184, 0.45);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --nav-height: 4.5rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --shadow-subtle: 0 12px 30px rgba(15, 23, 42, 0.7);
}

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

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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* ============ LAYOUT UTILITIES ============ */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  position: relative;
}

.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(148, 163, 184, 0.18), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.section--alt > .container {
  position: relative;
  z-index: 1;
}

.section__header {
  margin-bottom: 2.5rem;
}

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
  margin: 0.3rem 0 0.75rem;
}

.section__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
  max-width: 36rem;
}

/* ============ TYPOGRAPHY ============ */

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: 0.7;
}

/* ============ NAVIGATION ============ */

.site-header {
  position: relative;
  min-height: 100vh;
  padding-bottom: 3rem;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.7));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
}

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.96));
  font-size: 0.78rem;
}

.nav__logo-text {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

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

.nav__links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  transition: color 160ms ease-out;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 180ms ease-out;
}

.nav__links a:hover {
  color: var(--text-main);
}

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

/* Hamburger for mobile (hidden by default; shown in mediaqueries.css) */
.nav__toggle {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0;
  cursor: pointer;
}

.nav__toggle span {
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.nav__toggle--open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============ HERO ============ */

.hero {
  display: flex;
  align-items: center;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  margin-top: 2.2rem;
}

.hero__left {
  display: flex;
  flex-direction: column;
}

.hero__title {
  font-size: clamp(2.4rem, 3.4vw, 3.3rem);
  line-height: 1.06;
  margin: 0.4rem 0 0.8rem;
  letter-spacing: -0.04em;
}

.hero__title-highlight {
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 34rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.55rem 0 2.3rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 0.78rem;
  color: var(--text-muted);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.98));
}

.chip__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.chip__dot--green {
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

/* HERO Buttons */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.9rem;
}

.btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out,
    border-color 160ms ease-out,
    transform 120ms ease-out,
    box-shadow 160ms ease-out;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: var(--shadow-subtle);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.9);
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(248, 250, 252, 0.7);
}

.btn--text {
  border-color: transparent;
  color: var(--accent);
  padding-inline: 0;
}

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

.btn--small {
  padding: 0.55rem 1.05rem;
  font-size: 0.85rem;
}

/* HERO meta */

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.83rem;
  color: var(--text-soft);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__meta-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero__meta-dot--purple {
  background: var(--accent-2);
}

.hero__meta-dot--green {
  background: var(--accent-3);
}

/* HERO Social */

.hero__social {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  background: rgba(15, 23, 42, 0.92);
  cursor: pointer;
  color: var(--text-main);
  font-size: 0.85rem;
  transition:
    border-color 150ms ease-out,
    background-color 150ms ease-out,
    transform 120ms ease-out;
}

.icon-btn__icon {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
}

.icon-btn:hover {
  border-color: rgba(248, 250, 252, 0.8);
  transform: translateY(-1px);
}

.hero__contact-mini {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero__contact-mini a {
  color: var(--accent);
  text-decoration: none;
}

.hero__contact-mini a:hover {
  text-decoration: underline;
}

/* HERO RIGHT – STEADY PHOTO CARD */

.hero__right {
  display: flex;
  justify-content: center;
}

.profile-photo-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.4rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  max-width: 320px;
  text-align: center;
}

.profile-photo-card__img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(248, 250, 252, 0.9);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.9);
  margin-bottom: 1rem;
}

.profile-photo-card__meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.profile-photo-card__role {
  margin: 0 0 0.7rem;
  font-weight: 500;
}

.profile-photo-card__stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ============ ABOUT ============ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.about-grid__text {
  background: var(--bg-elevated);
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-grid__text p {
  margin: 0 0 0.9rem;
}

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

.about-grid__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.info-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-subtle);
}

.info-card__icon-badge {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.75);
  margin-bottom: 0.5rem;
}

.info-card__icon-badge--accent {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.2), rgba(15, 23, 42, 0.96));
}

.info-card__icon-badge--purple {
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.2), rgba(15, 23, 42, 0.96));
}

.info-card__icon {
  width: 1.3rem;
  height: 1.3rem;
}

.info-card__title {
  margin: 0 0 0.3rem;
  font-size: 0.96rem;
}

.info-card__body {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ============ TIMELINE (WORK EXPERIENCE) ============ */

.timeline {
  position: relative;
  display: grid;
  gap: 1.8rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.65;
}

.timeline-item {
  position: relative;
  padding-left: 2.8rem;
}

.timeline-item__node {
  position: absolute;
  left: 4px;
  top: 0.4rem;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.4), rgba(15, 23, 42, 1));
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.18);
}

.timeline-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

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

.timeline-card__role {
  margin: 0;
  font-size: 1rem;
}

.timeline-card__company {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.timeline-card__date {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.timeline-card__list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline-card__list li {
  margin-bottom: 0.35rem;
}

/* ============ SKILLS ============ */

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

.skill-card {
  background: var(--bg-elevated);
  border-radius: 1.4rem;
  padding: 1.2rem 1.4rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.skill-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.skill-card__header h3 {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.skill-card__badge {
  font-size: 0.78rem;
  color: var(--accent);
}

.skill-card__body {
  margin: 0.1rem 0 0.7rem;
}

.skill-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill {
  font-size: 0.78rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-muted);
}

/* ============ PROJECTS ============ */

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

.project-card {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.98));
  border-radius: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card__thumb {
  position: relative;
  overflow: hidden;
}

.project-card__img {
  width: 100%;
  display: block;
  transform-origin: center;
  transition: transform 220ms ease-out, filter 220ms ease-out;
}

.project-card:hover .project-card__img {
  transform: scale(1.04) translateY(-2px);
  filter: saturate(1.12) contrast(1.05);
}

.project-card__tag {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.78rem;
}

.project-card__body {
  padding: 1rem 1.2rem 1.1rem;
}

.project-card__title {
  margin: 0;
  font-size: 1rem;
}

.project-card__text {
  margin: 0.5rem 0 0.9rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.projects-note {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ============ CONTACT ============ */

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

.contact-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
}

.contact-card__title {
  margin: 0 0 0.8rem;
  font-size: 0.98rem;
}

.contact-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.contact-icon {
  width: 1.4rem;
  height: 1.4rem;
}

.contact-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.contact-row a {
  color: var(--accent);
  text-decoration: none;
}

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

.contact-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent-3);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
}

.contact-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ============ FOOTER ============ */

.site-footer {
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  background: radial-gradient(circle at top, #020617 0, #000 60%);
  padding: 1.8rem 0 1.6rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav__links--footer {
  gap: 1.3rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ============ ANIMATIONS / SCROLL REVEAL ============ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease-out,
    transform 700ms ease-out;
}

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