:root {
  --bg-color: #080c14;
  --card-bg: rgba(18, 24, 38, 0.85);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.08);
  
  --gradient-main: linear-gradient(135deg, #3b82f6 0%, #a855f7 50%, #ec4899 100%);
  --gradient-text: linear-gradient(90deg, #38bdf8, #818cf8);
  --avatar-gradient: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4, #10b981);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow-purple {
  top: -100px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: rgba(147, 51, 234, 0.2);
}

.glow-blue {
  top: 30%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: rgba(6, 182, 212, 0.15);
}

.navbar {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(8, 12, 20, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
  font-size: 1rem;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
}

.theme-toggle:hover {
  color: #fff;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-pill {
  border-radius: 50px;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  opacity: 0.95;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
}

.hero {
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1280px;
  width: 100%;
  margin: auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
}

.greeting {
  color: var(--text-secondary);
  font-size: 1.25rem;
}

.main-name {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.main-name span {
  color: #fff;
}

.role-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cursor {
  color: #38bdf8;
  animation: blink 1s infinite;
}

.hero-description {
  color: var(--text-secondary);
  max-width: 540px;
  font-size: 0.95rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.tag-blue { background: #0284c7; }
.tag-pink { background: #c026d3; }
.tag-amber { background: #d97706; }
.tag-teal { background: #0d9488; }
.tag-emerald { background: #059669; }
.tag-purple { background: #9333ea; }
.tag-sky { background: #0284c7; }
.tag-indigo { background: #4f46e5; }

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-card {
  position: absolute;
  top: -20px;
  right: -10px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  z-index: 20;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.window-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.keyword { color: #c084fc; }
.variable { color: #60a5fa; }
.string { color: #fde047; }
.boolean { color: #4ade80; }

.profile-box {
  position: relative;
  width: 310px;
  height: 310px;
}

.profile-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--avatar-gradient);
  padding: 4px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.profile-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-color);
  padding: 6px;
  overflow: hidden;
}

.profile-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.floating-badge {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.badge-zap { top: 15px; left: 20px; background: #9333ea; }
.badge-heart { top: 48%; left: -15px; background: #ec4899; width: 42px; height: 42px; }
.badge-star { top: 30%; right: -10px; background: #06b6d4; }
.badge-check { bottom: -10px; left: 45%; background: #10b981; width: 42px; height: 42px; }


.stat-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.stat-card h3 { font-size: 1.25rem; font-weight: 700; }
.stat-card p { font-size: 0.75rem; color: var(--text-secondary); }

.stat-projects { bottom: -20px; left: -20px; }
.stat-projects h3 { color: #38bdf8; }

.stat-years { bottom: 0px; right: -20px; }
.stat-years h3 { color: #ec4899; }

section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.section-title span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 20px;
}

.about-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #38bdf8;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  font-weight: 600;
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 16px;
  transition: transform 0.3s;
}

.project:hover {
  transform: translateY(-5px);
  border-color: #a855f7;
}

.education-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

#contact {
  text-align: center;
}

.contact-info {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

.social-icons a {
  font-size: 3rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #38bdf8;
  transform: scale(1.2);
}

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-left { align-items: center; }
  .nav-links, .code-card { display: none; }
  .about-container { flex-direction: column; text-align: center; }
}
