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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(138, 43, 226, 0.3);
  border-top: 4px solid #8a2be2;
  border-radius: 50%;
  animation: spin 1s infinite linear;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

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

.name-banner {
  background: #0a0a0a;
  color: white;
  text-align: center;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.gradient-text {
  font-family: 'Dancing Script', cursive;
  font-size: 4.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ffffff, #d8b4fe, #c084fc, #a855f7, #ffffff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: gradientShift 4s ease infinite;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
  position: relative;
  z-index: 2;
  letter-spacing: 2px;
}

.subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #c084fc;
  margin-top: 0.5rem;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.4);
  position: relative;
  z-index: 2;
}

.name-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(138, 43, 226, 0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(138, 43, 226, 0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(138, 43, 226, 0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(138, 43, 226, 0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

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

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  background: rgba(45, 27, 78, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 1rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(138, 43, 226, 0.2);
}

nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

nav a:hover {
  color: #c084fc;
  background: rgba(138, 43, 226, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.section {
  padding: 4rem 0;
  background: rgba(26, 10, 31, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 2rem auto;
  max-width: 1200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(40px) rotateX(10deg);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(138, 43, 226, 0.15);
}

.section.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.section.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.alternate {
  background: rgba(45, 27, 78, 0.3);
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #e0e0e0;
  font-size: 2.8rem;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #a855f7, #c084fc, #d8b4fe);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* Section content text colors */
.section p {
  color: #d0d0d0;
  line-height: 1.7;
  font-size: 1.1rem;
}

.section ul:not(.skill-list):not(.contact-info) {
  color: #d0d0d0;
}

.section ul:not(.skill-list):not(.contact-info) li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.section ul:not(.skill-list):not(.contact-info) strong {
  color: #c084fc;
}

.skill-list {
  padding-left: 1.5rem;
}

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

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

.experience-card {
  background: rgba(45, 27, 78, 0.4);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(138, 43, 226, 0.2);
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #a855f7, #c084fc);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.experience-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(138, 43, 226, 0.3);
  border-color: rgba(138, 43, 226, 0.4);
}

.experience-card h3 {
  color: #e0e0e0;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.experience-card p {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.experience-date {
  display: inline-block;
  background: linear-gradient(45deg, #a855f7, #c084fc);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 1rem;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.certificate-card {
  background: rgba(45, 27, 78, 0.3);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(138, 43, 226, 0.15);
}

.certificate-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(138, 43, 226, 0.3);
  border-color: rgba(138, 43, 226, 0.3);
}

.certificate-card p {
  color: #d0d0d0;
  font-weight: 500;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.project-card {
  background: rgba(45, 27, 78, 0.3);
  backdrop-filter: blur(10px);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(138, 43, 226, 0.15);
  border-left: 4px solid #a855f7;
}

.project-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 35px rgba(138, 43, 226, 0.3);
  border-color: rgba(138, 43, 226, 0.3);
}

.project-card p {
  color: #b0b0b0;
  line-height: 1.6;
  font-weight: 400;
}

.project-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #c084fc;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: rgba(138, 43, 226, 0.15);
}

.project-card a:hover {
  background: linear-gradient(45deg, #a855f7, #c084fc);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.skill-list li {
  color: #d0d0d0;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.skill-list li:hover {
  background: rgba(138, 43, 226, 0.2);
  transform: translateX(10px);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.contact-info li {
  color: #d0d0d0;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.contact-info li:hover {
  background: rgba(138, 43, 226, 0.2);
  transform: translateX(10px);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

/* Duplicate project-card a removed - keeping single definition */

/* Add some particle effect background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(192, 132, 252, 0.1) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

footer {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  color: #d0d0d0;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(138, 43, 226, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .gradient-text {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  nav a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .section {
    margin: 1rem;
    padding: 2rem 0;
  }

  .certificates-grid, .experience-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .certificate-card, .project-card, .experience-card {
    padding: 1rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .gradient-text {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .container {
    width: 95%;
  }

  .section {
    margin: 0.5rem;
    border-radius: 15px;
  }

  .project-card, .experience-card {
    padding: 1.5rem;
  }
}