/* ===================================================
   Ahmed Eltantawi — Portfolio
   Inspired by Folio design
   =================================================== */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --purple: #5E4BCA;
  --purple-dark: #4A38B0;
  --purple-light: #7C6FE6;
  --beige: #F3EBE3;
  --blue: #3146FF;
  --orange: #FF6B00;
  --gold: #E8A824;
  --pink: #F2C4D0;
  --pink-block: #E8B4C8;
  --light-cube: #D6D0F0;
  --white: #FFFFFF;
  --black: #1A1A2E;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --font: 'Poppins', sans-serif;
  --radius: 16px;
  --radius-lg: 28px;
  --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
}

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

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

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

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

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

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- UTILITY ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.7);
}

.label-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--blue);
}

.label-line--light {
  background: rgba(255, 255, 255, 0.4);
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 30px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 10px 20px rgba(49, 70, 255, 0.3);
  cursor: pointer;
  animation: floatBtn 3.5s ease-in-out infinite;
}

@keyframes floatBtn {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 20px rgba(49, 70, 255, 0.3); }
  50% { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(49, 70, 255, 0.4); }
}

.btn-primary:hover {
  background: var(--purple-dark);
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 35px rgba(26, 26, 46, 0.3);
  color: var(--white);
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(243, 235, 227, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.header__left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 3px;
}

.logo__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 50%, var(--orange) 50%);
  position: relative;
}

.header__social {
  display: flex;
  gap: 20px;
}

.header__social a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray);
  transition: color var(--transition);
}

.header__social a:hover {
  color: var(--black);
}

.header__social svg {
  flex-shrink: 0;
}

/* hamburger */
.hamburger {
  width: 36px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger span:first-child {
  width: 100%;
}

.hamburger span:last-child {
  width: 60%;
  margin-left: auto;
}

.hamburger.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
  background: #fff;
}

.hamburger.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 100%;
  background: #fff;
}

/* ---------- MENU OVERLAY ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--purple);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.menu-link {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  transition: opacity var(--transition);
}

.menu-link:hover {
  opacity: 0.6;
}

.menu-overlay__footer {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 32px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.menu-overlay__footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.menu-overlay__footer a:hover {
  color: #fff;
}

/* ---------- HERO (VIDEO REPLICA) ---------- */
.hero {
  min-height: calc(100vh - 60px);
  position: relative;
  overflow: hidden;
  background: var(--beige);
  margin-top: 60px;
  /* Base light background */
}

/* The solid purple block dropping on the right */
.hero__bg-purple {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  /* Covers almost half */
  height: 100%;
  background: var(--purple-light);
  border-bottom-left-radius: 60px;
  /* Optional slight rounding or hard edge, going with a slight soft edge */
  z-index: 1;
}

.hero__content {
  position: absolute;
  top: 47%;
  left: 10%;
  transform: translateY(-50%);
  width: min(50%, 680px);
  z-index: 20;
  /* Overlaps both beige and purple */
  pointer-events: none;
  /* Let clicks pass through */
}

/* Allow clicking the CV button inside hero content */
.hero-cv-btn-container {
  pointer-events: auto;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.hero__heading {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--black);
  letter-spacing: -2.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hero__heading-hello {
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--gray);
  display: block;
  margin-bottom: 4px;
}

.hero__heading-ahmed {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.scroll-indicator {
  position: relative;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--gray);
  z-index: 20;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-indicator__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scrollBounce 2.5s infinite ease-in-out;
}

/* ---------- NEW HERO 3D IMAGE & SPHERES ---------- */
.hero__visual {
  position: absolute;
  top: 53%;
  right: 0;
  width: 48%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  z-index: 5;
}

