:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d1117;
  --bg-card: rgba(13, 17, 23, 0.8);
  --cyan: #00f5ff;
  --cyan-dim: rgba(0, 245, 255, 0.15);
  --cyan-glow: rgba(0, 245, 255, 0.5);
  --purple: #8b5cf6;
  --purple-dim: rgba(139, 92, 246, 0.15);
  --purple-glow: rgba(139, 92, 246, 0.5);
  --pink: #ec4899;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --border: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 245, 255, 0.3);
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg-secondary);
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: var(--bg-secondary); }
html::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: none; border: none; outline: none; background: none; font-family: inherit; }

#cursor {
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s ease, opacity 0.3s ease;
  box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--cyan-glow);
  transform: translate(-50%, -50%);
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 245, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

#cursor.expanded { transform: translate(-50%, -50%) scale(2.5); }
#cursor-ring.expanded { width: 60px; height: 60px; border-color: var(--purple); }

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99997;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 1px;
  animation: load-progress 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 10px var(--cyan);
}

@keyframes load-progress {
  0%   { width: 0%; }
  60%  { width: 80%; }
  100% { width: 100%; }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: orb-float 18s ease-in-out infinite alternate;
}

.bg-orb-1 {
  width: 600px; height: 600px;
  background: rgba(0, 245, 255, 0.04);
  top: -200px; left: -200px;
  animation-duration: 20s;
}

.bg-orb-2 {
  width: 500px; height: 500px;
  background: rgba(139, 92, 246, 0.05);
  bottom: -150px; right: -150px;
  animation-duration: 25s;
  animation-delay: -8s;
}

.bg-orb-3 {
  width: 400px; height: 400px;
  background: rgba(236, 72, 153, 0.03);
  top: 40%; left: 50%;
  animation-duration: 22s;
  animation-delay: -4s;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title span {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 60px;
}

.glass-card {
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.08), 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 35px var(--cyan-glow), 0 0 60px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 20px var(--cyan-glow), inset 0 0 20px var(--cyan-dim);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 4px 40px rgba(0, 245, 255, 0.04);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  cursor: none;
}

.nav-logo span {
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
  text-shadow: 0 0 14px var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.05em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 60%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: none;
  z-index: 1001;
}

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

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--cyan);
}

.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-6px); }

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--cyan);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 12px 0;
}

.mobile-menu a:hover {
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan);
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-left { z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 28px;
  animation: fade-in 0.8s ease forwards;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
  box-shadow: 0 0 8px var(--cyan);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: fade-in 0.8s 0.1s ease both;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fade-in 0.8s 0.2s ease both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.typing-wrap {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--cyan);
  min-height: 2em;
  margin-bottom: 24px;
  animation: fade-in 0.8s 0.3s ease both;
  display: flex;
  align-items: center;
  gap: 2px;
}

#typed-text { font-weight: 500; }

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--cyan);
  border-radius: 1px;
  animation: blink 0.8s step-end infinite;
  box-shadow: 0 0 6px var(--cyan);
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 36px;
  animation: fade-in 0.8s 0.4s ease both;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
  animation: fade-in 0.8s 0.5s ease both;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fade-in 0.8s 0.6s ease both;
}

.hero-socials span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-right: 8px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255,255,255,0.02);
}

.social-icon:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 16px var(--cyan-glow);
  transform: translateY(-3px);
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-in 0.8s 0.3s ease both;
}

.photo-container {
  position: relative;
  width: 340px;
  height: 340px;
}

.photo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spin-ring 8s linear infinite;
}

.photo-ring-1 {
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
  animation-duration: 6s;
}

.photo-ring-2 {
  inset: 10px;
  border: 1.5px solid transparent;
  border-bottom-color: var(--purple);
  border-left-color: var(--purple);
  box-shadow: 0 0 15px var(--purple-glow);
  animation-direction: reverse;
  animation-duration: 9s;
}

.photo-ring-3 {
  inset: 20px;
  border: 1px dashed rgba(0, 245, 255, 0.15);
  animation-duration: 14s;
}

@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

