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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--black);
}

:root {
  --black: #121313;
  --white: #f5f2ec;
  --cream: #ede9e0;
  --grey: #a8a49c;
  --grey-light: #d6d2ca;
  --accent: #619AD6;
  --accent2: #619AD6;
  --border: rgba(245, 242, 236, .1);
  --border-dark: rgba(245, 242, 236, .06);

  --font-display: 'Syne', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-kanit: 'Kanit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Syne Mono', monospace;

  --max: 1280px;
  --pad: clamp(1.2rem, 4vw, 2.8rem);
}

body {
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ===== CONTAINER ===== */
.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

/* ===== NOISE GRAIN ===== */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg '%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9990;
  animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {

  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-5%, -5%);
  }

  20% {
    transform: translate(5%, 0);
  }

  30% {
    transform: translate(0, 5%);
  }

  40% {
    transform: translate(-5%, 5%);
  }

  50% {
    transform: translate(5%, -5%);
  }

  60% {
    transform: translate(-5%, 0);
  }

  70% {
    transform: translate(5%, 5%);
  }

  80% {
    transform: translate(0, -5%);
  }

  90% {
    transform: translate(-5%, -5%);
  }
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.header.scrolled {
  background: rgba(18, 19, 19, .85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-shrink: 0;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  font-size: .78rem;
  font-weight: 500;
  color: var(--grey);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cv {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55rem 1.2rem;
  border: 1px solid rgba(255, 96, 68, .35);
  color: var(--accent);
  border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.nav-cv:hover {
  background: rgba(255, 96, 68, .12);
  border-color: var(--accent);
}

.nav-cv svg {
  flex-shrink: 0;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .6rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  transition: background .25s, color .25s;
}

.nav-cta:hover,
.nav-cta.active {
  background: var(--accent);
  color: var(--black);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: #121313;
}

.hero-video-col {
  position: absolute;
  left: 0;
  top: 0;
  height: 100vh;
  width: calc(100% - clamp(280px, 38vw, 560px));
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: fadeUp 1s .4s forwards;
}

.hero-video-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #121313 0%,
    rgba(18, 19, 19, 0.0) 55%,
    rgba(18, 19, 19, 0.4) 75%,
    rgba(18, 19, 19, 0.85) 88%,
    #121313 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.45;
  transform: scale(1.0);
  transform-origin: center center;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding-top: 9rem;
  padding-bottom: 7rem;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 55%;
  position: relative;
  z-index: 2;
}

.hero-portrait-col {
  position: absolute;
  right: 0;
  top: 0;
  height: 100vh;
  width: clamp(280px, 38vw, 560px);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 1s .4s forwards;
}

.hero-portrait-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  mask-image: linear-gradient(to left, black 0%, black 30%, rgba(0,0,0,0.6) 55%, transparent 80%);
  -webkit-mask-image: linear-gradient(to left, black 0%, black 30%, rgba(0,0,0,0.6) 55%, transparent 80%);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-kanit);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp .9s .5s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp .8s .8s forwards;
}

.hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(245, 242, 236, .7);
  max-width: 40ch;
  font-weight: 300;
  line-height: 1.5;
}

@keyframes lineSlide {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

.hero-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(0.23, 1, 0.32, 1),
    transform .6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-stat.popped {
  opacity: 1;
  transform: translateY(0);
}

.hero-stat:nth-child(1) {
  transition-delay: .1s;
}

.hero-stat:nth-child(2) {
  transition-delay: .25s;
}

.hero-stat:nth-child(3) {
  transition-delay: .4s;
}

.hero-stat:nth-child(4) {
  transition-delay: .55s;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat-label {
  font-size: .8rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .06em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ===== SECTION SHARED ===== */
section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.2rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}

.section-sub {
  color: var(--grey);
  font-size: 1rem;
  font-weight: 300;
  max-width: 55ch;
  margin-top: .8rem;
  line-height: 1.7;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ===== ABOUT ===== */
.about-section {
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  margin-top: 4rem;
}

.about-img-wrap {
  position: relative;
}

.about-img-frame {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.about-float-tag {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .8rem 1.2rem;
  border-radius: 3px;
}

.about-text {}

.about-text .big-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}

.about-text p {
  color: rgba(237, 233, 224, .88);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}

.about-chip {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--grey-light);
  text-transform: uppercase;
}

/* ===== CARDS SCROLL (shared pattern) ===== */
.cards-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cards-nav {
  display: flex;
  gap: .6rem;
}

.cards-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s, border-color .25s;
  font-size: 1.1rem;
}

.cards-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.scroll-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
}

.scroll-track::-webkit-scrollbar {
  display: none;
}