/* ============ ISOMETRIC 3D SCENE ============ */
.iso-wrapper {
  perspective: 2000px;
  width: 100%;
  max-width: 600px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iso-scene {
  position: relative;
  width: 400px;
  height: 400px;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: scale(1.6) rotateX(60deg) rotateZ(45deg);
  /* Calm floating for the whole scene */
  animation: sceneFloat 10s ease-in-out infinite alternate;
}

@keyframes sceneFloat {
  0% { transform: scale(1.6) rotateX(60deg) rotateZ(45deg) translateZ(-10px); }
  100% { transform: scale(1.6) rotateX(60deg) rotateZ(45deg) translateZ(10px); }
}

/* Base structural classes */
.iso-loc {
  position: absolute;
  top: 0; left: 0;
  transform-style: preserve-3d;
  transform: translate3d(var(--tx), var(--ty), var(--tz));
}

.iso-prism {
  position: absolute;
  top: 0; left: 0;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
}

.iso-prism .face {
  position: absolute;
  /* Soft lighting simulation (ambient + diffused) */
}

.iso-prism .top {
  width: 100%; height: 100%;
  background: var(--c-top);
  transform: translateZ(var(--d));
  box-shadow: inset -5px -5px 15px rgba(0,0,0,0.05), inset 5px 5px 15px rgba(255,255,255,0.1);
}

.iso-prism .left {
  width: 100%; height: var(--d);
  background: var(--c-left);
  top: 100%; left: 0;
  transform-origin: top;
  transform: rotateX(90deg);
}

.iso-prism .right {
  width: var(--d); height: 100%;
  background: var(--c-right);
  top: 0; left: 100%;
  transform-origin: left;
  transform: rotateY(-90deg);
}

/* Spheres */
.iso-sphere {
  position: absolute;
  width: var(--s);
  height: var(--s);
  margin-top: calc(var(--s) / -2);
  margin-left: calc(var(--s) / -2);
  border-radius: 50%;
  /* Counter-rotate to face camera */
  transform: rotateZ(-45deg) rotateX(-60deg);
}

.central-sphere {
  background: radial-gradient(circle at 35% 25%, #FFB775, #FF8A29, #D94600);
  box-shadow: inset -10px -10px 20px rgba(0,0,0,0.3);
}

/* Specific elements */
.iso-shadow {
  position: absolute;
  background: rgba(0,0,0,0.4);
}

.cube-shadow {
  width: var(--w); height: var(--h); 
  transform: translateZ(-10px) translate(5px, 5px); 
  filter: blur(8px); 
  opacity: 0.2;
}

.iso-hole {
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #0B0416;
  box-shadow: inset 8px 8px 15px rgba(0,0,0,0.8), inset -2px -2px 5px rgba(255,255,255,0.05);
}

/* Animations (Soft, Organic, Continuous Loops) */
.iso-bounce {
  transform-style: preserve-3d;
  animation: bounceAnim 2.4s infinite;
}
@keyframes bounceAnim {
  0% { transform: translateZ(0) scaleZ(0.85); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); } /* squash and shoot up */
  50% { transform: translateZ(120px) scaleZ(1.05); animation-timing-function: cubic-bezier(0.8, 0, 0.8, 0.2); } /* peak and fall down */
  100% { transform: translateZ(0) scaleZ(0.85); }
}

.iso-bounce-shadow {
  transform-style: preserve-3d;
  animation: shadowPulse 2.4s infinite;
}
@keyframes shadowPulse {
  0% { transform: scale(1); opacity: 0.6; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
  50% { transform: scale(0.5); opacity: 0.1; animation-timing-function: cubic-bezier(0.8, 0, 0.8, 0.2); }
  100% { transform: scale(1); opacity: 0.6; }
}

.iso-float-1 { transform-style: preserve-3d; animation: floatIso 4s ease-in-out infinite alternate; }
.iso-float-2 { transform-style: preserve-3d; animation: floatIso 5s ease-in-out infinite alternate 1.5s; }
.iso-float-3 { transform-style: preserve-3d; animation: floatIso 4.5s ease-in-out infinite alternate 0.7s; }
.iso-float-slow { transform-style: preserve-3d; animation: floatIso 8s ease-in-out infinite alternate; }

@keyframes floatIso {
  0% { transform: translateZ(0); }
  100% { transform: translateZ(30px); }
}

.iso-roll {
  transform-style: preserve-3d;
  animation: rollAnim 4s ease-in-out infinite alternate;
}
@keyframes rollAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(30px); }
}

.iso-drift-1 {
  transform-style: preserve-3d;
  animation: driftAnim 8s ease-in-out infinite alternate;
}
.iso-drift-2 {
  transform-style: preserve-3d;
  animation: driftAnim2 10s ease-in-out infinite alternate;
}

@keyframes driftAnim {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-30px, 20px); }
}

@keyframes driftAnim2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, -10px); }
}

/* ---------- SERVICES (WHAT I DO & SKILLS OVERLAPPING SECTION) ---------- */
.services {
  padding: 160px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services__intro {
  text-align: center;
  max-width: 800px;
  margin-bottom: 20px;
  /* Reduced to pull cards closer */
  z-index: 10;
}

.services__tagline {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--black);
  letter-spacing: -2px;
  margin-bottom: 30px;
}

