/* ============================================================================
   Mustafa Mahmoud — Portfolio Stylesheet
   ============================================================================

   TABLE OF CONTENTS
   ------------------------------------------------------------------------
   01. Reset
   02. CSS Variables
   03. Noise Overlay
   04. Custom Cursor
   05. Navigation
   06. Section Base (shared utility classes)
   07. Hero
   08. About
   09. Education
   10. Skills
   11. Projects
   12. GitHub
   13. Experience & Certifications
   14. Contact
   15. Footer
   16. Loader
   17. Scroll-to-Top Button
   18. Responsive Breakpoints
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%
}

body {
  background: #050507;
  color: #f0eef8;
  font-family: 'Geist', sans-serif;
  overflow-x: hidden;
  cursor: none;
  width: 100%;
  max-width: 100%
}

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

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

::selection {
  background: rgba(79, 142, 247, .25)
}

::-webkit-scrollbar {
  width: 3px
}

::-webkit-scrollbar-track {
  background: #050507
}

::-webkit-scrollbar-thumb {
  background: #1c1f28;
  border-radius: 2px
}

/* === VARIABLES === */
:root {
  --bg: #050507;
  --s1: #0a0b0f;
  --s2: #0f1116;
  --s3: #15171e;
  --s4: #1c1f28;
  --ln: rgba(255, 255, 255, .055);
  --ln2: rgba(255, 255, 255, .10);
  --t1: #f0eef8;
  --t2: #8a8aa8;
  --t3: #8484a8;
  --t4: #2a2b38;
  --blue: #4f8ef7;
  --blue2: #3b6fd4;
  --blue-wash: rgba(79, 142, 247, .07);
  --violet: #9b72f7;
  --cyan: #38c9e8;
  --green: #34d399;
  --amber: #fbbf24;
  --whatsapp: #25D366;
  --linkedin: #0A66C2;
  --font-body: 'Geist', sans-serif;
  --serif: 'Instrument Serif', serif;
  --mono: 'Geist Mono', monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

/* === NOISE OVERLAY === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  mix-blend-mode: overlay;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* === CURSOR === */
#cur-r {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(79, 142, 247, .45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .22s var(--ease), height .22s var(--ease), border-color .22s;
  will-change: left, top
}

#cur-d {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--blue)
}

/* === NAV === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 62px;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s
}

nav.solid {
  background: rgba(5, 5, 7, .9);
  backdrop-filter: blur(24px);
  border-color: var(--ln)
}

.n-logo {
  display: flex;
  align-items: center;
  gap: 11px
}

.n-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 0 24px rgba(79, 142, 247, .35);
  flex-shrink: 0
}

.n-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -.02em
}

.n-links {
  display: flex;
  align-items: center;
  gap: 2px
}

.n-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--t2);
  padding: 6px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s
}

.n-links a:hover {
  color: var(--t1);
  background: rgba(255, 255, 255, .05)
}

.n-end {
  display: flex;
  align-items: center;
  gap: 10px
}

.n-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--green);
  background: rgba(52, 211, 153, .08);
  border: 1px solid rgba(52, 211, 153, .18);
  padding: 5px 13px;
  border-radius: 100px
}

.n-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pdot 2.5s ease infinite
}

@keyframes pdot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .5)
  }

  70% {
    box-shadow: 0 0 0 5px transparent
  }
}

.n-cta {
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  padding: 8px 18px;
  border-radius: 9px;
  box-shadow: 0 0 20px rgba(79, 142, 247, .22);
  transition: all .25s
}

.n-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(79, 142, 247, .4)
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--t1);
  border-radius: 2px;
  transition: all .3s
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px)
}

.hamburger.open span:nth-child(2) {
  opacity: 0
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px)
}

#mob-menu {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  background: rgba(5, 5, 7, .97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--ln);
  padding: 20px 24px;
  z-index: 499;
  flex-direction: column;
  gap: 4px
}

#mob-menu.show {
  display: flex
}

#mob-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--t2);
  padding: 12px 16px;
  border-radius: 10px;
  display: block;
  transition: all .2s
}

#mob-menu a:hover {
  color: var(--t1);
  background: rgba(255, 255, 255, .05)
}

/* === SECTION BASE === */
.sec {
  padding: 104px 56px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding-inline: 0
}

.sec-alt {
  background: var(--s1);
  border-top: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln)
}

.sec-top {
  border-top: 1px solid var(--ln)
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px
}

.eyebrow i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block
}

.sec-h {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin-bottom: 14px
}

.sec-h em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400
}

.sec-sub {
  font-size: 17px;
  color: var(--t2);
  line-height: 1.72;
  max-width: 500px
}

.sec-head {
  margin-bottom: 60px
}

/* Scroll-reveal only applies when JavaScript is confirmed running (see the
   inline script in <head> that adds this class). Without JS, .reveal elements
   render at full visibility immediately instead of staying hidden forever. */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease)
}

html.js .reveal.in {
  opacity: 1;
  transform: none
}

.d1 {
  transition-delay: .07s
}

.d2 {
  transition-delay: .14s
}

