/* ========================================
   PORTFOLIO — MODERN ELEGANT DESIGN
   Font: Sora (headings) + Inter (body)
   Theme: Dark-first with light toggle
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* =============== TOKENS =============== */
:root {
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---- Dark (default) ---- */
[data-theme="dark"] {
  --c-bg:        #0a0a0f;
  --c-surface:   #111118;
  --c-surface-2: #191920;
  --c-border:    rgba(255,255,255,.06);
  --c-text:      #e4e4e7;
  --c-text-2:    #9494a0;
  --c-heading:   #f4f4f6;
  --c-accent:    #818cf8;       /* indigo-400 */
  --c-accent-2:  #6366f1;      /* indigo-500 */
  --c-glow:      rgba(129,140,248,.15);
  --shadow-card: 0 2px 24px rgba(0,0,0,.35);
  --shadow-btn:  0 4px 20px rgba(129,140,248,.25);
}

/* ---- Light ---- */
[data-theme="light"] {
  --c-bg:        #f8f8fc;
  --c-surface:   #ffffff;
  --c-surface-2: #f0f0f6;
  --c-border:    rgba(0,0,0,.06);
  --c-text:      #3a3a4a;
  --c-text-2:    #7a7a8c;
  --c-heading:   #111118;
  --c-accent:    #6366f1;
  --c-accent-2:  #4f46e5;
  --c-glow:      rgba(99,102,241,.08);
  --shadow-card: 0 2px 20px rgba(0,0,0,.06);
  --shadow-btn:  0 4px 20px rgba(99,102,241,.18);
}

/* =============== RESET =============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}
/* Subtle noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
h1,h2,h3,h4 { font-family: var(--font-heading); color: var(--c-heading); font-weight: 700; line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
::selection { background: var(--c-accent); color: #fff; }

/* =============== UTILITIES =============== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* =============== SECTION TITLE =============== */
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 56px;
  text-align: center;
}
.section-title span {
  background: linear-gradient(135deg, var(--c-accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: all .3s ease;
}
.btn--fill {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(129,140,248,.35);
}
.btn--outline {
  border: 1.5px solid var(--c-border);
  color: var(--c-text);
  background: var(--c-surface);
}
.btn--outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
}
.btn--block { width: 100%; justify-content: center; }

/* =============== HEADER — Floating Toolbar =============== */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 900;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 14px 20px 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.header.header--hidden {
  transform: translateY(calc(-100% - 20px));
}

/* The floating bar */
.header__bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px 6px;
  border-radius: 100px;
  pointer-events: auto;
  background: rgba(15,15,22,.6);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 4px 24px rgba(0,0,0,.25),
    0 1px 3px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.04);
  transition: background .35s ease, border-color .35s ease,
              box-shadow .35s ease, transform .3s ease;
}
.header.scrolled .header__bar {
  background: rgba(15,15,22,.75);
  border-color: rgba(255,255,255,.1);
  box-shadow:
    0 8px 32px rgba(0,0,0,.35),
    0 2px 6px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.06);
}
[data-theme="light"] .header__bar {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.06);
  box-shadow:
    0 4px 24px rgba(0,0,0,.06),
    0 1px 3px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.8);
}
[data-theme="light"] .header.scrolled .header__bar {
  background: rgba(255,255,255,.82);
  box-shadow:
    0 8px 32px rgba(0,0,0,.08),
    0 2px 6px rgba(0,0,0,.05);
}

/* Nav inside bar */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
  position: relative;
}
[data-theme="light"] .nav__link {
  color: rgba(0,0,0,.45);
}
.nav__link:hover {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.06);
}
[data-theme="light"] .nav__link:hover {
  color: rgba(0,0,0,.85);
  background: rgba(0,0,0,.04);
}
.nav__link.active {
  color: #fff;
  font-weight: 600;
  background: rgba(255,255,255,.1);
}
[data-theme="light"] .nav__link.active {
  color: var(--c-accent);
  background: var(--c-glow);
}

