/* ===== VARIABLES ===== */
:root {
  --bg: #f8f8fc;
  --bg-alt: #f0f0f8;
  --surface: #ffffff;
  --surface-2: #ebebf8;
  --border: rgba(0, 0, 0, 0.08);
  --text: #0a0a0f;
  --text-muted: #555577;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --accent-glow: rgba(124, 58, 237, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .4s, color .4s;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

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

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

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

ul {
  list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

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

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

/* ===== TYPOGRAPHY ===== */
.accent {
  color: var(--accent);
}

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .25);
  padding: .3rem .9rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

/* ===== SECTION ===== */
.section {
  padding: 6rem 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .9rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--accent-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  padding: .85rem 2rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .9rem;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

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

.btn-cv {
  background: var(--surface);
  color: var(--text);
  padding: .6rem 1.4rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .8rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.btn-cv:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .2s;
  mix-blend-mode: multiply;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .35s cubic-bezier(.16,1,.3,1),
              height .35s cubic-bezier(.16,1,.3,1),
              border-color .2s,
              opacity .2s;
  opacity: 0.55;
}

/* Cursor expands on hoverable elements */
body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  opacity: 0.9;
}
body.cursor-hover .cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
}

/* Cursor hides on mobile */
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.25rem 4rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.header.scrolled {
  padding: 1rem 4rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .9rem;
  color: #fff;
  letter-spacing: -.02em;
}

.logo-text {
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-dot {
  color: var(--accent);
}

.top-nav ul {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color .3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.toggle-icon {
  transition: opacity .3s, transform .3s;
}

[data-theme="dark"] .sun,
[data-theme="light"] .moon {
  display: none;
}

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

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

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

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

.mob-link {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  transition: color .3s;
}

.mob-link:hover {
  color: var(--accent);
}

/* ===== GLOBAL BACKGROUND GRID ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: slideGrid 25s linear infinite;
  z-index: -1;
  opacity: 0.6;
}

@keyframes slideGrid {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 50px 50px;
  }
}

/* Remove glow for cleaner light theme */
.hero-glow {
  display: none;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: slideGrid 25s linear infinite;
  z-index: 0;
  opacity: 0.6;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, .2), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, .5);
  }

  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.hero-name {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: .9;
  margin-bottom: 1.5rem;
  letter-spacing: -.03em;
}

.name-line {
  display: block;
}

.name-line.accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
}

.cursor-blink {
  animation: blink .8s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
}

.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce-scroll 2s infinite;
}

@keyframes bounce-scroll {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
}

/* ===== FADE UP ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp .8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.delay-1 {
  animation-delay: .1s;
}

.delay-2 {
  animation-delay: .2s;
}

.delay-3 {
  animation-delay: .35s;
}

.delay-4 {
  animation-delay: .5s;
}

.delay-5 {
  animation-delay: .65s;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.delay-1 {
  transition-delay: .1s;
}

.scroll-reveal.delay-2 {
  transition-delay: .2s;
}

.scroll-reveal.delay-3 {
  transition-delay: .3s;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
}

.about-image-frame {
  position: relative;
  display: inline-block;
}

.about-image-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.10);
}

/* Subtle gradient fade at the bottom for editorial depth */
.about-image-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(124, 58, 237, 0.08) 100%
  );
  pointer-events: none;
}

/* Decorative accent corner */
.about-image-photo::before {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 60%;
  height: 60%;
  border-bottom: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) 0;
  z-index: 0;
  pointer-events: none;
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}

.about-image-frame:hover .about-portrait {
  transform: scale(1.04);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

.badge-icon {
  font-size: 1.5rem;
}

.about-badge strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
}

.about-badge small {
  font-size: .75rem;
  color: var(--text-muted);
}

.about-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-para {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.about-skill-tag {
  padding: .35rem .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.about-skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== SKILLS ORBIT ===== */
.skills-orbit-wrapper {
  position: relative;
  width: min(560px, 90vw);
  height: min(560px, 90vw);
  margin: 0 auto;
}

/* Dashed orbit guide ring */
.skills-orbit-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--orbit-track, 220px) * 2 + 80px);
  height: calc(var(--orbit-track, 220px) * 2 + 80px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px dashed rgba(124, 58, 237, 0.18);
  pointer-events: none;
  animation: orbitTrackSpin 40s linear infinite;
}

@keyframes orbitTrackSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Center Core ── */
.skills-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.skills-core-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: coreRingPulse 3s ease-out infinite;
}
.skills-core-ring.ring-2 { animation-delay: 1s; }
.skills-core-ring.ring-3 { animation-delay: 2s; }

@keyframes coreRingPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

.skills-core-label {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
  box-shadow: 0 0 0 6px rgba(124,58,237,.12), 0 12px 40px rgba(124,58,237,.35);
  z-index: 2;
}

