/* ═══════════════════════════════════════════════════
   HAFIZ AL ASAD PORTFOLIO — STYLE.CSS v3
   Font: Google Sans | Theme: Lavender Professional
═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --p: #7c6ef7;
  --p2: #a89cf8;
  --p3: #5a4ed4;
  --p4: #ede9fe;
  --acc: #4ecdc4;
  --acc2: #f7c948;
  --bg: #f4f2ff;
  --bg2: #edeafd;
  --bg3: #faf9ff;
  --surf: #ffffff;
  --sf2: #f7f5ff;
  --tx: #1a1535;
  --tx2: #4a4468;
  --tx3: #8b84aa;
  --bdr: rgba(124, 110, 247, .15);
  --sh: 0 8px 32px rgba(124, 110, 247, .12);
  --sh2: 0 20px 60px rgba(124, 110, 247, .18);
  --r: 16px;
  --rs: 8px;
  --rl: 24px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: 'Google Sans', sans-serif;
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font);
  background: var(--bg3);
  color: var(--tx);
  overflow-x: hidden;
  line-height: 1.7
}

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

::-webkit-scrollbar-track {
  background: var(--bg)
}

::-webkit-scrollbar-thumb {
  background: var(--p);
  border-radius: 3px
}

/* ── UTILS ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem
}

.section {
  padding: 7rem 0
}

.stitle {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--tx);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .02em
}

.stitle em {
  font-style: normal;
  color: var(--p)
}

.stitle.center {
  text-align: center
}

.slabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--p);
  background: rgba(124, 110, 247, .1);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
  border: 1px solid rgba(124, 110, 247, .2)
}

.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--p);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-family: var(--font);
  font-weight: 500;
  font-size: .92rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .3s var(--ease)
}

.btn-p:hover {
  background: var(--p3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 110, 247, .35)
}

.btn-p.full {
  width: 100%;
  justify-content: center
}

.btn-o {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--p);
  border: 2px solid var(--p);
  border-radius: var(--r);
  font-family: var(--font);
  font-weight: 500;
  font-size: .92rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .3s var(--ease)
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease)
}

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

.rd {
  transition-delay: .15s
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(244, 242, 255, .88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
  transition: padding .3s var(--ease)
}

.navbar.scrolled {
  padding: .8rem 3rem;
  box-shadow: var(--sh)
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tx)
}

.nav-logo span {
  color: var(--p)
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem
}

.nav-links a {
  text-decoration: none;
  color: var(--tx2);
  font-weight: 400;
  font-size: .92rem;
  transition: color .2s;
  position: relative
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--p);
  border-radius: 2px;
  transition: right .3s var(--ease)
}

.nav-links a:hover {
  color: var(--p)
}

.nav-links a:hover::after {
  right: 0
}

.nav-cta {
  padding: 9px 22px;
  background: var(--p);
  color: #fff;
  border-radius: var(--r);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .3s var(--ease)
}

.nav-cta:hover {
  background: var(--p3)
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--tx);
  cursor: pointer
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0820 0%, #1a1040 40%, #0d1a3a 100%);
  padding-top: 80px
}

#cubeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .9);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 1.2rem
}

.bdot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .4)
  }

  50% {
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0)
  }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: #fff
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--p2) 0%, var(--acc) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero-title span {
  color: rgba(255, 255, 255, .75);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400
}

.hero-sub {
  color: rgba(255, 255, 255, .65);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 480px
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.2rem
}

.spill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 100px;
  color: rgba(255, 255, 255, .8);
  font-size: .83rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .3s var(--ease)
}

.spill:hover {
  background: rgba(124, 110, 247, .3);
  border-color: var(--p2);
  color: #fff;
  transform: translateY(-2px)
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.5rem
}

.hbadge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(124, 110, 247, .2);
  border: 1px solid rgba(124, 110, 247, .4);
  color: var(--p2);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap
}

/* orbit */
.hero-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(124, 110, 247, .3);
  animation: spin 20s linear infinite
}

.r1 {
  width: 340px;
  height: 340px
}

.r2 {
  width: 420px;
  height: 420px;
  border-style: dotted;
  animation-direction: reverse;
  animation-duration: 30s
}

@keyframes spin {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

.orb-icon {
  position: absolute;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--p2);
  border: 1px solid rgba(124, 110, 247, .3);
  animation: orbSpin 20s linear infinite
}

.oi1 {
  animation-delay: 0s
}

.oi2 {
  animation-delay: -5s
}

.oi3 {
  animation-delay: -10s
}

.oi4 {
  animation-delay: -15s
}