.services__desc {
  font-size: 1.3rem;
  color: var(--gray);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* Staggered overlapping grid (USING FLEXBOX TO PREVENT OVERFLOW) */
.services__grid {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-bottom: 60px;
  /* Ensure space before the next section */
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  width: 320px;
  height: 430px;
  /* Fixed equal height for all cards */
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06), 0 10px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 60px rgba(94, 75, 202, 0.15), 0 15px 30px rgba(0, 0, 0, 0.06);
  z-index: 20;
}

.service-card:hover .service-icon {
  transform: scale(1.08) translateY(-8px);
}

.service-card:hover h3 {
  color: var(--blue);
}

/* Specific Margins to replicate video stagger dynamically */
.sc-1 {
  margin-top: -80px;
  z-index: 2;
}

.sc-2 {
  z-index: 5;
  width: 380px;
  /* Center card is larger */
  margin: 0 -30px;
  /* Overlap adjacent cards slightly */
}

.sc-3 {
  margin-top: 80px;
  z-index: 3;
}

/* Base text formatting inside cards */
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--black);
  letter-spacing: -0.5px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* 3D Geometric Floating Icons */
.service-icon {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 30px;
  perspective: 800px;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The Yellow Ring (3D Torus-like) */
.geo-ring {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 120px;
  height: 120px;
  border: 24px solid var(--gold);
  border-radius: 50%;
  transform: rotateX(60deg) rotateY(20deg);
  box-shadow: inset 0 8px 15px rgba(0, 0, 0, 0.3), 0 15px 25px rgba(0, 0, 0, 0.3), inset 0 -3px 8px rgba(255, 255, 255, 0.5);
  animation: floatRing 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.geo-ring::before {
  content: '';
  position: absolute;
  top: -24px;
  left: -24px;
  right: -24px;
  bottom: -24px;
  border: 12px solid #FFD166;
  border-radius: 50%;
  transform: translateZ(12px);
  opacity: 0.8;
}

.geo-ring::after {
  content: '';
  position: absolute;
  top: -24px;
  left: -24px;
  right: -24px;
  bottom: -24px;
  border: 12px solid #C28913;
  border-radius: 50%;
  transform: translateZ(-12px);
  opacity: 0.6;
}

/* The Blue Sphere (Enhanced 3D Depth) */
.geo-sphere {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 35% 25%, #8FABFF 0%, var(--blue) 40%, #1A28A8 90%);
  border-radius: 50%;
  box-shadow: inset -15px -15px 25px rgba(0, 0, 0, 0.4), inset 5px 5px 15px rgba(255, 255, 255, 0.8), 0 20px 40px rgba(49, 70, 255, 0.5);
  animation: floatSphere 5s ease-in-out infinite;
}

/* The Pink Pyramid (True 3D) */
.geo-pyramid {
  position: absolute;
  top: 20px;
  left: 30px;
  width: 80px;
  height: 80px;
  transform-style: preserve-3d;
  animation: floatPyramid 7s ease-in-out infinite;
  transform: rotateX(-20deg) rotateY(45deg);
}

.geo-pyramid__face {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 90px solid;
  transform-origin: bottom center;
}

.geo-pyramid__face--front {
  border-bottom-color: var(--pink-block);
  transform: translateZ(40px) rotateX(25deg);
}

.geo-pyramid__face--back {
  border-bottom-color: #D4a0b4;
  transform: translateZ(-40px) rotateX(-25deg);
}

.geo-pyramid__face--left {
  border-bottom-color: var(--pink);
  transform: translateX(-40px) rotateY(-90deg) rotateX(25deg);
}

.geo-pyramid__face--right {
  border-bottom-color: #C0809C;
  transform: translateX(40px) rotateY(90deg) rotateX(25deg);
}

.geo-pyramid__base {
  position: absolute;
  bottom: 0;
  width: 80px;
  height: 80px;
  background: #A0607C;
  transform: rotateX(90deg) translateZ(-45px);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

@keyframes floatRing {

  0%,
  100% {
    transform: rotateX(60deg) rotateY(20deg) translateY(0) scale(1);
  }

  50% {
    transform: rotateX(70deg) rotateY(30deg) translateY(-30px) scale(1.1);
  }
}

@keyframes floatSphere {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.15);
  }
}

@keyframes floatPyramid {

  0%,
  100% {
    transform: rotateX(-20deg) rotateY(45deg) translateY(0) scale(1);
  }

  50% {
    transform: rotateX(-10deg) rotateY(135deg) translateY(-30px) scale(1.1);
  }
}

/* ---------- TOOLS & SKILLS ---------- */
.tools {
  padding: 60px 40px;
  background: var(--bg-dark);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tools__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 50px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  cursor: pointer;
  min-width: 110px;
  position: relative;
  overflow: hidden;
}

.tool-item img, .tool-item svg {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.tool-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(94, 75, 202, 0.05), rgba(49, 70, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-item:hover::before {
  opacity: 1;
}

.tool-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 40px rgba(94, 75, 202, 0.12);
  border-color: rgba(94, 75, 202, 0.3);
}

.tool-item:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.tool-item svg {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.tool-item span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.tool-item:hover span {
  color: var(--blue);
}

/* ---------- EXPERIENCE (FLOATING BLOB SECTION) ---------- */
.experience {
  /* No solid background, it floats over the document flow */
  position: relative;
  z-index: 15;
  padding: 0 40px;
  margin-top: 40px;
  /* Removed negative margin to prevent overlapping cards */
  margin-bottom: 150px;
}

.experience__container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

/* The massive purple blob */
.exp-blob {
  background: var(--purple-light);
  border-radius: 60px;
  padding: 100px 80px;
  position: relative;
  box-shadow: 0 40px 100px rgba(94, 75, 202, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.exp-blob__header {
  grid-column: 1;
}

.experience__title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.experience__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 400px;
}

.experience__list {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.exp-item {
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 24px;
  position: relative;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 15px var(--orange);
}

.exp-item__header {
  margin-bottom: 8px;
}

.exp-item h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.exp-item__date {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.exp-item__org {
  margin-bottom: 12px;
}

.exp-item__org a {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  transition: opacity var(--transition);
}

.exp-item__org a:hover {
  opacity: 0.7;
}

.exp-item__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 3D Accents around the Experience Blob */
.exp-accent {
  position: absolute;
  pointer-events: none;
  z-index: 20;
}

.orange-sphere-exp {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFB070, var(--orange));
  box-shadow: 0 20px 40px rgba(255, 107, 0, 0.4);
  top: -60px;
  right: -40px;
  animation: floatSphere 6s ease-in-out infinite;
}

.c-white-exp {
  width: 80px;
  height: 80px;
  bottom: -40px;
  left: 60px;
  transform-style: preserve-3d;
  transform: rotateX(60deg) rotateZ(45deg);
  animation: floatRing 8s ease-in-out infinite;
}

.c-white-exp .face {
  position: absolute;
}

.c-white-exp .top {
  width: 100%;
  height: 100%;
  background: #FFF;
}

.c-white-exp .left {
  width: 80px;
  height: 100%;
  transform: rotateY(-90deg) translateZ(40px);
  left: -40px;
  background: #E5E7EB;
}

.c-white-exp .right {
  width: 100%;
  height: 80px;
  transform: rotateX(-90deg) translateZ(40px);
  bottom: -40px;
  background: #D1D5DB;
}

/* ---------- PROJECTS ---------- */
.projects {
  padding: 140px 60px;
  background: var(--white);
  position: relative;
  z-index: 10;
}

.projects__inner {
  max-width: 1300px;
  margin: 0 auto;
}

.projects__title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 60px;
  color: var(--black);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding-top: 28px;
}

.project-card {
  background: var(--beige);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  border: none;
  position: relative;
  overflow: visible;
}

/* Floating thumbnail in top-right corner */
.project-card__image {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 110px;
  height: 110px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  z-index: 10;
  background: #1a1a2e;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.08);
}

/* Body holds text content and actions */
.project-card__body {
  padding: 36px 130px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.project-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-light);
  letter-spacing: 2px;
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  min-height: calc(1.2rem * 1.35 * 2);
}

.project-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.65;
  flex: 1;
}

.project-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-card__tags span {
  background: rgba(94, 75, 202, 0.1);
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.project-card__arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 1.2rem;
  color: var(--purple-light);
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}

.project-card:hover .project-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Action buttons row (GitHub + Download APK) */
.project-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.btn-project {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-project:hover {
  transform: translateY(-2px);
}

/* GitHub button — dark */
.btn-github {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26, 26, 46, 0.25);
}

.btn-github:hover {
  background: #2d2d4a;
  box-shadow: 0 8px 20px rgba(26, 26, 46, 0.35);
  color: var(--white);
}

/* Download APK button — purple accent */
.btn-apk {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(94, 75, 202, 0.3);
}

.btn-apk:hover {
  background: var(--purple-dark);
  box-shadow: 0 8px 20px rgba(94, 75, 202, 0.45);
  color: var(--white);
}

/* ---------- EDUCATION ---------- */
.education {
  padding: 140px 60px;
  background: var(--beige);
}

.education__inner {
  max-width: 1300px;
  margin: 0 auto;
}

.education__title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 60px;
  color: var(--black);
}

.edu-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.edu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  border: none;
}

