body.loading {
overflow: hidden;
}
:root {
  --bg: #000;
  --bg-soft: #0d0d0d;
  --line: #262626;
  --fg: #fff;
  --fg-dim: #8a8a8a;
  --fg-dim2: #565656;
  --accent: #3ddc84;
  --white: #f5f5f2;
  --ink: #0a0a0a;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.display {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .92;
}

/* ===================== LOADER ===================== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 1s var(--ease), opacity .6s ease;
}

#loader.hide {
  transform: translateY(-100%);
}

.loader-text {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(26px, 6.4vw, 68px);
  text-align: center;
  line-height: 1.05;
  color: #fff;
}

.loader-text .row {
  overflow: hidden;
  padding: 0 4px;
}

.loader-text .row span {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  animation: riseIn .8s var(--ease) forwards;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader-wand {
  margin-top: 22px;
  font-size: 26px;
  opacity: 0;
  animation: fadeIn .6s ease forwards;
  animation-delay: .9s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.loader-bar {
  margin-top: 34px;
  width: 180px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn .5s ease forwards;
  animation-delay: 1.1s;
}

.loader-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--accent);
}

/* ===================== NAV ===================== */

header {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

nav.pill {
  display: flex;
  align-items: center;
  gap: 36px;
  background: rgba(20, 20, 20, .7);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    0 10px 40px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
  padding: 12px 14px 12px 26px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(-16px);
  max-width: 100%;
}

nav.pill.in {
  animation: navIn .7s var(--ease) forwards;
}

@keyframes navIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav.pill a {
  font-size: 14px;
  color: rgb(180, 180, 180);
  white-space: nowrap;
  transition: color .3s var(--ease);
  
}

nav.pill a:hover {
  color: #fff;
  transform: scale(1.05);
}

nav.pill .nav-logo a{
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: -.2px;
  transform: rotate(-4deg);
  transition: transform .3s ease;
  flex-shrink: 0;
}

nav.pill .nav-logo a:hover {
  transform: rotate(0deg) scale(1.2);
}

.nav-links-left,
.nav-links-right {
  display: flex;
  gap: 28px;
  align-items: center;
}

.resume-btn {
  background: #1d1d1d;
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center; 
  gap: 6px;
  white-space: nowrap;
  color: #fff;

    transition:
        background .3s var(--ease),
        border-color .3s var(--ease),
        transform .3s var(--ease),
        color .3s var(--ease);
}

nav.pill .resume-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  display: block;
}

/* ===================== GLOBAL SECTIONS ===================== */

section {
  padding: 150px 6vw;
  position: relative;
}

.inner {
  max-width: 1240px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--fg-dim);
  margin-bottom: 18px;
  text-align: center;
}

.eyebrow.left {
  text-align: left;
}

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

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  isolation: isolate;
  overflow: visible;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.4) 38%,
    transparent 68%
  );
  pointer-events: none;
}

.hero-cards {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}

.hero-card {
  position: absolute;
  width: 185px;
  height: 225px;
  border-radius: 15px;
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.025);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(.3) rotate(0deg);
  transition:
    transform 1s var(--ease),
    opacity .8s ease,
    box-shadow .4s ease;
  pointer-events: auto;
  cursor: pointer;
  --rot: 0deg;
}

.hero-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  box-sizing: border-box;
  transition: filter .4s ease, transform .4s var(--ease);
}

.hero-card:hover {
  box-shadow: 0 42px 80px -18px rgba(0,0,0,.95),
  0 0 0 1px rgba(61,220,132,.12);
  z-index: 10;
  
}

.hero-card:hover img {
  filter: brightness(1.08) saturate(1.05);
  transform: scale(1.03);
}

#hero-card-1 {
  top: 7%;
  left: 13%;
  --rot: -14deg;
}

#hero-card-2 {
  top: 7%;
  right: 13%;
  --rot: 12deg;
}

#hero-card-3 {
  top: 29%;
  left: 7%;
  --rot: -8deg;
}

#hero-card-4 {
  top: 29%;
  right: 7%;
  --rot: -8deg;
}

#hero-card-5 {
  bottom: 16%;
  left: 7%;
  --rot: -7deg;
}

#hero-card-6 {
  bottom: 14%;
  right: 7%;
  --rot: 12deg;
}

#hero-card-7 {
  bottom: 6%;
  left: 18%;
  --rot: 5deg;
}

#hero-card-8 {
  bottom: 7%;
  right: 18%;
  --rot: -11deg;
}

.hero-card.in {
  transform: scale(1) rotate(var(--rot));
  opacity: 1;
}

@keyframes floatCard {
  0%, 100% {
    transform: scale(1) rotate(var(--rot)) translate3d(0,0,0);
  }

  50% {
    transform: scale(1) rotate(var(--rot)) translate3d(0,-10px,0);
  }
}