/* ── Orbit Nodes ── */
/*
  Each node is positioned via CSS trig approximation.
  We use translateX/translateY calculated with inline --i/--total vars via
  a pair of CSS custom property math tricks instead of JS.
*/
.skill-node {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Translate to orbit position using CSS sin/cos (modern browsers) */
  --angle: calc((var(--i) / var(--total)) * 360deg);
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateX(var(--orbit-r))
    rotate(calc(-1 * var(--angle)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  animation: nodeFloat var(--float-dur, 5s) var(--delay, 0s) ease-in-out infinite;
  cursor: default;
}

@keyframes nodeFloat {
  0%, 100% { translate: 0 0; }
  50%       { translate: 0 -14px; }
}

.skill-node-inner {
  width: 80px;
  height: 80px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  transition: transform .35s cubic-bezier(.16,1,.3,1),
              box-shadow .35s cubic-bezier(.16,1,.3,1),
              border-color .35s;
  overflow: hidden;
}

.skill-node:hover .skill-node-inner {
  transform: scale(1.18);
  border-color: var(--accent);
  box-shadow:
    0 0 0 5px rgba(124,58,237,.12),
    0 16px 40px rgba(124,58,237,.28);
}

.skill-asset-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* JS logo is a landscape rectangle, so scale it slightly differently */
.skill-asset-img.js-logo {
  width: 44px;
  height: auto;
}

.skill-node-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  opacity: .75;
  letter-spacing: .02em;
  white-space: nowrap;
  /* Labels stay upright after node rotation */
  text-align: center;
}

/* Responsive — collapse orbit to a wrapped grid on small screens */
@media (max-width: 640px) {
  .skills-orbit-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .skills-core { display: none; }

  .skill-node {
    position: static;
    transform: none !important;
    animation: nodeFloat var(--float-dur, 5s) var(--delay, 0s) ease-in-out infinite;
  }
}

/* ===== PROJECTS ===== */
.projects-category {
  margin-bottom: 4rem;
}

.projects-cat-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.cat-icon {
  font-size: 1.25rem;
}

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

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


/* ===== PROJECTS MARQUEE ===== */
.projects-marquee-wrapper {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  /* bleed full width */
  padding: 2rem 0 4rem;
  position: relative;
}

/* Optional fading edges */
/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.project-card.hide {
  display: none;
}

.project-card {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .project-card {
    max-width: 100%;
  }
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, .3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}



.project-card-top {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ux-top {
  height: 200px;
}

.project-phone-mockup {
  width: 100px;
  height: 180px;
  background: #111;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, .15);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  transform: perspective(600px) rotateY(-5deg);
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-phone-mockup {
  transform: perspective(600px) rotateY(0deg) scale(1.05);
}

.phone-screen {
  width: 100%;
  height: 100%;
  padding: .5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.mock-ui {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .4rem;
}

.mock-bar {
  height: 8px;
  background: rgba(255, 255, 255, .3);
  border-radius: 4px;
}

.mock-bar.short {
  width: 60%;
}

.mock-card {
  height: 40px;
  background: rgba(255, 255, 255, .2);
  border-radius: 6px;
}

.mock-row {
  height: 6px;
  background: rgba(255, 255, 255, .2);
  border-radius: 3px;
}

.mock-row.short {
  width: 70%;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  margin-top: .3rem;
}

.mock-box {
  height: 30px;
  background: rgba(255, 255, 255, .2);
  border-radius: 4px;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, .3);
  border-radius: 50%;
  margin: 0 auto .4rem;
}

.ux-mockup {
  width: 85%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ux-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

.ux-nav {
  height: 18px;
  background: #7c3aed;
  border-radius: 4px;
}

.ux-hero-block {
  height: 50px;
  background: #ede9fe;
  border-radius: 4px;
}

.ux-cards-row {
  display: flex;
  gap: .3rem;
  flex: 1;
}

.ux-mini-card {
  flex: 1;
  background: #ddd6fe;
  border-radius: 4px;
}

.project-card-body {
  padding: 1.75rem;
}

.project-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .85rem;
}

.ptag {
  padding: .25rem .7rem;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
}

.ptag-design {
  background: rgba(6, 182, 212, .1);
  border-color: rgba(6, 182, 212, .2);
  color: var(--accent-2);
}

.project-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .6rem;
}

.project-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.plink {
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  transition: opacity .2s;
}

.plink:hover {
  opacity: .7;
}

.plink-gh,
.plink-figma {
  color: var(--text-muted);
}

.plink-gh:hover,
.plink-figma:hover {
  color: var(--text);
  opacity: 1;
}

/* ===== EXPERIENCE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 3rem 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -8px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .2);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(124, 58, 237, .3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .25rem;
}

.timeline-company {
  font-size: .88rem;
  color: var(--accent);
}

.timeline-date {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--surface-2);
  padding: .3rem .8rem;
  border-radius: 99px;
}

.timeline-desc {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.ttag {
  padding: .2rem .65rem;
  background: var(--surface-2);
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: var(--transition);
  text-align: left;
  min-width: 250px;
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
}

.contact-item-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #000;
}

.contact-item-label {
  display: block;
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

.contact-item-val {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-top: .2rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
}

.form-success {
  display: none;
  text-align: center;
  color: #10b981;
  font-weight: 700;
  margin-top: 1rem;
  font-size: .9rem;
}

.form-success.show {
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
}

.footer-copy {
  font-size: .85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color .3s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
  .header {
    padding: 1.25rem 2.5rem;
  }

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

  .about-image-col {
    max-width: 340px;
    margin: 0 auto;
  }

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

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

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

@media(max-width:768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .top-nav,
  .btn-cv {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-name {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .projects-grid-2 {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    flex-direction: column;
    gap: .5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media(max-width:480px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .stat-divider {
    display: none;
  }
}

/* ===== SCREENSHOT PROJECT CARDS ===== */
.project-shot-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--surface-2);
}

