:root {
  --bg:       #fefefe;
  --bg2:      #f3f0ff;
  --text:     #1a1025;
  --text2:    #5a4f72;
  --accent:   #7c3aed;
  --accent2:  #ec4899;
  --accent3:  #06b6d4;
  --accent4:  #f59e0b;
  --card-bg:  #ffffff;
  --border:   #e4d9f7;
  --nav-bg:   rgba(254,254,254,0.88);
  --shadow:   0 4px 32px rgba(124,58,237,0.12);
  --radius:   18px;
  --fd:       'Playfair Display', Georgia, serif;
  --fb:       'DM Sans', sans-serif;
  --fm:       'Space Mono', monospace;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
body.dark {
  --bg:      #0d0a1a;
  --bg2:     #130d2a;
  --text:    #f0eaff;
  --text2:   #a896cc;
  --accent:  #a78bfa;
  --accent2: #f472b6;
  --accent3: #22d3ee;
  --accent4: #fbbf24;
  --card-bg: #1a1230;
  --border:  #2d1f4e;
  --nav-bg:  rgba(13,10,26,0.94);
  --shadow:  0 4px 32px rgba(0,0,0,0.55);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  cursor: none;
}
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,var(--accent),var(--accent2)); border-radius: 3px; }

/* ─── CURSOR ─────────────────────────────────────────────── */
#cursor-glow {
  pointer-events: none; position: fixed;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.13) 0%, transparent 70%);
  transform: translate(-50%,-50%); z-index: 9997;
  mix-blend-mode: screen;
}
body.dark #cursor-glow {
  background: radial-gradient(circle, rgba(167,139,250,0.18) 0%, transparent 70%);
}
#cursor-dot {
  pointer-events: none; position: fixed;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%,-50%);
  z-index: 9999;
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), opacity 0.2s, box-shadow 0.2s;
}

/* ─── LOADER ─────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #070511;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-circles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.loader-circles div { position: absolute; border-radius: 50%; }
.loader-circles div:nth-child(1) {
  width: 700px; height: 700px; opacity: 0.12;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -250px; right: -200px; animation: lc1 8s ease-in-out infinite;
}
.loader-circles div:nth-child(2) {
  width: 550px; height: 550px; opacity: 0.1;
  background: radial-gradient(circle, #ec4899, transparent);
  bottom: -180px; left: -180px; animation: lc1 10s ease-in-out infinite reverse;
}
.loader-circles div:nth-child(3) {
  width: 400px; height: 400px; opacity: 0.08;
  background: radial-gradient(circle, #06b6d4, transparent);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: lc1 6s ease-in-out infinite 1s;
}
@keyframes lc1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(20px,-25px) scale(1.12); }
}
.loader-inner { position: relative; z-index: 1; text-align: center; }
.loader-logo {
  font-family: var(--fd); font-size: 5.5rem; font-weight: 700; color: #fff;
  letter-spacing: -3px; animation: logoPulse 2s ease-in-out infinite;
}
.loader-logo span { color: #a78bfa; }
@keyframes logoPulse {
  0%,100% { filter: drop-shadow(0 0 20px rgba(124,58,237,0.6)); }
  50%     { filter: drop-shadow(0 0 40px rgba(236,72,153,0.8)); }
}
.loader-bar-wrap {
  width: 240px; height: 2px; background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden; margin: 1.5rem auto 1rem;
}
.loader-bar {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, #7c3aed, #ec4899, #06b6d4, #7c3aed);
  background-size: 300% 100%;
  animation: barShift 2s linear infinite;
}
@keyframes barShift { to { background-position: -300% 0; } }
.loader-text {
  color: rgba(255,255,255,0.4); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--fm);
}

/* ─── SCROLL PROGRESS ────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9998;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #7c3aed, #ec4899, #06b6d4, #f59e0b);
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(124,58,237,0.7);
}

/* ─── PAGE TRANSITION OVERLAY ────────────────────────────── */
#page-transition {
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none; opacity: 0;
  transition: opacity 0.1s;
}
#page-transition.active { opacity: 1; pointer-events: all; }
#page-transition svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
#pt-path {
  fill: #0d0a1a;
  transition: d 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ─── NAV ────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(124,58,237,0.1); }