.hero-card.float {
  animation: floatCard 5.5s ease-in-out infinite;
}

.hero-card.float:hover {
  animation-play-state: paused;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 900px);
}

.hero-greet {
  font-size: clamp(36px, 6vw, 90px);
  background: linear-gradient(180deg, #fff, #0e0e0e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(24px);
  margin-bottom: -6px;
}

.hero-greet.in {
  animation: fadeUp .9s var(--ease) forwards;
}

.hero-name {
  font-size: clamp(48px, 12.5vw, 168px);
  color: #fff;
  margin-top: 2px;
  letter-spacing: -.01em;
}

.hero-name .row {
  overflow: hidden;
}

.hero-name .row span {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

.hero-name .row span.in {
  animation: riseIn .9s var(--ease) forwards;
}

.hero-tagline {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: clamp(13px, 1.7vw, 17px);
  color: rgb(180, 180, 180);
  opacity: 0;
  transform: translateY(20px);
  line-height: 1.8;
  padding: 0 12px;
}

.hero-tagline.in {
  animation: fadeUp .8s var(--ease) forwards;
  animation-delay: .15s;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta.in {
  animation: fadeUp .8s var(--ease) forwards;
  animation-delay: .3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tootltip of github-tagline*/
.github-tagline::after {
content: "github.com/arjun11goel";

position: absolute;
left: auto;
right: 0;
top: calc(100% + 9px);
bottom: auto;

padding: 7px 10px;

background: #111;
color: #fff;

border: 1px solid rgba(255,255,255,.12);
border-radius: 7px;

font-size: 10px;
font-weight: 500;
letter-spacing: .06em;
white-space: nowrap;

opacity: 0;
visibility: hidden;
pointer-events: none;
}

.github-tagline:hover::after,
.github-tagline:hover::before {
opacity: 1;
visibility: visible;
}

.github-tagline:hover::after {
transform: translateX(70%) translateY(0);
}
/*end of tootltip of github-tagline*/

/* Tootltip of linkedin-tagline*/
.linkedin-tagline::after {
content: "linkedin.com/in/arjun11goel";

position: absolute;
left: auto;
right: 0;
top: calc(100% + 9px);
bottom: auto;

padding: 7px 10px;

background: #111;
color: #fff;

border: 1px solid rgba(255,255,255,.12);
border-radius: 7px;

font-size: 10px;
font-weight: 500;
letter-spacing: .06em;
white-space: nowrap;

opacity: 0;
visibility: hidden;
pointer-events: none;
}

.linkedin-tagline:hover::after,
.linkedin-tagline:hover::before {
opacity: 1;
visibility: visible;
}

.linkedin-tagline:hover::after {
transform: translateX(70%) translateY(0);
}
/*end of tootltip of linkedin-tagline*/

/* Tootltip of gmail-tagline*/
.gmail-tagline::after {
content: "arjun11goel@gmail.com";

position: absolute;
left: auto;
right: 0;
top: calc(100% + 9px);
bottom: auto;

padding: 7px 10px;

background: #111;
color: #fff;

border: 1px solid rgba(255,255,255,.12);
border-radius: 7px;

font-size: 10px;
font-weight: 500;
letter-spacing: .06em;
white-space: nowrap;

opacity: 0;
visibility: hidden;
pointer-events: none;
}

.gmail-tagline:hover::after,
.gmail-tagline:hover::before {
opacity: 1;
visibility: visible;
}

.gmail-tagline:hover::after {
transform: translateX(70%) translateY(0);
}
/*end of tootltip of gmail-tagline*/

.btn-primary {
  background: #1a1a1a;
  color: #fff;
  padding: 15px 30px;
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 255, 255, .35);
}

.btn-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}

.btn-primary:hover .btn-arrow {
  background: #ececec;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 255, 255, .35);
}

.milestone-card:hover .btn-arrow {
  background: #ececec;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 255, 255, .35);
}



.available {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 100px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, .1);
  gap: 8px;
  font-size: 13px;
  color: #fff;
}

.available .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(61,220,132,.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61,220,132,.5);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(61,220,132,0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(61,220,132,0);
  }
}

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

.bio-text {
  font-size: clamp(20px, 3.6vw, 46px);
  line-height: 1.35;
  font-weight: 500;
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

.bio-text .word {
  color: var(--fg-dim2);
  transition: color .25s ease;
}

.bio-text .word.lit {
  color: #fff;
}

/* ===================== WORK ===================== */

#work .inner > .eyebrow,
#work .inner > h2 {
  text-align: left;
}

#work .sub {
  color: var(--fg-dim);
  margin-top: 22px;
  font-size: 16px;
  max-width: 480px;
}

.stack-wrap {
  margin-top: 40px;
}

.work-card {
  position: sticky;
  will-change: transform;
  box-shadow: 0 15px 40px rgba(0,0,0,.12);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 30px;
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s var(--ease);
}

