:root {
  color-scheme: dark;
  --bg: #050a14;
  --surface: rgba(8, 12, 28, 0.82);
  --surface-strong: rgba(8, 12, 28, 0.96);
  --text: #e8eef7;
  --text-muted: #9ca3af;
  --cyan: #22d3ee;
  --indigo: #818cf8;
  --purple: #a855f7;
  --green: #34d399;
  --orange: #fb923c;
  --pink: #f472b6;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  font-family: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: #050912;
}

body {
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  cursor: auto;
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
}

#canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.custom-cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
  opacity: 1;
}

body.scroll-lock {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  width: 100%;
  padding: 20px 0;
  background: rgba(5, 10, 20, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(11, 17, 37, 0.75);
}

.brand-text span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 22px;
}

.menu-toggle span:nth-child(3) {
  top: 30px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0;
}

.mobile-menu a {
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero {
  min-height: 86vh;
  display: grid;
  align-items: center;
  position: relative;
  padding: 100px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.hero-text {
  max-width: 620px;
  color: var(--text-muted);
  line-height: 1.9;
  margin: 24px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 16px 26px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(124, 58, 237, 0.16));
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 20px 40px rgba(34, 211, 238, 0.08);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

.button-tertiary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

.full-width {
  width: 100%;
}

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 26px;
}

.social-links a {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: min(420px, 100%);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
}

.hero-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 48%);
  pointer-events: none;
  opacity: 0.8;
}

.glass {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.glass-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.2);
}

.float {
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.25), transparent 35%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn-glow:hover::before {
  opacity: 1;
}

.hover-trigger {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-trigger:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(34, 211, 238, 0.12);
}

.typing {
  display: inline-block;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-photo-card {
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
}

.scroll-indicator {
  z-index: 1;
}

.grid-bg {
  background-image: radial-gradient(circle at top left, rgba(34, 211, 238, 0.05), transparent 26%),
                    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.04), transparent 28%);
}

.hex-pattern {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(225deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.neon-text {
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.35), 0 0 32px rgba(59, 130, 246, 0.15);
}

.tag {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.skill-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.skill-fill {
  width: 0;
  transition: width 0.9s ease;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.9), rgba(168, 85, 247, 0.9));
}

.hero-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  min-height: 520px;
}

.hero-chip {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.16);
  color: var(--text);
  font-size: 0.85rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.35em;
}

.scroll-hint span:first-child {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: scroll-dot 1.6s infinite ease;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 1; }
}

.section {
  padding: 140px 0;
  position: relative;
}

.section-header {
  display: grid;
  gap: 18px;
  align-items: flex-end;
  grid-template-columns: auto 1fr;
  margin-bottom: 42px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: 0.95rem;
}

.section-header h2 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.05;
}

.section-header p {
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

.about-grid,
.skills-grid,
.contact-grid {
  display: grid;
  gap: 32px;
}

.about-grid {
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
}

.about-copy p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 22px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 22px;
  padding: 24px;
}

.stat-card span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}

.stat-card p {
  color: var(--text-muted);
}

.about-panel .panel-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.panel-title {
  color: var(--text);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 22px;
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.timeline-list li {
  display: grid;
  gap: 10px;
}

.timeline-list strong {
  color: var(--cyan);
}

.timeline-list span {
  color: var(--text-muted);
  line-height: 1.8;
}

.panel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.panel-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
}

.skills-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.skill-panel,
.skill-chart {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.skill-panel h3,
.skill-chart h3 {
  margin-bottom: 18px;
}

.skill-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-pill-list span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.95rem;
}

.progress-list {
  display: grid;
  gap: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--text);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.project-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 15, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(34, 211, 238, 0.06) 40%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.project-card__top {
  min-height: 240px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card__top::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 20%),
              radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.14), transparent 22%);
}

.project-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.project-card__icon {
  z-index: 2;
  font-size: 3.8rem;
}

.project-card__body {
  padding: 26px;
  display: grid;
  gap: 18px;
}

.project-card__title {
  font-size: 1.35rem;
  font-weight: 700;
}

.project-card__description {
  color: var(--text-muted);
  line-height: 1.8;
}

.project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.project-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  color: var(--text);
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card__button {
  align-self: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 18px;
  border-radius: 18px;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.project-card__button:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.3);
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.project-card:hover::before {
  transform: translateX(100%);
}