/* badges */
.badge {
  display: inline-block;
  font-size: 10px;
  font-family: var(--mono);
  padding: 2px 9px;
  border-radius: 6px
}

.badge-green {
  background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .2);
  color: var(--green)
}

.badge-blue {
  background: rgba(79, 142, 247, .1);
  border: 1px solid rgba(79, 142, 247, .2);
  color: var(--blue)
}

.badge-amber {
  background: rgba(251, 191, 36, .1);
  border: 1px solid rgba(251, 191, 36, .2);
  color: var(--amber)
}

.badge-violet {
  background: rgba(155, 114, 247, .1);
  border: 1px solid rgba(155, 114, 247, .2);
  color: var(--violet)
}

/* === HERO === */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 56px 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg)
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, transparent 20%, var(--bg) 100%);
  pointer-events: none;
  z-index: 1
}

#hcanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55
}

.h-glow-a {
  position: absolute;
  top: 5%;
  left: 18%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(79, 142, 247, .11), transparent 65%);
  animation: ga 12s ease-in-out infinite;
  pointer-events: none
}

.h-glow-b {
  position: absolute;
  bottom: 8%;
  right: 12%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(155, 114, 247, .08), transparent 65%);
  animation: gb 15s ease-in-out infinite;
  pointer-events: none
}

@keyframes ga {

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

  50% {
    transform: translate(35px, -25px)
  }
}

@keyframes gb {

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

  50% {
    transform: translate(-25px, 20px)
  }
}

.h-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 72px;
  max-width: 1120px;
  width: 100%;
  min-width: 0
}

.h-left {
  min-width: 0
}

.h-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-wash);
  border: 1px solid rgba(79, 142, 247, .2);
  padding: 7px 15px;
  border-radius: 100px;
  margin-bottom: 26px;
  animation: fup .7s var(--ease) both
}

h1 {
  font-size: clamp(52px, 6.5vw, 84px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .95;
  margin-bottom: 14px;
  animation: fup .7s var(--ease) .08s both
}

h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--blue) 10%, var(--violet) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.h-role {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--t3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 22px;
  min-height: 20px;
  animation: fup .7s var(--ease) .15s both
}

.h-desc {
  font-size: 17px;
  color: var(--t2);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
  animation: fup .7s var(--ease) .22s both
}

.h-desc strong {
  color: var(--t1);
  font-weight: 500
}

.h-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: fup .7s var(--ease) .28s both
}

.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--blue2);
  color: #fff;
  padding: 12px 24px;
  border-radius: 11px;
  box-shadow: 0 0 28px rgba(79, 142, 247, .32);
  transition: all .25s var(--ease);
  border: none;
  cursor: pointer
}

.btn-p:hover {
  background: #2f5cb0;
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(79, 142, 247, .48)
}

.btn-s {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  background: var(--s3);
  padding: 12px 24px;
  border-radius: 11px;
  border: 1px solid var(--ln2);
  transition: all .25s var(--ease);
  cursor: pointer
}

.btn-s:hover {
  background: var(--s4);
  transform: translateY(-2px)
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  background: rgba(251, 191, 36, .08);
  border: 1px solid rgba(251, 191, 36, .35);
  padding: 12px 24px;
  border-radius: 11px;
  position: relative;
  overflow: hidden;
  transition: all .35s var(--ease);
  cursor: pointer
}

.btn-cv::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, .18), rgba(251, 191, 36, .06));
  opacity: 0;
  transition: opacity .3s;
  border-radius: 11px
}

.btn-cv:hover {
  border-color: rgba(251, 191, 36, .7);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(251, 191, 36, .22)
}

.btn-cv:hover::before {
  opacity: 1
}

.cv-icon {
  transition: transform .35s var(--ease);
  position: relative;
  z-index: 1
}

.btn-cv:hover .cv-icon {
  transform: translateY(3px)
}

.cv-txt {
  position: relative;
  z-index: 1
}

.cv-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, .2), transparent);
  animation: shine 2.8s ease-in-out infinite;
  pointer-events: none
}

@keyframes shine {
  0% {
    left: -120%
  }

  60%,
  100% {
    left: 200%
  }
}

.h-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  animation: fup .7s var(--ease) .34s both
}

.h-socials span {
  font-size: 12px;
  color: var(--t3);
  font-family: var(--mono)
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--ln2);
  background: var(--s2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .22s;
  color: var(--t2)
}

.social-icon:hover {
  transform: translateY(-2px)
}

.social-icon.icon-whatsapp:hover {
  border-color: var(--whatsapp);
  background: rgba(37, 211, 102, .08);
  color: var(--whatsapp)
}

.social-icon.icon-linkedin:hover {
  border-color: var(--linkedin);
  background: rgba(10, 102, 194, .08);
  color: var(--linkedin)
}

.social-icon.icon-github:hover {
  border-color: rgba(240, 246, 252, .3);
  background: rgba(240, 246, 252, .06);
  color: #f0f6fc
}

.social-icon.icon-email:hover {
  border-color: rgba(79, 142, 247, .4);
  background: var(--blue-wash);
  color: var(--blue)
}

/* Hero photo */
.h-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fup .7s var(--ease) .1s both
}