.work-card:hover {
  border-color: #3a3a3a;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}

.work-meta {
  font-size: 13px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.work-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-dim);
}

.work-meta .tag {
  color: var(--accent);
}

.work-title {
  font-size: clamp(32px, 4.2vw, 58px);
}

.work-desc {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 420px;
}

.work-links {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.work-links a {
  font-size: 13px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  transition: .2s var(--ease);
}

.work-links a.solid {
  background: #fff;
  color: #000;
}

.work-links a.outline {
  border: 1px solid var(--line);
  color: #000;
}


.work-links a:hover {
  transform: scale(1.05);
}

.work-visual img {
width: 100%;
height: 100%;
object-fit:cover;
display: block;
}

.work-visual {
  border-radius: 15px;
  overflow:hidden;
  background: linear-gradient(150deg, #181818, #040404);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  color: #3a3a3a;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: transform .5s var(--ease);
}

.work-card:hover .work-visual {
  transform: scale(1.02);
}

/* ===================== SERVICES ===================== */

#services {
  background: #000;
}

#services h2 {
  font-size: clamp(32px, 6vw, 74px);
  max-width: 820px;
  margin-top: 8px;
}

#services .sub {
  color: var(--fg-dim);
  margin-top: 22px;
  font-size: 16px;
  max-width: 480px;
}

.svc-stack {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.svc-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 52px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateX(-70px) rotate(-1.4deg);
  transition:
    transform .85s var(--ease),
    opacity .85s var(--ease),
    box-shadow .35s ease;
}

.svc-card:nth-child(even) {
  transform: translateX(70px) rotate(1.4deg);
}

.svc-card.in {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.svc-card.in:hover {
  transform: scale(1.01);
  box-shadow: 0 30px 70px -22px rgba(255,255,255,.15);
}

.svc-card h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 42px);
  letter-spacing: .01em;
}

.svc-card p {
  color: #4a4a4a;
  margin-top: 12px;
  font-size: 18px;
  max-width: 520px;
}

.svc-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 10px;
  color: #666;
  transition: transform .4s var(--ease);
}

.svc-card.in:hover .svc-logo {
  transform: rotate(-12deg) scale(1.08);
}

/* ===================== EDUCATION ===================== */

#education {
  background: var(--white);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

#education::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    #000,
    transparent
  );
  pointer-events: none;
  opacity: .12;
}


/* ===================== HEADING ===================== */

.edu-heading {
  text-align: center;
  font-size: clamp(30px, 6.4vw, 80px);
  line-height: .96;
}

.edu-heading .dim {
  color: #b7b7b3;
}


/* ===================== GRID ===================== */

.edu-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  margin-top: 72px;
}

.edu-column {
  min-width: 0;
}


/* ===================== COLUMN LABEL ===================== */

.col-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #8a8a86;
  padding-bottom: 16px;
  border-bottom: 1px solid #dcdcd8;
  margin-bottom: 0;
}


/* ===================== ACADEMIC TIMELINE ===================== */

.edu-timeline {
  position: relative;
  padding-left: 28px;
}

.edu-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: #deded9;
}

.timeline-item {
  position: relative;
  padding: 27px 0 28px;
  border-bottom: 1px solid #e6e6e2;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 31px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-sizing: content-box;
  box-shadow: 0 0 0 1px #d6d6d1;
  transition:
    transform .35s var(--ease),
    box-shadow .35s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-content {
  transition:
    transform .35s var(--ease);
}

.timeline-item:hover .timeline-content {
  transform: translateX(5px);
}

.timeline-item .yr {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .04em;
}

.timeline-item h4 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 19px;
  line-height: 1.15;
  margin: 9px 0 5px;
  font-weight: 400;
  letter-spacing: .01em;
}

.timeline-item p {
  color: #6a6a66;
  font-size: 13.5px;
}

.edu-status {
  display: inline-block;
  margin-top: 12px;
  color: #9a9a96;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}


/* ===================== MILESTONE CARD ===================== */

.milestone-card {
  position: relative;
  margin-top: 6px;
  padding: 30px;
  background: #f0f0ec;
  border-radius: 18px;
  overflow: hidden;

  transition:
    transform .4s var(--ease),
    box-shadow .4s ease;
}

.milestone-card::before {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  right: -110px;
  top: -110px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 50%;
  pointer-events: none;
}

.milestone-card::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  right: -70px;
  top: -70px;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 50%;
  pointer-events: none;
}

.milestone-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .3);
}


/* ===================== MILESTONE HEADER ===================== */

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #777773;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
}




/* ===================== RANK ===================== */

.milestone-rank {
  margin-top: 34px;

  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #555551;
}

.milestone-rank strong {
  color: #0a0a0a;
  font-family: 'Anton', sans-serif;
  font-size: 1.35em;
  font-weight: 400;
  letter-spacing: .01em;
}


/* ===================== DIVIDER ===================== */

