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

:root {
  --bg: #0e0f13;
  --bg2: #161820;
  --bg3: #1e2028;
  --purple: #b5607a;
  --purple2: #c9748f;
  --purple3: #d98fa8;
  --pink: #c9748f;
  --pink2: #d98fa8;
  --yellow: #f5d0dc;
  --text: #f0edf5;
  --text2: #a89eb8;
  --text3: #6a6480;
  --border: rgba(201, 116, 143, 0.22);
  --glow: rgba(201, 116, 143, 0.4);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  cursor: none;
}


/* Custom cursor */

.cursor,
.cursor-follower {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
}

.cursor {
  width: 26px;
  height: 26px;
  background: transparent;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.15s;
}

.cursor svg {
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.cursor.active svg {
  transform: scale(1.5) rotate(36deg);
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(201, 116, 143, 0.45);
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}

.cursor-follower.active {
  transform: translate(-50%, -50%) scale(0.5);
  background: rgba(201, 116, 143, 0.15);
}


/* Scrollbar */

::-webkit-scrollbar {
  width: 4px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 2px;
}


/* Nav */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 7, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

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

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--purple2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--purple2);
}


/* Sections */

section {
  padding: 7rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}


/* Hero */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 6rem;
  max-width: none;
  overflow: hidden;
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.orb1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple), transparent);
  top: -100px;
  left: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--pink), transparent);
  bottom: -80px;
  right: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.orb3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #c9748f, transparent);
  top: 40%;
  left: 60%;
  animation: orbFloat 12s ease-in-out infinite 2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}


/* 3D decorative shapes */

.deco-shape {
  position: absolute;
  pointer-events: none;
  animation: shapeTilt 6s ease-in-out infinite;
}

.shape-blue {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #c9748f, #b5607a);
  border-radius: 18px;
  top: 12%;
  left: 10%;
  animation-delay: 0s;
  transform: rotate(-15deg);
}

.shape-purple {
  width: 75px;
  height: 75px;
  background: linear-gradient(135deg, #b5607a, #c9748f);
  border-radius: 16px;
  top: 15%;
  right: 8%;
  animation-delay: 1.5s;
  transform: rotate(12deg);
}

.shape-gray {
  width: 30px;
  height: 30px;
  background: rgba(201, 116, 143, 0.2);
  border-radius: 50%;
  top: 10%;
  right: 14%;
  animation-delay: 3s;
}

@keyframes shapeTilt {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
  50% { transform: rotate(calc(var(--r, 0deg) + 8deg)) translateY(-12px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.8s ease both;
}

.hero-title .name {
  background: linear-gradient(90deg, var(--purple2), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.8s 0.15s ease both;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: none;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(147, 51, 234, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--purple2);
  color: var(--purple2);
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Avatar section */

.hero-avatar-wrap {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  animation: fadeUp 0.8s 0.45s ease both;
  opacity: 0;
}

.avatar-frame {
  width: min(480px, 90vw);
  height: auto;
  background: transparent;
  border: none;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.avatar-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 150px;
  background: radial-gradient(ellipse, rgba(201, 116, 143, 0.3), transparent);
  filter: blur(30px);
}

.avatar-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
}


.name-badge {
  position: absolute;
  right: 10%;
  bottom: 25%;
  background: var(--yellow);
  color: #0e0f13;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 50px;
  z-index: 3;
}

.scroll-hint {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text3);
  font-size: 13px;
  animation: fadeUp 0.8s 0.6s ease both;
  opacity: 0;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--text3);
  border-bottom: 1.5px solid var(--text3);
  transform: rotate(45deg);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}


/* Section headings */

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--purple2);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}


/* Featured project */

#featured {
  text-align: center;
  padding-top: 3rem;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 3rem;
}

.featured-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 360px;
  transition: border-color 0.3s;
}

.featured-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
}

.featured-visual {
  background: linear-gradient(135deg, #161820, #1e2028);
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-visual-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(147, 51, 234, 0.3), transparent),
    radial-gradient(ellipse at 70% 30%, rgba(236, 72, 153, 0.2), transparent);
}

.featured-mockup {
  position: relative;
  z-index: 1;
  width: 260px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 8px;
}

.mock-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.4);
}

.mock-bar.w60 { width: 60%; }
.mock-bar.w80 { width: 80%; }
.mock-bar.w40 { width: 40%; }

.mock-bar.accent {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  width: 45%;
}

