:root {
  --primary: #0a0a12;
  --secondary: #1a1a2e;
  --accent: #7b2cbf;
  --accent-light: #9d4edd;
  --cyber-blue: #00f5d4;
  --text: #e2e2e2;
  --text-secondary: #b8b8b8;
  --card-bg: rgba(26, 26, 46, 0.8);
  --nav-bg: rgba(10, 10, 18, 0.95);
  --glow: 0 0 20px rgba(123, 44, 191, 0.6);
}

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

html {
  scroll-snap-type: y proximity;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--primary);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(123, 44, 191, 0.1) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(0, 245, 212, 0.1) 0%, transparent 25%),
    linear-gradient(to bottom, var(--primary), var(--secondary));
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0 L100 0 L100 100 L0 100 Z" fill="none" stroke="rgba(123, 44, 191, 0.05)" stroke-width="0.5"/></svg>');
  background-size: 50px 50px;
  z-index: -1;
  opacity: 0.5;
}

.particle {
  position: fixed;
  background: var(--accent-light);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 15s infinite ease-in-out;
  z-index: -1;
}

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 30px); }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  position: relative;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--accent);
  box-shadow: var(--glow);
  backdrop-filter: blur(10px);
  padding: 15px 0;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 10px 15px;
  position: relative;
  transition: all 0.3s;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyber-blue);
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--cyber-blue);
}

header {
  grid-column: 1 / -1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 0;
  position: relative;
  scroll-snap-align: start;
}

header h1 {
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--accent), var(--cyber-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-shadow: var(--glow);
  animation: textGlow 3s infinite alternate;
}

@keyframes textGlow {
  0% { text-shadow: 0 0 10px var(--accent-glow); }
  100% { text-shadow: 0 0 30px var(--accent-glow); }
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  scroll-snap-align: start;
}

.profile-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(123, 44, 191, 0.3);
  box-shadow: var(--glow);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.5s;
}

.profile-card:hover {
  transform: translateY(-10px);
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cyber-blue);
  box-shadow: 0 0 30px var(--cyber-blue);
  margin-bottom: 25px;
  transition: all 0.5s;
}

.profile-pic:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 50px var(--cyber-blue);
}


.main-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 100px 0;
}

.section {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(123, 44, 191, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.5s;
  backdrop-filter: blur(10px);
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeIn 1s forwards;
}

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

.section:nth-child(1) { animation-delay: 0.3s; }
.section:nth-child(2) { animation-delay: 0.6s; }
.section:nth-child(3) { animation-delay: 0.9s; }

.section:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), var(--glow);
}

.section h2 {
  font-size: 2.5rem;
  color: var(--cyber-blue);
  margin-bottom: 30px;
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--cyber-blue);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.portfolio-item {
  background: rgba(30, 30, 60, 0.7);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid var(--accent);
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    transparent,
    rgba(0, 245, 212, 0.1),
    transparent
  );
  transform: rotate(30deg);
  transition: all 0.8s;
}

.portfolio-item:hover::before {
  left: 100%;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--accent-glow);
  border-color: var(--cyber-blue);
}

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

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(30, 30, 60, 0.7);
  border: 1px solid var(--accent);
  font-size: 1.3rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-5px) rotate(10deg);
  box-shadow: 0 0 25px var(--accent-glow);
}

footer {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  margin-top: 100px;
  border-top: 1px solid rgba(123, 44, 191, 0.3);
  position: relative;
  scroll-snap-align: start;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--cyber-blue), transparent);
}

footer p {
  color: var(--text-secondary);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* 🌀 SCROLL ANIMATION */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .sidebar {
    position: static;
    margin-top: 100px;
  }
  
  header h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    gap: 15px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}