.milestone-line {
  width: 100%;
  height: 1px;
  background: #d9d9d4;
  margin: 25px 0 22px;
}


/* ===================== MILESTONE CONTENT ===================== */

.milestone-card h4 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 11px;
}

.milestone-card p {
  color: #656560;
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 470px;
}


/* ===================== RESPONSIVE ===================== */

@media (max-width: 800px) {

  .edu-grid {
    grid-template-columns: 1fr;
    gap: 55px;
    margin-top: 52px;
  }

  .milestone-card {
    padding: 26px;
  }

}

@media (max-width: 500px) {

  .edu-heading {
    font-size: clamp(38px, 13vw, 58px);
  }

  .edu-grid {
    gap: 45px;
  }

  .edu-timeline {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -24px;
  }

  .timeline-item h4 {
    font-size: 17px;
  }

  .milestone-card {
    padding: 24px;
    border-radius: 15px;
  }

  .milestone-rank {
    font-size: 21px;
  }

  .milestone-card p {
    font-size: 13px;
  }

}

/* =========================================================
   CERTIFICATES — VERTICAL SCROLL / HORIZONTAL JOURNEY
   ========================================================= */

#certificates {
  text-align: center;
  padding-top: 150px;
  padding-bottom: 0;
}

.cert-title {
  font-size: clamp(34px, 8vw, 96px);
  margin-top: 6px;
}

.cert-sub {
  color: var(--fg-dim);
  margin: 20px auto 0;
  font-size: 16px;
  max-width: 650px;
  line-height: 1.7;
}

/*
  The JS calculates the height of this section based on the
  horizontal certificate track. This creates enough vertical
  scrolling distance for the complete certificate journey.
*/
.cert-scroll-area {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  margin-top: 45px;
}

.cert-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cert-gallery {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  width: max-content;
  padding: 70px 8vw 110px;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.cert-card {
  position: relative;
  flex: 0 0 clamp(300px, 31vw, 380px);
  text-align: left;
  opacity: 0;
  transform: translate3d(100px, 35px, 0) rotate(2deg) scale(.94);
  transition:
    opacity .65s var(--ease),
    transform .8s var(--ease);
  will-change: transform, opacity;
}

.cert-card:nth-child(odd) {
  --tilt: -1.5deg;
}

.cert-card:nth-child(even) {
  --tilt: 1.5deg;
}

.cert-card.in {
  opacity: 1;
  transform: translate3d(0,0,0) rotate(0deg) scale(1);
}

.cert-card-img {
  position: relative;
  height: clamp(220px, 24vw, 285px);
  border-radius: 18px;
  background: linear-gradient(150deg, #161616, #020202);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  color: #3d3d3d;
  text-transform: uppercase;
  font-size: 13px;
  text-align: center;
  padding: 20px;
  overflow: hidden;
  transform: rotate(var(--tilt, 0deg));
  transform-origin: center;
  transition:
    transform .55s var(--ease),
    box-shadow .5s ease,
    border-color .4s ease,
    filter .4s ease;
}

.cert-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,.08) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
  pointer-events: none;
}

.cert-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  transition: transform .55s var(--ease), filter .4s ease;
}

.cert-card:hover .cert-card-img {
  transform: rotate(0deg) translateY(-10px) scale(1.035);
  box-shadow: 0 35px 75px -25px rgba(61,220,132,.28);
  border-color: rgba(61,220,132,.48);
}

.cert-card:hover .cert-card-img::after {
  transform: translateX(120%);
}

.cert-card:hover .cert-card-img img {
  transform: scale(1.025);
  filter: brightness(1.06) saturate(1.04);
}

.cert-card h4 {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.cert-name {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}

.cert-verify-icon {
position: relative;

width: 25px;
height: 25px;
flex: 0 0 25px;

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

color: #fff;

border: 1px solid rgba(255,255,255,.16);
border-radius: 50%;

text-decoration: none;

transition:
  color .3s ease,
  border-color .3s ease,
  background .3s ease,
  transform .3s var(--ease);
}

.cert-verify-icon svg {
width: 13px;
height: 13px;

fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;

transition: transform .3s var(--ease);
}

/* Tooltip of veriy certificate*/
.cert-verify-icon::after {
content: "Verify certificate";

position: absolute;
left: auto;
right: 0;
top: calc(100% + 9px);
bottom: auto;

padding: 7px 10px;

background: #111;
color: #fff;

border: 1px solid rgba(255,255,255,.12);
border-radius: 7px;

font-size: 10px;
font-weight: 500;
letter-spacing: .06em;
white-space: nowrap;

opacity: 0;
visibility: hidden;
pointer-events: none;
}

.cert-verify-icon:hover {
color: var(--accent);
border-color: var(--accent);
background: rgba(61,220,132,.06);
transform: translateY(-2px);
}

.cert-verify-icon:hover svg {
transform: scale(1.08) rotate(-8deg);
}

.cert-verify-icon:hover::after,
.cert-verify-icon:hover::before {
opacity: 1;
visibility: visible;
}

.cert-verify-icon:hover::after {
transform: translateX(100%) translateY(0);
}

.cert-card .issuer {
  color: var(--fg-dim);
  font-size: 13px;
  margin-top: 5px;
}

.cert-progress {
  position: absolute;
  left: 8vw;
  right: 8vw;
  bottom: 42px;
  height: 1px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}

.cert-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transition: width .08s linear;
}

