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

:root {
  --bg:       #0d0d0d;
  --bg-card:  #1a1a1a;
  --bg-card2: #1e1a14;
  --border:   #2a2a2a;
  --border2:  #333333;
  --accent:   #f9af1a;
  --accent2:  #f9af1a;
  --accent-glow: rgba(249,175,26,.25);
  --aws:      #f59e0b;
  --aws-bg:   rgba(245,158,11,.1);
  --green:    #22c55e;
  --text:     #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim:   #64748b;
  --font:     'Inter', system-ui, sans-serif;
  --mono:     'JetBrains Mono', 'Courier New', monospace;
  --radius:   12px;
  --radius-sm: 6px;
  --shadow:   0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.6);
  --transition: 200ms ease;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; border-top: 1px solid #353434; }

.section-label {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #f1f5f9;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn--sm { padding: .45rem 1rem; font-size: .85rem; }
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid #cbd5e1;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1rem 0;
  background: #fff;
  box-shadow: 0 1px 0 #e2e8f0;
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .05em;
  padding: .4rem .75rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav__logo:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  color: #475569;
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: #f9af1a; }
.nav__burger span { background: #475569; }

/* Mobile panel - hidden by default, shown only on small screens */
.nav__links--mobile {
  display: none;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 7rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #221e16 0%, #0d0d0d 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(249,175,26,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after { display: none; }
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero__content { max-width: 600px; }
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.25);
  color: var(--green);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  letter-spacing: .04em;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.hero__name {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #f8fafc;
  margin-bottom: .5rem;
}
.hero__title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: .5rem;
}
.hero__stack {
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  letter-spacing: .04em;
}
.hero__bio {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero__links {
  display: flex;
  gap: 1.5rem;
}
.hero__links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.hero__links a:hover { color: var(--accent); }

.hero__photo { display: flex; justify-content: center; }
.hero__photo-wrap {
  width: 340px;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  background: transparent;
}
.hero__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__photo-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--text-dim);
  font-size: .85rem;
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-dim);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 1;
}

/* ===========================
   PILLARS
   =========================== */