/* ===== PROJECT CARD ===== */
.pcard {
  flex: 0 0 360px;
  border-radius: 6px;
  background: #0B0510;
  border: 1px solid var(--border-dark);
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color .3s ease;
  position: relative;
}

.pcard:hover {
  transform: translateY(-8px);
  border-color: rgba(97, 154, 214, .25);
}

.pcard-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: #181818;
}

.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.23, 1, 0.32, 1);
}

.pcard:hover .pcard-img img { transform: scale(1.06); }

.pcard-img-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #141414, #1d1d1d);
}

.pcard-img-placeholder span {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: #333;
  letter-spacing: .1em;
}

.pcard-body {
  padding: 1.4rem;
}

.pcard-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.pcard-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  transition: gap .25s;
}

.pcard-link:hover {
  gap: .9rem;
}

/* ===== CERTIFICATE CARD (icon only, no link) ===== */
.cert-card {
  flex: 0 0 260px;
  border-radius: 6px;
  background: #0B0510;
  border: 1px solid var(--border-dark);
  overflow: hidden;
}

.cert-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
  background: #181818;
}

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

.cert-download-btn {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11, 5, 16, .8);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .25s, border-color .25s, transform .25s, color .25s;
  z-index: 2;
}

.cert-download-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
  transform: translateY(-2px);
}

.cert-card-body {
  padding: 1.2rem 1.4rem;
}

.cert-card-title {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ===== EXPERIENCE CARD (full width style) ===== */
.exp-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exp-item {
  display: grid;
  grid-template-columns: 60px 100px 1fr auto;
  align-items: center;
  gap: 1.8rem;
  padding: 1.6rem 0;
  border-top: none;
  transition: background .3s;
  cursor: pointer;
  text-decoration: none;
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-item:hover .exp-title {
  color: var(--accent);
}

.exp-num {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #333;
  letter-spacing: .1em;
  flex-shrink: 0;
}

.exp-thumb {
  width: 100px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: #1a1a1a;
  flex-shrink: 0;
}

.exp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(0.23, 1, 0.32, 1);
  filter: grayscale(30%);
}

.exp-item:hover .exp-thumb img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.exp-title {
  font-family: var(--font-display);
  font-size: clamp(.9rem, 1.4vw, 1.15rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: .4rem;
  transition: color .3s;
}

.exp-org {
  font-size: .82rem;
  color: var(--grey);
  font-weight: 300;
}

.exp-arrow {
  font-size: 1.3rem;
  color: #333;
  padding-top: .2rem;
  transition: color .3s, transform .3s;
  flex-shrink: 0;
}

.exp-item:hover .exp-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* ===== SKILLS ===== */
.skills-section {
  background: transparent;
  position: relative;
  z-index: 1;
}

.skills-section > .wrap {
  position: relative;
  z-index: 1;
}

.skills-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.skill-group {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.8rem;
  background: #0B0510;
  transition: border-color .3s;
}

.skill-group:hover {
  border-color: rgba(97, 154, 214, .2);
}

.skill-group:hover .skill-group-title {
  color: var(--accent);
}

.skill-group-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: color .3s;
}

.skill-group-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.skill-rows {}

.skill-rows-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.4rem;
}

.skill-rows-2col .skill-rows-col:nth-child(2) {
  border-left: 1px solid var(--border-dark);
  padding-left: 2.4rem;
  margin-left: -1.2rem;
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border-dark);
}

.skill-row:last-child {
  border-bottom: none;
}

.skill-row-name {
  font-size: .9rem;
  color: var(--grey-light);
  font-weight: 400;
}

.skill-tags {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.skill-tag {
  font-size: .72rem;
  font-family: var(--font-mono);
  background: rgba(97, 154, 214, .08);
  color: var(--accent);
  padding: .2rem .55rem;
  border-radius: 3px;
  letter-spacing: .04em;
  transition: background .2s;
}

.skill-tag:hover {
  background: rgba(97, 154, 214, .16);
}

/* ===== CLUBS ===== */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.club-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .3s, transform .4s cubic-bezier(0.23, 1, 0.32, 1);
  background: #0B0510;
  text-decoration: none;
}

.club-card:hover {
  border-color: rgba(97, 154, 214, .25);
  transform: translateY(-4px);
}

.club-img {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: #1a1a1a;
}

.club-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.23, 1, 0.32, 1);
}

.club-card:hover .club-img img { transform: scale(1.04); }

.club-img-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #141414, #1d1d1d);
}

.club-body {
  padding: 1.5rem;
}

.club-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: .4rem;
}

.club-sub {
  font-size: .85rem;
  color: var(--grey);
  font-weight: 300;
}



/* ===== CERTIFICATES ===== */
.certs-grid {
  margin-top: 3rem;
  min-height: 200px;
  border: 1px dashed rgba(245, 242, 236, .1);
  border-radius: 6px;
  display: grid;
  place-items: center;
  padding: 4rem;
}

