:root {
  --bg: #050508;
  --bg-secondary: #0a0a10;
  --bg-card: rgba(15, 15, 25, 0.6);
  --text: #e4e4e7;
  --text-secondary: #71717a;
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #a855f7;
  --border: rgba(255, 255, 255, 0.06);
  --glow: rgba(99, 102, 241, 0.15);
  --radius: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

::selection {
  background: var(--accent-1);
  color: #fff;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-1) transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }

.custom-cursor {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10001;
  mix-blend-mode: difference;
  transition: transform 0.1s;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s, height 0.3s, border-color 0.3s;
}

body.cursor-hover .cursor-follower {
  width: 56px;
  height: 56px;
  border-color: var(--accent-1);
}

body.cursor-hover .custom-cursor {
  transform: scale(0.5);
}

#neural-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
}

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

.nav-link.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-1);
}

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 8rem 2rem 4rem;
}

.hero-layout {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  width: 100%;
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 550px;
  justify-self: center;
}

#ai-brain {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.hero-visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.12);
  z-index: 1;
  animation: ringRotate 20s linear infinite;
}

.ring-1 {
  width: 85%;
  height: 85%;
  top: 7.5%;
  left: 7.5%;
  animation-duration: 25s;
}

.ring-2 {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-color: rgba(139, 92, 246, 0.1);
  animation-duration: 18s;
  animation-direction: reverse;
}

.ring-3 {
  width: 55%;
  height: 55%;
  top: 22.5%;
  left: 22.5%;
  border-color: rgba(168, 85, 247, 0.08);
  animation-duration: 22s;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.floating-label {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-1);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 3;
  opacity: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fl-1 {
  top: 8%;
  right: 5%;
  animation: floatLabel 6s ease-in-out infinite, fadeInLabel 1s 1.5s forwards;
}

.fl-2 {
  bottom: 15%;
  right: 0%;
  animation: floatLabel 7s ease-in-out 1s infinite, fadeInLabel 1s 1.8s forwards;
}

.fl-3 {
  top: 30%;
  left: -2%;
  animation: floatLabel 5s ease-in-out 0.5s infinite, fadeInLabel 1s 2.1s forwards;
}

.fl-4 {
  bottom: 8%;
  left: 5%;
  animation: floatLabel 8s ease-in-out 1.5s infinite, fadeInLabel 1s 2.4s forwards;
}

@keyframes floatLabel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeInLabel {
  to { opacity: 0.8; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-1);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.hero-roles {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.role-tag {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(20px);
}

.role-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: var(--accent-1);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.btn-primary span, .btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fade-in 1s 2.5s forwards;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fade-in {
  to { opacity: 0.6; }
}

.section-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-1);
  font-weight: 600;
}

.label-line {
  width: 40px;
  height: 1px;
  background: var(--accent-1);
}

.label-number {
  margin-left: auto;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.reveal-text {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-text.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.highlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s;
}

.highlight:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.05);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-1);
}

.highlight h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.highlight p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.code-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.code-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.code-dots {
  display: flex;
  gap: 6px;
  margin-right: 1rem;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #22c55e; }

.code-filename {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.code-body {
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.9;
  overflow-x: auto;
}

.code-keyword { color: #c084fc; }
.code-class { color: #67e8f9; }
.code-func { color: #fbbf24; }
.code-param { color: #fb923c; }
.code-string { color: #86efac; }

.edu-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
}

.edu-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(99, 102, 241, 0.12);
}

.edu-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.edu-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  flex-shrink: 0;
}

.edu-status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.edu-status.current {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.edu-card-body {
  margin-bottom: 1.5rem;
}

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.edu-institution,
.edu-location,
.edu-duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.edu-institution {
  color: var(--accent-1);
  font-weight: 600;
}

.edu-institution svg,
.edu-location svg,
.edu-duration svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.edu-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.edu-progress-wrap {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.edu-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.edu-progress-pct {
  color: var(--accent-1);
  font-weight: 700;
}

.edu-progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.edu-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  border-radius: 6px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
}

.skill-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-1);
  transition: all 0.3s;
}

.skill-card:hover .skill-icon-wrap {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.skill-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s;
}

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

.filter-btn.active {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: #fff;
}

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

.project-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.project-item.hidden {
  display: none;
}

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

.project-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  opacity: 0.15;
  transition: opacity 0.4s;
}

.project-item:hover .project-gradient {
  opacity: 0.25;
}

.project-icon-large {
  color: var(--text);
  opacity: 0.3;
  transition: all 0.4s;
  z-index: 1;
}

.project-item:hover .project-icon-large {
  opacity: 0.6;
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.project-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-1);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.project-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

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

.project-link svg {
  opacity: 0.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(99, 102, 241, 0.05);
}

.contact-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.3s;
  pointer-events: none;
  background: transparent;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -0.6rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-1);
  background: var(--bg);
  padding: 0 0.35rem;
}

