* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #fff;
  background: #0f0c29;
  overflow-x: hidden;
}

[id] {
  scroll-margin-top: 90px;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(120deg, #0f0c29, #1b1937, #0f172a);
}

.navbar, .page1, .page2 {
  position: relative;
  z-index: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.navbar ul li {
  cursor: pointer;
  padding: 15px 5px;
  color: #cbd5f5;
  transition: 0.3s;
}

.navbar ul li:hover {
  transform: scale(1.1);
  text-decoration: underline;
}
html {
  scroll-behavior: smooth;
}
.navbar ul li a {
  text-decoration: none;
  color: #cbd5f5;
  font-weight: 500;
  transition: 0.3s;
}
.navbar ul li a:hover {
  color: #a855f7;
}
.navbar {
  position: sticky;
  top: 0;
  background: rgba(15, 12, 41, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

.github-btn {
  padding: 10px 22px;
  border: 2px solid #a855f7;
  border-radius: 25px;
  text-decoration: none;
  color: #a855f7;
  transition: 0.3s;
}

.github-btn:hover {
  color: white;
  background: #a855f7;
  box-shadow: 0px 0px 20px #a855f7;
  transform: scale(1.05);
}

.page1, .page2 {
  min-height: 100vh;
  width: 100%;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px;
}

.hero-left {
  max-width: 550px;
}

.hero-left h1 {
  font-size: 60px;
  line-height: 1.2;
}

#animated-name {
  color: #b26cff;
  font-weight: 700;
  border-right: 3px solid #b26cff;
  padding-right: 6px;
  white-space: nowrap;
  animation: blink 0.8s infinite;
}

.highlight {
  color: #a855f7;
}

.hero-left p {
  margin: 25px 0;
  color: #cbd5f5;
  line-height: 1.6;
}

.cta {
  padding: 14px 40px;
  border: 1px solid purple;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  color: #f210f2;
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
}

.cta:hover {
  background: #a855f7;
  color: white;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
  transform: scale(1.1);
}

.image-ring {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 3px solid #a855f7;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
  transition: 0.5s;
}

.image-ring img {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  object-fit: cover;
}

.skills {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skills h2 {
  font-size: 46px;
  margin-bottom: 30px;
}

.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.badges img {
  height: 70px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badges img:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
  transform: translateY(-10px) scale(1.1);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blink {
  50% { border-color: transparent; }
}

.resume-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(168, 85, 247, 0.9);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 5px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10000;
}

.resume-toast.show {
  transform: translateX(-100%) translateY(-200%);
}

.page3 {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px;
}

.contact {
  width: 100%;
  max-width: 1000px;
  text-align: center;
}

.contact h2 {
  font-size: 46px;
  margin-bottom: 40px;
}

.contact-container {
  display: flex;
  gap: 50px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  padding: 50px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 28px;
  color: #a855f7;
  margin-bottom: 20px;
}

.social-links {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.social-icon {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  padding: 8px 15px;
  border-radius: 10px;
  transition: 0.3s;
}

.social-icon:hover {
  background: #a855f7;
  color: white;
  transform: scale(1.3);
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input, .contact-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  color: white;
  outline: none;
  font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: #a855f7;
}
@media (max-width: 768px) {
  .navbar {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }
  .navbar ul {
    gap: 15px;
    font-size: 14px;
  }
  .hero {
    flex-direction: column-reverse;
    padding: 40px 20px;
    text-align: center;
  }
  .hero-left h1 {
    font-size: 35px;
  }
  .hero-left {
    max-width: 100%;
  }
  .image-ring {
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
  }
  .skills, .page3 {
    padding: 40px 20px;
  }
  .contact-container {
    flex-direction: column; 
    padding: 20px;
  }
}
.page-projects {
  padding: 80px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.projects h2 {
  text-align: center;
  font-size: 46px;
  margin-bottom: 50px;
  color: #fff;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px
}
.project-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  height: 320px; 
  overflow: hidden; 
  cursor: pointer;
  transition: all 0.4s ease;
  transform-style: preserve-3d;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; 
  transition: transform 0.6s ease;
}
.project-card:hover {
  border-color: #a855f7;
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.3);
}
.project-card:hover img {
  transform: scale(1.1); 
}
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 20px;
  background: linear-gradient(transparent, rgba(15, 12, 41, 0.95));
  z-index: 2;
}
.card-overlay h3 {
  color: #fff;
  font-size: 22px;
  margin: 0;
  transform: translateZ(20px);
}
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: #1b1937;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid #a855f7;
  width: 90%;
  max-width: 600px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  animation: modalFade 0.4s ease;
}

#modalImg {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.footer {
  padding: 40px 60px;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.footer-text {
  font-size: 13px;
  color: rgba(224, 224, 224, 0.6);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-line {
  width: 100px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto;
  box-shadow: 0 0 10px var(--primary);
}