.mock-block {
  flex: 1;
  background: rgba(168, 85, 247, 0.15);
  border-radius: 6px;
}

.featured-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.featured-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--purple2);
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid rgba(147, 51, 234, 0.25);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.featured-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.featured-info p {
  color: var(--text2);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.8rem;
}

.tag {
  font-size: 12px;
  color: var(--text3);
  background: var(--bg3);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 4px 12px;
}

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.2s;
}

.featured-link:hover {
  gap: 10px;
}


/* Projects grid */

#work {
  padding-top: 5rem;
}

.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  cursor: none;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: none;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.project-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.project-thumb {
  height: 100%;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb .thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s;
}

.project-thumb .thumb-inner svg {
  width: 40px;
  height: 40px;
  stroke: rgba(168, 85, 247, 0.7);
}

.project-card:hover .thumb-inner {
  transform: scale(1.08);
}

.thumb-graphic { background: linear-gradient(135deg, #0e0f13, #1e2028); }
.thumb-code    { background: linear-gradient(135deg, #0e0f13, #161820); }
.thumb-ui      { background: linear-gradient(135deg, #0e0f13, #1a1c24); }

.project-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple2);
  margin-bottom: 0.5rem;
}

.project-body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.project-body p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


/* About */

#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-photo-frame {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.about-badge {
  position: absolute;
  bottom: 1rem;
  right: -16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  min-width: 160px;
  z-index: 2;
}

.about-badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--purple2), var(--pink2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-badge-label {
  font-size: 12px;
  color: var(--text3);
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text2);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.skill-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
}

.skill-icon {
  margin-bottom: 6px;
}

.skill-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--purple2);
}

.skill-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.skill-desc {
  font-size: 12px;
  color: var(--text3);
}


/* Values */

#values {
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(147, 51, 234, 0.15), rgba(236, 72, 153, 0.1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.value-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.7;
}


/* Contact */

#contact {
  text-align: center;
  padding-bottom: 5rem;
}

.contact-subtitle {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 3rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s;
  cursor: none;
}

.contact-link:hover {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(147, 51, 234, 0.08);
  transform: translateY(-3px);
}

.contact-link svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1.1rem 3rem;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  cursor: none;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  opacity: 0;
  transition: opacity 0.3s;
}

.cta-btn:hover::before {
  opacity: 1;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(147, 51, 234, 0.5);
}

.cta-btn span {
  position: relative;
  z-index: 1;
}




/* Back to top */

.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all 0.25s;
  opacity: 0;
  pointer-events: none;
  z-index: 900;
  border: none;
}

.back-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.5);
}

.back-top svg {
  width: 18px;
  height: 18px;
  color: #fff;
}


/* Playground teaser */

#playground {
  text-align: center;
}

.playground-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.play-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  transition: all 0.3s;
  cursor: none;
}

.play-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-4px);
}

.play-icon {
  margin-bottom: 1rem;
}

.play-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--purple2);
}

.play-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.play-card p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.7;
}


/* Divider */

.divider {
  width: 100%;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}


/* Page sections (SPA) */

.page { display: none; }
.page.active { display: block; }


/* Responsive */

@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 5rem 1.25rem; }
  .featured-card { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-thumb { min-height: 180px; }
  .featured-visual { min-height: 220px; }
  #about { grid-template-columns: 1fr; gap: 3rem; }
  .values-grid { grid-template-columns: 1fr; }
  .playground-grid { grid-template-columns: 1fr; }
  .about-badge { right: 0; bottom: -10px; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-title { font-size: 2.4rem; }
  .contact-links { flex-direction: column; align-items: center; }
}


/* Lightbox */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: min(860px, 95vw);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: lbIn 0.25s ease;
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-carousel {
  position: relative;
  height: 400px;
  background: var(--bg3);
  flex-shrink: 0;
  overflow: hidden;
}

.lightbox-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.lightbox-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
}

.lb-icon-placeholder {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-icon-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: rgba(168, 85, 247, 0.5);
}

.lightbox-info {
  padding: 2rem;
  overflow-y: auto;
}

.lightbox-meta {
  margin-bottom: 0.75rem;
}

.lightbox-info h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.lightbox-info p {
  color: var(--text2);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .lightbox-carousel { height: 240px; }
  .lightbox-info { padding: 1.25rem; }
  .lightbox-info h2 { font-size: 1.2rem; }
}


/* Carousel */

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.carousel-img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  z-index: 2;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s;
}

.dot.active {
  background: #fff;
}


/* Animations on scroll */

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