#form-status {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.5rem;
}

#form-status.success { color: #22c55e; }
#form-status.error { color: #ef4444; }

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-top p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

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

@media (max-width: 1024px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links .nav-link {
    font-size: 1.5rem;
    padding: 1rem;
  }
  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hero {
    padding: 5rem 1.25rem 1.5rem;
    min-height: auto;
    text-align: left;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-content {
    text-align: left;
  }
  .hero-visual {
    max-width: 260px;
    margin: 1rem auto 0;
    aspect-ratio: 1;
    opacity: 1 !important;
    transform: none !important;
  }
  #ai-brain {
    display: block;
  }
  .hero-visual-glow {
    filter: blur(20px);
    width: 70%;
    height: 70%;
  }
  .hero-visual-ring {
    border-width: 1px;
  }
  .floating-label {
    font-size: 0.5rem;
    padding: 0.15rem 0.4rem;
    opacity: 0;
    animation-duration: 5s;
  }
  .fl-1 { animation: floatLabel 5s ease-in-out infinite, fadeInLabel 0.5s 0.5s forwards; top: 5%; right: 2%; }
  .fl-2 { animation: floatLabel 6s ease-in-out 0.5s infinite, fadeInLabel 0.5s 0.7s forwards; bottom: 12%; right: -2%; }
  .fl-3 { animation: floatLabel 4s ease-in-out 1s infinite, fadeInLabel 0.5s 0.9s forwards; top: 25%; left: -4%; }
  .fl-4 { animation: floatLabel 7s ease-in-out 1.5s infinite, fadeInLabel 0.5s 1.1s forwards; bottom: 5%; left: 2%; }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    text-align: left;
  }
  .hero-word {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .hero-badge {
    opacity: 1 !important;
    transform: translateY(0) !important;
    font-size: 0.7rem;
    margin-bottom: 1rem;
  }
  .hero-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 1.5rem;
  }
  .hero-cta {
    opacity: 1 !important;
    transform: translateY(0) !important;
    flex-direction: column;
    margin-bottom: 2rem;
  }
  .btn-primary, .btn-outline {
    justify-content: center;
    text-align: center;
  }
  .hero-stats {
    opacity: 1 !important;
    transform: translateY(0) !important;
    gap: 1.5rem;
    justify-content: flex-start;
  }
  .role-tag {
    opacity: 1 !important;
    transform: translateY(0) !important;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
  .role-divider {
    opacity: 1 !important;
  }
  .hero-roles {
    gap: 0.5rem;
    justify-content: flex-start;
  }
  .stat-number {
    font-size: 1.75rem;
  }
  .stat-label {
    font-size: 0.7rem;
  }
  .stat-divider {
    height: 30px;
  }

  .scroll-indicator {
    display: none;
  }

  section {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
    margin-bottom: 1.5rem;
  }
  .section-container {
    padding: 0 1.25rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-text {
    order: 1;
  }
  .about-visual {
    order: 2;
  }
  .about-description {
    font-size: 0.9rem;
    line-height: 1.7;
  }
  .about-highlights {
    margin-top: 1.5rem;
    gap: 1rem;
  }
  .highlight {
    padding: 0.75rem;
  }
  .highlight-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .highlight h4 {
    font-size: 0.85rem;
  }
  .highlight p {
    font-size: 0.75rem;
  }

  .code-window {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  .code-body {
    font-size: 0.65rem;
    line-height: 1.6;
    padding: 0.75rem;
  }

  .edu-timeline {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .edu-card {
    padding: 1.5rem;
  }
  .edu-degree {
    font-size: 1rem;
  }
  .edu-icon {
    width: 46px;
    height: 46px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .skill-card {
    padding: 1.25rem;
  }
  .skill-card::before {
    opacity: 1;
  }
  .skill-icon-wrap {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
  }
  .skill-card h3 {
    font-size: 1rem;
  }
  .skill-card p {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .project-image {
    height: 130px;
  }
  .project-info {
    padding: 1.25rem;
  }
  .project-info h3 {
    font-size: 1rem;
  }
  .project-info p {
    font-size: 0.8rem;
  }
  .project-filters {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }
  .filter-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-description {
    font-size: 0.9rem;
  }
  .contact-socials {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .social-link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .form-group input,
  .form-group textarea {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .footer-top, .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .custom-cursor, .cursor-follower {
    display: none;
  }
  body {
    cursor: auto;
  }

  .reveal-text,
  .reveal-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 4.5rem 1rem 1rem;
  }
  .hero-visual {
    max-width: 220px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 11vw, 2.8rem);
  }
  .hero-stats {
    gap: 1rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .floating-label {
    display: none;
  }
}