.photo-frame {
  position: relative;
  width: 320px;
  height: 400px
}

.photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 26px;
  background: conic-gradient(from 0deg, var(--blue), var(--violet), var(--cyan), var(--blue));
  animation: rspin 9s linear infinite;
  opacity: .45;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px))
}

@keyframes rspin {
  to {
    transform: rotate(360deg)
  }
}

.photo-glow {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(79, 142, 247, .14), rgba(155, 114, 247, .09));
  filter: blur(20px);
  transform: scale(1.05)
}

.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .08)
}

.photo-chip {
  position: absolute;
  z-index: 3;
  background: rgba(10, 11, 15, .93);
  border: 1px solid var(--ln2);
  backdrop-filter: blur(12px);
  border-radius: 13px;
  padding: 11px 15px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  gap: 9px
}

.photo-chip.position-top-left {
  top: -14px;
  left: -22px;
  animation: flt1 5s ease-in-out infinite
}

.photo-chip.position-bottom-right {
  bottom: -14px;
  right: -22px;
  animation: flt2 6s ease-in-out infinite
}

@keyframes flt1 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

@keyframes flt2 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(8px)
  }
}

.photo-chip-icon {
  font-size: 18px
}

.photo-chip-label {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .06em
}

.photo-chip-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.2
}

.photo-chip-value.color-green {
  color: var(--green)
}

.photo-chip-value.color-blue {
  color: var(--blue)
}

@keyframes fup {
  from {
    opacity: 0;
    transform: translateY(22px)
  }

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

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
  min-width: 0
}

.about-img {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ln2);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .4);
  position: relative
}

.about-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center
}

.about-img-ov {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(5, 5, 7, .95), transparent);
  padding: 20px 18px
}

.about-img-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -.02em
}

.about-img-role {
  font-size: 12px;
  color: var(--t2);
  font-family: var(--mono)
}

.bio {
  font-size: 16px;
  color: var(--t2);
  line-height: 1.82;
  margin-bottom: 18px
}

.bio strong {
  color: var(--t1);
  font-weight: 500
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0
}

.tag {
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--t2);
  background: var(--s2);
  border: 1px solid var(--ln);
  padding: 6px 13px;
  border-radius: 8px;
  transition: all .2s;
  cursor: default
}

.tag:hover {
  border-color: rgba(79, 142, 247, .35);
  color: var(--blue);
  background: var(--blue-wash)
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 32px
}

.stat {
  background: var(--s2);
  padding: 20px;
  text-align: center;
  transition: background .2s;
  cursor: default
}

.stat:first-child {
  border-radius: 12px 0 0 12px
}

.stat:last-child {
  border-radius: 0 12px 12px 0
}

.stat:hover {
  background: var(--s3)
}

.stat-n {
  display: block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--t1);
  line-height: 1;
  margin-bottom: 4px
}

.stat-n sup {
  font-size: .5em;
  color: var(--blue);
  vertical-align: top;
  margin-top: 5px
}

.stat-l {
  font-size: 11px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--mono)
}

/* === EDUCATION === */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px
}

.edu-card {
  background: var(--s2);
  border: 1px solid var(--ln);
  padding: 36px;
  display: flex;
  gap: 20px;
  transition: all .28s;
  cursor: default
}

.edu-card:first-child {
  border-radius: 16px 0 0 16px
}

.edu-card:last-child {
  border-radius: 0 16px 16px 0
}

.edu-card:hover {
  background: var(--s3);
  border-color: var(--ln2)
}

.edu-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--s3);
  border: 1px solid var(--ln2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: all .25s
}

.edu-card:hover .edu-ico {
  background: var(--blue-wash);
  border-color: rgba(79, 142, 247, .3)
}

.edu-deg {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -.02em;
  margin-bottom: 5px
}

.edu-sch {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 4px
}

.edu-fac {
  font-size: 13px;
  color: var(--t2);
  margin-bottom: 8px;
  line-height: 1.5
}

.edu-dt {
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--t3)
}

/* === SKILLS === */
.sk-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 72px;
  align-items: start
}

.sk-intro {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.72;
  margin-bottom: 28px
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--t2)
}

.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0
}

.sk-cats {
  display: flex;
  flex-direction: column;
  gap: 40px
}

.sk-cat-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px
}

.sk-cat-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ln)
}

.sk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px
}

.sk-card {
  background: var(--s2);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: default;
  transition: all .28s var(--ease);
  position: relative;
  overflow: hidden
}

.sk-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, var(--sc, rgba(79, 142, 247, .15)), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  border-radius: 14px
}

.sk-card:hover {
  transform: translateY(-4px);
  border-color: var(--sc, rgba(79, 142, 247, .4));
  box-shadow: 0 12px 36px rgba(0, 0, 0, .3);
  background: var(--s3)
}

.sk-card:hover::after {
  opacity: 1
}

.sk-card i {
  font-size: 42px;
  transition: transform .3s var(--ease);
  position: relative;
  z-index: 1
}

.sk-card:hover i {
  transform: scale(1.12) translateY(-2px)
}

.sk-card span {
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--t2);
  transition: color .25s;
  position: relative;
  z-index: 1;
  text-align: center
}