/* Separator */
.header__sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.12);
  margin: 0 4px 0 6px;
  flex-shrink: 0;
}
[data-theme="light"] .header__sep {
  background: rgba(0,0,0,.1);
}

/* Theme Toggle */
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.45);
  font-size: 16px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, transform .4s ease;
}
[data-theme="light"] .theme-toggle {
  color: rgba(0,0,0,.4);
}
.theme-toggle:hover {
  color: var(--c-accent);
  background: rgba(255,255,255,.08);
  transform: rotate(180deg);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(0,0,0,.05);
}

/* Mobile theme toggle */
.theme-toggle--mobile {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  font-size: 18px;
}
.theme-toggle--mobile:hover {
  border-color: var(--c-accent);
}

/* — Hamburger (2 lines → X) — */
.hamburger {
  display: none;
  position: fixed;
  top: 16px; right: 20px;
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(15,15,22,.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  pointer-events: auto;
  align-items: center;
  transition: background .3s ease, border-color .3s ease;
}
[data-theme="light"] .hamburger {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.06);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--c-heading);
  border-radius: 2px;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.hamburger span:first-child { width: 18px; }
.hamburger span:last-child  { width: 12px; }
.hamburger:hover { border-color: var(--c-accent); }
.hamburger:hover span { background: var(--c-accent); }
.hamburger:hover span:last-child { width: 18px; }
.hamburger.active span:first-child {
  width: 18px;
  transform: rotate(45deg) translate(3px, 3px);
}
.hamburger.active span:last-child {
  width: 18px;
  transform: rotate(-45deg) translate(3px, -3px);
}
.hamburger.active span { background: var(--c-accent); }

/* =============== MOBILE NAV — Fullscreen =============== */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

/* Close button */
.mobile-nav__close {
  position: absolute;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-heading);
  font-size: 22px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
  z-index: 10;
}
.mobile-nav__close:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
  background: var(--c-glow);
}

/* Links */
.mobile-nav__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mobile-nav__link {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--c-text-2);
  padding: 10px 28px;
  border-radius: 14px;
  transition: color .2s ease, background .2s ease,
              transform .35s ease, opacity .35s ease;
  transform: translateY(20px);
  opacity: 0;
}
.mobile-nav.open .mobile-nav__link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav__link:hover {
  color: var(--c-accent);
  background: var(--c-glow);
}

/* Footer: socials + theme toggle */
.mobile-nav__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease .3s, transform .4s ease .3s;
}
.mobile-nav.open .mobile-nav__footer {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav__socials {
  display: flex;
  gap: 10px;
}
.mobile-nav__socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--c-text-2);
  transition: all .25s ease;
}
.mobile-nav__socials a:hover {
  color: #fff;
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(129,140,248,.3);
}