.cert-scroll-hint {
  position: absolute;
  bottom: 62px;
  right: 8vw;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  transition: opacity .4s ease;
}

.cert-scroll-hint span {
  font-size: 18px;
  animation: certArrow 1.6s ease-in-out infinite;
}

@keyframes certArrow {
  0%, 100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(8px);
  }
}

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

#footer {
  background: var(--white);
  color: var(--ink);
  text-align: center;
}

.footer-eyebrow {
  color: #8a8a86;
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-heading {
  font-size: clamp(30px, 7.5vw, 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-heading .emoji {
  font-size: .6em;
}

.footer-sub {
  margin-top: 30px;
  font-size: clamp(15px, 2vw, 22px);
  color: #4a4a4a;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.footer-sub2 {
  margin-top: 10px;
  font-size: clamp(10px, 1vw, 18px);
  color: #4a4a4a;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact-cta {
  margin-top: 44px;
}

.btn-dark {

  background: #1a1a1a;
  color: #fff;
  padding: 15px 30px;
  border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;

}

.btn-dark:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 255, 255, .35);
}

.btn-dark:hover .btn-arrow {
  background: #ececec;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 255, 255, .35);
}

.connect-label {
  margin-top: 50px;
  font-size: 13px;
  color: #9a9a96;
}

.connect-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.connect-icons a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f0f0ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: .3s var(--ease);
}

.connect-icons a:hover {
  transform: scale(1.1);
}

.footer-bottom {
  margin-top: 90px;
  padding-top: 26px;
  border-top: 1px solid #e6e6e2;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9a9a96;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===================== GENERIC SCROLL REVEAL ===================== */

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity .9s var(--ease),
    transform .9s var(--ease);
}

.reveal-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== MOBILE MENU ===================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 32px;
}

.mobile-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 26px;
  cursor: pointer;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

  .nav.pill {
    gap: 24px;
  }

  .nav-links-left,
  .nav-links-right {
    gap: 18px;
  }

  .hero-card {
    width: 145px;
    height: 180px;
  }

  #hero-card-1 {
    left: 8%;
  }

  #hero-card-2 {
    right: 8%;
  }

  #hero-card-3 {
    left: 4%;
  }

  #hero-card-4 {
    right: 4%;
  }

  #hero-card-5 {
    left: 4%;
  }

  #hero-card-6 {
    right: 4%;
  }

  .cert-gallery {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .cert-progress {
    left: 6vw;
    right: 6vw;
  }

  .cert-scroll-hint {
    right: 6vw;
  }
}

@media (max-width: 900px) and (min-width: 721px) {

  section {
    padding: 110px 5vw;
  }

  .hero-card {
    width: 120px;
    height: 150px;
  }

  #hero-card-1 {
    top: 8%;
    left: 5%;
  }

  #hero-card-2 {
    top: 8%;
    right: 5%;
  }

  #hero-card-3 {
    top: 27%;
    left: 2%;
  }

  #hero-card-4 {
    top: 27%;
    right: 2%;
  }

  #hero-card-5 {
    bottom: 18%;
    left: 2%;
  }

  #hero-card-6 {
    bottom: 18%;
    right: 2%;
  }

  #hero-card-7 {
    bottom: 8%;
    left: 10%;
  }

  #hero-card-8 {
    bottom: 8%;
    right: 10%;
  }

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

  .edu-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .work-card {
    position: sticky;
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .svc-card {
    padding: 36px;
  }

  #certificates {
    padding-bottom: 80px;
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .cert-title {
    font-size: clamp(46px, 8vw, 76px);
  }

  .cert-sub {
    max-width: 560px;
    font-size: 15px;
  }

  .cert-scroll-area{
    height: auto !important;
    min-height: 600px;
    margin-top: 35px;
  }
  .cert-sticky {
    position: relative;
    height: auto;
    min-height: 600px;
    overflow: visible;
  }

  .cert-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 100%;
    margin-top: 50px;
    padding-left: 5vw;
    padding-right: 5vw;
    padding: 20px 0 20px;
    transform: none !important;
  }

  .cert-card {
    width: 100%;
    min-width: 0;
    flex-basis: 300px;
    opacity: 1;
    transform: none;
    transition:
        opacity .6s var(--ease),
        transform .6s var(--ease);
    }

  .cert-card.in {
    opacity: 1;
    transform: none;
    }

  .cert-card-img {
    width: 100%;
    height: clamp(190px, 28vw, 240px);
    }

  .cert-progress,
  .cert-scroll-hint {
    left: 5vw;
    right: 5vw;
    display: none;
    }
}