@keyframes orbSpin {
  0% {
    transform: rotate(0deg) translateX(170px) rotate(0deg)
  }

  100% {
    transform: rotate(360deg) translateX(170px) rotate(-360deg)
  }
}

.photo-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(124, 110, 247, .5);
  box-shadow: 0 0 40px rgba(124, 110, 247, .3);
  z-index: 2;
  position: relative
}

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

/* hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  padding-bottom: 1rem
}

.hstat {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r);
  padding: 1.4rem;
  text-align: center;
  transition: transform .3s var(--ease)
}

.hstat:hover {
  transform: translateY(-4px);
  background: rgba(124, 110, 247, .15)
}

.hstat b {
  font-size: 2rem;
  font-weight: 700;
  color: var(--p2)
}

.hstat sup {
  font-size: 1rem;
  color: var(--p2)
}

.hstat p {
  color: rgba(255, 255, 255, .55);
  font-size: .8rem;
  margin-top: 4px
}

/* hero action buttons — sit below stats */
.hero-actions-wrap {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
  padding-top: .8rem
}

/* ── ABOUT ── */
.about {
  background: var(--surf)
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem
}

.about-left p {
  color: var(--tx2);
  margin-bottom: 1rem
}

.atags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem
}

.atags span {
  background: var(--p4);
  color: var(--p3);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
  border: 1px solid rgba(124, 110, 247, .2)
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.spec-card {
  background: var(--sf2);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease)
}

.spec-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--p);
  border-radius: 3px 0 0 3px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s var(--ease)
}

.spec-card:hover {
  transform: translateX(6px);
  box-shadow: var(--sh)
}

.spec-card:hover::before {
  transform: scaleY(1)
}

.sc-num {
  position: absolute;
  top: .8rem;
  right: .8rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(124, 110, 247, .07);
  line-height: 1
}

.sc-top {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .6rem
}

.sc-ico {
  width: 38px;
  height: 38px;
  background: var(--p4);
  border-radius: var(--rs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p);
  font-size: 1rem;
  flex-shrink: 0
}

.sc-photo {
  width: 38px;
  height: 38px;
  border-radius: var(--rs);
  object-fit: cover;
  flex-shrink: 0
}

.spec-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: .3rem
}

.spec-card p {
  color: var(--tx3);
  font-size: .85rem;
  line-height: 1.6
}

/* ── SKILLS ── */
.skills-sec {
  background: var(--bg);
  position: relative;
  overflow: hidden
}

.skills-bg {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.skblob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25
}

.sk1 {
  width: 400px;
  height: 400px;
  background: var(--p);
  top: -100px;
  right: -100px
}

.sk2 {
  width: 300px;
  height: 300px;
  background: var(--acc);
  bottom: -80px;
  left: -50px
}

.cube-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem
}

/* ── CSS 3D CUBE ── */
.css-cube-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  height: 280px
}

.css-cube-scene {
  width: 200px;
  height: 200px;
  perspective: 600px
}

.css-cube {
  width: 180px;
  height: 180px;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeRotateY 12s linear infinite
}

@keyframes cubeRotateY {
  0% {
    transform: rotateX(15deg) rotateY(0deg)
  }

  100% {
    transform: rotateX(15deg) rotateY(360deg)
  }
}

.css-face {
  position: absolute;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1.5px solid rgba(124, 110, 247, .4);
  border-radius: 14px;
  font-size: 2rem;
}

.css-face span {
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600
}

.css-front {
  background: rgba(124, 110, 247, .18);
  color: #7c6ef7;
  transform: translateZ(90px)
}

.css-back {
  background: rgba(78, 205, 196, .18);
  color: #4ecdc4;
  transform: rotateY(180deg) translateZ(90px)
}

.css-left {
  background: rgba(247, 201, 72, .18);
  color: #b8860b;
  transform: rotateY(-90deg) translateZ(90px)
}

.css-right {
  background: rgba(90, 78, 212, .18);
  color: #5a4ed4;
  transform: rotateY(90deg) translateZ(90px)
}

.css-top {
  background: rgba(168, 156, 248, .18);
  color: #7c6ef7;
  transform: rotateX(90deg) translateZ(90px)
}

.css-bottom {
  background: rgba(244, 67, 54, .12);
  color: #e53935;
  transform: rotateX(-90deg) translateZ(90px)
}

/* glossy highlight on each face */
.css-face::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none
}

.cube-hint {
  color: var(--tx3);
  font-size: .75rem;
  text-align: center
}

/* skill bars */
.skillbars {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  position: relative;
  z-index: 1
}

.skcat h4 {
  font-size: .88rem;
  font-weight: 600;
  color: var(--tx);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: 7px
}

