/* =============================================
   FAIZAN AHMAD PORTFOLIO — STYLESHEET
   Aesthetic: Dark editorial with warm amber accents
   Fonts: Syne (display) + DM Sans (body)
============================================= */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text: #f0ede8;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #f0a830;
  --accent-dim: rgba(240,168,48,0.12);
  --accent-glow: rgba(240,168,48,0.25);
  --green: #4ade80;
  --blue: #60a5fa;
  --radius: 12px;
  --radius-lg: 20px;
  --nav-h: 68px;
  --max-w: 1200px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== SELECTION ===== */
::selection { background: var(--accent); color: #000; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ===== SECTION ===== */
.section { padding: 100px 0; }
.section-header { margin-bottom: 3.5rem; }
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--text); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #000; font-weight: 600; }
.btn--primary:hover { background: #f5b844; transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow); }
.btn--outline { background: transparent; border: 1px solid var(--border-hover); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn--ghost:hover { border-color: var(--border-hover); color: var(--text); }
.btn--icon { background: var(--bg-3); border: 1px solid var(--border); color: var(--text-muted); }
.btn--icon:hover { color: var(--text); border-color: var(--border-hover); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn--full { width: 100%; justify-content: center; }

/* ===== BADGE / CHIP ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.75rem;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem; color: var(--text-muted);
}
.chip {
  padding: 0.25rem 0.6rem;
  background: var(--accent-dim); border: 1px solid rgba(240,168,48,0.2);
  border-radius: 6px;
  font-size: 0.7rem; color: var(--accent);
  font-family: 'DM Sans', sans-serif;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(10,10,10,0.95); }
.nav__logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem;
  color: var(--text); letter-spacing: 0.05em;
  width: 36px; height: 36px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: #000;
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.nav__mobile {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: 2rem;
  flex-direction: column; gap: 1.5rem;
  border-top: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }
.nav__mobile ul { display: flex; flex-direction: column; gap: 1.25rem; }
.nav__mobile ul a { font-size: 1.25rem; font-family: 'Syne', sans-serif; color: var(--text); }
.nav__mobile ul a:hover { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  position: relative; overflow: hidden;
}
.hero__bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 80%);
}
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero__orb--1 {
  width: 500px; height: 500px; top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(240,168,48,0.08) 0%, transparent 70%);
}
.hero__orb--2 {
  width: 400px; height: 400px; bottom: 0; right: -100px;
  background: radial-gradient(circle, rgba(96,165,250,0.06) 0%, transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero__content { display: flex; flex-direction: column; gap: 1.5rem; }
.hero__label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--green); letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
}
.hero__label::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}
.hero__title { font-size: clamp(2.5rem, 5vw, 4rem); }
.hero__title-name { color: var(--text); }
.hero__title-role { color: var(--accent); }
.hero__sub { font-size: 1.0625rem; color: var(--text-muted); max-width: 480px; line-height: 1.75; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero code card */
.hero__visual { display: flex; justify-content: center; }
.hero__card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  width: 100%; max-width: 420px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.hero__card-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-3); border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }
.hero__card-title { font-size: 0.75rem; color: var(--text-dim); margin-left: 0.5rem; font-family: 'DM Mono', monospace; }
.hero__code {
  padding: 1.5rem; font-family: 'Courier New', monospace;
  font-size: 0.8125rem; line-height: 1.8;
  overflow-x: auto;
}
.c-key { color: #c792ea; }
.c-fn { color: #82aaff; }
.c-tag { color: #89ddff; }
.c-attr { color: #f07178; }
.c-str { color: var(--accent); }
.hero__card-footer {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; border-top: 1px solid var(--border);
}

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero__scroll-line {
  width: 1px; height: 48px; background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scroll-line 2s ease infinite;
}
@keyframes scroll-line { 0% { opacity: 1; transform: scaleY(0); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; } }

/* ===== ABOUT ===== */
.about { background: var(--bg); }
.about__inner { display: grid; grid-template-columns: 1fr 380px; gap: 5rem; align-items: start; }
.about__text p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 1.0125rem; }
.about__text strong { color: var(--text); }
.about__stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat__label { font-size: 0.8125rem; color: var(--text-muted); }
.about__info-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; position: sticky; top: calc(var(--nav-h) + 2rem);
}
.about__info-card h3 { font-size: 1rem; margin-bottom: 1.25rem; color: var(--text); }
.info-list { display: flex; flex-direction: column; gap: 1rem; }
.info-list li { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border: none; padding: 0; }
.info-label { color: var(--text-dim); }
.info-list a { color: var(--accent); }
.status-open { color: var(--green); font-weight: 500; }

/* ===== SKILLS ===== */
.skills { background: var(--bg-2); }
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.skill-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.skill-card__icon { font-size: 1.5rem; margin-bottom: 1rem; }
.skill-card h3 { font-size: 0.9375rem; margin-bottom: 1rem; color: var(--text); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tags span {
  padding: 0.25rem 0.6rem; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.75rem; color: var(--text-muted);
}

/* ===== PROJECTS ===== */
.projects { background: var(--bg); }
.projects__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 1.5rem; }
.project-card--featured { grid-column: 1 / 3; }

.project-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s; position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 0%, var(--accent-dim) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.project-card:hover { border-color: rgba(240,168,48,0.25); transform: translateY(-2px); }
.project-card:hover::before { opacity: 1; }

.project-card__meta { display: flex; justify-content: space-between; align-items: center; }
.project-type { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.project-links a { color: var(--text-dim); transition: color 0.2s; display: inline-flex; }
.project-links a:hover { color: var(--text); }
.project-card__title { font-size: 1.3125rem; color: var(--text); }
.project-card__sub { font-size: 0.875rem; color: var(--text-muted); }
.project-card__desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; flex-grow: 1; }
.project-card__features { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.25rem; }
.project-card__features li { font-size: 0.8125rem; color: var(--text-dim); padding-left: 1rem; position: relative; }
.project-card__features li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.project-card__tech { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.project-card__tech span {
  padding: 0.2rem 0.55rem; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.7rem; color: var(--text-dim);
}

/* ===== EXPERIENCE ===== */
.experience { background: var(--bg-2); }
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline__item { position: relative; padding-bottom: 3rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -1.75rem; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline__content {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.75rem;
  transition: border-color 0.2s;
}
.timeline__content:hover { border-color: var(--border-hover); }
.timeline__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.25rem; flex-wrap: wrap; gap: 0.5rem; }
.timeline__header h3 { font-size: 1.0625rem; color: var(--text); }
.timeline__company { font-size: 0.8125rem; color: var(--accent); }
.timeline__date { font-size: 0.75rem; color: var(--text-dim); display: block; margin-bottom: 0.75rem; letter-spacing: 0.05em; }
.timeline__list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.timeline__list li { font-size: 0.875rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.timeline__list li::before { content: '–'; position: absolute; left: 0; color: var(--text-dim); }
.timeline__tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.timeline__tech span { padding: 0.2rem 0.55rem; background: var(--bg-3); border: 1px solid var(--border); border-radius: 6px; font-size: 0.7rem; color: var(--text-dim); }

/* ===== EDUCATION ===== */
.education { background: var(--bg); }
.edu__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.edu-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.edu-card--main { grid-column: 1 / 3; }
.edu-card h3 { font-size: 1.125rem; color: var(--text); }
.edu-badge {
  display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.25rem;
}
.edu-gpa { font-size: 0.8125rem; color: var(--green); margin-left: auto; }
.edu-card__top { display: flex; align-items: center; }
.edu-date { font-size: 0.8125rem; color: var(--text-dim); }
.edu-achieve { font-size: 0.875rem; color: var(--accent); }
.edu-courses { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.edu-courses strong { width: 100%; font-size: 0.8125rem; color: var(--text-muted); font-weight: 400; margin-bottom: 0.25rem; }
.edu-courses span { padding: 0.2rem 0.55rem; background: var(--bg-3); border: 1px solid var(--border); border-radius: 6px; font-size: 0.7rem; color: var(--text-dim); }
.edu-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ===== CERTIFICATIONS ===== */
.certs { background: var(--bg-2); }
.certs__grid { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cert-item {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.125rem 1.5rem; border-bottom: 1px solid var(--border);
  background: var(--bg); transition: background 0.2s;
}
.cert-item:last-child { border-bottom: none; }
.cert-item:hover { background: var(--bg-3); }
.cert-org { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); min-width: 120px; }
.cert-item > span:nth-child(2) { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.cert-date { font-size: 0.75rem; color: var(--text-dim); }

/* ===== CONTACT ===== */
.contact { background: var(--bg); }
.contact__inner { display: grid; grid-template-columns: 1fr 400px; gap: 5rem; align-items: start; }
.contact__text p { color: var(--text-muted); font-size: 1.0125rem; margin: 1.25rem 0 2rem; }
.contact__links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9375rem; color: var(--text-muted); transition: color 0.2s;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
}
.contact-link:hover { color: var(--accent); }
.contact__card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; position: sticky; top: calc(var(--nav-h) + 2rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.contact__avail { font-size: 0.8125rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.contact__card ul { display: flex; flex-direction: column; gap: 0.6rem; }
.contact__card li { font-size: 0.9rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9375rem; }
.footer__copy { font-size: 0.8125rem; color: var(--text-dim); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { font-size: 0.8125rem; color: var(--text-dim); transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }

/* ===== UTILITY ===== */
.hide-lg { display: none; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { order: -1; }
  .hero__card { max-width: 380px; }
  .about__inner { grid-template-columns: 1fr; }
  .about__info-card { position: static; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__card { position: static; }
  .projects__grid { grid-template-columns: 1fr 1fr; }
  .project-card--featured { grid-column: 1 / 3; }
  .edu__grid { grid-template-columns: 1fr 1fr; }
  .edu-card--main { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 72px 0; }
  .nav__links { display: none; }
  .nav > .btn--sm { display: none; }
  .nav__hamburger { display: flex; }
  .skills__grid { grid-template-columns: 1fr 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .project-card--featured { grid-column: 1; }
  .about__stats { grid-template-columns: repeat(2,1fr); }
  .edu__grid { grid-template-columns: 1fr; }
  .edu-card--main { grid-column: 1; }
  .timeline { padding-left: 1.5rem; }
  .hero__title { font-size: 2.25rem; }
  .cert-item { flex-wrap: wrap; gap: 0.5rem; }
  .cert-org { min-width: auto; }
  .cert-date { margin-left: auto; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero__cta { flex-direction: column; }
  .btn--full { width: 100%; }
  .skills__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .hide-lg { display: block; }
  .hero__card { max-width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   WHITE + GOLD PREMIUM DESIGN UPDATE
   Clean portfolio UI with professional tech icons
============================================= */
:root {
  --bg: #fffdf8;
  --bg-2: #fff8eb;
  --bg-3: #ffffff;
  --border: rgba(135, 103, 43, 0.16);
  --border-hover: rgba(191, 143, 48, 0.42);
  --text: #19140a;
  --text-muted: #625a4a;
  --text-dim: #92846d;
  --accent: #c9931f;
  --accent-2: #f7d77a;
  --accent-dim: rgba(201, 147, 31, 0.12);
  --accent-glow: rgba(201, 147, 31, 0.28);
  --green: #18824f;
  --blue: #2563eb;
  --shadow-soft: 0 24px 70px rgba(76, 55, 13, 0.10);
  --shadow-card: 0 16px 42px rgba(105, 76, 20, 0.09);
}

body {
  background:
    radial-gradient(circle at 12% 4%, rgba(247, 215, 122, 0.22), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(201, 147, 31, 0.12), transparent 24rem),
    linear-gradient(180deg, #fffdf8 0%, #fffaf1 42%, #ffffff 100%);
  color: var(--text);
}

::-webkit-scrollbar-track { background: #fffaf1; }
::-webkit-scrollbar-thumb { background: #dec27c; }
::selection { background: var(--accent-2); color: #16110a; }

.section-label {
  color: var(--accent);
  font-weight: 700;
}

.section-title {
  color: var(--text);
  letter-spacing: -0.035em;
}

.btn {
  border-radius: 999px;
  box-shadow: none;
}

.btn--primary {
  background: linear-gradient(135deg, #d7a129 0%, #f4d37c 48%, #b97e12 100%);
  color: #1d1403;
  border: 1px solid rgba(132, 92, 10, 0.22);
  box-shadow: 0 12px 28px rgba(201, 147, 31, 0.22);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #e3af36 0%, #ffe39a 48%, #c58916 100%);
  box-shadow: 0 18px 38px rgba(201, 147, 31, 0.30);
}
.btn--outline,
.btn--ghost,
.btn--icon {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(66, 48, 11, 0.05);
}
.btn--outline:hover,
.btn--ghost:hover,
.btn--icon:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: #fff;
}

.badge, .chip, .skill-tags span, .project-card__tech span,
.timeline__tech span, .edu-courses span {
  background: linear-gradient(180deg, #ffffff 0%, #fff8e8 100%);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.chip { color: #8a5d08; }

.nav {
  background: rgba(255, 253, 248, 0.84);
  border-bottom: 1px solid rgba(135, 103, 43, 0.14);
  box-shadow: 0 12px 40px rgba(76, 55, 13, 0.06);
}
.nav.scrolled { background: rgba(255, 253, 248, 0.96); }
.nav__logo {
  background: linear-gradient(135deg, #d6a32a, #ffe09a 52%, #b97e12);
  color: #171006;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(201,147,31,0.24);
}
.nav__links a { color: var(--text-muted); font-weight: 500; }
.nav__links a:hover { color: var(--accent); }
.nav__hamburger span { background: var(--text); }
.nav__mobile {
  background: rgba(255, 253, 248, 0.98);
  border-top: 1px solid var(--border);
}

.hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,248,235,0.62)),
    radial-gradient(circle at 48% 16%, rgba(247, 215, 122, 0.18), transparent 22rem);
}
.hero__bg-grid {
  background-image:
    linear-gradient(rgba(156, 115, 28, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 115, 28, 0.08) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 0%, black 35%, transparent 76%);
}
.hero__orb--1 { background: radial-gradient(circle, rgba(247, 215, 122, 0.34) 0%, transparent 70%); }
.hero__orb--2 { background: radial-gradient(circle, rgba(201, 147, 31, 0.18) 0%, transparent 70%); }
.hero__label { color: #1c8a57; }
.hero__label::before { background: #1c8a57; }
.hero__title-name { color: var(--text); }
.hero__title-role {
  background: linear-gradient(120deg, #8a5d08 0%, #c9931f 35%, #f1ca65 65%, #9f6b0c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { color: var(--text-muted); }
.hero__card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(201,147,31,0.18);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.hero__card-header {
  background: linear-gradient(180deg, #ffffff 0%, #fff6df 100%);
  border-bottom: 1px solid var(--border);
}
.hero__card-title { color: var(--text-dim); }
.hero__code { color: #2a2111; }
.c-key { color: #7c3aed; }
.c-fn { color: #1d4ed8; }
.c-tag { color: #0f766e; }
.c-attr { color: #be123c; }
.c-str { color: #a16207; }
.hero__card-footer { border-top: 1px solid var(--border); }
.hero__scroll-line { background: linear-gradient(to bottom, transparent, var(--accent)); }

.about, .projects, .education, .contact { background: rgba(255, 253, 248, 0.72); }
.skills, .experience, .certs, .footer { background: linear-gradient(180deg, #fff8eb 0%, #fffdf8 100%); }

.about__info-card,
.skill-card,
.project-card,
.timeline__content,
.edu-card,
.contact__card,
.certs__grid,
.cert-item {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}
.about__text p, .project-card__desc, .project-card__sub, .timeline__list li,
.edu-card p, .contact__text p, .contact__card li, .cert-item > span:nth-child(2) {
  color: var(--text-muted);
}
.about__text strong { color: #2b210d; }
.stat__num, .info-list a, .timeline__company, .edu-badge, .edu-achieve, .cert-org,
.project-type, .footer__links a:hover { color: var(--accent); }

.skills__grid { align-items: stretch; }
.skill-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.skill-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 110px;
  background: radial-gradient(ellipse at center, rgba(247,215,122,0.24), transparent 70%);
  pointer-events: none;
}
.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 22px 54px rgba(120, 83, 14, 0.13);
}
.skill-card__icon { display: none; }
.skill-card__icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.skill-card__icons i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fff7e3);
  border: 1px solid rgba(201,147,31,0.20);
  box-shadow: 0 10px 22px rgba(84, 60, 11, 0.08);
  color: #19140a;
}
.skill-card h3 { color: var(--text); font-size: 1.05rem; }
.skill-tags span { font-weight: 500; }

.project-card:hover {
  border-color: rgba(201,147,31,0.34);
  box-shadow: 0 22px 54px rgba(120, 83, 14, 0.13);
}
.project-card::before {
  background: radial-gradient(ellipse at 0% 0%, rgba(247,215,122,0.26) 0%, transparent 58%);
}
.project-card__title, .timeline__header h3, .edu-card h3, .about__info-card h3 { color: var(--text); }
.project-links a { color: var(--text-dim); }
.project-links a:hover { color: var(--accent); }
.project-card__features li { color: var(--text-muted); }
.project-card__features li::before { color: var(--accent); }
.project-card__tech { border-top: 1px solid var(--border); }

.timeline::before { background: linear-gradient(180deg, transparent, rgba(201,147,31,0.44), transparent); }
.timeline__dot {
  background: linear-gradient(135deg, #fff, #ffe09a);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 7px rgba(201,147,31,0.10), 0 0 18px var(--accent-glow);
}
.timeline__content:hover { border-color: var(--border-hover); }
.timeline__date, .info-label, .cert-date, .footer__copy, .footer__links a { color: var(--text-dim); }
.timeline__list li::before { color: var(--accent); }

.edu-gpa, .status-open { color: #18824f; }
.cert-item:hover { background: #fffaf0; }
.contact-link {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.contact-link:hover { color: var(--accent); }
.footer { border-top: 1px solid var(--border); }

@media (max-width: 768px) {
  .skill-card__icons i { width: 38px; height: 38px; font-size: 1.45rem; }
  .hero__visual { order: 0; }
}

/* =============================================
   PROFESSIONAL POLISH + PROJECT OVERVIEW UPDATE
============================================= */
body { font-family: 'Inter', sans-serif; font-weight: 400; }
h1,h2,h3,h4,.footer__name { font-family: 'Manrope', sans-serif; letter-spacing: -0.04em; }
.hero__code, .hero__card-title { font-family: 'JetBrains Mono', 'Courier New', monospace; }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--text);
}
.nav__logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #171006;
  background: linear-gradient(135deg, #d6a32a, #ffe09a 52%, #b97e12);
  border: 1px solid rgba(132, 92, 10, 0.24);
  box-shadow: 0 12px 26px rgba(201,147,31,0.24);
}
.nav__brand-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: -0.045em;
  background: linear-gradient(120deg, #6e4702 0%, #c9931f 45%, #e9c45e 75%, #7a4e06 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 28px rgba(201,147,31,0.16);
}
.nav__logo { display: none; }

.hero__title { letter-spacing: -0.06em; }
.hero__sub, .about__text p, .project-card__desc, .timeline__list li, .contact__text p { font-weight: 400; }
.section-label, .project-type { font-family: 'Inter', sans-serif; font-weight: 800; }

.skill-card__icons i,
.project-card__icon-row i {
  flex: 0 0 auto;
}
.project-card__icon-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}
.project-card__icon-row i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 1.5rem;
  background: linear-gradient(180deg, #ffffff, #fff7e3);
  border: 1px solid rgba(201,147,31,0.20);
  box-shadow: 0 10px 22px rgba(84, 60, 11, 0.08);
  color: #19140a;
}
.project-card {
  cursor: pointer;
  min-height: 100%;
}
.project-card:focus-visible {
  outline: 3px solid rgba(201,147,31,0.28);
  outline-offset: 4px;
}
.project-card__meta,
.project-card__title,
.project-card__sub,
.project-card__desc,
.project-card__features,
.project-card__tech,
.project-card__icon-row,
.project-quick {
  position: relative;
  z-index: 1;
}
.project-quick {
  margin-top: 0.35rem;
  width: fit-content;
  border: 1px solid rgba(201,147,31,0.28);
  background: linear-gradient(135deg, #fffdf8, #fff5dc);
  color: #8a5d08;
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.project-quick:hover {
  transform: translateY(-1px);
  border-color: rgba(201,147,31,0.52);
  box-shadow: 0 12px 24px rgba(201,147,31,0.16);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
}
.project-modal.open { display: block; }
.project-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 8, 0.36);
  backdrop-filter: blur(8px);
}
.project-modal__panel {
  position: absolute;
  top: calc(var(--nav-h) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: min(980px, calc(100% - 2rem));
  max-height: calc(100vh - var(--nav-h) - 2rem);
  overflow: auto;
  background:
    radial-gradient(circle at 15% 0%, rgba(247,215,122,0.34), transparent 22rem),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,240,0.98));
  border: 1px solid rgba(201,147,31,0.28);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(56, 38, 6, 0.24);
  padding: 1.2rem;
  animation: modalDrop 0.24s ease forwards;
}
@keyframes modalDrop { to { transform: translateX(-50%) translateY(0); } }
.project-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.project-modal__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--accent);
}
.project-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
.project-modal__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.8rem;
}
.project-modal__hero h3 {
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  color: var(--text);
}
.project-modal__hero p,
.project-modal__desc {
  color: var(--text-muted);
}
.project-modal__desc {
  max-width: 820px;
  font-size: 1rem;
  line-height: 1.75;
}
.project-modal__split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-top: 1.2rem;
}
.project-modal__split > div {
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.2rem;
}
.project-modal__split h4 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.project-modal__points {
  display: flex;
  flex-direction: column;
  gap: 0.56rem;
}
.project-modal__points li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-left: 1.1rem;
  position: relative;
}
.project-modal__points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}
.project-modal__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.project-modal__tech span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  background: linear-gradient(180deg, #ffffff, #fff7e3);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
body.modal-open { overflow: hidden; }

@media (max-width: 768px) {
  .nav__brand-text { display: inline-block; }
  .project-modal__panel { top: calc(var(--nav-h) + 0.65rem); width: min(100% - 1rem, 980px); border-radius: 22px; }
  .project-modal__hero { flex-direction: column; }
  .project-modal__split { grid-template-columns: 1fr; }
  .project-card__icon-row i { width: 34px; height: 34px; font-size: 1.3rem; }
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  border: 1px solid rgba(201,147,31,0.20);
  background: linear-gradient(180deg, #ffffff, #fff7e3);
  box-shadow: 0 10px 22px rgba(84, 60, 11, 0.08);
  color: #19140a;
}
.project-card__icon-row .brand-icon { width: 38px; height: 38px; border-radius: 13px; }
.brand-icon--woo { color: #7f54b3; }
.brand-icon--gtm { color: #1a73e8; }
.brand-icon--ga4 { color: #f9ab00; }
@media (max-width: 768px) {
  .brand-icon { width: 38px; height: 38px; font-size: 0.58rem; }
  .project-card__icon-row .brand-icon { width: 34px; height: 34px; font-size: 0.54rem; }
}


/* ===== ACCESSIBILITY / SEO LANDMARK HELPERS ===== */
#main-content{display:block;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}


/* ===== HERO PROFILE PHOTO UPDATE ===== */
.hero__visual {
  position: relative;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
.hero__portrait {
  position: relative;
  z-index: 3;
  margin: 0.1rem 1.2rem -1.05rem 0;
  align-self: flex-end;
}
.hero__portrait-ring {
  width: 144px;
  height: 144px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9f6b0c 0%, #f7d77a 35%, #ffffff 50%, #d7a129 72%, #7a4e06 100%);
  box-shadow: 0 22px 55px rgba(120, 83, 14, 0.22), 0 0 0 10px rgba(247, 215, 122, 0.15);
}
.hero__portrait-ring img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fffaf0;
  background: #fffaf0;
}
.hero__portrait-badge {
  position: absolute;
  right: -0.35rem;
  bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d7a129, #f4d37c);
  color: #1d1403;
  border: 1px solid rgba(132, 92, 10, 0.24);
  box-shadow: 0 12px 26px rgba(201,147,31,0.25);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.hero__visual .hero__card {
  position: relative;
  z-index: 2;
}
.edu-card--publication a {
  color: var(--accent);
  font-weight: 800;
}
.edu-card--publication a:hover {
  text-decoration: underline;
}
@media (max-width: 1024px) {
  .hero__visual {
    align-items: center;
  }
  .hero__portrait {
    align-self: center;
    margin: 0 0 -0.8rem 0;
  }
}
@media (max-width: 480px) {
  .hero__portrait-ring {
    width: 118px;
    height: 118px;
    padding: 4px;
  }
  .hero__portrait-badge {
    font-size: 0.6rem;
    right: -0.2rem;
    bottom: 0.35rem;
  }
}


/* ===== HERO PORTRAIT + PROFESSIONAL SOCIAL LINKS UPDATE ===== */
.hero__identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
}
.hero__identity .hero__title { margin: 0; }
.hero__content { position: relative; }
.hero__visual {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.hero__portrait {
  position: relative;
  z-index: 5;
  margin: 0;
  align-self: center;
  flex: 0 0 auto;
}
.hero__portrait-ring {
  width: clamp(132px, 13vw, 190px);
  height: clamp(132px, 13vw, 190px);
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a5d08 0%, #f7d77a 28%, #ffffff 48%, #d7a129 70%, #6f4605 100%);
  box-shadow:
    0 24px 58px rgba(120, 83, 14, 0.24),
    0 0 0 11px rgba(247, 215, 122, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.75);
}
.hero__portrait-ring img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 5px solid #fffaf0;
  background: #fffaf0;
}
.hero__portrait-badge {
  position: absolute;
  right: -0.28rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d7a129, #f4d37c);
  color: #1d1403;
  border: 1px solid rgba(132, 92, 10, 0.24);
  box-shadow: 0 12px 26px rgba(201,147,31,0.25);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.hero__visual .hero__card {
  position: relative;
  z-index: 2;
  max-width: 480px;
}
.hero__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: -0.35rem;
}
.hero__socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 40px;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(201,147,31,0.20);
  box-shadow: 0 10px 26px rgba(84, 60, 11, 0.06);
  color: #4a3a19;
  font-size: 0.8rem;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.hero__socials a:hover {
  transform: translateY(-2px);
  color: #8a5d08;
  border-color: rgba(201,147,31,0.45);
  box-shadow: 0 16px 34px rgba(201,147,31,0.14);
}
.hero__socials svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (max-width: 1024px) {
  .hero__visual { order: 0; }
}
@media (max-width: 768px) {
  .hero__identity {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
  }
  .hero__portrait-ring {
    width: clamp(108px, 31vw, 132px);
    height: clamp(108px, 31vw, 132px);
    padding: 5px;
    box-shadow: 0 18px 42px rgba(120, 83, 14, 0.20), 0 0 0 8px rgba(247, 215, 122, 0.15);
  }
  .hero__portrait-ring img { border-width: 4px; }
  .hero__portrait-badge {
    font-size: 0.58rem;
    padding: 0.26rem 0.52rem;
    right: -0.1rem;
    bottom: 0.34rem;
  }
  .hero__socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .hero__socials a {
    justify-content: center;
  }
}
@media (max-width: 420px) {
  .hero__identity {
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 0.65rem;
  }
  .hero__title { font-size: clamp(2.05rem, 11vw, 2.45rem); }
  .hero__portrait-ring { width: 100px; height: 100px; }
  .hero__portrait-badge { font-size: 0.52rem; bottom: 0.18rem; }
}

/* ===== FINAL HERO LAYOUT FIX: DESKTOP PHOTO LEFT + MOBILE PHOTO BESIDE NAME ===== */
.hero__identity {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: clamp(1.05rem, 2.4vw, 1.9rem) !important;
  max-width: 760px;
}
.hero__identity .hero__portrait {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: start !important;
  margin: 0 !important;
}
.hero__identity .hero__title {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
}
.hero__title-name {
  white-space: nowrap;
}
.hero__title-role {
  white-space: normal;
}
.hero__title br.hide-lg {
  display: none !important;
}
.hero__portrait-ring {
  width: clamp(156px, 14vw, 206px) !important;
  height: clamp(156px, 14vw, 206px) !important;
  padding: 7px !important;
}
.hero__portrait-ring img {
  object-fit: cover !important;
  object-position: center top !important;
}
.hero__portrait-badge {
  bottom: 0.75rem !important;
}
.hero__visual {
  align-items: center !important;
  justify-content: flex-start !important;
  padding-top: clamp(2.25rem, 7vh, 5rem) !important;
}
.hero__visual .hero__card {
  width: 100% !important;
  max-width: 500px !important;
}
.hero__socials {
  margin-top: 0.1rem !important;
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr !important;
  }
  .hero__visual {
    padding-top: 1.25rem !important;
  }
}

@media (max-width: 768px) {
  .hero__identity {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.85rem !important;
    max-width: 100%;
  }
  .hero__identity .hero__title {
    grid-column: 1 !important;
  }
  .hero__identity .hero__portrait {
    grid-column: 2 !important;
    justify-self: end !important;
  }
  .hero__title {
    font-size: clamp(2rem, 9vw, 2.7rem) !important;
    line-height: 1.08 !important;
  }
  .hero__title-name {
    white-space: nowrap;
  }
  .hero__portrait-ring {
    width: clamp(112px, 30vw, 142px) !important;
    height: clamp(112px, 30vw, 142px) !important;
    padding: 5px !important;
  }
  .hero__portrait-badge {
    font-size: 0.58rem !important;
    padding: 0.25rem 0.52rem !important;
    bottom: 0.34rem !important;
    right: -0.1rem !important;
  }
}

@media (max-width: 420px) {
  .hero__identity {
    grid-template-columns: minmax(0, 1fr) 94px !important;
    gap: 0.7rem !important;
  }
  .hero__title {
    font-size: clamp(1.86rem, 8.8vw, 2.18rem) !important;
    letter-spacing: -0.055em !important;
  }
  .hero__portrait-ring {
    width: 94px !important;
    height: 94px !important;
  }
  .hero__portrait-badge {
    font-size: 0.49rem !important;
    padding: 0.2rem 0.42rem !important;
    bottom: 0.16rem !important;
  }
}

/* =========================================================
   FINAL FIX — PHOTO ALWAYS LEFT OF NAME
   Keeps code card separate, same white/gold design.
========================================================= */
.hero__content {
  min-width: 0 !important;
}

.hero__identity {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(1rem, 2.6vw, 1.85rem) !important;
  width: 100% !important;
  max-width: 820px !important;
}

.hero__identity .hero__portrait {
  order: 0 !important;
  position: relative !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  justify-self: start !important;
  margin: 0 !important;
}

.hero__identity .hero__title {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  line-height: 1.02 !important;
}

.hero__identity .hero__title-name,
.hero__identity .hero__title-role {
  display: block !important;
}

.hero__identity .hero__title-name {
  white-space: nowrap !important;
  font-size: clamp(2.5rem, 5vw, 4.25rem) !important;
  letter-spacing: -0.065em !important;
}

.hero__identity .hero__title-role {
  white-space: normal !important;
  max-width: 640px !important;
  font-size: clamp(2.1rem, 4.25vw, 3.65rem) !important;
  letter-spacing: -0.06em !important;
}

.hero__portrait-ring {
  width: clamp(162px, 14vw, 210px) !important;
  height: clamp(162px, 14vw, 210px) !important;
  padding: 7px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #8a5d08 0%, #f7d77a 28%, #ffffff 48%, #d7a129 70%, #6f4605 100%) !important;
  box-shadow: 0 24px 58px rgba(120, 83, 14, 0.24), 0 0 0 11px rgba(247, 215, 122, 0.16), inset 0 1px 0 rgba(255,255,255,0.75) !important;
}

.hero__portrait-ring img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 50% !important;
  border: 5px solid #fffaf0 !important;
}

.hero__portrait-badge {
  right: -0.28rem !important;
  bottom: 0.72rem !important;
  white-space: nowrap !important;
}

.hero__visual {
  align-items: center !important;
  justify-content: flex-start !important;
  padding-top: clamp(2.25rem, 7vh, 5rem) !important;
}

.hero__visual .hero__card {
  width: 100% !important;
  max-width: 500px !important;
  margin-top: 0 !important;
}

@media (min-width: 1025px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr) !important;
    gap: clamp(3rem, 5vw, 5.25rem) !important;
  }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr !important;
  }
  .hero__visual {
    order: 0 !important;
    padding-top: 1.25rem !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 768px) {
  .hero__identity {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.82rem !important;
    max-width: 100% !important;
  }
  .hero__identity .hero__portrait {
    order: 0 !important;
    flex: 0 0 auto !important;
  }
  .hero__identity .hero__title {
    order: 1 !important;
  }
  .hero__identity .hero__title-name {
    font-size: clamp(1.85rem, 8vw, 2.45rem) !important;
    white-space: nowrap !important;
  }
  .hero__identity .hero__title-role {
    font-size: clamp(1.55rem, 6.8vw, 2.12rem) !important;
    max-width: 260px !important;
    line-height: 1.08 !important;
  }
  .hero__portrait-ring {
    width: clamp(94px, 27vw, 124px) !important;
    height: clamp(94px, 27vw, 124px) !important;
    padding: 5px !important;
    box-shadow: 0 18px 42px rgba(120, 83, 14, 0.20), 0 0 0 8px rgba(247, 215, 122, 0.15) !important;
  }
  .hero__portrait-ring img {
    border-width: 4px !important;
  }
  .hero__portrait-badge {
    font-size: 0.56rem !important;
    padding: 0.25rem 0.48rem !important;
    right: -0.12rem !important;
    bottom: 0.25rem !important;
  }
  .hero__visual {
    padding-top: 1rem !important;
  }
}

@media (max-width: 420px) {
  .hero__identity {
    gap: 0.64rem !important;
  }
  .hero__identity .hero__title-name {
    font-size: clamp(1.62rem, 8.1vw, 2.02rem) !important;
  }
  .hero__identity .hero__title-role {
    font-size: clamp(1.36rem, 7vw, 1.78rem) !important;
    max-width: 210px !important;
  }
  .hero__portrait-ring {
    width: 86px !important;
    height: 86px !important;
    padding: 4px !important;
  }
  .hero__portrait-ring img {
    border-width: 3px !important;
  }
  .hero__portrait-badge {
    font-size: 0.46rem !important;
    padding: 0.18rem 0.35rem !important;
    bottom: 0.1rem !important;
  }
}


/* =========================================================
   FINAL HERO POSITION FIX — PHOTO ON ALTERNATIVE SIDE
   Photo is above the code preview, opposite the name.
   Design, colors, SEO content, and sections remain same.
========================================================= */
.hero__identity {
  display: block !important;
  width: 100% !important;
  max-width: 760px !important;
}

.hero__identity .hero__title {
  margin: 0 !important;
  max-width: 760px !important;
  line-height: 1.02 !important;
}

.hero__identity .hero__title-name,
.hero__identity .hero__title-role {
  display: block !important;
}

.hero__identity .hero__title-name {
  white-space: nowrap !important;
  font-size: clamp(2.85rem, 5.7vw, 5rem) !important;
  letter-spacing: -0.07em !important;
}

.hero__identity .hero__title-role {
  white-space: normal !important;
  max-width: 700px !important;
  font-size: clamp(2.45rem, 5vw, 4.45rem) !important;
  letter-spacing: -0.065em !important;
}

.hero__visual {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding-top: 0 !important;
}

.hero__visual .hero__portrait {
  order: 0 !important;
  position: relative !important;
  z-index: 4 !important;
  margin: 0 0 -1.15rem 0 !important;
  align-self: center !important;
  flex: 0 0 auto !important;
}

.hero__visual .hero__portrait-ring {
  width: clamp(176px, 15vw, 224px) !important;
  height: clamp(176px, 15vw, 224px) !important;
  padding: 7px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #8a5d08 0%, #f7d77a 28%, #ffffff 48%, #d7a129 70%, #6f4605 100%) !important;
  box-shadow:
    0 26px 62px rgba(120, 83, 14, 0.24),
    0 0 0 12px rgba(247, 215, 122, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.75) !important;
}

.hero__visual .hero__portrait-ring img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 50% !important;
  border: 5px solid #fffaf0 !important;
  background: #fffaf0 !important;
}

.hero__visual .hero__portrait-badge {
  position: absolute !important;
  right: 50% !important;
  transform: translateX(50%) !important;
  bottom: -0.18rem !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.34rem 0.78rem !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #d7a129, #f4d37c) !important;
  color: #1d1403 !important;
  border: 1px solid rgba(132, 92, 10, 0.24) !important;
  box-shadow: 0 12px 26px rgba(201,147,31,0.25) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
}

.hero__visual .hero__card {
  order: 1 !important;
  width: 100% !important;
  max-width: 500px !important;
  margin-top: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

@media (min-width: 1025px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr) !important;
    gap: clamp(3rem, 5vw, 5.5rem) !important;
    align-items: center !important;
  }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr !important;
    gap: 2.2rem !important;
  }

  .hero__visual {
    order: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero__visual .hero__card {
    max-width: 560px !important;
  }
}

@media (max-width: 768px) {
  .hero__identity .hero__title-name {
    font-size: clamp(2.25rem, 10vw, 3.2rem) !important;
    white-space: nowrap !important;
  }

  .hero__identity .hero__title-role {
    font-size: clamp(1.95rem, 8.7vw, 2.95rem) !important;
    max-width: 420px !important;
    line-height: 1.06 !important;
  }

  .hero__visual .hero__portrait {
    margin-bottom: -0.9rem !important;
  }

  .hero__visual .hero__portrait-ring {
    width: clamp(132px, 38vw, 166px) !important;
    height: clamp(132px, 38vw, 166px) !important;
    padding: 5px !important;
    box-shadow:
      0 18px 42px rgba(120, 83, 14, 0.20),
      0 0 0 9px rgba(247, 215, 122, 0.15) !important;
  }

  .hero__visual .hero__portrait-ring img {
    border-width: 4px !important;
  }

  .hero__visual .hero__portrait-badge {
    font-size: 0.6rem !important;
    padding: 0.25rem 0.55rem !important;
    bottom: -0.1rem !important;
  }
}

@media (max-width: 420px) {
  .hero__identity .hero__title-name {
    font-size: clamp(2rem, 9.4vw, 2.45rem) !important;
  }

  .hero__identity .hero__title-role {
    font-size: clamp(1.7rem, 8vw, 2.18rem) !important;
    max-width: 330px !important;
  }

  .hero__visual .hero__portrait-ring {
    width: 128px !important;
    height: 128px !important;
  }

  .hero__visual .hero__portrait-badge {
    font-size: 0.54rem !important;
  }
}


/* =========================================================
   MOBILE HERO PHOTO FIX — DESKTOP UNCHANGED
   Desktop keeps photo above the code card.
   Mobile places photo beside the name, and the code card below.
========================================================= */
.hero__portrait--mobile {
  display: none !important;
}

@media (max-width: 768px) {
  .hero__inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    align-items: start !important;
  }

  .hero__content {
    width: 100% !important;
    gap: 1rem !important;
  }

  .hero__identity {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero__identity .hero__title {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .hero__identity .hero__title-name {
    font-size: clamp(2.05rem, 9vw, 3rem) !important;
    line-height: 0.98 !important;
    white-space: nowrap !important;
  }

  .hero__identity .hero__title-role {
    font-size: clamp(1.7rem, 7.7vw, 2.55rem) !important;
    line-height: 1.05 !important;
    max-width: 100% !important;
  }

  .hero__portrait--mobile {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    position: relative !important;
    z-index: 3 !important;
  }

  .hero__portrait--mobile .hero__portrait-ring {
    width: clamp(92px, 24vw, 124px) !important;
    height: clamp(92px, 24vw, 124px) !important;
    padding: 5px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #8a5d08 0%, #f7d77a 28%, #ffffff 48%, #d7a129 70%, #6f4605 100%) !important;
    box-shadow:
      0 18px 42px rgba(120, 83, 14, 0.22),
      0 0 0 8px rgba(247, 215, 122, 0.13),
      inset 0 1px 0 rgba(255,255,255,0.75) !important;
  }

  .hero__portrait--mobile img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 50% !important;
    border: 4px solid #fffaf0 !important;
    background: #fffaf0 !important;
  }

  .hero__visual {
    display: block !important;
    order: 0 !important;
    width: 100% !important;
    padding-top: 0.25rem !important;
  }

  .hero__visual > .hero__portrait:not(.hero__portrait--mobile) {
    display: none !important;
  }

  .hero__visual .hero__card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.35rem auto 0 !important;
  }
}

@media (max-width: 420px) {
  .hero__identity {
    column-gap: 0.62rem !important;
  }

  .hero__identity .hero__title-name {
    font-size: clamp(1.76rem, 8.7vw, 2.22rem) !important;
  }

  .hero__identity .hero__title-role {
    font-size: clamp(1.44rem, 7.1vw, 1.95rem) !important;
  }

  .hero__portrait--mobile .hero__portrait-ring {
    width: 82px !important;
    height: 82px !important;
    padding: 4px !important;
    box-shadow:
      0 14px 32px rgba(120, 83, 14, 0.20),
      0 0 0 6px rgba(247, 215, 122, 0.12) !important;
  }

  .hero__portrait--mobile img {
    border-width: 3px !important;
  }
}

@media (max-width: 360px) {
  .hero__identity .hero__title-name {
    font-size: 1.62rem !important;
  }

  .hero__identity .hero__title-role {
    font-size: 1.32rem !important;
  }

  .hero__portrait--mobile .hero__portrait-ring {
    width: 76px !important;
    height: 76px !important;
  }
}


/* =====================================================================
   FINAL AUTHORITATIVE HERO LAYOUT FIX — DO NOT OVERRIDE BELOW THIS
   Desktop:
   Left: Name + text + buttons
   Right: Profile image, then code card below
   Mobile:
   Faizan Ahmad                      [profile image]
   Full-Stack Web Developer
   Text
   Buttons
   Code card
===================================================================== */
.hero__portrait--mobile {
  display: none !important;
}

@media (min-width: 769px) {
  body .hero__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px) !important;
    align-items: center !important;
    gap: clamp(2.6rem, 5vw, 5rem) !important;
  }

  body .hero__identity {
    display: block !important;
    width: 100% !important;
  }

  body .hero__identity .hero__title {
    margin: 0 !important;
  }

  body .hero__identity .hero__title-name,
  body .hero__identity .hero__title-role {
    display: block !important;
  }

  body .hero__identity .hero__title-name {
    white-space: nowrap !important;
  }

  body .hero__visual {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.15rem !important;
    padding-top: 0 !important;
    width: 100% !important;
  }

  body .hero__visual > .hero__portrait:not(.hero__portrait--mobile) {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    z-index: 2 !important;
  }

  body .hero__visual .hero__portrait-ring {
    width: clamp(185px, 17vw, 225px) !important;
    height: clamp(185px, 17vw, 225px) !important;
  }

  body .hero__visual .hero__card {
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 768px) {
  body .hero {
    min-height: auto !important;
    padding-top: calc(var(--nav-h) + 1.05rem) !important;
    padding-bottom: 3.25rem !important;
  }

  body .hero__inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 1.25rem !important;
  }

  body .hero__content {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body .hero__identity {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "title photo" !important;
    align-items: center !important;
    justify-content: space-between !important;
    column-gap: 0.9rem !important;
    width: 100% !important;
    min-width: 0 !important;
    position: relative !important;
    overflow: visible !important;
  }

  body .hero__identity .hero__title {
    grid-area: title !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: left !important;
  }

  body .hero__identity .hero__title-name,
  body .hero__identity .hero__title-role {
    display: block !important;
    text-align: left !important;
    margin: 0 !important;
  }

  body .hero__identity .hero__title-name {
    font-size: clamp(1.86rem, 7.2vw, 2.75rem) !important;
    line-height: 1.02 !important;
    white-space: nowrap !important;
    letter-spacing: -0.055em !important;
  }

  body .hero__identity .hero__title-role {
    font-size: clamp(1.48rem, 6.2vw, 2.25rem) !important;
    line-height: 1.06 !important;
    max-width: 245px !important;
    letter-spacing: -0.045em !important;
  }

  body .hero__portrait--mobile {
    display: block !important;
    grid-area: photo !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 3 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  body .hero__portrait--mobile .hero__portrait-ring {
    width: clamp(86px, 24vw, 112px) !important;
    height: clamp(86px, 24vw, 112px) !important;
    min-width: clamp(86px, 24vw, 112px) !important;
    padding: 5px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #8a5d08 0%, #f7d77a 28%, #ffffff 48%, #d7a129 70%, #6f4605 100%) !important;
    box-shadow:
      0 18px 42px rgba(120, 83, 14, 0.22),
      0 0 0 8px rgba(247, 215, 122, 0.13),
      inset 0 1px 0 rgba(255,255,255,0.75) !important;
  }

  body .hero__portrait--mobile img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 50% !important;
    border: 4px solid #fffaf0 !important;
    background: #fffaf0 !important;
  }

  body .hero__visual {
    display: block !important;
    width: 100% !important;
    padding-top: 0.25rem !important;
    order: 0 !important;
  }

  body .hero__visual > .hero__portrait:not(.hero__portrait--mobile) {
    display: none !important;
  }

  body .hero__visual .hero__card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.35rem 0 0 !important;
  }

  body .hero__sub,
  body .hero__badges,
  body .hero__cta,
  body .hero__socials {
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  body .hero__identity {
    column-gap: 0.66rem !important;
  }

  body .hero__identity .hero__title-name {
    font-size: clamp(1.72rem, 7.6vw, 2.08rem) !important;
  }

  body .hero__identity .hero__title-role {
    font-size: clamp(1.37rem, 6.6vw, 1.86rem) !important;
    max-width: 210px !important;
  }

  body .hero__portrait--mobile .hero__portrait-ring {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    padding: 4px !important;
  }

  body .hero__portrait--mobile img {
    border-width: 3px !important;
  }
}

@media (max-width: 360px) {
  body .hero__identity .hero__title-name {
    font-size: 1.58rem !important;
  }

  body .hero__identity .hero__title-role {
    font-size: 1.28rem !important;
    max-width: 185px !important;
  }

  body .hero__portrait--mobile .hero__portrait-ring {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
  }
}