@media (max-width: 720px) {

    #certificates {
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .cert-scroll-area {
        height: auto !important;
        min-height: 0;
        margin-top: 20px;
    }

    .cert-sticky {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
        overflow: visible;
        display: block;
    }

    .cert-gallery {
        display: flex;
        flex-direction: column;
        gap: 48px;
        width: 100%;
        margin-top: 45px;
        padding: 0 6vw 20px;
        transform: none !important;
    }

    .cert-card {
        width: 100%;
        flex: none;
        opacity: 0;
        transform: translateY(35px) scale(.97);
        transition:
          opacity .7s var(--ease),
          transform .7s var(--ease);
    }

    .cert-card.in {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .cert-card-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1.55 / 1;
        padding: 10px;
        border-radius: 16px;
    }

    .cert-card h4 {
        margin-top: 14px;
        font-size: 15px;
    }

    .cert-card .issuer {
        font-size: 12px;
        margin-top: 4px;
    }

    .cert-progress,
    .cert-scroll-hint {
        display: none;
    }
}

@media (max-width: 720px) {

  header {
    top: 12px;
    padding: 0 10px;
  }

  nav.pill {
    width: 100%;
    max-width: 100%;
    padding: 9px 14px;
    gap: 12px;
    justify-content: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .nav-links-left,
  .nav-links-right {
    display: contents;
    gap: 12px;
    align-items: center;
  }

  nav.pill a {
    font-size: 11px;
  }

  nav.pill .nav-logo a {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  /* Hide Resume */
  .resume-btn {
    display: none;
  }

  /* Hide hamburger */
  .nav-toggle {
    display: none;
  }

  /* Hide the separate mobile menu */
  .mobile-menu {
    display: none;
  }
  
  .work-card {
    position: sticky !important;
    z-index: 10 !important;
  }

  .svc-card {
    position: static !important;
  }

  section {
    padding: 90px 6vw;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* ---------- Hero ---------- */

  #hero {
    min-height: 100svh;
    padding: 125px 18px 80px;
  }

  .hero-card {
    width: 82px;
    height: 106px;
    border-radius: 12px;
  }

  .hero-card img {
    padding: 5px;
  }

  #hero-card-1 {
    top: 10%;
    left: 3%;
  }

  #hero-card-2 {
    top: 10%;
    right: 3%;
  }

  #hero-card-3 {
    top: 25%;
    left: 2%;
  }

  #hero-card-4 {
    top: 25%;
    right: 1%;
  }

  #hero-card-5 {
    bottom: 17%;
    left: 1%;
  }

  #hero-card-6 {
    bottom: 17%;
    right: 1%;
  }

  #hero-card-7 {
    bottom: 7%;
    left: 8%;
  }

  #hero-card-8 {
    bottom: 7%;
    right: 8%;
  }

  .hero-tagline {
    margin-top: 22px;
    line-height: 1.65;
  }

  .hero-cta {
    margin-top: 28px;
    gap: 18px;
  }

  /* ---------- Certificates ---------- */

  #certificates {
    padding-bottom: 0;
  }

  .cert-scroll-area {
    height: auto;
    min-height: 0;
    margin-top: 35px;
  }

  .cert-sticky {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .cert-gallery {
    display: flex;
    gap: 26px;
    margin-top: 70px;
    padding: 20px 8vw 40px;
    width: max-content;
    will-change: transform;
  }

  .cert-card {
    width: 100%;
    flex-basis: auto;
    opacity: 0;
    transform: translateX(70px) rotate(1deg);
    transition:
      opacity .7s var(--ease),
      transform .7s var(--ease);
  }

  .cert-card.in {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }

  .cert-card-img {
    height: clamp(190px, 54vw, 260px);
  }

  .cert-progress,
  .cert-scroll-hint {
    display: none;
  }
}

@media (max-width: 420px) {

  .hero-cta {
    flex-direction: column;
    gap: 14px;
  }

  .edu-grid {
    gap: 0;
  }

  .hero-card {
    width: 74px;
    height: 96px;
  }

  

  .cert-card-img {
    height: 200px;
  }

  .btn-arrow {
  width: 22px;
  height: 22px;
}

.btn-arrow svg {
  width: 12px;
  height: 12px;
}
}

/* ===================== REDUCED MOTION ===================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .hero-card,
  .hero-card img,
  .hero-cards,
  .hero-greet,
  .hero-name .row span,
  .hero-tagline,
  .hero-cta,
  .cert-card,
  .cert-gallery {
    animation: none !important;
  }
}


/* =========================================================
   MOBILE PHONES — RESPONSIVE
   Optimized for 320px – 720px screens
   ========================================================= */

