:root {
  --bg: #F5F1EA;
  --bg-card: #FEFCF8;
  --bg-dark: #1E2832;
  --ink: #1E2832;
  --ink-soft: #5A6070;
  --gold: #B8893A;
  --gold-lt: #E8C97A;
  --teal: #2A6B6E;
  --teal-lt: #D0EAEB;
  --border: #DDD8CE;
  --shadow: 0 4px 32px rgba(30, 40, 50, .08);
  --radius: 14px;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Karla', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .5;
}

/* ── UTILITY ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: .35;
}

section {
  position: relative;
  z-index: 1;
}

/* ── FADE-IN ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

/* ══════════════════════════════════════
     NAVBAR
  ══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 241, 234, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;



}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(30, 40, 50, .08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  font-family: var(--sans);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--ink);
  color: #fff;
}

/* ══════════════════════════════════════
     HERO
  ══════════════════════════════════════ */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: linear-gradient(135deg, #F5F1EA 60%, #EAE3D4 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  width: 100%;
}

.hero-left {
  position: relative;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* .hero-eyebrow::before {
    content: ''; width: 32px; height: 1.5px; background: var(--gold);
  } */
h1.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

h1.hero-title em {
  font-style: normal;
  color: var(--teal);
}

.hero-name {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 400;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 24px rgba(30, 40, 50, .22);
}

.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(30, 40, 50, .3);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 20px rgba(184, 137, 58, .3);
}

.btn-gold:hover {
  box-shadow: 0 10px 28px rgba(184, 137, 58, .4);
  background: #a0782e;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-avatar-wrap {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero-avatar-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  opacity: .4;
  animation: spin-slow 18s linear infinite;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.hero-avatar-ring-2 {
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  opacity: .2;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-card);
  box-shadow: 0 16px 48px rgba(30, 40, 50, .18);
  background: linear-gradient(145deg, #d8cfc0, #b8a990);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 5rem;
  color: #fff;
  user-select: none;
  overflow: hidden;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-avatar-initials {
  font-family: var(--serif);
  font-size: 4.5rem;
  color: rgba(255, 255, 255, .85);
  text-align: center;
  line-height: 1;
  letter-spacing: -.02em;
}

.hero-stat-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-family: var(--sans);
}

.hero-stat-badge .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1;
}

.hero-stat-badge .lbl {
  font-size: .72rem;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge-1 {
  bottom: 20px;
  left: -30px;
}

.badge-2 {
  top: 20px;
  right: -20px;
}

/* ══════════════════════════════════════
     ABOUT
  ══════════════════════════════════════ */
#about {
  padding: 70px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-header {
  margin-bottom: 20px;
}

.about-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -.02em;
  margin-top: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 2fr;
  gap: 80px;
  align-items: center;
}

.about-left h3 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.about-left h3 em {
  color: var(--teal);
  font-style: italic;
}

.about-right p {
  color: var(--ink-soft);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: justify;
}

.about-right p strong {
  color: var(--ink);
  font-weight: 600;
}

/* .about-btns { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; } */

/* ══════════════════════════════════════
     SKILLS
  ══════════════════════════════════════ */
#skills {
  padding: 70px 0;
}

.skills-header {
  margin-bottom: 20px;
}

.skills-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -.02em;
  margin-top: 12px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform .28s, box-shadow .28s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.skill-card:nth-child(1)::before {
  background: var(--gold);
}

.skill-card:nth-child(2)::before {
  background: var(--teal);
}

.skill-card:nth-child(3)::before {
  background: #C0504D;
}

.skill-card:nth-child(4)::before {
  background: #506AB0;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 44px rgba(30, 40, 50, .14);
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.skill-card:nth-child(1) .skill-icon {
  background: rgba(184, 137, 58, .12);
}

.skill-card:nth-child(2) .skill-icon {
  background: rgba(42, 107, 110, .12);
}

.skill-card:nth-child(3) .skill-icon {
  background: rgba(192, 80, 77, .12);
}

.skill-card:nth-child(4) .skill-icon {
  background: rgba(80, 106, 176, .12);
}

.skill-card h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  letter-spacing: .04em;
}

/* ══════════════════════════════════════
     PROJECTS
  ══════════════════════════════════════ */