.skcat h4 i {
  color: var(--p)
}

.skbar {
  margin-bottom: .7rem
}

.skl {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: .8rem;
  color: var(--tx2);
  font-weight: 500
}

.bar {
  height: 5px;
  background: rgba(124, 110, 247, .12);
  border-radius: 100px;
  overflow: hidden
}

.fill {
  height: 100%;
  background: linear-gradient(90deg, var(--p) 0%, var(--acc) 100%);
  border-radius: 100px;
  width: 0%;
  transition: width 1.2s var(--ease)
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2.5rem;
  justify-content: center;
  position: relative;
  z-index: 1
}

.tpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: 100px;
  padding: 7px 15px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--tx2);
  transition: all .3s var(--ease);
  cursor: default
}

.tpill i {
  color: var(--p);
  font-size: .82rem
}

.tpill:hover {
  background: var(--p4);
  border-color: var(--p);
  color: var(--p);
  transform: translateY(-2px)
}

/* ── PROJECTS ── */
.projects-sec {
  background: var(--surf)
}

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

.filters {
  display: flex;
  gap: .5rem
}

.fbtn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--bdr);
  background: transparent;
  color: var(--tx2);
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s;
  font-family: var(--font)
}

.fbtn.active,
.fbtn:hover {
  background: var(--p);
  color: #fff;
  border-color: var(--p)
}

.proj-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem
}

.empty-projects {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--tx3)
}

.empty-projects i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block
}

.proj-card {
  background: var(--sf2);
  border: 1px solid var(--bdr);
  border-radius: var(--rl);
  overflow: hidden;
  display: flex;
  transition: all .3s var(--ease)
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh2)
}

.proj-img {
  width: 320px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative
}

.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease)
}

.proj-card:hover .proj-img img {
  transform: scale(1.05)
}

.proj-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--p);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px
}

.proj-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column
}

.proj-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: .5rem
}

.proj-body p {
  color: var(--tx3);
  font-size: .88rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.2rem
}

.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.2rem
}

.proj-tech span {
  background: var(--p4);
  color: var(--p3);
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px
}

.proj-links {
  display: flex;
  gap: .7rem
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: var(--rs);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s;
  font-family: var(--font)
}

.proj-link.live {
  background: var(--p);
  color: #fff
}

.proj-link.live:hover {
  background: var(--p3)
}

.proj-link.github {
  background: transparent;
  color: var(--tx2);
  border: 1px solid var(--bdr)
}

.proj-link.github:hover {
  border-color: var(--p);
  color: var(--p)
}

.loader {
  width: 36px;
  height: 36px;
  border: 3px solid var(--p4);
  border-top-color: var(--p);
  border-radius: 50%;
  animation: spin2 .8s linear infinite;
  margin: 0 auto
}

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

/* ── CERTS ── */
.certs-sec {
  background: var(--bg)
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem
}

.cert-card {
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 1.6rem;
  display: flex;
  gap: 1rem;
  transition: all .3s var(--ease)
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh)
}

.cico {
  width: 48px;
  height: 48px;
  background: var(--p4);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p);
  font-size: 1.2rem;
  flex-shrink: 0
}

.cbody {
  flex: 1
}

.cissuer {
  font-size: .73rem;
  color: var(--tx3);
  margin-bottom: .3rem
}

.cbody h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: .3rem;
  line-height: 1.3
}

.cbody p {
  color: var(--tx3);
  font-size: .8rem;
  line-height: 1.5;
  margin-bottom: .5rem
}

.cdate {
  font-size: .73rem;
  font-weight: 600;
  color: var(--p);
  background: var(--p4);
  padding: 3px 10px;
  border-radius: 100px
}

/* ── CONTACT ── */
.contact-sec {
  background: var(--surf)
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem
}

.cintro {
  color: var(--tx2);
  margin-bottom: 1.8rem;
  font-size: 1rem
}

.citems {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 1.8rem
}

.citem {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.1rem;
  background: var(--sf2);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: all .3s
}

.citem:hover {
  border-color: var(--p);
  transform: translateX(4px)
}

.ciico {
  width: 38px;
  height: 38px;
  background: var(--p4);
  border-radius: var(--rs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p);
  flex-shrink: 0
}

.citem span {
  display: block;
  font-size: .73rem;
  color: var(--tx3)
}

.citem strong {
  color: var(--tx);
  font-size: .88rem
}

.csocials {
  display: flex;
  gap: .7rem
}

.csocials a {
  width: 40px;
  height: 40px;
  background: var(--sf2);
  border: 1px solid var(--bdr);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx2);
  text-decoration: none;
  transition: all .3s
}