@media (max-width: 720px) {

  /* ===================== GLOBAL ===================== */

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  section {
    padding: 80px 6vw;
  }

  /* ===================== HEADER / NAV ===================== */

  header {
    position:fixed;
    top: 12px;
    padding: 10 10px;
  }

  nav.pill {
    width: 100%;
    max-width: 100%;
    padding: 10px 15px;
    gap: 25px;
    justify-content: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .nav-links-left,
  .nav-links-right {
    display: contents;
    gap: 14px;
    align-items: center;
  }

  nav.pill a {
    font-size: 11px;
  }

  nav.pill .nav-logo a {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  /* Hide Resume */
  .resume-btn {
    display: none;
  }

  /* Hide hamburger */
  .nav-toggle {
    display: none;
  }

  /* Hide the separate mobile menu */
  .mobile-menu {
    display: none;
  }

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

  #hero {
    min-height: 100svh;
    width: 100%;
    padding: 125px 18px 80px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    position: relative;
    z-index: 10;
  }

  .hero-card {
    width: 82px;
    height: 106px;
    border-radius: 12px;
  }

  .hero-card img {
    padding: 5px;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Hero cards positioning */

  #hero-card-1 {
    top: 15%;
    left: 3%;
  }

  #hero-card-2 {
    top: 15%;
    right: 3%;
  }

  #hero-card-3 {
    top: 35%;
    left: 2%;
  }

  #hero-card-4 {
    top: 35%;
    right: 1%;
  }

  #hero-card-5 {
    bottom: 22%;
    left: 2%;
  }

  #hero-card-6 {
    bottom: 22%;
    right: 3%;
  }

  #hero-card-7 {
    bottom: 7%;
    left: 8%;
  }

  #hero-card-8 {
    bottom: 9%;
    right: 8%;
  }

  .hero-tagline {
    margin-top: 22px;
    line-height: 1.65;
    max-width: 100%;
  }

  .hero-cta {
    margin-top: 28px;
    gap: 18px;
    flex-wrap:wrap;
    justify-content: center;
  }

  /* ===================== EDUCATION ===================== */

  .edu-grid {
    grid-template-columns: 1fr;
    gap: 45px;
    margin-top: 42px;
  }

  .edu-heading {
    font-size: clamp(38px, 13vw, 58px);
    line-height: .95;
  }

  .edu-timeline {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -24px;
  }

  .timeline-item h4 {
    font-size: 17px;
    line-height: 1.35;
  }

  .milestone-card {
    padding: 24px;
    border-radius: 15px;
  }

  .milestone-rank {
    font-size: 21px;
  }

  .milestone-card p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* ===================== WORK / SERVICES ===================== */

  .work-card {
    position: sticky !important;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .svc-card {
    position: static !important;
    width: 100%;
    box-sizing: border-box;
    padding: 26px;
  }

  /* ===================== CERTIFICATES ===================== */

  #certificates {
    padding-top: 100px;
    padding-bottom: 80px;
    width: 100%;
    box-sizing: border-box;
  }

  .cert-title {
    font-size: clamp(38px, 11vw, 58px);
    line-height: .95;
  }

  .cert-sub {
    max-width: 100%;
    margin-top: 16px;
    padding: 0 5px;
    font-size: 14px;
    line-height: 1.65;
  }

  /*
     Disable desktop horizontal-scroll behaviour.
     Certificates become a normal vertical mobile list.
  */

  .cert-scroll-area {
    height: auto !important;
    min-height: 0;
    margin-top: 20px;
    width: 100%;
  }

  .cert-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    display: block;
  }

  .cert-gallery {
    display: flex;
    flex-direction: column;
    gap: 38px;
    width: 100%;
    max-width: 100%;
    margin-top: 42px;
    padding: 0 6vw 30px;
    box-sizing: border-box;
    transform: none !important;
    will-change: auto;
  }

  .cert-card {
    width: 100%;
    max-width: 100%;
    flex: none;
    min-width: 0;

    opacity: 0;
    transform: translateY(35px) scale(.97);

    transition:
      opacity .7s var(--ease),
      transform .7s var(--ease);
  }

  .cert-card.in {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .cert-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.55 / 1;
    padding: 9px;
    border-radius: 16px;
    box-sizing: border-box;
  }

  .cert-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .cert-card h4 {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.4;
  }

  .cert-name {
    gap: 8px;
    align-items: center;
  }

  .cert-verify-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .cert-verify-icon svg {
    width: 12px;
    height: 12px;
  }

  .cert-card .issuer {
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.5;
  }

  /*
     Progress bar and horizontal-scroll hint
     are unnecessary on mobile.
  */

  .cert-progress,
  .cert-scroll-hint {
    display: none;
  }

  /* Disable desktop hover movement on touch devices */

  .cert-card:hover .cert-card-img {
    transform: rotate(var(--tilt, 0deg));
    box-shadow: none;
    border-color: var(--line);
  }

  .cert-card:hover .cert-card-img img {
    transform: none;
    filter: none;
  }

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

  #footer {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .footer-eyebrow {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .footer-heading {
    font-size: clamp(32px, 10vw, 58px);
    line-height: 1;
    gap: 12px;
  }

  .footer-heading .emoji {
    font-size: .55em;
  }

  .footer-sub {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.65;
    max-width: 100%;
  }

  .contact-cta {
    margin-top: 32px;
  }

  .btn-dark {
    padding: 14px 24px;
    font-size: 13px;
  }

  .connect-label {
    margin-top: 40px;
    font-size: 12px;
  }

  .connect-icons {
    gap: 12px;
    margin-top: 16px;
  }

  .connect-icons a {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }

  .footer-bottom {
    margin-top: 60px;
    padding-top: 22px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer-bottom a{
    display: none;
  }

  /* ===================== MOBILE MENU ===================== */

  .mobile-menu {
    gap: 30px;
    padding: 20px;
    box-sizing: border-box;
  }

  .mobile-menu a {
    font-size: clamp(28px, 8vw, 36px);
  }

  .mobile-close {
    top: 24px;
    right: 24px;
    font-size: 24px;
  }
}