.pillars {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(255,255,255,.02); }
.pillar__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(249,175,26,.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar__icon--aws  { background: rgba(245,158,11,.1); color: var(--aws); }
.pillar__icon--green  { background: rgba(34,197,94,.1); color: var(--green); }
.pillar__icon--purple { background: rgba(168,85,247,.1); color: #c084fc; }
.pillar__text {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.pillar__text strong {
  font-size: .9rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}
.pillar__text span {
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===========================
   ABOUT
   =========================== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about__text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.about__text .section-title { margin-bottom: 1.5rem; }
.about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}
.badge {
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  color: var(--text-muted);
}
.badge--aws {
  background: var(--aws-bg);
  border-color: rgba(245,158,11,.3);
  color: var(--aws);
}
.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.highlight-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.highlight-card__icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.highlight-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: #f1f5f9;
}
.highlight-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   SKILLS
   =========================== */
.skills { background: var(--bg-card2); }
.skills .section-title { margin-bottom: 2.5rem; }
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.skill-group__title {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .85rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.skill-tag {
  font-size: .8rem;
  font-weight: 500;
  padding: .35rem .75rem;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.skill-tag:hover { border-color: var(--border2); color: var(--text); }
.skill-tag--primary {
  background: rgba(249,175,26,.1);
  border-color: rgba(249,175,26,.3);
  color: var(--accent2);
}
.skill-tag--aws {
  background: var(--aws-bg);
  border-color: rgba(245,158,11,.25);
  color: var(--aws);
}

/* ===========================
   EXPERIENCE / TIMELINE
   =========================== */
.experience .section-title { margin-bottom: 3rem; }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 80%, transparent);
}
.timeline__item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border2);
  border: 2px solid var(--border2);
  transform: translateX(-4px);
  transition: all var(--transition);
}
.timeline__item--featured .timeline__marker {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline__content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.timeline__item--featured .timeline__content {
  border-color: rgba(249,175,26,.3);
}
.timeline__content:hover { border-color: var(--border2); }
.timeline__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.timeline__period {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-dim);
}
.timeline__badge {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(249,175,26,.15);
  color: var(--accent2);
  border: 1px solid rgba(249,175,26,.3);
  padding: .2rem .6rem;
  border-radius: 99px;
}
.timeline__role {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: .25rem;
}
.timeline__company {
  font-size: .9rem;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: .85rem;
}
.timeline__desc {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.6;
}
.timeline__bullets {
  margin-bottom: 1rem;
}
.timeline__bullets li {
  font-size: .9rem;
  color: var(--text-muted);
  padding: .3rem 0 .3rem 1.2rem;
  position: relative;
  line-height: 1.6;
}
.timeline__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .75rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline__tech {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.timeline__tech span {
  font-size: .75rem;
  font-family: var(--mono);
  padding: .25rem .65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ===========================
   PROJECTS
   =========================== */
.projects { background: var(--bg-card2); }
.projects .section-title { margin-bottom: .5rem; }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: all var(--transition);
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(249,175,26,.15);
}
.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent);
}
.project-card__arrow { color: var(--text-dim); transition: transform var(--transition); }
.project-card:hover .project-card__arrow { transform: translate(2px,-2px); color: var(--accent); }
.project-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #f1f5f9;
  font-family: var(--mono);
}
.project-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.project-card__lang {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-dim);
}
.lang-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.lang-dot--blade { background: #f05340; }
.lang-dot--php   { background: #4f5d95; }
.lang-dot--js    { background: #f1e05a; }
.project-card--more {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: var(--border2);
  min-height: 140px;
}
.project-card--more:hover { border-color: var(--accent); border-style: solid; }
.project-card__more-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  color: var(--text-dim);
  transition: color var(--transition);
}
.project-card--more:hover .project-card__more-inner { color: var(--accent); }
.project-card__more-inner span { font-size: .9rem; font-weight: 600; }

/* ===========================
   EDUCATION
   =========================== */
.education .section-title { margin-bottom: 2.5rem; }
.edu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: border-color var(--transition);
}
.edu-card:hover { border-color: var(--border2); }
.edu-card--cert {
  border-color: rgba(245,158,11,.2);
  cursor: pointer;
  text-decoration: none;
}
.edu-card--cert:hover { border-color: var(--aws); }
.edu-card__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.edu-card--cert .edu-card__icon { background: var(--aws-bg); color: var(--aws); }
.edu-card:not(.edu-card--cert) .edu-card__icon { background: rgba(249,175,26,.1); color: var(--accent); }
.edu-card__tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: .4rem;
}
.edu-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: .3rem;
  line-height: 1.4;
}
.edu-card p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.edu-card__note {
  font-style: italic;
  font-size: .82rem !important;
  color: var(--text-dim) !important;
}
.edu-card__awards {
  margin-top: .5rem;
}
.edu-card__awards li {
  font-size: .82rem;
  color: var(--text-muted);
  padding: .2rem 0 .2rem 1rem;
  position: relative;
}
.edu-card__awards li::before {
  content: '';
  position: absolute;
  left: 0; top: .55rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===========================
   CONTACT
   =========================== */
.contact {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
}
.contact__inner { text-align: center; max-width: 640px; margin: 0 auto; }
.contact .section-title { margin-bottom: 1rem; }
.contact__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.contact__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .95rem;
  color: var(--text-muted);
  transition: color var(--transition);
  font-weight: 500;
}
.contact-link:hover { color: var(--accent); }
.contact-link--location { cursor: default; }
.contact-link--location:hover { color: var(--text-muted); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}
.footer p {
  font-size: .82rem;
  color: var(--text-dim);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__photo { order: -1; }
  .hero__photo-wrap { width: 200px; height: 220px; border-radius: 12px; margin: 0 auto; border: 4px solid #fff; }
  .about__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .edu__grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  /* Hide desktop nav links, show burger */
  #nav-links-desktop { display: none; }
  .nav__burger { display: flex; z-index: 220; position: relative; }

  /* Mobile slide-in panel */
  .nav__links--mobile {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: min(280px, 85vw);
    height: 100%;
    #0d0d0d;
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 250ms ease;
    z-index: 210;
    overflow-y: auto;
  }
  .nav__links--mobile.open {
    transform: translateX(0);
    box-shadow: -8px 0 40px rgba(0,0,0,.6);
  }
  .nav__links--mobile a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
  }
  .nav__links--mobile a:hover { color: #f9af1a; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 205;
  }
  .nav-overlay.open { display: block; }

  .section { padding: 3.5rem 0; }
  .hero { padding: 6rem 0 3rem; }
  .hero__scroll { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__photo { order: -1; }
  .hero__photo-wrap { width: 160px; height: 180px; border-radius: 10px; margin: 0 auto; border: 4px solid #fff; }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar:nth-child(odd) { border-right: 1px solid var(--border); }
  .pillar:last-child { border-bottom: none; }
  .skills__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.5rem; }
  .edu-card { flex-direction: column; gap: 1rem; }
  .edu-card__icon { width: 44px; height: 44px; }
  .contact__links { align-items: flex-start; }
}

@media (max-width: 400px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