.sk-card:hover span {
  color: var(--t1)
}

/* === PROJECTS === */
.proj-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
  flex-wrap: wrap;
  gap: 16px
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ln);
  min-width: 0
}

.proj-card {
  background: var(--bg);
  padding: 38px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background .3s
}

.proj-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 142, 247, .055), rgba(155, 114, 247, .035));
  opacity: 0;
  transition: opacity .35s
}

.proj-card:hover {
  background: var(--s1)
}

.proj-card:hover::after {
  opacity: 1
}

.proj-card:nth-child(1) {
  border-radius: 16px 0 0 0
}

.proj-card:nth-child(2) {
  border-radius: 0 16px 0 0
}

.proj-card:nth-child(3) {
  border-radius: 0 0 0 16px
}

.proj-card:nth-child(4) {
  border-radius: 0 0 16px 0
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px
}

.proj-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--s2);
  border: 1px solid var(--ln2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px
}

.proj-lks {
  display: flex;
  gap: 7px;
  opacity: 0;
  transition: opacity .25s
}

.proj-card:hover .proj-lks {
  opacity: 1
}

.proj-lk {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--ln);
  background: var(--s2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  transition: all .2s
}

.proj-lk:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-wash)
}

.proj-lk-disabled {
  opacity: .4;
  cursor: not-allowed
}

.proj-lk-disabled:hover {
  border-color: var(--ln);
  color: var(--t3);
  background: var(--s2)
}

.proj-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--t1);
  margin-bottom: 8px
}

.proj-desc {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px
}

.proj-tag {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--t3);
  background: var(--s3);
  border: 1px solid var(--ln);
  padding: 4px 10px;
  border-radius: 7px;
  transition: all .2s
}

.proj-card:hover .proj-tag {
  border-color: var(--ln2);
  color: var(--t2)
}

.proj-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--ln)
}

.proj-yr {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--t3)
}

.proj-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all .25s
}

.proj-card:hover .proj-cta {
  opacity: 1;
  transform: none
}

/* === GITHUB === */
.gh-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 320px);
  gap: 40px;
  align-items: start
}

.contrib-box {
  background: var(--s2);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px
}

.contrib-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px
}

.contrib-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--t1)
}

.contrib-count {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--green)
}

.contrib-months {
  display: flex;
  gap: 3px;
  margin-bottom: 6px
}

.contrib-mo {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--t3);
  flex: 4
}

.contrib-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  max-width: 100%
}

.contrib-grid {
  display: flex;
  gap: 3px
}

.contrib-col {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.contrib-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  flex-shrink: 0;
  transition: transform .15s;
  cursor: default
}

.contrib-cell:hover {
  transform: scale(1.4);
  z-index: 1;
  position: relative
}

/* Activity levels, from no contributions (0) to heaviest (4) */
.level-0 {
  background: var(--s3)
}

.level-1 {
  background: rgba(52, 211, 153, .25)
}

.level-2 {
  background: rgba(52, 211, 153, .45)
}

.level-3 {
  background: rgba(52, 211, 153, .7)
}

.level-4 {
  background: var(--green);
  box-shadow: 0 0 4px rgba(52, 211, 153, .4)
}

.contrib-leg {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  justify-content: flex-end;
  font-size: 11px;
  color: var(--t3);
  font-family: var(--mono)
}

.contrib-leg-cells {
  display: flex;
  gap: 3px
}

.repos-lbl {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px
}

.repos-list {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.repo-card {
  background: var(--s2);
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all .25s;
  cursor: default;
  display: block
}

.repo-card:hover {
  background: var(--s3);
  border-color: var(--ln2);
  transform: translateX(3px)
}

.repo-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px
}

.repo-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -.01em
}

.repo-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--t3)
}

.repo-desc {
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.55;
  margin-bottom: 10px
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 12px
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--t2)
}

.repo-ldot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0
}

.repo-upd {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--t3)
}

.gh-side-box {
  background: var(--s2);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px
}

.gh-prof-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px
}

.gh-av {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  border: 2px solid var(--ln2)
}

.gh-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 2px
}

.gh-handle {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--blue)
}

.gh-bio {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 16px
}

.gh-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px
}

.gh-stat {
  background: var(--s3);
  padding: 14px 10px;
  text-align: center;
  transition: background .2s
}

.gh-stat:first-child {
  border-radius: 8px 0 0 8px
}

.gh-stat:last-child {
  border-radius: 0 8px 8px 0
}

.gh-stat:hover {
  background: var(--s4)
}

.gh-stat-n {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -.03em;
  line-height: 1
}

.gh-stat-l {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .06em
}

.gh-lnk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(240, 246, 252, .06);
  border: 1px solid rgba(240, 246, 252, .1);
  border-radius: 10px;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t1);
  transition: all .25s;
  margin-bottom: 14px
}

.gh-lnk-btn:hover {
  background: rgba(240, 246, 252, .1);
  border-color: rgba(240, 246, 252, .2);
  transform: translateY(-1px)
}

.langs-box {
  background: var(--s2);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 22px
}

.langs-title {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px
}

.lang-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
  gap: 2px
}

.lang-seg {
  height: 100%;
  border-radius: 2px
}