.project-card--cyan .project-card__top {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.18), rgba(15, 23, 42, 0.72));
}

.project-card--purple .project-card__top {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.18), rgba(15, 23, 42, 0.72));
}

.project-card--green .project-card__top {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.18), rgba(15, 23, 42, 0.72));
}

.project-card--orange .project-card__top {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.18), rgba(15, 23, 42, 0.72));
}

.project-card--blue .project-card__top {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(15, 23, 42, 0.72));
}

.project-card--pink .project-card__top {
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.18), rgba(15, 23, 42, 0.72));
}

/* Achievements */
.achievements-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.achievement-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 15, 28, 0.95));
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(34, 211, 238, 0.06) 40%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.achievement-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.achievement-card:hover::before {
  transform: translateX(100%);
}

.achievement-card:hover .achievement-card__button {
  background: rgba(34, 211, 238, 0.24);
  transform: translateY(-1px);
}

.achievement-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.achievement-card__medal {
  font-size: 1.5rem;
}

.achievement-card__year {
  font-weight: 800;
  color: var(--cyan);
  font-size: 1.05rem;
}

.achievement-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.achievement-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.achievement-card__title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.4;
}

.achievement-card__subtitle {
  color: #cbd5e1;
  font-size: 0.93rem;
  margin-bottom: 8px;
}

.achievement-card__description {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.achievement-card__button {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.achievement-card__button:hover {
  background: rgba(34, 211, 238, 0.2);
  transform: translateY(-1px);
}

.section-contact {
  padding-bottom: 120px;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.contact-copy p {
  color: var(--text-muted);
  line-height: 1.85;
  margin: 24px 0 28px;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card span {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.contact-card p {
  margin-top: 10px;
  color: var(--text);
  font-weight: 600;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-socials a {
  display: inline-flex;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.3);
}

.contact-form-panel {
  padding: 32px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.contact-form label {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text);
}

.contact-form span {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 16px 18px;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(34, 211, 238, 0.4);
}

.form-status {
  margin-top: 14px;
  min-height: 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-status.success {
  color: #86efac;
}

.form-status.error {
  color: #fda4af;
}

.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease forwards;
}

.project-modal.hidden {
  display: none;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(14px);
}

.modal-panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(90vh, 980px);
  overflow: auto;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 18, 36, 0.96);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.modal-body {
  display: grid;
  gap: 28px;
  padding: 38px;
}

.modal-preview {
  display: grid;
  gap: 20px;
}

.achievement-modal-body {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  align-items: start;
  gap: 30px;
}

.achievement-modal-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.achievement-preview-frame {
  min-height: 260px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(124, 58, 237, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 40px rgba(0,0,0,0.24);
  position: relative;
}

.achievement-preview-frame::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  pointer-events: none;
}

.achievement-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 14px 32px rgba(0,0,0,0.26);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-preview-frame:hover img {
  transform: scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.achievement-modal-details {
  gap: 18px;
}

.achievement-modal-details .modal-header h2 {
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
  margin-top: 6px;
}

.achievement-modal-details .modal-description {
  margin-top: 4px;
  font-size: 0.98rem;
}

.achievement-modal-details .modal-grid {
  gap: 16px;
}

.achievement-modal-details .modal-grid > div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.preview-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preview-icon {
  font-size: 4.5rem;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.88rem;
}

.modal-details {
  display: grid;
  gap: 28px;
}

.modal-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}

.modal-header h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-top: 8px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-description {
  color: var(--text-muted);
  line-height: 1.9;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.modal-grid h3 {
  margin-bottom: 16px;
  color: var(--text);
}

.modal-list {
  display: grid;
  gap: 14px;
}

.modal-list li {
  color: var(--text-muted);
  line-height: 1.8;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-tech .badge {
  background: rgba(255, 255, 255, 0.06);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.custom-cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99;
  transform: translate(-50%, -50%);
}

.custom-cursor {
  width: 20px;
  height: 20px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  transition: transform 0.12s ease, width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  mix-blend-mode: difference;
}

.custom-cursor.hover,
.cursor-dot.hover {
  width: 48px;
  height: 48px;
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.1);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: flex;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-top: 100px;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 7vw, 3.6rem);
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .skill-panel,
  .skill-chart,
  .skill-panel {
    padding: 24px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-socials {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .section-header {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