.csocials a:hover {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
  transform: translateY(-2px)
}

.cform {
  display: flex;
  flex-direction: column;
  gap: 1.1rem
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem
}

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

.fg label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--tx2)
}

.fg input,
.fg textarea {
  padding: 11px 15px;
  background: var(--sf2);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--tx);
  outline: none;
  transition: border-color .3s;
  resize: vertical
}

.fg input:focus,
.fg textarea:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(124, 110, 247, .1)
}

.fsuccess {
  padding: .9rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r);
  color: #16a34a;
  font-size: .85rem;
  text-align: center
}

/* ── FOOTER ── */
.footer {
  background: var(--tx);
  padding: 2.5rem 0
}

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

.flogo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff
}

.flogo span {
  color: var(--p2)
}

.footer-tagline {
  color: rgba(255, 255, 255, .45);
  font-size: .8rem;
  margin-top: 3px
}

.footer-copy {
  color: rgba(255, 255, 255, .4);
  font-size: .82rem
}

.fright {
  display: flex;
  align-items: center;
  gap: .8rem
}

.fright a {
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  transition: color .3s
}

.fright a:hover {
  color: var(--p2)
}

/* ── ADMIN ── */
body.admin-body-bg {
  background: var(--bg)
}

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 8, 32, .92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px)
}

.login-card {
  background: var(--surf);
  border-radius: var(--rl);
  padding: 3rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--sh2);
  border: 1px solid var(--bdr);
  text-align: center
}

.lock-icon {
  width: 60px;
  height: 60px;
  background: var(--p4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p);
  font-size: 1.5rem;
  margin: 0 auto 1.2rem
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: .3rem
}

.login-card p {
  color: var(--tx3);
  font-size: .85rem;
  margin-bottom: 1.8rem
}

.login-err {
  color: #dc2626;
  font-size: .8rem;
  margin-top: .5rem;
  display: none
}

.admin-nav {
  background: var(--surf);
  border-bottom: 1px solid var(--bdr);
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100
}

.anlogo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tx)
}

.anlogo span {
  color: var(--p)
}

.admin-body {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem 4rem
}

.admin-tabs {
  display: flex;
  gap: .4rem;
  margin-bottom: 2rem;
  flex-wrap: wrap
}

.atab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--bdr);
  background: transparent;
  color: var(--tx2);
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s;
  font-family: var(--font)
}

.atab.active {
  background: var(--p);
  color: #fff;
  border-color: var(--p)
}

.tab-content {
  display: none
}

.tab-content.active {
  display: block
}

.acard {
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: var(--rl);
  padding: 1.8rem;
  margin-bottom: 1.5rem
}

.acard h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 1.3rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  gap: .5rem
}

.acard h3 i {
  color: var(--p)
}

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

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

.fg.full {
  grid-column: 1/-1
}

/* admin form fields */
.afg {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem
}

.afg label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--tx2)
}

.afg input,
.afg textarea,
.afg select {
  padding: 9px 13px;
  background: var(--sf2);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  font-family: var(--font);
  font-size: .88rem;
  color: var(--tx);
  outline: none;
  transition: border-color .3s;
  width: 100%
}

.afg input:focus,
.afg textarea:focus,
.afg select:focus {
  border-color: var(--p)
}

/* keep global .fg working in admin too */
.admin-body .fg {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem
}

.admin-body .fg label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--tx2)
}

.admin-body .fg input,
.admin-body .fg textarea,
.admin-body .fg select {
  padding: 9px 13px;
  background: var(--sf2);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  font-family: var(--font);
  font-size: .88rem;
  color: var(--tx);
  outline: none;
  transition: border-color .3s;
  width: 100%
}

.admin-body .fg input:focus,
.admin-body .fg textarea:focus {
  border-color: var(--p)
}

.btn-row {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  align-items: center
}

.img-preview {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bdr);
  margin-top: .4rem
}

.img-prev-rect {
  border-radius: var(--rs);
  width: 120px;
  height: 80px
}

.upload-area {
  border: 2px dashed var(--bdr);
  border-radius: var(--r);
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  background: var(--sf2)
}

.upload-area:hover {
  border-color: var(--p);
  background: var(--p4)
}

.upload-area i {
  font-size: 1.5rem;
  color: var(--tx3);
  display: block;
  margin-bottom: .4rem
}

.upload-area p {
  color: var(--tx3);
  font-size: .8rem
}

.upload-area input {
  display: none
}

.sortable-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 1.2rem
}

