:root{
  --bg-primary: #211832;
  --bg-secondary: #412B6B;
  --text-primary: #ffffff;
  --text-secondary: #c4b5d8;
  --accent-1: #5C3E94;
  --accent-2: #F25912;
  --accent-3: #8c6bb1;
  --accent-4: #F25912;
  --card-bg: rgba(65, 43, 107, 0.8);
  --glow: rgba(92, 62, 148, 0.4);
}

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body{
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #211832 0%, #412B6B 50%, #211832 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Animated Background */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-1), transparent);
  opacity: 0.15;
  animation: float 20s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-100px) translateX(50px); }
  50% { transform: translateY(-50px) translateX(-50px); }
  75% { transform: translateY(-150px) translateX(100px); }
}

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(33, 24, 50, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(92, 62, 148, 0.2);
  transform: translateY(-100%);
  animation: slideDown 0.6s ease forwards 0.2s;
}

@keyframes slideDown {
  to { transform: translateY(0); }
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  transition: width 0.3s ease;
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #5C3E94 0%, #F25912 50%, #8c6bb1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient 8s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-weight: 300;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white;
  box-shadow: 0 10px 30px rgba(92, 62, 148, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(92, 62, 148, 0.5);
}

.btn-secondary {
  border: 2px solid var(--accent-1);
  color: var(--accent-1);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--accent-1);
  color: white;
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid rgba(92, 62, 148, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-2);
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(242, 89, 18, 0.4);
}

/* Section Styling */
section {
  padding: 100px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  border-radius: 2px;
}

/* Projects Grid */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(92, 62, 148, 0.2);
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(92, 62, 148, 0.15), rgba(242, 89, 18, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-1);
  box-shadow: 0 20px 60px rgba(92, 62, 148, 0.3);
}

.project-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.tech-tag {
  background: rgba(92, 62, 148, 0.2);
  color: var(--accent-2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(92, 62, 148, 0.4);
}

.project-links {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.project-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-links a:hover {
  color: var(--accent-2);
  transform: translateX(5px);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.skill-category {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(92, 62, 148, 0.2);
  transition: all 0.3s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.skill-category:hover {
  border-color: var(--accent-1);
  transform: translateY(-5px);
}

.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--accent-2);
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  flex: 1;
  align-content: start;
}

.skill-list span {
  background: rgba(92, 62, 148, 0.2);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  border: 1px solid rgba(92, 62, 148, 0.3);
  transition: all 0.3s ease;
  text-align: center;
}

.skill-list span:hover {
  background: rgba(92, 62, 148, 0.35);
  color: var(--text-primary);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

/* Contact Links */
.contact-link {
  background: rgba(92, 62, 148, 0.2);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  border: 1px solid rgba(92, 62, 148, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-link:hover {
  background: rgba(92, 62, 148, 0.35);
  color: var(--text-primary);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
  border-top: 1px solid rgba(92, 62, 148, 0.2);
  margin-top: 100px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid var(--accent-1);
  border-radius: 25px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-1);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { opacity: 1; top: 10px; }
  100% { opacity: 0; top: 30px; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .projects { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-list { grid-template-columns: 1fr; }
  h2 { font-size: 2rem; }
}