.certs-empty {
  text-align: center;
}

.certs-empty p {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: #333;
  letter-spacing: .08em;
}

/* ===== FOOTER ===== */
footer {
  background: #0B0510;
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}

.footer-headline em {
  color: var(--accent);
  font-style: italic;
}

.footer-contact {}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  transition: border-color .3s, background .3s;
  font-size: .95rem;
  cursor: pointer;
}

.footer-link:hover {
  border-color: var(--accent);
  background: rgba(255, 96, 68, .04);
}

.footer-link-label {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1a1a;
  display: grid;
  place-items: center;
  font-size: .9rem;
}

.footer-link-type {
  font-size: .75rem;
  color: var(--grey);
  font-family: var(--font-mono);
  letter-spacing: .08em;
}

.footer-link-arrow {
  color: var(--grey);
  transition: color .3s, transform .3s;
}

.footer-link:hover .footer-link-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: .8rem;
  color: #333;
  font-family: var(--font-mono);
  letter-spacing: .06em;
}

.footer-name {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 800;
  color: #3a4247;
  letter-spacing: -0.02em;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-input {
  background: rgba(245, 242, 236, .04);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .8rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 300;
  outline: none;
  transition: border-color .25s, background .25s;
  width: 100%;
}

.contact-input::placeholder {
  color: #3a3a3a;
}

.contact-input:focus {
  border-color: var(--accent);
  background: rgba(255, 96, 68, .04);
}

.contact-textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.4rem;
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .25s, transform .2s;
  margin-top: .4rem;
  align-self: flex-start;
}

.contact-submit:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.contact-submit-arrow {
  font-size: 1.1rem;
}

.contact-success {
  display: none;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .06em;
  padding: .6rem 0;
}

.contact-success.show {
  display: block;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(0.23, 1, 0.32, 1),
    transform .8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-img-frame {
    max-height: 380px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .clubs-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .exp-item {
    grid-template-columns: 50px 70px 1fr auto;
    gap: .8rem;
  }

  .exp-thumb {
    width: 70px;
    height: 50px;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .pcard {
    flex: 0 0 300px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
  }

  .hero-portrait-col {
    display: none;
  }

  .hero-video-col {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .exp-item {
    grid-template-columns: 1fr;
  }

  .exp-num {
    display: none;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .skill-rows-2col {
    grid-template-columns: 1fr;
  }

  .skill-rows-2col .skill-rows-col:nth-child(2) {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: .3rem;
  }
}




@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-tag,
  .hero h1,
  .hero-meta {
    opacity: 1;
    animation: none;
  }

  body::before {
    animation: none;
  }
}

/* hide old gradient divs */
.border-gradient-bottom,
.border-gradient-top {
  display: none;
}

/* ===== STAR BORDER — experience items only ===== */
.star-border-container {
  display: block;
  position: relative;
  border-radius: 20px;
}

/* The SVG tracer injected by JS */
.star-border-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
  border-radius: 20px;
}

.star-border-svg rect {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Inner content */
.star-border-container > .exp-item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0B0510;
  border-radius: 20px;
  z-index: 1;
  padding: 1.6rem 1.4rem;
}


/* ===== LIQUIDETHER BACKGROUND ===== */
/* Per-section LiquidEther canvas */
.section-liquid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 0.45;
}

/* Ensure all section content sits above canvas */
section > .wrap {
  position: relative;
  z-index: 1;
}

section > .hero-bg,
section > .hero-content,
section > .hero-bottom {
  position: relative;
  z-index: 1;
}

/* dividers stay above */
.divider {
  position: relative;
  z-index: 1;
}




/* =============================================================
   MOBILE — nav bar actions + staggered hamburger menu
   All rules scoped cleanly, no conflicts
============================================================= */

/* --- Mobile action group (hidden on desktop) --- */
.nav-actions-mobile {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

/* View CV pill — outlined */
.nav-cv-mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.42rem 0.75rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.nav-cv-mobile svg { flex-shrink: 0; }
.nav-cv-mobile:hover { background: rgba(97,154,214,0.15); }

/* Contact pill — same outlined style as View CV */
.nav-cta-mobile {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.42rem 0.75rem;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.nav-cta-mobile:hover { background: rgba(97,154,214,0.15); }

/* Hamburger button — hidden by default, shown via media query */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  color: #F4EDE4;
  font-size: 1.4rem;
  line-height: 1;
}

.menu-icon-open { display: block; }

/* ✕ close button — fixed inside the panel top-right */
.mobile-menu-close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #121313;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.3rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Activate mobile layout at ≤900px */
@media (max-width: 900px) {
  .nav-links       { display: none; }
  .nav-actions     { display: none; }
  .nav-actions-mobile { display: flex; }
  .mobile-menu-btn { display: flex; }
}

/* --- Dark overlay behind panel --- */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 149;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.visible { opacity: 1; }

/* Blue layer — slides in FIRST, sits behind white panel */
.mobile-blue-layer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 390px);
  height: 100dvh;
  background: #619AD6;
  z-index: 148;
  will-change: transform;
  transform: translateX(100%) translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.36s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.mobile-blue-layer.is-open {
  transform: translateX(0) translateZ(0);
}

/* White panel — slides in AFTER blue, on top, contains content */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 390px);
  height: 100dvh;
  background: #F4EDE4;
  z-index: 150;
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translateX(100%) translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1) 0.08s;
  overflow: hidden;
}
.mobile-menu-panel.is-open {
  transform: translateX(0) translateZ(0);
}