.photo-inner {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--border-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: float-hero 5s ease-in-out infinite;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

@keyframes float-hero {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.photo-placeholder i {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.photo-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.photo-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.12), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

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

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: 30px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  animation: float-badge 4s ease-in-out infinite;
}

.float-badge:nth-child(1) { top: 8%; right: -10%; animation-delay: 0s; }
.float-badge:nth-child(2) { bottom: 12%; left: -14%; animation-delay: -2s; }
.float-badge:nth-child(3) { top: 50%; right: -18%; animation-delay: -1s; animation-duration: 5s; }

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

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: fade-in 1s 1s ease both;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-line 1.5s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.stat-box {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  cursor: none;
}

.stat-box:hover {
  border-color: var(--border-glow);
  background: var(--cyan-dim);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.about-card { padding: 36px; }

.about-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-text strong { color: var(--cyan); font-weight: 600; }

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.highlight-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-dim);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple);
  transition: var(--transition);
}

.highlight-tag:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--purple);
  transform: translateY(-2px);
}

.internship-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: var(--radius-sm);
}

.internship-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.internship-info p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.internship-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.skill-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 245, 255, 0.08);
}

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

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.skill-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.skill-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.skill-bar {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: inherit;
  box-shadow: 0 0 8px currentColor;
}

.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
  position: relative;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.project-card {
  border-radius: var(--radius);
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  cursor: none;
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 245, 255, 0.1);
}

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


.project-thumb .thumb-icon {
  font-size: 3.5rem;
  position: relative;
  z-index: 1;
}

.project-thumb .thumb-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
}

.project-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 245, 255, 0.05);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.project-body { padding: 26px; }

.project-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 4px;
  padding: 3px 10px;
}

.project-actions { display: flex; gap: 10px; }

.project-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: none;
}

.project-btn-demo {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg-primary);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.project-btn-demo:hover {
  box-shadow: 0 0 24px var(--cyan-glow);
  transform: translateY(-2px);
}

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

.project-btn-github:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.timeline-item {
  display: flex;
  gap: 36px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--bg-primary);
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--cyan-glow);
  animation: dot-pulse 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--cyan-glow); }
  50% { box-shadow: 0 0 40px var(--cyan-glow), 0 0 60px rgba(0, 245, 255, 0.2); }
}

.timeline-card {
  flex: 1;
  padding: 28px;
  margin-top: 4px;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 20px;
  padding: 4px 14px;
  white-space: nowrap;
}

.timeline-list { margin-top: 12px; }

.timeline-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.timeline-list li::before {
  content: '▸';
  color: var(--cyan);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-info { padding: 36px; }

.contact-info h3 {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.contact-info h3 span {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 245, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.contact-detail-text p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-detail-text a,
.contact-detail-text span {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-detail-text a:hover { color: var(--cyan); }

.contact-socials { display: flex; gap: 10px; }

.contact-form { padding: 36px; }

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.03);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.08), 0 0 20px rgba(0, 245, 255, 0.06);
}

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

.form-btn {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: none;
  border: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.form-btn:hover {
  box-shadow: 0 0 40px var(--cyan-glow), 0 0 60px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.form-btn:active { transform: translateY(0); }

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  z-index: 10000;
  backdrop-filter: blur(20px);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.toast.show { transform: translateX(0); }
.toast i { font-size: 1.1rem; }

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

.footer-glow {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
  box-shadow: 0 0 20px var(--cyan-glow);
}

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

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

.footer-copy span { color: var(--cyan); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

#scroll-top {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--bg-primary);
  cursor: none;
  box-shadow: 0 0 16px var(--cyan-glow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

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

#scroll-top:hover {
  box-shadow: 0 0 30px var(--cyan-glow);
  transform: translateY(-3px);
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 10px var(--cyan)); }
  50% { filter: drop-shadow(0 0 25px var(--purple)); }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-right { order: -1; }
  .photo-container { width: 280px; height: 280px; }
  .float-badge:nth-child(1) { display: none; }
  .float-badge:nth-child(3) { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 2.2rem; }
  .photo-container { width: 240px; height: 240px; }
  .float-badge { display: none; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 18px; }
  .timeline-dot { width: 36px; height: 36px; font-size: 0.9rem; }
  .timeline-item { gap: 20px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.7rem; }
}