/* =========================================================
   SMALL PHONES
   Optimized for 320px – 420px
   ========================================================= */

@media (max-width: 420px) {

  /*--------------nav ---------*/
  
  nav.pill {
    padding: 8px 9px;
    gap: 10px;
  }

  .nav-links-left,
  .nav-links-right {
    display: contents;
    gap: 8px;
  }

  .nav-links-left a:nth-child(1) {
    order: 1; /* About */
  }

  .nav-links-left a:nth-child(2) {
    order: 2; /* Projects */
  }

  .nav-links-left a:nth-child(3) {
    order: 3; /* Skills */
  }

  .nav-logo {
    order: 4; /* AG */
  }

  .nav-links-left a:nth-child(4) {
    order: 5; /* Education */
  }

  .nav-links-right a:nth-child(1) {
    order: 6; /* Certificates */
  }

  .nav-links-right a:nth-child(2) {
    order: 7; /* Contact */
  }

  nav.pill a {
    font-size: 10px;
  }

  nav.pill .nav-logo a {
    width: 29px;
    height: 29px;
    font-size: 15px;
  }

  /* ---------- Hero ---------- */

  .hero-greet {
    font-size: clamp(24px, 7vw, 42px);
    margin-bottom: -2px;
  }

  .hero-name {
    font-size: clamp(42px, 15vw, 90px);
  }

  #hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-card {
    width: 74px;
    height: 96px;
  }

  #hero-card-1,
  #hero-card-2 {
    top: 10%;
  }

  #hero-card-3,
  #hero-card-4 {
    top: 27%;
  }

  #hero-card-5,
  #hero-card-6 {
    bottom: 22%;
  }

  #hero-card-7,
  #hero-card-8 {
    bottom: 7%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .hero-cta a,
  .hero-cta button {
    width: 60%;
    align-items: center;
    justify-content: center;
  }

  /* ---------- Education ---------- */

  .edu-grid {
    gap: 34px;
  }

  .milestone-card {
    padding: 20px;
  }

  /* ---------- Certificates ---------- */

  .cert-gallery {
    gap: 34px;
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .cert-card-img {
    aspect-ratio: 1.5 / 1;
    min-height: 190px;
    max-height: 220px;
  }

  .cert-card h4 {
    font-size: 14px;
  }

  .cert-card .issuer {
    font-size: 11px;
  }

  /* ---------- Footer ---------- */

  .footer-heading {
    font-size: clamp(30px, 11vw, 48px);
  }

  .footer-sub {
    font-size: 14px;
  }

  .btn-arrow {
    width: 22px;
    height: 22px;
  }

  .btn-arrow svg {
    width: 12px;
    height: 12px;
  }

  .svc-logo{
    display:none;
  }

  .footer-bottom a{
    display: none;
  }
}


/* =========================================================
   VERY SMALL PHONES
   Optimized for 320px and below
   ========================================================= */

@media (max-width: 360px) {

  #hero {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-card {
    width: 68px;
    height: 88px;
  }

  

  .cert-gallery {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cert-card-img {
    min-height: 175px;
  }

  .milestone-card {
    padding: 18px;
  }

  .connect-icons a {
    width: 40px;
    height: 40px;
  }
  .svc-logo{
    display:none;
  }

  .footer-bottom a{
    display: none;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .hero-card,
  .hero-card img,
  .hero-cards,
  .hero-greet,
  .hero-name .row span,
  .hero-tagline,
  .hero-cta,
  .cert-card,
  .cert-gallery {
    animation: none !important;
  }
}