.lang-rows {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px
}

.lang-name {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--t2)
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0
}

.lang-pct {
  font-family: var(--mono);
  color: var(--t3)
}

/* === EXPERIENCE === */
.exp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  min-width: 0
}

.exp-list,
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.exp-card {
  display: flex;
  gap: 18px;
  background: var(--s1);
  padding: 26px;
  border: 1px solid var(--ln);
  transition: all .25s;
  cursor: default
}

.exp-card:first-child {
  border-radius: 16px 16px 0 0
}

.exp-card:last-child {
  border-radius: 0 0 16px 16px
}

.exp-card:hover {
  background: var(--s2);
  border-color: var(--ln2)
}

.exp-card.featured {
  border-color: rgba(79, 142, 247, .25);
  background: rgba(79, 142, 247, .04)
}

.exp-card.featured:hover {
  background: rgba(79, 142, 247, .07)
}

.exp-tl {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3px;
  gap: 4px
}

.exp-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--s4);
  flex-shrink: 0
}

.exp-ln {
  width: 1.5px;
  flex: 1;
  background: var(--ln);
  min-height: 20px
}

.exp-role {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -.02em;
  margin-bottom: 3px
}

.exp-org {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 3px
}

.exp-date {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--t3);
  margin-bottom: 9px
}

.exp-desc {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.6
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--s1);
  padding: 20px 22px;
  border: 1px solid var(--ln);
  transition: all .25s;
  cursor: default
}

.cert-card:first-child {
  border-radius: 16px 16px 0 0
}

.cert-card:last-child {
  border-radius: 0 0 16px 16px
}

.cert-card:hover {
  background: var(--s2)
}

.cert-ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--s3);
  border: 1px solid var(--ln2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0
}

.cert-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 2px
}

.cert-org {
  font-size: 12px;
  color: var(--t2);
  margin-bottom: 5px
}

/* === CONTACT === */
.contact-shell {
  background: var(--bg);
  border: 1px solid var(--ln2);
  border-radius: 24px;
  padding: 72px;
  position: relative;
  overflow: hidden
}

.c-glow-a {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(79, 142, 247, .11), transparent 65%);
  pointer-events: none
}

.c-glow-b {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(155, 114, 247, .07), transparent 65%);
  pointer-events: none
}

.contact-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
  position: relative
}

.contact-h {
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .97;
  margin-bottom: 18px
}

.contact-h em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400
}

.contact-h span {
  background: linear-gradient(100deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.contact-sub {
  font-size: 16px;
  color: var(--t2);
  line-height: 1.72;
  margin-bottom: 40px;
  max-width: 400px
}

.c-links {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.c-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--s1);
  border: 1px solid var(--ln);
  padding: 15px 18px;
  border-radius: 14px;
  transition: all .25s;
  color: inherit
}

.c-link:hover {
  background: var(--s2);
  border-color: var(--ln2);
  transform: translateX(5px)
}

.c-link.icon-whatsapp:hover {
  border-color: rgba(37, 211, 102, .3);
  background: rgba(37, 211, 102, .05)
}

.c-link.icon-linkedin:hover {
  border-color: rgba(10, 102, 194, .35);
  background: rgba(10, 102, 194, .06)
}

.c-link.icon-github:hover {
  border-color: rgba(240, 246, 252, .15);
  background: rgba(240, 246, 252, .04)
}

.c-link.icon-email:hover {
  border-color: rgba(79, 142, 247, .3);
  background: var(--blue-wash)
}

.c-link-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--s3);
  border: 1px solid var(--ln2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .25s
}

.c-link.icon-whatsapp:hover .c-link-ico {
  background: rgba(37, 211, 102, .1);
  border-color: rgba(37, 211, 102, .3)
}

.c-link.icon-linkedin:hover .c-link-ico {
  background: rgba(10, 102, 194, .1);
  border-color: rgba(10, 102, 194, .3)
}

.c-link.icon-github:hover .c-link-ico {
  background: rgba(240, 246, 252, .08);
  border-color: rgba(240, 246, 252, .15)
}

.c-link.icon-email:hover .c-link-ico {
  background: var(--blue-wash);
  border-color: rgba(79, 142, 247, .3)
}

.c-link-lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1)
}

.c-link-val {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--t3)
}

.c-link-arr {
  margin-left: auto;
  color: var(--t3);
  font-size: 15px;
  transition: transform .22s, color .22s
}

.c-link:hover .c-link-arr {
  transform: translate(3px, -3px);
  color: var(--blue)
}

.c-form {
  display: flex;
  flex-direction: column;
  gap: 11px
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px
}

.form-input {
  width: 100%;
  background: var(--s1);
  border: 1px solid var(--ln);
  border-radius: 11px;
  padding: 13px 17px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--t1);
  outline: none;
  resize: none;
  transition: all .2s
}

.form-input::placeholder {
  color: var(--t4)
}

.form-input:focus {
  border-color: rgba(79, 142, 247, .45);
  background: var(--s2);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, .1)
}

.f-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--blue2), #7548c2);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 28px rgba(79, 142, 247, .28);
  transition: all .25s var(--ease)
}