/* =============== HERO =============== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-accent) 0%, transparent 70%);
  opacity: .06;
  top: -200px; right: -200px;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
  opacity: .04;
  bottom: -100px; left: -100px;
  pointer-events: none;
  animation: glowPulse 10s 2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: .06; }
  50% { transform: scale(1.2); opacity: .12; }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.4); }
  50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero__title strong {
  background: linear-gradient(135deg, var(--c-accent), #a78bfa, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__title em {
  font-style: normal;
  color: var(--c-accent);
}
.hero__text {
  font-size: 16px;
  color: var(--c-text-2);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Photo */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__photo-wrapper {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__photo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-accent) 0%, transparent 70%);
  opacity: .12;
  animation: hero-glow 4s ease-in-out infinite;
  z-index: 0;
}
@keyframes hero-glow {
  0%, 100% { opacity: .12; transform: scale(1); }
  50% { opacity: .22; transform: scale(1.06); }
}
.hero__photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border: 3px solid transparent;
  background-image: linear-gradient(var(--c-surface), var(--c-surface)),
                    linear-gradient(135deg, var(--c-accent), #a78bfa, #f0abfc);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 40px rgba(129,140,248,.2), 0 0 80px rgba(129,140,248,.08);
  animation: photo-float 6s ease-in-out infinite;
}
@keyframes photo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* Decorative rings */
.hero__photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--c-border);
  z-index: 1;
}
.hero__photo-ring--1 {
  inset: -10px;
  animation: ring-spin 25s linear infinite;
}
.hero__photo-ring--2 {
  inset: -30px;
  animation: ring-spin 40s linear infinite reverse;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* Floating badges */
.hero__float-badge {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  display: grid; place-items: center;
  font-size: 20px;
  color: var(--c-accent);
  box-shadow: var(--shadow-card);
  z-index: 3;
  animation: badge-float 5s ease-in-out infinite;
}
.hero__float-badge--1 {
  top: 15px; right: 0px;
  animation-delay: 0s;
}
.hero__float-badge--2 {
  bottom: 30px; left: -5px;
  animation-delay: 1.5s;
}
.hero__float-badge--3 {
  bottom: 5px; right: 20px;
  animation-delay: 3s;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-cue__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.1%{ transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============== ABOUT =============== */
.about {
  padding: 120px 0;
}

/* Main layout: photo left, info right */
.about__layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}

/* Photo column */
.about__photo-col {
  position: relative;
}
.about__photo {
  width: 260px;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border: 3px solid transparent;
  background-image: linear-gradient(var(--c-surface), var(--c-surface)),
                    linear-gradient(135deg, var(--c-accent), #a78bfa);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow-card), 0 0 40px rgba(129,140,248,.08);
  transition: transform .4s ease, box-shadow .4s ease;
}
.about__photo:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-card), 0 8px 40px rgba(129,140,248,.15);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* Decorative accent bar behind photo */
.about__photo-accent {
  position: absolute;
  top: 20px;
  left: -12px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 2px solid var(--c-accent);
  opacity: .2;
  z-index: 1;
  transition: opacity .3s ease, transform .3s ease;
}
.about__photo-col:hover .about__photo-accent {
  opacity: .35;
  transform: translate(-2px, 2px);
}

/* Info column */
.about__info-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about__bio p {
  font-size: 16px;
  color: var(--c-text-2);
  margin-bottom: 14px;
  line-height: 1.8;
}
.about__bio p:last-child { margin-bottom: 0; }
.about__bio strong { color: var(--c-heading); }

/* Stat cards row */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  border-left: 3px solid var(--c-accent);
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(129,140,248,.04), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(129,140,248,.15);
  border-left-color: var(--c-accent);
}
.stat-card:hover::before { opacity: 1; }
.stat-card__number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  min-width: 40px;
}
.stat-card__number span {
  font-size: 20px;
}
.stat-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.stat-card__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-heading);
  line-height: 1.3;
}
.stat-card__sub {
  font-size: 12px;
  color: var(--c-text-2);
  line-height: 1.3;
}

/* =============== EXPERIENCE =============== */
.experience {
  padding: 120px 0;
  background: var(--c-surface);
}

/* Card grid */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Experience card */
.exp-card {
  padding: 32px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all .4s ease;
  display: flex;
  flex-direction: column;
}
.exp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), #a78bfa, var(--c-accent));
  opacity: 0;
  transition: opacity .35s ease;
}
.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(129,140,248,.08);
  border-color: rgba(129,140,248,.12);
}
.exp-card:hover::before { opacity: 1; }

/* Top row: number + status */
.exp-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.exp-card__num {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: .25;
}
.exp-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  color: var(--c-text-2);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
}
.exp-card__status i { font-size: 13px; }
.exp-card__status--active {
  color: #34d399;
  background: rgba(52,211,153,.08);
  border-color: rgba(52,211,153,.2);
}

/* Role */
.exp-card__role {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Company */
.exp-card__company {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--c-accent);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
}
.exp-card__company i {
  font-size: 15px;
  flex-shrink: 0;
}

/* Date */
.exp-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-2);
  margin-bottom: 20px;
}
.exp-card__date i {
  font-size: 14px;
  color: var(--c-accent);
}