.edu-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.edu-card__badge {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.edu-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.edu-card__org {
  margin-bottom: 8px;
}

.edu-card__org a {
  color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
  transition: color var(--transition);
}

.edu-card__org a:hover {
  color: var(--purple);
}

.edu-card__date {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 16px;
}

.edu-card__desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ---------- AWARDS & CERTIFICATES ---------- */
.awards {
  padding: 100px 60px;
  background: var(--white);
}

.awards__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.awards__section {
  margin-bottom: 60px;
}

.awards__section:last-child {
  margin-bottom: 0;
}

.award-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.award-card {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border: 2px solid transparent;
}

.award-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(232, 168, 36, 0.1);
}

.award-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.award-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.award-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
}

/* cert grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cert-card {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border: 2px solid transparent;
  position: relative;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(49, 70, 255, 0.08);
}

.cert-card__provider {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cert-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.cert-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cert-card:hover .cert-card__arrow {
  opacity: 1;
}

/* ---------- VOLUNTEERING ---------- */
.volunteering {
  padding: 80px 60px;
  background: var(--beige);
}

.volunteering__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.vol-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 2px solid transparent;
  transition: transform 0.4s ease, border-color 0.4s ease;
  max-width: 600px;
}

.vol-card:hover {
  border-color: var(--pink-block);
  transform: translateY(-4px);
}

