@keyframes float {
  0%,
  to {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  to {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

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

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: linear-gradient(135deg, #1e1e2e 0, #2d1b69 50%, #11111b 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(147, 197, 253, 0.6);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  top: 80%;
  left: 40%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  top: 40%;
  left: 60%;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  top: 10%;
  left: 90%;
  animation-delay: 3s;
}

footer,
header {
  text-align: center;
}

header {
  position: relative;
  z-index: 10;
  padding: 80px 0;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 30px;
  background: linear-gradient(45deg, #8b5cf6, #06b6d4, #10b981);
  padding: 4px;
  animation: pulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  background-image: url(profile.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.name {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  animation: slideDown 1s ease-out;
}

.title {
  font-size: 1.5rem;
  color: #94a3b8;
  margin-bottom: 20px;
  animation: slideDown 1s ease-out 0.2s both;
}

.description {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  animation: slideDown 1s ease-out 0.4s both;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 60px 0;
  position: relative;
  z-index: 10;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.card h3,
.skills h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #f1f5f9;
}

.card p {
  color: #94a3b8;
  line-height: 1.6;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 40px 0;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.skills {
  margin: 40px 0;
}

.skills h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.skill-tag {
  padding: 8px 16px;
  background: linear-gradient(45deg, #8b5cf6, #06b6d4);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.skill-tag:hover {
  transform: scale(1.1);
}

footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 60px;
  color: #64748b;
}

.projects {
  margin: 80px 0;
}

.projects h3 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  background: linear-gradient(45deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.3);
}

.project-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.project-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #f1f5f9;
}

.project-card p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 25px;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.play-btn {
  background: linear-gradient(45deg, #06b6d4, #10b981);
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.github-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.github-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .name {
    font-size: 2.5rem;
  }

  .title {
    font-size: 1.2rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981);
  z-index: 1000;
  transition: width 0.3s ease;
}