.sort-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--sf2);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: .8rem 1rem;
  cursor: grab;
  transition: all .3s
}

.sort-item:active {
  cursor: grabbing;
  opacity: .7
}

.sort-item.dragging {
  opacity: .4
}

.sort-item.drag-over {
  border-color: var(--p);
  background: var(--p4)
}

.drag-handle {
  color: var(--tx3);
  font-size: .9rem;
  cursor: grab
}

.sort-item img {
  width: 40px;
  height: 30px;
  border-radius: var(--rs);
  object-fit: cover;
  flex-shrink: 0
}

.si-info {
  flex: 1;
  min-width: 0
}

.si-info strong {
  font-size: .88rem;
  color: var(--tx);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.si-info span {
  font-size: .75rem;
  color: var(--tx3)
}

.si-actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0
}

.btn-sm {
  padding: 6px 14px;
  font-size: .78rem
}

.btn-edit {
  background: var(--p4);
  color: var(--p3);
  border: none;
  border-radius: var(--rs);
  padding: 5px 12px;
  font-size: .75rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all .3s
}

.btn-edit:hover {
  background: var(--p);
  color: #fff
}

.btn-del {
  background: #fef2f2;
  color: #dc2626;
  border: none;
  border-radius: var(--rs);
  padding: 5px 10px;
  font-size: .75rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all .3s
}

.btn-del:hover {
  background: #dc2626;
  color: #fff
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: .85rem;
  font-weight: 500;
  box-shadow: var(--sh2);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all .4s var(--ease);
  color: #fff
}

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

.toast.ok {
  background: #16a34a
}

.toast.err {
  background: #dc2626
}

.toast.info {
  background: var(--tx)
}

/* inline input groups for contact editor */
.inline-row {
  display: flex;
  gap: .6rem;
  align-items: flex-end;
  margin-bottom: .9rem;
  flex-wrap: wrap;
  padding: .9rem;
  background: var(--sf2);
  border: 1px solid var(--bdr);
  border-radius: var(--r)
}

.inline-row .afg {
  margin-bottom: 0;
  flex: 1;
  min-width: 120px
}

.section-note {
  font-size: .8rem;
  color: var(--tx3);
  margin-bottom: 1rem;
  line-height: 1.5;
  background: var(--p4);
  padding: .7rem 1rem;
  border-radius: var(--rs);
  border-left: 3px solid var(--p)
}

.bar-group {
  padding: 1rem;
  background: var(--sf2);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  margin-bottom: 1rem
}

.bar-group-header {
  display: flex;
  gap: .6rem;
  align-items: flex-end;
  margin-bottom: .8rem
}

.bar-group-header .afg {
  margin-bottom: 0
}

.bar-item-row {
  display: flex;
  gap: .6rem;
  align-items: flex-end;
  margin-bottom: .5rem
}

.bar-item-row .afg {
  margin-bottom: 0;
  flex: 1
}

.bar-item-row .afg:last-child {
  max-width: 80px
}

/* ── RESPONSIVE ── */
@media(max-width:900px) {
  .navbar {
    padding: 1rem 1.5rem
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surf);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--bdr);
    gap: 1rem;
    box-shadow: var(--sh)
  }

  .nav-links.open {
    display: flex
  }

  .burger {
    display: block
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem
  }

  .hero-text {
    order: 2
  }

  .hero-photo-wrap {
    order: 1;
    height: 300px
  }

  .r1 {
    width: 240px;
    height: 240px
  }

  .r2 {
    width: 300px;
    height: 300px
  }

  .photo-frame {
    width: 200px;
    height: 200px
  }

  @keyframes orbSpin {
    0% {
      transform: rotate(0deg) translateX(120px) rotate(0deg)
    }

    100% {
      transform: rotate(360deg) translateX(120px) rotate(-360deg)
    }
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr)
  }

  /* center all hero elements on mobile */
  .hero-badge {
    justify-content: center
  }

  .hero-socials {
    justify-content: center
  }

  .hero-badges {
    justify-content: center
  }

  .hero-actions-wrap {
    justify-content: center
  }

  .hero-sub {
    margin: 0 auto 1.5rem
  }

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

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

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

  .frow {
    grid-template-columns: 1fr
  }

  .proj-card {
    flex-direction: column
  }

  .proj-img {
    width: 100%;
    height: 200px
  }

  .ag2,
  .ag3 {
    grid-template-columns: 1fr
  }
}

@media(max-width:600px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr
  }

  .section {
    padding: 4rem 0
  }

  .certs-grid {
    grid-template-columns: 1fr
  }

  .proj-header {
    flex-direction: column;
    align-items: flex-start
  }
}