.vol-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.vol-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.vol-card h3 a {
  color: var(--blue);
  transition: color var(--transition);
}

.vol-card h3 a:hover {
  color: var(--purple);
}

.vol-card__date {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 12px;
}

.vol-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 160px 60px;
  background: var(--white);
}

.contact__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__heading {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
}

.contact__info {
  margin-bottom: 40px;
}

.contact__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-light);
}

.contact__item:first-child {
  border-top: 1px solid var(--gray-light);
}

.contact__item-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
  margin-bottom: 4px;
}

.contact__item a,
.contact__item span {
  font-size: 1rem;
  font-weight: 500;
}

.contact__item a {
  transition: color var(--transition);
}

.contact__item a:hover {
  color: var(--blue);
}

.contact__socials {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--beige);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

.social-link:hover svg {
  fill: #fff;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px 60px;
  background: var(--beige);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

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

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

.footer__copy {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ---------- GSAP animation classes ---------- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(-40px);
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(40px);
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.9);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero {
    background: var(--white);
    min-height: auto;
    margin-top: 0;
    padding-top: 88px;
  }

  .hero__bg-purple {
    width: 100%;
    height: 42%;
    border-bottom-left-radius: 40px;
  }

  .hero__content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding: 0 40px 40px;
  }

  .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    min-height: 420px;
    padding: 36px 24px 48px;
    overflow: hidden;
  }

  .iso-wrapper {
    height: 420px;
    max-width: 100%;
  }

  .services {
    padding: 120px 32px 100px;
  }

  .services__grid {
    max-width: 760px;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 0;
  }

  .service-card,
  .sc-2 {
    width: calc(50% - 12px);
    min-width: 280px;
    margin: 0;
  }

  .sc-1,
  .sc-3 {
    margin-top: 0;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exp-blob {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 48px;
  }

  .exp-blob__header,
  .experience__list {
    grid-column: 1;
  }

  .projects {
    padding: 120px 40px;
  }

  .projects__grid {
    gap: 28px;
  }

  .education,
  .awards,
  .contact {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 76px;
  }

  .header {
    padding: 16px 18px;
  }

  .header__social {
    display: none;
  }

  .logo__text {
    letter-spacing: 2px;
    font-size: 0.82rem;
  }

  .menu-overlay {
    padding: 96px 24px 32px;
    justify-content: space-between;
  }

  .menu-overlay__nav {
    width: 100%;
    gap: 14px;
  }

  .menu-overlay__footer {
    width: 100%;
    align-items: center;
    text-align: center;
    word-break: break-word;
  }

  .menu-overlay__footer a {
    font-size: 0.95rem;
  }

  .hero__content {
    padding: 0 24px 20px;
  }

  .hero__heading {
    font-size: 2.4rem;
    letter-spacing: -1.5px;
  }

  .hero__label {
    margin-bottom: 20px;
  }

  .scroll-indicator {
    display: none;
  }

  .hero__visual {
    min-height: 280px;
    padding: 8px 0 12px;
  }

  .iso-wrapper {
    height: 250px;
    width: 100%;
    overflow: visible;
  }

  .services {
    padding: 88px 24px;
  }

  .services__tagline {
    font-size: 2.8rem;
  }

  .services__desc {
    font-size: 1rem;
  }

  .services__grid {
    gap: 18px;
  }

  .service-card,
  .sc-2 {
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 36px 28px;
  }

  .service-icon {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
  }

  .geo-ring,
  .geo-sphere {
    width: 96px;
    height: 96px;
  }

  .geo-ring {
    border-width: 18px;
  }

  .geo-pyramid {
    left: 18px;
    transform: scale(0.8) rotateX(-20deg) rotateY(45deg);
  }

  .tools {
    padding: 48px 20px;
  }

  .tools-grid {
    gap: 16px;
  }

  .tool-item {
    min-width: calc(50% - 8px);
    padding: 18px 12px;
  }

  .tool-item img,
  .tool-item svg {
    width: 48px;
    height: 48px;
  }

  .experience {
    padding: 0 24px;
    margin-bottom: 96px;
  }

  .exp-blob {
    border-radius: 36px;
    padding: 52px 28px;
    gap: 36px;
  }

  .experience__title {
    font-size: 2.2rem;
  }

  .experience__subtitle {
    font-size: 1rem;
  }

  .orange-sphere-exp,
  .c-white-exp {
    display: none;
  }

  .exp-item__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .projects {
    padding: 88px 24px;
  }

  .projects__title,
  .education__title,
  .contact__heading {
    font-size: 2.5rem;
  }

  .projects__grid,
  .edu-cards,
  .award-cards,
  .cert-grid,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .project-card {
    overflow: hidden;
  }

  .project-card__image {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 220px;
    border-radius: 22px 22px 0 0;
    box-shadow: none;
  }

  .project-card__body {
    padding: 24px;
  }

  .project-card h3 {
    min-height: 0;
  }

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

  .education {
    padding: 88px 24px;
  }

  .edu-card {
    padding: 36px 28px;
  }

  .awards {
    padding: 88px 24px;
  }

  .award-card,
  .cert-card {
    padding: 24px 20px;
  }

  .contact {
    padding: 88px 24px;
  }

  .contact__inner {
    gap: 40px;
  }

  .contact__socials {
    flex-wrap: wrap;
  }

  .social-link {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-width: 140px;
  }

  .footer {
    padding: 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .menu-link {
    font-size: 1.8rem;
  }

  .iso-scene {
    transform: scale(0.66) rotateX(60deg) rotateZ(45deg);
  }

  @keyframes sceneFloat {
    0% { transform: scale(0.66) rotateX(60deg) rotateZ(45deg) translateZ(-10px); }
    100% { transform: scale(0.66) rotateX(60deg) rotateZ(45deg) translateZ(10px); }
  }
}

@media (max-width: 480px) {
  .header {
    padding: 14px 14px;
  }

  .logo__text {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero__heading {
    font-size: 2rem;
  }

  .hero__visual {
    min-height: 220px;
    padding: 0;
  }

  .iso-wrapper {
    height: 210px;
  }

  .iso-scene {
    transform: scale(0.54) rotateX(60deg) rotateZ(45deg);
  }

  @keyframes sceneFloat {
    0% { transform: scale(0.54) rotateX(60deg) rotateZ(45deg) translateZ(-8px); }
    100% { transform: scale(0.54) rotateX(60deg) rotateZ(45deg) translateZ(8px); }
  }

  .services {
    padding: 72px 16px;
  }

  .services__tagline {
    font-size: 2rem;
  }

  .services__desc {
    font-size: 0.95rem;
  }

  .service-card,
  .sc-2,
  .edu-card,
  .award-card,
  .cert-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tool-item {
    min-width: 100%;
  }

  .experience {
    padding: 0 16px;
  }

  .exp-blob {
    padding: 40px 20px;
    border-radius: 28px;
  }

  .projects,
  .education,
  .awards,
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .projects__title,
  .education__title,
  .contact__heading {
    font-size: 2rem;
  }

  .project-card__image {
    height: 180px;
  }

  .project-card__body {
    padding: 20px;
  }

  .contact__socials {
    flex-direction: column;
  }

  .social-link {
    width: 100%;
  }
}