.project-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.project-card:hover .project-shot {
  transform: scale(1.06);
}

/* Gradient overlay fades the image into the card body */
.project-shot-overlay {
  display: none;
}

[data-theme="light"] .project-shot-overlay {
  background: linear-gradient(to bottom,
      transparent 30%,
      rgba(248, 248, 252, 0.6) 70%,
      rgba(248, 248, 252, 1) 100%);
}

/* Fallback when no image is provided */
.project-shot-fallback {
  display: none;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  align-items: center;
  justify-content: center;
}

.shot-app-name {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* "Flutter App" badge pill in top-right */
.project-shot-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== CASE STUDY PAGE (PREMIUM BENTO) ===== */
.cs-header {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.cs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.btn-back:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

/* HERO SECTION */
.cs-hero {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.cs-hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.cs-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cs-hero-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tag-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.cs-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.cs-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 90%;
}

.cs-meta-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cs-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

.cs-meta-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.cs-mockup-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px;
}

.cs-mockup-main {
  width: 260px;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border);
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) scale(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.cs-mockup-secondary {
  position: absolute;
  width: 240px;
  border-radius: 32px;
  right: 0;
  top: 10%;
  opacity: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: perspective(1000px) rotateY(-15deg) translateZ(-100px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
  z-index: 1;
}

.cs-mockup-wrapper:hover .cs-mockup-main {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.1);
}

.cs-mockup-wrapper:hover .cs-mockup-secondary {
  transform: perspective(1000px) rotateY(0deg) translateZ(-50px) translateX(60px);
  opacity: 0.9;
}

/* CONTENT SECTIONS */
.cs-content {
  padding: 4rem 0 8rem;
}

.cs-split-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.cs-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.cs-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.cs-text.lead {
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 500;
}

.cs-glass-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.cs-glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
}

.cs-quote-icon {
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cs-quote {
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

/* BENTO GRID */
.cs-section-header {
  text-align: center;
  max-width: 600px;
  margin: 8rem auto 4rem;
}

.cs-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1.5rem;
}

.cs-bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s;
}

.cs-bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.4);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bento-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.bento-tags {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bento-visual {
  position: absolute;
  right: -20%;
  bottom: -20%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.bg-gradient-1 {
  background: radial-gradient(circle, var(--accent), var(--accent-2));
}

/* STACK PILLS */
.cs-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.stack-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
}

.stack-pill svg {
  color: var(--accent);
}

/* DESIGN APPROACH */
.design-approach {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.design-color-palette {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.color-swatch {
  height: 100px;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-swatch span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* LEARNINGS & ROADMAP */
.cs-learnings-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.learning-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.learning-icon {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-2);
  padding: 0.5rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.learning-item p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.learning-item strong {
  color: var(--text);
}

.cs-h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.cs-roadmap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 2px solid var(--border);
  padding-left: 2rem;
  margin-left: 10px;
}

.roadmap-step {
  position: relative;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.roadmap-dot {
  position: absolute;
  left: -2.45rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 50%;
}

/* FOOTER */
.cs-footer {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(circle at bottom, rgba(124, 58, 237, 0.1), transparent 60%);
  text-align: center;
}

.cs-footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.cs-footer-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

.btn-glow {
  box-shadow: 0 10px 30px var(--accent-glow);
}

/* RESPONSIVE */
@media (max-width: 992px) {

  .cs-hero-grid,
  .cs-split-section,
  .design-approach {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cs-mockup-wrapper {
    height: 500px;
  }

  .cs-bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .cs-bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-wide {
    grid-column: span 1;
  }

  .cs-title {
    font-size: 2.5rem;
  }
}


.project-shot-overlay {
  display: none !important;
}

[data-theme="light"] .project-shot-overlay {
  display: none !important;
}

/* ===== NEW FOOTER ===== */
.footer {
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 10;
}

.new-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.footer-top-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-top-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
}

.footer-top-links a:hover {
  color: var(--accent);
}

.footer-social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-sq-icon {
  width: 45px;
  height: 45px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all 0.3s;
}

.social-sq-icon:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links a {
  transition: color 0.3s;
}

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

.sep {
  opacity: 0.5;
}

.footer-copy-new {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -1rem;
}

/* ===== PROJECTS FILTER ===== */
.projects-filter-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

.projects-filter {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  background: var(--surface-2);
  color: var(--text);
}

/* Project card hide state (used by filter) */
.project-card.hide {
  display: none;
}

/* Empty state message when no projects match filter */
.projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.7;
}