:root {
  --bg-color: #050505;
  --text-primary: #f8f9fa;
  --text-secondary: #a1a1aa;
  --accent-1: #6366f1;
  --accent-2: #a855f7;
  --accent-3: #ec4899;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.bg-glow-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-1), transparent 70%);
}

.bg-glow-2 {
  bottom: -10%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, var(--accent-3), transparent 70%);
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 5%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 101;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-2);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Sidebar Skills panel visible on desktop */
.skills-sidebar {
  position: fixed;
  top: 110px;
  right: 2rem;
  width: 220px;
  padding: 1.2rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  z-index: 90;
}

.skills-sidebar .sidebar-title {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  text-align: center;
}

.skills-sidebar .tech-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.skills-sidebar .skill {
  justify-content: flex-start;
  padding: 0.35rem 0.8rem;
  margin: 0.2rem 0;
}

@media (max-width: 1024px) {
  main {
    padding-right: 0;
  }
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  color: var(--text-primary);
  z-index: 101;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 3rem;
}

.profile-container {
  margin-bottom: 20px;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  border: 3px solid #9333ea;
  transition: 0.3s;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.btn {
  padding: 10px 20px;
  background: #9333ea;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.btn-outline {
  padding: 10px 20px;
  border: 2px solid #9333ea;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.about {
  padding: 4rem 2rem;
  text-align: center;
}

.section-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-subtitle {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.skills {
  max-width: 720px;
  margin: 2rem auto 0;
}

.skills .tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.projects {
  padding: 4rem 2rem;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.tech-stack .skill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-stack .skill i {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  color: rgba(255, 255, 255, 0.85);
}

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

.contact-panel h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-panel p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.contact-panel form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-panel form input,
.contact-panel form textarea {
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
}

.contact-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.contact-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s, color 0.2s;
}

.contact-nav a:hover {
  background: rgba(168, 85, 247, 0.15);
  color: var(--text-primary);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.contact-links a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
}

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

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    width: 70%;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
  }
}