#projects {
  padding: 70px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.projects-header {
  margin-bottom: 20px;
}

.projects-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -.02em;
  margin-top: 12px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.projects-grid>div:first-child {
  grid-column: span 1;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 50px rgba(30, 40, 50, .14);
}

.project-card:nth-child(1) {
  grid-column: span 2;
}

/* .proj-snapshot {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
  } */

.proj-snapshot {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: var(--bg-card);
  /* The "empty" space will show this color */
}


.proj-snapshot img {
  width: 100%;
  height: 100%;
}

.proj-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
}

.badge-sql {
  background: var(--gold);
}

.badge-excel {
  background: #1D6F42;
}

.badge-pbi {
  background: #F2C811;
  color: #1E2832;
}

.badge-py {
  background: #3776AB;
}

.badge-snow {
  background: #29B5E8;
}

.proj-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.proj-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.proj-meta {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}

.proj-q,
.proj-insight,
.proj-stack {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  line-height: 1.7;
  text-align: justify;
}

.proj-q strong,
.proj-insight strong,
.proj-stack strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-family: var(--mono);
}

.proj-q b {
  color: var(--ink);
}

.proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--ink);
  transition: background .2s, color .2s;
}

.proj-link:hover {
  background: var(--ink);
  color: #fff;
}

/* Remove the .proj-link-icon:hover block and use this instead: */

.proj-link:hover .proj-link-icon {
  filter: brightness(0) invert(1);
}


.proj-link-icon {
  /* Set a height that matches your text size or slightly larger */
  height: 1.2rem;
  width: auto;

  /* Ensures the image doesn't distort */
  object-fit: contain;

  /* Inherit transition if you plan to change icon color via filter on hover */
  transition: filter .2s ease;

}

/* ══════════════════════════════════════
     CONTACT
  ══════════════════════════════════════ */
#contact {
  padding: 70px 0;
}

.contact-header {
  margin-bottom: 20px;
}

.contact-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -.02em;
  margin-top: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform .22s, box-shadow .22s;

}

.contact-item:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 28px rgba(30, 40, 50, .12);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-email {
  background: rgba(184, 137, 58, .12);
}

.icon-linkedin {
  background: rgba(10, 102, 194, .1);
}

.icon-github {
  background: rgba(30, 40, 50, .07);
}

.contact-item-text .clabel {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--ink-soft);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-item-text .cval {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.contact-right {
  position: relative;
  padding: 52px 44px;
}

.contact-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
  border-radius: 20px;
}

.contact-right>* {
  position: relative;
  z-index: 1;
}

.contact-right h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #fff;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.contact-right h3 em {
  color: var(--gold-lt);
  font-style: italic;
}

.contact-right p {
  color: rgba(255, 255, 255, .55);
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-deco {
  position: absolute;
  right: 30px;
  bottom: 30px;
  font-family: var(--serif);
  font-size: 7rem;
  opacity: .06;
  color: #fff;
  line-height: 1;
  pointer-events: none;
}

/* ══════════════════════════════════════
     FOOTER
  ══════════════════════════════════════ */
footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .45);
  text-align: center;
  padding: 28px 32px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .05em;
}

footer span {
  color: var(--gold-lt);
}

/* ══════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════ */
@media (max-width: 980px) {

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }


  /* Edited Codes */
  .hero-grid {
    padding-top: 60px;
  }

  .hero-left {
    text-align: center;
  }

  .hero-eyebrow {
    display: block;
    /* Ensures it takes up the full width row */
    margin-left: auto;
    /* Centers the element itself */
    margin-right: auto;
    /* Centers the element itself */
    width: max-content;
    /* Shrinks the width to fit the text */
    text-align: center;
    /* Centers the text inside */
  }

  /* Edited Codes */


  .hero-right {
    order: -1;
  }

  .hero-avatar-wrap {
    width: 240px;
    height: 240px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(1) {
    grid-column: span 1;
  }

  .badge-1,
  .badge-2 {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  nav {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  nav .nav-links a {
    padding: 6px 8px;
    font-size: .78rem;
    white-space: nowrap;
  }

  /* .nav-logo { display: none; }  */
  .nav-logo {
    padding: 6px 8px;
    font-size: .78rem;
    line-height: 1.2;
  }
}