/* Tasks */
.exp-card__tasks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex-grow: 1;
}
.exp-card__tasks li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 8px;
}
.exp-card__tasks li:last-child { margin-bottom: 0; }
.exp-card__tasks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: .5;
}

/* Tags */
.exp-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.exp-card__tags span {
  padding: 4px 12px;
  background: var(--c-glow);
  color: var(--c-accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}

/* =============== SKILLS =============== */
.skills {
  padding: 120px 0;
  background: var(--c-surface);
}
.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.skill-category--wide {
  grid-column: 1 / -1;
}

.skill-category {
  padding: 32px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.skill-category::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(129,140,248,.03), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
}
.skill-category:hover {
  border-color: rgba(129,140,248,.12);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.skill-category:hover::before { opacity: 1; }
.skill-category h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--c-accent);
}
.skill-category h3 i { font-size: 20px; }
.skill-category__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-heading);
  transition: all .25s ease;
}
.skill-item:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--c-glow);
}
.skill-item img {
  width: 22px; height: 22px;
  object-fit: contain;
  border-radius: 4px;
}

/* =============== PROJECTS =============== */
.projects {
  padding: 120px 0;
}

/* Filters */
.projects__filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: all .25s ease;
}
.filter-btn:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-btn);
}

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

/* Card */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all .4s ease;
  position: relative;
}
/* Shine sweep on hover */
.card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  transition: none;
  z-index: 3;
  pointer-events: none;
}
.card:hover::after {
  left: 130%;
  transition: left .7s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(129,140,248,.1);
  border-color: rgba(129,140,248,.15);
}
.card__img {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card__img img { transform: scale(1.08); }

/* Overlay with links */
.card__actions {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(10,10,15,.7) 100%);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity .35s ease;
}
.card:hover .card__actions { opacity: 1; }
.card__actions a {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center;
  color: #fff;
  font-size: 20px;
  transition: all .3s ease;
  transform: translateY(12px);
}
.card:hover .card__actions a { transform: translateY(0); }
.card:hover .card__actions a:nth-child(2) { transition-delay: .05s; }
.card__actions a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: scale(1.15) translateY(0) !important;
  box-shadow: 0 0 20px rgba(129,140,248,.3);
}