.f-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 44px rgba(79, 142, 247, .44)
}

.f-ok {
  text-align: center;
  padding: 52px 20px;
  background: rgba(52, 211, 153, .04);
  border: 1px solid rgba(52, 211, 153, .14);
  border-radius: 14px
}

.f-ok-ico {
  font-size: 38px;
  margin-bottom: 12px
}

.f-ok p {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.6
}

/* === FOOTER === */
footer {
  background: var(--bg);
  border-top: 1px solid var(--ln);
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px
}

.f-brand {
  display: flex;
  align-items: center;
  gap: 10px
}

.f-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  color: #fff;
  font-weight: 500
}

.f-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t1)
}

.f-copy {
  font-size: 12px;
  color: var(--t3);
  font-family: var(--mono)
}

.f-links {
  display: flex;
  gap: 18px
}

.f-links a {
  font-size: 12px;
  color: var(--t3);
  transition: color .2s
}

.f-links a:hover {
  color: var(--blue)
}

/* === RESPONSIVE (single unified block) === */
/* ════════════════════════════════════════
   RESPONSIVE — overflow-safe, Android-first
   ════════════════════════════════════════ */

/* ── Tablet landscape ≤1100px ── */
@media(max-width:1100px) {

  nav,
  footer {
    padding-inline: 32px
  }

  .sec {
    padding: 80px 32px
  }

  #hero {
    padding: 90px 32px 70px
  }

  .gh-layout {
    grid-template-columns: 1fr
  }

  .exp-layout {
    grid-template-columns: 1fr
  }

  .contact-cols {
    grid-template-columns: 1fr;
    gap: 44px
  }

  .contact-shell {
    padding: 48px 40px
  }
}

/* ── Tablet portrait ≤900px ── */
@media(max-width:900px) {
  .h-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px
  }

  .h-photo {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center
  }

  .pw {
    width: min(240px, 60vw);
    height: min(300px, 75vw)
  }

  .pchip,
  .p-ring {
    display: none
  }

  .h-desc {
    max-width: 100%;
    margin-bottom: 24px
  }

  .h-btns,
  .h-socials {
    justify-content: center
  }

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

  .about-img {
    max-width: 240px;
    margin-inline: auto
  }

  .about-img img {
    height: 240px
  }

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

  .edu-card {
    border-radius: 0 !important;
    border-bottom: none
  }

  .edu-card:first-child {
    border-radius: 14px 14px 0 0 !important
  }

  .edu-card:last-child {
    border-radius: 0 0 14px 14px !important;
    border-bottom: 1px solid var(--ln)
  }

  .sk-layout {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .sk-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr))
  }

  .proj-grid {
    grid-template-columns: 1fr;
    background: transparent;
    gap: 0
  }

  .proj-card {
    border-radius: 0 !important;
    border: 1px solid var(--ln);
    border-bottom: none;
    background: var(--s1)
  }

  .proj-card:first-child {
    border-radius: 14px 14px 0 0 !important
  }

  .proj-card:last-child {
    border-radius: 0 0 14px 14px !important;
    border-bottom: 1px solid var(--ln)
  }

  .proj-lks,
  .proj-cta {
    opacity: 1;
    transform: none
  }
}

/* ══════════════════════════════════════════
   MOBILE ≤640px  — full mobile fix
   ══════════════════════════════════════════ */