/* Inner content */
.mobile-menu-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 5rem 2.2rem 2.5rem 2.2rem;
}

/* Nav list */
.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Each item — starts hidden, staggers in */
.mobile-menu-item-wrap {
  overflow: hidden;
  will-change: transform, opacity;
  transform: translateY(22px) translateZ(0);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.38s cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-menu-item-wrap:first-child {
}

.mobile-menu-panel.is-open .mobile-menu-item-wrap          { opacity: 1; transform: translateY(0) translateZ(0); }
.mobile-menu-panel.is-open .mobile-menu-item-wrap:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu-panel.is-open .mobile-menu-item-wrap:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-panel.is-open .mobile-menu-item-wrap:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu-panel.is-open .mobile-menu-item-wrap:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-panel.is-open .mobile-menu-item-wrap:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu-panel.is-open .mobile-menu-item-wrap:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu-panel.is-open .mobile-menu-item-wrap:nth-child(7) { transition-delay: 0.40s; }
.mobile-menu-panel.is-open .mobile-menu-item-wrap:nth-child(8) { transition-delay: 0.45s; }

/* Big bold Kanit links — like the reference image */
.mobile-menu-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0;
  padding: 0.65rem 0;
  text-decoration: none;
  color: #121313;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
  transition: color 0.2s ease;
  position: relative;
}

/* Remove old ::before number */
.mobile-menu-link::before { display: none; }

/* Superscript number — small, blue, consistent height across all items */
.mobile-menu-num {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 400;
  color: #619AD6;
  line-height: 1;
  vertical-align: super;
  margin-left: 0.12em;
  flex-shrink: 0;
  align-self: flex-start;
  position: relative;
  top: 0.15em;
}

.mobile-menu-link:hover,
.mobile-menu-link:active { color: #619AD6; }

.mobile-menu-link:hover .mobile-menu-num,
.mobile-menu-link:active .mobile-menu-num { color: #619AD6; }

/* Number placed inline after first word — lifted to match superscript height of other items */
.mobile-menu-num.num-inline {
  position: relative;
  vertical-align: baseline;
  top: -1.4em;
}

.mobile-menu-num.num-04 {
  margin-left: 0em;
}

.mobile-menu-num.num-05 {
  margin-left: -0.4em;
}

.mobile-menu-label { display: inline; }

/* Hero mobile fix */
@media (max-width: 900px) {
  .hero-video-col {
    width: 100%;
    opacity: 1;
    animation: none;
  }
  .hero-video-col::after {
    background: linear-gradient(
      to bottom,
      rgba(18,19,19,0.1) 0%,
      rgba(18,19,19,0.0) 30%,
      rgba(18,19,19,0.3) 70%,
      #121313 100%
    );
  }
  .hero-video {
    opacity: 0.6;
    object-position: calc(50% - 175px) center;
  }
  .hero-portrait-col { display: none; }
  .hero-text-col     { max-width: 100%; }
}

/* ===== GLARE HOVER ===== */
.glare-hover {
  position: relative;
}

.glare-hover::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    -30deg,
    transparent 0%,
    transparent 38%,
    rgba(255,255,255,0.22) 50%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-12deg);
  transition: transform 750ms cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  z-index: 30;
  border-radius: inherit;
}

.glare-hover:hover::after {
  transform: translateX(160%) skewX(-12deg);
}

/* ===== MOBILE SCROLL SNAP — cards step one at a time ===== */
@media (max-width: 900px) {
  .scroll-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .scroll-track .pcard,
  .scroll-track .cert-card {
    scroll-snap-align: start;
    flex: 0 0 calc(100% - 1.2rem);
  }
}

/* Clubs nav arrows — mobile only */
.clubs-nav-mobile {
  display: none;
}
@media (max-width: 900px) {
  .clubs-nav-mobile {
    display: flex;
    align-items: flex-end;
  }
  #clubs .section-title {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
  }
}