/* Card body */
.card__body { padding: 20px 24px 24px; }
.card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--c-glow);
  color: var(--c-accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.card__body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.card__body p {
  font-size: 14px;
  color: var(--c-text-2);
  margin-bottom: 14px;
  line-height: 1.5;
}
.card__tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.card__tech span {
  padding: 4px 10px;
  background: var(--c-surface-2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-2);
}

/* =============== CV DOWNLOAD CTA =============== */
.cv-cta {
  padding: 80px 0;
}
.cv-cta__card {
  position: relative;
  padding: 60px 40px;
  border-radius: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  overflow: hidden;
  text-align: center;
  transition: all .4s ease;
}
.cv-cta__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(129,140,248,.1);
  border-color: rgba(129,140,248,.15);
}
.cv-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-accent) 0%, transparent 70%);
  opacity: .06;
  pointer-events: none;
  animation: cv-glow 6s ease-in-out infinite;
}
@keyframes cv-glow {
  0%, 100% { opacity: .06; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .12; transform: translate(-50%, -50%) scale(1.15); }
}
.cv-cta__content {
  position: relative;
  z-index: 2;
}
.cv-cta__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--c-accent), #a78bfa);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(129,140,248,.3);
  animation: icon-float 4s ease-in-out infinite;
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.cv-cta__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cv-cta__title span {
  background: linear-gradient(135deg, var(--c-accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cv-cta__text {
  font-size: 16px;
  color: var(--c-text-2);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.cv-cta__btn {
  padding: 16px 36px;
  font-size: 16px;
  gap: 10px;
}
.cv-cta__btn i {
  font-size: 20px;
  transition: transform .3s ease;
}
.cv-cta__btn:hover i {
  transform: translateY(2px);
}

/* Floating shapes */
.cv-cta__shape {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(129,140,248,.2);
  pointer-events: none;
  z-index: 1;
}
.cv-cta__shape--1 {
  width: 120px;
  height: 120px;
  top: -30px;
  right: 60px;
  animation: ring-spin 20s linear infinite;
}
.cv-cta__shape--2 {
  width: 80px;
  height: 80px;
  bottom: -20px;
  left: 80px;
  animation: ring-spin 15s linear infinite reverse;
}
.cv-cta__shape--3 {
  width: 50px;
  height: 50px;
  top: 30px;
  left: 40px;
  border-style: solid;
  border-color: rgba(167,139,250,.15);
  animation: ring-spin 25s linear infinite;
}

/* =============== CONTACT =============== */
.contact {
  padding: 120px 0;
  background: var(--c-surface);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact__lead {
  font-size: 18px;
  color: var(--c-text-2);
  margin-bottom: 36px;
  line-height: 1.7;
}
.contact__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  margin-bottom: 14px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.contact__link::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c-accent);
  transform: scaleY(0);
  transition: transform .3s ease;
}
.contact__link:hover {
  border-color: rgba(129,140,248,.15);
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
}
.contact__link:hover::before { transform: scaleY(1); }
.contact__link i {
  font-size: 24px;
  color: var(--c-accent);
  flex-shrink: 0;
  transition: transform .3s ease;
}
.contact__link:hover i { transform: scale(1.1); }
.contact__link small {
  display: block;
  font-size: 12px;
  color: var(--c-text-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.contact__link span {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-heading);
}

/* Form */
.contact__form {
  padding: 36px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 20px;
}
.input-group {
  position: relative;
  margin-bottom: 24px;
}
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 16px 18px;
  padding-top: 24px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-heading);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.input-group label {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 14px;
  color: var(--c-text-2);
  pointer-events: none;
  transition: all .2s ease;
}
.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-glow);
}
/* Float label */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 11px;
  color: var(--c-accent);
  font-weight: 600;
}

/* =============== FOOTER =============== */
.footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--c-border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer p {
  font-size: 14px;
  color: var(--c-text-2);
}
.footer strong { color: var(--c-heading); }
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 14px;
  color: var(--c-text-2);
  transition: color .25s;
  position: relative;
}
.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--c-accent);
  transition: width .25s ease;
}
.footer__links a:hover { color: var(--c-accent); }
.footer__links a:hover::after { width: 100%; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-accent);
  font-size: 20px;
  display: grid; place-items: center;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn);
}

/* =============== SCROLL REVEAL =============== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays for grouped items */
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .4s; }
.reveal:nth-child(7) { transition-delay: .48s; }
.reveal:nth-child(8) { transition-delay: .56s; }
.reveal:nth-child(9) { transition-delay: .64s; }

@media (max-width: 1024px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .about__stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header__bar { display: none; }
  .hamburger { display: flex; }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero__visual { order: -1; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__buttons { justify-content: center; }
  .hero__photo-wrapper { width: 300px; height: 300px; }
  .hero__photo { width: 240px; height: 240px; }
  .hero__float-badge { width: 40px; height: 40px; font-size: 16px; }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__photo-col { display: flex; justify-content: center; }
  .about__photo { width: 200px; height: 260px; }
  .about__photo-accent { display: none; }
  .about__stats { grid-template-columns: 1fr; }
  .stat-card { gap: 12px; }

  .skills__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }

  .section-title { margin-bottom: 40px; }
  .about, .skills, .projects, .contact, .experience { padding: 80px 0; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-card { padding: 24px; }
}

@media (max-width: 480px) {
  .hero__buttons { flex-direction: column; align-items: center; }
  .hero__buttons .btn { width: 100%; justify-content: center; }
  .hero__photo-wrapper { width: 260px; height: 260px; }
  .hero__photo { width: 210px; height: 210px; }
  .about__photo { width: 180px; height: 240px; }
  .contact__form { padding: 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
}