@media(max-width:640px) {

  /* — Prevent ANY horizontal overflow — */
  * {
    min-width: 0;
    box-sizing: border-box
  }

  .sec,
  .wrap,
  .h-inner,
  .about-grid,
  .edu-grid,
  .sk-layout,
  .sk-cats,
  .proj-grid,
  .gh-layout,
  .exp-layout,
  .contact-cols,
  .contact-shell,
  .c-form,
  .f-row,
  .repos-list,
  .contrib-box {
    max-width: 100%;
    overflow-x: hidden
  }

  /* NAV */
  nav {
    padding: 0 16px;
    height: 54px
  }

  .n-links,
  .n-pill,
  .n-cta {
    display: none
  }

  .hamburger {
    display: flex
  }

  #mob-menu {
    top: 54px;
    padding: 14px
  }

  #mob-menu a {
    font-size: 15px;
    padding: 11px 14px
  }

  /* LAYOUT */
  .sec {
    padding: 52px 16px
  }

  .sec-head {
    margin-bottom: 28px
  }

  #hero {
    padding: 74px 16px 44px;
    min-height: 100dvh;
    align-items: center
  }

  footer {
    padding: 20px 16px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center
  }

  /* TYPOGRAPHY */
  h1 {
    font-size: clamp(30px, 8vw, 46px);
    letter-spacing: -.03em;
    line-height: 1.05
  }

  .h-tag {
    font-size: 10px;
    padding: 5px 11px;
    letter-spacing: .06em;
    max-width: 100%;
    white-space: normal;
    text-align: center
  }

  .h-role {
    font-size: 10.5px;
    letter-spacing: .05em;
    margin-bottom: 14px
  }

  .h-desc {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
    text-align: center
  }

  .sec-h {
    font-size: clamp(22px, 6.5vw, 34px);
    line-height: 1.08
  }

  .sec-sub {
    font-size: 13px;
    line-height: 1.6
  }

  .eyebrow {
    font-size: 10px
  }

  .bio {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 12px
  }

  .sec-sub,
  .sk-intro {
    font-size: 13px
  }

  /* HERO PHOTO */
  .h-photo {
    width: 100%
  }

  .pw {
    width: min(165px, 48vw);
    height: min(206px, 60vw)
  }

  /* BUTTONS */
  .h-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%
  }

  .btn-p,
  .btn-s,
  .btn-cv {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 13px 16px;
    font-size: 14px;
    border-radius: 10px
  }

  .h-socials {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px
  }

  .social-icon {
    width: 38px;
    height: 38px
  }

  /* ABOUT */
  .about-img {
    max-width: 190px
  }

  .about-img img {
    height: 190px
  }

  .tags {
    gap: 5px;
    margin: 14px 0
  }

  .tag {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 7px
  }

  .stats {
    gap: 1px
  }

  .stat {
    padding: 14px 8px
  }

  .stat-n {
    font-size: 20px
  }

  .stat-l {
    font-size: 8.5px
  }

  /* EDUCATION */
  .edu-card {
    padding: 18px 14px;
    gap: 12px
  }

  .edu-ico {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 10px;
    flex-shrink: 0
  }

  .edu-deg {
    font-size: 13px;
    margin-bottom: 3px
  }

  .edu-sch {
    font-size: 12px;
    margin-bottom: 3px
  }

  .edu-fac {
    font-size: 11.5px;
    margin-bottom: 5px
  }

  .edu-dt {
    font-size: 10.5px
  }

  /* SKILLS */
  .legend {
    display: none
  }

  .sk-cats {
    gap: 24px
  }

  .sk-cat-title {
    font-size: 10px;
    margin-bottom: 10px
  }

  .sk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%
  }

  .sk-card {
    padding: 14px 6px;
    gap: 6px;
    border-radius: 10px;
    width: 100%
  }

  .sk-card i {
    font-size: 26px
  }

  .sk-card span {
    font-size: 10px;
    word-break: break-word
  }

  /* PROJECTS */
  .proj-hd {
    margin-bottom: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px
  }

  .proj-card {
    padding: 20px 14px
  }

  .proj-top {
    margin-bottom: 16px
  }

  .proj-name {
    font-size: 15px;
    margin-bottom: 5px
  }

  .proj-desc {
    font-size: 12.5px;
    margin-bottom: 14px
  }

  .proj-tags {
    gap: 4px;
    margin-bottom: 12px
  }

  .proj-tag {
    font-size: 10px;
    padding: 3px 7px
  }

  .proj-ico {
    width: 36px;
    height: 36px;
    font-size: 17px;
    border-radius: 9px;
    flex-shrink: 0
  }

  .proj-ft {
    padding-top: 12px
  }

  /* GITHUB */
  .gh-layout {
    display: flex;
    flex-direction: column;
    gap: 16px
  }

  .contrib-box {
    padding: 14px 12px;
    margin-bottom: 14px;
    border-radius: 12px
  }

  .contrib-title {
    font-size: 12px
  }

  .contrib-count {
    font-size: 11px
  }

  .contrib-months {
    display: none
  }

  .contrib-cell {
    width: 8px;
    height: 8px;
    border-radius: 2px
  }

  .contrib-col {
    gap: 2px
  }

  .contrib-grid {
    gap: 2px
  }

  .repos-lbl {
    font-size: 11px
  }

  .repos-list {
    gap: 6px
  }

  .repo-card {
    padding: 12px 13px;
    border-radius: 10px
  }

  .repo-name {
    font-size: 12.5px
  }

  .repo-desc {
    font-size: 11.5px;
    margin-bottom: 7px
  }

  .repo-meta {
    gap: 8px
  }

  .repo-lang {
    font-size: 11px
  }

  .repo-upd {
    font-size: 10.5px
  }

  .gh-side-box {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 10px
  }

  .gh-prof-row {
    gap: 12px;
    margin-bottom: 12px
  }

  .gh-av {
    width: 48px;
    height: 48px;
    font-size: 16px
  }

  .gh-name {
    font-size: 14px
  }

  .gh-handle {
    font-size: 12px
  }

  .gh-bio {
    font-size: 11.5px;
    margin-bottom: 12px
  }

  .gh-stats {
    gap: 1px
  }

  .gh-stat {
    padding: 12px 8px
  }

  .gh-stat-n {
    font-size: 17px
  }

  .gh-stat-l {
    font-size: 8.5px
  }

  .gh-lnk-btn {
    font-size: 12.5px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 9px
  }

  .langs-box {
    padding: 14px;
    border-radius: 12px
  }

  .langs-title {
    font-size: 11px;
    margin-bottom: 10px
  }

  .lang-bar {
    height: 7px;
    margin-bottom: 12px
  }

  .lang-row {
    font-size: 11px
  }

  /* EXPERIENCE */
  .exp-layout {
    display: flex;
    flex-direction: column;
    gap: 0
  }

  .exp-list,
  .cert-list {
    gap: 1px
  }

  .exp-card:first-child {
    border-radius: 14px 14px 0 0
  }

  .exp-card:last-child {
    border-radius: 0 0 14px 14px
  }

  .cert-card:first-child {
    border-radius: 14px 14px 0 0
  }

  .cert-card:last-child {
    border-radius: 0 0 14px 14px
  }

  .exp-card {
    padding: 16px 13px;
    gap: 10px
  }

  .exp-dot {
    width: 9px;
    height: 9px
  }

  .exp-role {
    font-size: 13px
  }

  .exp-org {
    font-size: 11.5px
  }

  .exp-date {
    font-size: 10px;
    margin-bottom: 6px
  }

  .exp-desc {
    font-size: 12px;
    line-height: 1.55
  }

  .cert-card {
    padding: 13px 14px;
    gap: 10px
  }

  .cert-ico {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 9px;
    flex-shrink: 0
  }

  .cert-name {
    font-size: 12.5px
  }

  .cert-org {
    font-size: 11px;
    margin-bottom: 4px
  }

  /* CONTACT */
  .contact-shell {
    padding: 24px 14px;
    border-radius: 14px
  }

  .c-glow-a,
  .c-glow-b {
    display: none
  }

  .contact-cols {
    gap: 28px
  }

  .contact-h {
    font-size: 28px;
    line-height: 1.08;
    margin-bottom: 10px
  }

  .contact-sub {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 22px
  }

  .c-links {
    gap: 7px
  }

  .c-link {
    padding: 11px 12px;
    border-radius: 10px;
    gap: 10px
  }

  .c-link-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0
  }

  .c-link-ico svg {
    width: 16px;
    height: 16px
  }

  .c-link-lbl {
    font-size: 12.5px
  }

  .c-link-val {
    font-size: 10px
  }

  .c-link-arr {
    font-size: 13px
  }

  .c-form {
    gap: 7px;
    margin-top: 0
  }

  .f-row {
    grid-template-columns: 1fr;
    gap: 7px
  }

  .form-input {
    font-size: 14px;
    padding: 11px 12px;
    border-radius: 9px
  }

  textarea.form-input {
    min-height: 100px
  }

  .f-btn {
    font-size: 14px;
    padding: 12px;
    border-radius: 9px
  }

  /* FOOTER */
  .f-brand {
    justify-content: center
  }

  .f-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px
  }

  .f-links a,
  .f-copy {
    font-size: 11px
  }

  .f-name {
    font-size: 12.5px
  }

  #stt {
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 10px
  }
}

