:root {
  --black: #0d0d0d;
  --white: #f5f5f0;
  --yellow: #f5c518;
  --navy: #1a2540;
  --mid: #2e3c5a;
  --muted: #8a93a8;
  --card-bg: #141e33;
  --tag-bg: #1e2d4a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.12);
}
.nav-logo {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--yellow);
}

/* ───────────────── HERO ───────────────── */

#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  padding: 7rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 197, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 24, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  color: var(--yellow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-profile-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.profile-photo-wrap {
  flex-shrink: 0;
  position: relative;
}

.profile-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.08);
  z-index: -1;
}

.profile-photo-wrap img {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid rgba(245, 197, 24, 0.9);
  display: block;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 10px rgba(245, 197, 24, 0.04);
}

.hero-content {
  max-width: 560px;
}

.hero-name {
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-name span {
  display: block;
  color: var(--yellow);
}

.hero-tagline {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--yellow);
  color: var(--yellow);
}

/* RIGHT SIDE */

.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-stats-card {
  background: rgba(20, 30, 51, 0.96);
  border: 1px solid rgba(245, 197, 24, 0.12);
  padding: 2.6rem;
  width: 340px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.stat-item {
  margin-bottom: 2rem;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.stat-num {
  font-family: "Space Mono", monospace;
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ───────────────── RESPONSIVE HERO ───────────────── */

@media (max-width: 980px) {
  #hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 6rem 1.5rem 3rem;
  }

  .hero-profile-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-right {
    justify-content: flex-start;
  }

  .hero-stats-card {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .hero-profile-row {
    align-items: center;
    text-align: center;
  }

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

  .profile-photo-wrap img {
    width: 150px;
    height: 150px;
  }

  .hero-name {
    font-size: 3rem;
  }

  .hero-cta-group {
    justify-content: center;
  }
}

/* ── SECTION BASE ── */
section {
  padding: 6rem 4rem;
}
.section-label {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  color: var(--yellow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  line-height: 1.1;
}

/* ── ABOUT ── */
#about {
  background: var(--navy);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}
.about-text p strong {
  color: var(--white);
}
.contact-list {
  list-style: none;
  margin-top: 1.8rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}
.contact-list a {
  color: var(--yellow);
  text-decoration: none;
}
.contact-list a:hover {
  text-decoration: underline;
}
.contact-dot {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  flex-shrink: 0;
}
.about-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.skill-chip {
  background: var(--tag-bg);
  border: 1px solid rgba(245, 197, 24, 0.12);
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  color: var(--white);
  letter-spacing: 0.02em;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.skill-chip:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ── EXPERIENCE ── */
#experience {
  background: var(--black);
}
.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(245, 197, 24, 0.18);
}
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 3.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border-radius: 50%;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.exp-role {
  font-size: 1.15rem;
  font-weight: 700;
}
.exp-company {
  color: var(--yellow);
}
.exp-period {
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.exp-bullets {
  list-style: none;
  margin-bottom: 1rem;
}
.exp-bullets li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.35rem;
}
.exp-bullets li::before {
  content: "▸";
  color: var(--yellow);
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  top: 0.25rem;
}
.exp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.tech-tag {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--yellow);
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.2);
  padding: 0.25rem 0.6rem;
  letter-spacing: 0.04em;
}
.exp-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}
.exp-link:hover {
  color: var(--yellow);
}

/* ── SKILLS ── */
#skills {
  background: var(--navy);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-card {
  background: var(--card-bg);
  border: 1px solid rgba(245, 197, 24, 0.1);
  padding: 1.8rem;
  transition:
    border-color 0.25s,
    transform 0.2s;
}
.skill-card:hover {
  border-color: rgba(245, 197, 24, 0.45);
  transform: translateY(-4px);
}
.skill-card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.skill-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.skill-card-items {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ───────────────── EDUCATION GRID ───────────────── */

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.edu-card {
  background: linear-gradient(
    180deg,
    rgba(20, 30, 51, 0.96),
    rgba(20, 30, 51, 0.88)
  );

  border: 1px solid rgba(245, 197, 24, 0.12);

  padding: 2.2rem 2.5rem;

  display: flex;
  align-items: flex-start;
  gap: 1.5rem;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.edu-card:hover {
  transform: translateY(-5px);

  border-color: rgba(245, 197, 24, 0.35);

  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.edu-badge {
  background: var(--yellow);
  color: var(--black);

  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 1rem;

  width: 58px;
  height: 58px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;
}

.edu-degree {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.edu-school {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;

  font-family: "Space Mono", monospace;
  font-size: 0.74rem;
  color: var(--yellow);

  letter-spacing: 0.04em;
}

/* ───────────────── RESPONSIVE ───────────────── */

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

/* ── CONTACT ── */
#contact {
  background: var(--navy);
  text-align: center;
}
.contact-cta {
  max-width: 560px;
  margin: 0 auto;
}
.contact-email {
  font-family: "Space Mono", monospace;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 197, 24, 0.35);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s;
  display: inline-block;
  margin-bottom: 2.5rem;
}
.contact-email:hover {
  border-color: var(--yellow);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.social-link {
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.social-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--muted);
  font-family: "Space Mono", monospace;
}
.footer-name {
  color: var(--yellow);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    gap: 1.2rem;
  }
  #hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3rem;
  }
  .hero-right {
    justify-content: flex-start;
    margin-top: 3rem;
  }
  .hero-stats-card {
    width: 100%;
  }
  section {
    padding: 4rem 1.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .hero-name {
    font-size: 3rem;
  }
  .nav-links {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ── SUBTLE SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
