* {
  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);
}

/* ============================================
   ADD THIS TO YOUR EXISTING style.css
   (Don't replace anything, just add at the end)
   ============================================ */

/* 3D SCROLL ANIMATION FOR PAGES */
.page1, .page2, .page-projects, .page3, .page-certificates {
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), 
              opacity 0.8s ease;
}

/* Initial state - pages start slightly transformed */
.page1:not(.active-3d) {
  transform: perspective(1000px) rotateX(5deg) translateY(50px);
  opacity: 0.3;
}

.page2:not(.active-3d) {
  transform: perspective(1000px) rotateY(-3deg) translateX(-30px);
  opacity: 0.3;
}

.page-projects:not(.active-3d) {
  transform: perspective(1000px) rotateX(-5deg) translateY(-50px);
  opacity: 0.3;
}

.page3:not(.active-3d) {
  transform: perspective(1000px) rotateY(3deg) translateX(30px);
  opacity: 0.3;
}

.page-certificates:not(.active-3d) {
  transform: perspective(1000px) rotateX(5deg) scale(0.95);
  opacity: 0.3;
}

/* Active state - pages are flat and visible when scrolled to */
.page1.active-3d,
.page2.active-3d,
.page-projects.active-3d,
.page3.active-3d,
.page-certificates.active-3d {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateX(0) translateY(0) scale(1);
  opacity: 1;
}

/* ============================================
   CERTIFICATE SECTION - FUTURISTIC DESIGN
   ============================================ */

.page-certificates {
  padding: 80px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.certificates h2 {
  text-align: center;
  font-size: 46px;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.certificates h2::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
  box-shadow: 0 0 20px #a855f7;
  animation: glowPulse 2s ease-in-out infinite;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 60px auto 0;
  perspective: 1500px;
}

.certificate-card {
  position: relative;
  background: rgba(15, 12, 41, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 30px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  overflow: hidden;
}

/* Holographic border for certificates */
.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(45deg, 
    #a855f7, 
    #06b6d4, 
    #10b981, 
    #a855f7
  );
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 4s linear infinite;
  pointer-events: none;
}

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

.certificate-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  border-color: #a855f7;
  box-shadow: 
    0 20px 40px rgba(168, 85, 247, 0.3),
    0 0 60px rgba(168, 85, 247, 0.15),
    inset 0 0 30px rgba(168, 85, 247, 0.05);
}

/* Certificate icon/badge */
.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
  transition: all 0.4s ease;
}

.certificate-card:hover .cert-icon {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.6);
}

.cert-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 0.5px;
}

.cert-issuer {
  font-size: 16px;
  color: #a855f7;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 500;
}

.cert-date {
  font-size: 14px;
  color: #cbd5f5;
  text-align: center;
  opacity: 0.8;
  margin-bottom: 20px;
}

.cert-description {
  font-size: 14px;
  color: #cbd5f5;
  line-height: 1.6;
  text-align: center;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* View certificate button */
.cert-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid #a855f7;
  border-radius: 10px;
  color: #a855f7;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cert-btn:hover {
  background: #a855f7;
  color: white;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
  transform: scale(1.05);
}

/* Tech grid for certificates */
.cert-tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(168, 85, 247, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.certificate-card:hover .cert-tech-grid {
  opacity: 1;
}

/* Corner accents for certificates */
.cert-corner {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 2px solid #a855f7;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 10;
}

.cert-corner.top-left {
  top: 15px;
  left: 15px;
  border-right: none;
  border-bottom: none;
}

.cert-corner.top-right {
  top: 15px;
  right: 15px;
  border-left: none;
  border-bottom: none;
}

.cert-corner.bottom-left {
  bottom: 15px;
  left: 15px;
  border-right: none;
  border-top: none;
}

.cert-corner.bottom-right {
  bottom: 15px;
  right: 15px;
  border-left: none;
  border-top: none;
}

.certificate-card:hover .cert-corner {
  opacity: 1;
  box-shadow: 0 0 10px #a855f7;
}

/* Responsive for certificates */
@media (max-width: 768px) {
  .page-certificates {
    padding: 40px 20px;
  }
  
  .certificate-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Disable 3D effects on mobile for better performance */
  .page1, .page2, .page-projects, .page3, .page-certificates {
    transform: none !important;
    opacity: 1 !important;
  }
}
/* ============================================
   CERTIFICATE MODAL STYLES
   ============================================ */

.certificate-modal-content {
  max-width: 700px;
  max-height: 85vh;
  padding: 30px;
  background: #1b1937;
  overflow-y: auto;
}

#certificateImg {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 15px;
  margin-bottom: 25px;
  border: 2px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.certificate-details {
  text-align: left;
  padding: 20px 0;
}

.certificate-details h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 15px;
}

.cert-modal-issuer {
  color: #a855f7;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cert-modal-date {
  color: #cbd5f5;
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.cert-modal-desc {
  color: #cbd5f5;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.cert-modal-id {
  color: #cbd5f5;
  font-size: 13px;
  opacity: 0.7;
  font-family: 'Courier New', monospace;
  background: rgba(168, 85, 247, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
  border-left: 3px solid #a855f7;
  word-break: break-all;
}

@media (max-width: 768px) {
  .certificate-modal-content {
    padding: 20px;
    margin: 10% auto;
  }
  
  .certificate-details h2 {
    font-size: 22px;
  }
}