/* ── Small Android ≤390px ── */
@media(max-width:390px) {
  .sec {
    padding: 44px 13px
  }

  #hero {
    padding: 66px 13px 40px
  }

  nav {
    padding: 0 12px
  }

  h1 {
    font-size: 28px
  }

  .sec-h {
    font-size: 22px
  }

  .pw {
    width: min(148px, 44vw);
    height: min(185px, 55vw)
  }

  .sk-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px
  }

  .sk-card {
    padding: 11px 4px
  }

  .sk-card i {
    font-size: 22px
  }

  .sk-card span {
    font-size: 9px
  }

  .stat-n {
    font-size: 18px
  }

  .stat {
    padding: 11px 5px
  }

  .contact-h {
    font-size: 24px
  }

  .btn-p,
  .btn-s,
  .btn-cv {
    padding: 12px 14px;
    font-size: 13px
  }

  .proj-card {
    padding: 16px 12px
  }

  .edu-card {
    padding: 14px 12px
  }

  .exp-card {
    padding: 13px 11px
  }

  .contrib-cell {
    width: 7px;
    height: 7px
  }

  .contrib-box {
    padding: 11px 9px
  }
}

/* ── Cursor ── */
@media(min-width:768px) {
  body {
    cursor: none
  }
}

@media(max-width:767px) {
  body {
    cursor: auto
  }

  #cur-r,
  #cur-d {
    display: none
  }
}

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  background: #050507;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  transition: opacity .5s ease, visibility .5s ease
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.loader-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 48px rgba(79, 142, 247, .4);
  animation: loader-pulse 1.4s ease-in-out infinite
}

.loader-bar {
  width: 160px;
  height: 2px;
  background: var(--s3);
  border-radius: 2px;
  overflow: hidden
}

.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: 2px;
  animation: loader-fill 1.2s ease forwards
}

.loader-txt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: .12em;
  text-transform: uppercase
}

@keyframes loader-pulse {

  0%,
  100% {
    box-shadow: 0 0 48px rgba(79, 142, 247, .4)
  }

  50% {
    box-shadow: 0 0 72px rgba(155, 114, 247, .6)
  }
}

@keyframes loader-fill {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

/* ── Active Nav ── */
.n-links a.active {
  color: var(--t1);
  background: rgba(255, 255, 255, .07);
  position: relative
}

.n-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px
}

/* ── Scroll To Top ── */
#stt {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--s3);
  border: 1px solid var(--ln2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 400;
  opacity: 0;
  transform: translateY(12px);
  transition: all .3s var(--ease);
  color: var(--t2)
}

#stt.show {
  opacity: 1;
  transform: translateY(0)
}

#stt:hover {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(79, 142, 247, .4)
}