.nav-logo {
  font-family: var(--fd); font-size: 1.7rem; font-weight: 700;
  letter-spacing: -1px; cursor: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-a {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text2); position: relative; padding-bottom: 2px;
  transition: color 0.2s; cursor: none;
}
.nav-a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0) scaleY(0.5);
  transition: transform 0.3s var(--ease);
  transform-origin: left;
}
.nav-a:hover, .nav-a.active { color: var(--text); }
.nav-a:hover::after, .nav-a.active::after { transform: scaleX(1) scaleY(1); }
.nav-right { display: flex; align-items: center; gap: 0.7rem; }
#dark-toggle {
  background: none; border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px; cursor: none;
  font-size: 1rem; color: var(--text); transition: all 0.2s;
}
#dark-toggle:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: none; color: var(--text); }

/* ─── SECTION COMMON ─────────────────────────────────────── */
section { padding: 110px 8vw 90px; }
.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.5rem; font-family: var(--fm);
}
.section-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.08; margin-bottom: 3rem;
}

/* ─── 3D TILT ────────────────────────────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}
.tilt-shine {
  position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 2;
}

/* ─── HOME ───────────────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding-top: 80px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #070511 0%, #120b30 40%, #0b1528 70%, #160920 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; will-change: transform;
}
.hero-bg::before {
  content: ''; position: absolute;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.28) 0%, transparent 65%);
  top: -250px; right: -150px; animation: hBlob1 11s ease-in-out infinite;
}
.hero-bg::after {
  content: ''; position: absolute;
  width: 650px; height: 650px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.22) 0%, transparent 65%);
  bottom: -180px; left: -100px; animation: hBlob2 13s ease-in-out infinite;
}
.hero-orb {
  position: absolute; will-change: transform;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.16) 0%, transparent 70%);
  top: 55%; left: 42%; transform: translate(-50%,-50%);
  animation: hBlob1 15s ease-in-out infinite reverse;
  pointer-events: none;
}
@keyframes hBlob1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(-30px,25px) scale(1.08); }
  66%     { transform: translate(25px,-30px) scale(0.94); }
}
@keyframes hBlob2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(35px,-35px) scale(1.1); }
}
#hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-content {
  display: flex; align-items: center; gap: 6vw;
  max-width: 1100px; width: 100%;
  position: relative; z-index: 2;
}
.hero-photo-wrap {
  flex-shrink: 0; position: relative;
  width: 270px; height: 270px; will-change: transform;
}
.hero-photo-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  background: conic-gradient(from 0deg, #7c3aed, #ec4899, #06b6d4, #f59e0b, #7c3aed);
  animation: ringRotate 5s linear infinite;
  filter: blur(1px);
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
.hero-photo-placeholder {
  position: absolute; inset: 5px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899 50%, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-size: 4.5rem; font-weight: 700; color: #fff;
  border: 3px solid #070511;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.25);
}
.hero-text { will-change: transform; }
.hero-greeting { font-size: 1rem; color: #c4b5fd; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.hero-name {
  font-family: var(--fd);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700; line-height: 1.05; color: #fff; margin-bottom: 0.8rem;
}
.hero-name em { color: #f472b6; font-style: italic; }
.hero-tagline {
  font-size: 1rem; color: #a78bfa; margin-bottom: 1rem;
  min-height: 1.5rem; font-family: var(--fm);
}
.typed-cursor { color: #ec4899; animation: blink 0.7s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
.hero-intro {
  font-size: 0.98rem; line-height: 1.78;
  color: #c4b5fd; max-width: 500px; margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff; padding: 13px 30px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600; cursor: none;
  box-shadow: 0 4px 24px rgba(124,58,237,0.45);
  transition: box-shadow 0.2s, filter 0.2s;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.4rem;
  will-change: transform;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #ec4899, #7c3aed);
  opacity: 0; transition: opacity 0.3s;
  border-radius: inherit;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(124,58,237,0.6); filter: brightness(1.1); }
.btn-outline {
  border: 1.5px solid rgba(167,139,250,0.4); color: #e9d5ff;
  padding: 13px 30px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 500; cursor: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  will-change: transform;
}
.btn-outline:hover { border-color: #f472b6; color: #f472b6; box-shadow: 0 0 20px rgba(244,114,182,0.2); }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.22em; color: #a78bfa;
  text-transform: uppercase; animation: shBounce 2.5s ease-in-out infinite;
  font-family: var(--fm);
}
@keyframes shBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(8px); }
}

/* ─── ABOUT ──────────────────────────────────────────────── */
#about {
  background: linear-gradient(160deg, #f0f9ff 0%, #fdf4ff 50%, #fff7ed 100%);
  position: relative; overflow: hidden;
}
body.dark #about { background: linear-gradient(160deg, #0a1628 0%, #160a28 50%, #1a1008 100%); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.about-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.about-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.about-card:nth-child(1)::before { background: linear-gradient(90deg,#7c3aed,#06b6d4); }
.about-card:nth-child(2)::before { background: linear-gradient(90deg,#ec4899,#f59e0b); }
.about-card:nth-child(3)::before { background: linear-gradient(90deg,#06b6d4,#10b981); }
.about-card:nth-child(4)::before { background: linear-gradient(90deg,#f59e0b,#ef4444); }
.about-card:hover { box-shadow: var(--shadow); }
.about-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.about-card h3 { font-family: var(--fd); font-size: 1.2rem; margin-bottom: 0.7rem; }
.about-card p  { font-size: 0.9rem; line-height: 1.7; color: var(--text2); }
.about-card strong { color: var(--text); }

/* ─── SKILLS ─────────────────────────────────────────────── */
#skills {
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 40%, #eff6ff 100%);
}
body.dark #skills { background: linear-gradient(135deg, #1a0a18 0%, #130d2a 40%, #080e1a 100%); }
.skills-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.skill-item { margin-bottom: 1.5rem; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.skill-name { font-size: 0.9rem; font-weight: 500; }
.skill-pct  { font-size: 0.8rem; font-family: var(--fm); color: var(--accent); font-weight: 700; }
.skill-bar  { height: 8px; background: var(--border); border-radius: 8px; overflow: hidden; }
.skill-fill {
  height: 100%; width: 0%; border-radius: 8px;
  background: linear-gradient(90deg, var(--clr), color-mix(in srgb, var(--clr) 60%, #fff 40%));
  transition: width 1.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 8px var(--clr), 0 0 16px color-mix(in srgb, var(--clr) 40%, transparent);
}
.skills-tags-title { font-family: var(--fd); font-size: 1.2rem; margin-bottom: 1.2rem; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stag {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 500; color: var(--text2);
  transition: all 0.25s var(--ease); cursor: default; will-change: transform;
}
.stag:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 16px rgba(124,58,237,0.35);
}

/* ─── ACHIEVEMENTS ───────────────────────────────────────── */
#achievements {
  background: linear-gradient(135deg, #fff1f2 0%, #fdf4ff 50%, #eff6ff 100%);
}
body.dark #achievements { background: linear-gradient(135deg, #1a0810 0%, #160820 50%, #080e1a 100%); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.ach-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.ach-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.ach-card[data-category="coursera"]::before { background: linear-gradient(90deg,#7c3aed,#06b6d4); }
.ach-card[data-category="netcad"]::before   { background: linear-gradient(90deg,#06b6d4,#10b981); }
.ach-card[data-category="project"]::before  { background: linear-gradient(90deg,#ec4899,#f59e0b); }
.ach-card:hover { box-shadow: var(--shadow); }
.ach-badge {
  display: inline-block; background: var(--bg2); border: 1px solid var(--border);
  color: var(--accent); font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 0.8rem;
  font-family: var(--fm);
}
.ach-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.ach-card h3 { font-family: var(--fd); font-size: 1.1rem; margin-bottom: 0.3rem; }
.ach-org  { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 0.15rem; }
.ach-date { font-size: 0.74rem; color: var(--text2); margin-bottom: 0.8rem; font-family: var(--fm); }
.ach-desc { font-size: 0.86rem; line-height: 1.65; color: var(--text2); margin-bottom: 1rem; }
.ach-link { font-size: 0.82rem; font-weight: 600; color: var(--accent); transition: opacity 0.2s; }
.ach-link:hover { opacity: 0.65; }

/* ─── PROJECTS ───────────────────────────────────────────── */
#projects {
  background: linear-gradient(160deg, #f0fdf4 0%, #ecfeff 50%, #fef9c3 100%);
}
body.dark #projects { background: linear-gradient(160deg, #021a0c 0%, #021a1a 50%, #1a1500 100%); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }
.project-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  position: relative; transition: box-shadow 0.2s ease;
}
.project-glow {
  position: absolute; inset: -1px; border-radius: var(--radius);
  transition: opacity 0.35s ease; pointer-events: none; z-index: 0;
  box-shadow: 0 0 0px 0px var(--glow,#7c3aed);
  opacity: 0;
}
.project-card:hover .project-glow {
  opacity: 1;
  box-shadow: 0 0 40px 6px var(--glow,#7c3aed);
}
.project-thumb {
  height: 175px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-thumb-1 { background: linear-gradient(135deg,#1a1a2e,#312e81); }
.project-thumb-2 { background: linear-gradient(135deg,#0f3460,#7c3aed); }
.project-thumb-3 { background: linear-gradient(135deg,#7c3aed,#ec4899); }
.project-thumb-4 { background: linear-gradient(135deg,#064e3b,#10b981); }
.project-emoji { font-size: 3.2rem; position: relative; z-index: 1; transition: transform 0.35s var(--ease); }
.project-card:hover .project-emoji { transform: scale(1.2) rotate(-6deg); }
.project-thumb-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.project-card:hover .project-thumb-overlay { opacity: 1; }
.project-thumb-overlay span {
  color: #fff; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.6); padding: 6px 20px; border-radius: 50px;
}
.project-info { padding: 1.5rem; position: relative; z-index: 1; }
.project-info h3 { font-family: var(--fd); font-size: 1.1rem; margin-bottom: 0.6rem; }
.project-info p  { font-size: 0.86rem; line-height: 1.65; color: var(--text2); margin-bottom: 1rem; }
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-tags span {
  background: var(--bg2); border: 1px solid var(--border);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 20px; color: var(--text2);
  font-family: var(--fm);
}

/* ─── GALLERY ────────────────────────────────────────────── */
#gallery {
  background: linear-gradient(135deg, #fff1f2 0%, #fdf4ff 50%, #f0f9ff 100%);
}
body.dark #gallery { background: linear-gradient(135deg, #1a0810 0%, #160820 50%, #080e1a 100%); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.2rem; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: none; aspect-ratio: 4/3; border: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.gallery-item:hover { box-shadow: 0 12px 40px rgba(124,58,237,0.2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(124,58,237,0.8) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p { color: #fff; font-size: 0.85rem; font-weight: 600; }
.gallery-pdf .pdf-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: var(--bg2); gap: 0.5rem;
}
.gallery-pdf .pdf-placeholder span { font-size: 3rem; }
.gallery-pdf .pdf-placeholder p    { font-size: 0.85rem; font-weight: 500; text-align: center; }
.gallery-pdf .pdf-placeholder small{ font-size: 0.72rem; color: var(--text2); }
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.93);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem; padding: 2rem;
}
#lightbox.open { display: flex; }
#lb-img { max-height: 80vh; max-width: 90vw; border-radius: 8px; }
#lb-cap { color: #fff; font-size: 0.9rem; opacity: 0.65; text-align: center; }
.lb-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 1.2rem; width: 40px; height: 40px;
  border-radius: 50%; cursor: none; transition: background 0.2s;
}
.lb-close:hover { background: var(--accent); border-color: var(--accent); }

/* ─── CONTACT ────────────────────────────────────────────── */
#contact {
  background: linear-gradient(135deg,#1e1b4b 0%,#312e81 30%,#4c1d95 60%,#701a75 100%);
  text-align: center; position: relative; overflow: hidden;
}
#contact::before {
  content: ''; position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%); width: 700px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.2) 0%, transparent 70%);
  pointer-events: none;
}
#contact .section-label { color: #c4b5fd; }
#contact .section-title { color: #fff; }
.contact-sub { color: #c4b5fd; margin-bottom: 3rem; margin-top: -1.5rem; font-size: 1rem; }
.contact-cards { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.contact-card {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius);
  padding: 2rem 2.5rem; display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem; min-width: 180px; color: #fff;
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s;
  will-change: transform;
}
.contact-card:hover {
  box-shadow: 0 16px 48px rgba(236,72,153,0.35);
  border-color: rgba(244,114,182,0.5);
}
.cc-icon  { font-size: 2rem; }
.cc-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-family: var(--fm); }
.cc-value { font-size: 0.83rem; color: #f9a8d4; font-weight: 500; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  text-align: center; padding: 2.5rem;
  background: linear-gradient(135deg, #070511 0%, #130d2a 100%);
  color: #a78bfa; font-size: 0.85rem;
  border-top: 1px solid rgba(167,139,250,0.12);
}
.footer-sub { margin-top: 0.3rem; font-size: 0.75rem; opacity: 0.4; }

/* ─── CHATBOT ────────────────────────────────────────────── */
#chatbot-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: none;
  box-shadow: 0 4px 24px rgba(124,58,237,0.55);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  will-change: transform;
}
#chatbot-fab:hover { transform: scale(1.12); box-shadow: 0 8px 36px rgba(124,58,237,0.75); }
.fab-ping {
  position: absolute; top: 5px; right: 5px;
  width: 12px; height: 12px; border-radius: 50%; background: #10b981;
  animation: ping 2.2s ease-in-out infinite;
}
@keyframes ping {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70%     { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
}
#chatbot-window {
  display: none; position: fixed; bottom: 6rem; right: 2rem; z-index: 200;
  width: 340px; border-radius: 20px;
  background: var(--card-bg); border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(124,58,237,0.28);
  overflow: hidden;
}
#chatbot-window.open {
  display: flex; flex-direction: column;
  animation: chatSlide 0.35s var(--ease);
}
@keyframes chatSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}
.chat-header-info { display: flex; align-items: center; gap: 0.8rem; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.chat-title  { color: #fff; font-size: 0.88rem; font-weight: 600; }
.chat-status { color: rgba(255,255,255,0.72); font-size: 0.68rem; margin-top: 1px; }
.chat-close  { background: none; border: none; color: rgba(255,255,255,0.75); font-size: 1rem; cursor: none; transition: color 0.2s; }
.chat-close:hover { color: #fff; }
.chat-messages {
  flex: 1; padding: 1rem; overflow-y: auto;
  max-height: 300px; display: flex; flex-direction: column; gap: 0.7rem;
}
.chat-msg { max-width: 85%; }
.chat-msg p { padding: 0.65rem 1rem; border-radius: 14px; font-size: 0.83rem; line-height: 1.55; }
.chat-msg.bot p  { background: var(--bg2); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user   { align-self: flex-end; }
.chat-msg.user p { background: linear-gradient(135deg,#7c3aed,#ec4899); color: #fff; border-bottom-right-radius: 4px; }
.chat-typing p   { background: var(--bg2); color: var(--text2); border-bottom-left-radius: 4px; font-style: italic; font-size: 0.8rem; }
.dot-pulse::after { content: '●●●'; letter-spacing: 3px; animation: dotP 1s step-end infinite; }
@keyframes dotP {
  0%   { content: '●○○'; } 33%  { content: '●●○'; }
  66%  { content: '●●●'; } 100% { content: '○○○'; }
}
.chat-input-row {
  display: flex; gap: 0.5rem; padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
}
#chat-input {
  flex: 1; padding: 0.6rem 1rem; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg2);
  color: var(--text); font-size: 0.83rem; outline: none;
  font-family: var(--fb); transition: border-color 0.2s;
}
#chat-input:focus { border-color: var(--accent); }
.chat-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,#7c3aed,#ec4899);
  border: none; color: #fff; font-size: 0.9rem;
  cursor: none; transition: transform 0.2s var(--ease);
}
.chat-send:hover { transform: scale(1.12); }

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .skills-container { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--nav-bg); padding: 1rem 2rem 2rem;
    border-bottom: 1px solid var(--border); backdrop-filter: blur(24px);
  }
  .hamburger { display: block; }
  .hero-content { flex-direction: column; text-align: center; padding-top: 2rem; }
  .hero-photo-wrap { width: 200px; height: 200px; }
  .hero-photo-placeholder { font-size: 3.5rem; }
  .hero-intro { max-width: 100%; }
  .hero-btns { justify-content: center; }
  section { padding: 80px 6vw 60px; }
  #chatbot-window { width: calc(100vw - 2rem); right: 1rem; }
  body { cursor: auto; }
  #cursor-glow, #cursor-dot { display: none; }
}
