:root{
  --bg:#07030a;
  --neon:#00ffe1;
  --accent:#ff44cc;
  --cursor-x: 50%;
  --cursor-y: 50%;
  --muted:#9aa0b2;
  --dark:#0a0812;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Space Grotesk",system-ui,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:#e6eef6;
  overflow-x:hidden;
  line-height:1.6;
}

canvas#bg{position:fixed;inset:0;z-index:0}

/* Progress Indicator */
.progress-indicator{position:fixed;right:30px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:20px;z-index:10}
.progress-dot{width:12px;height:12px;border-radius:50%;cursor:pointer;transition:all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);color:var(--muted);font-size:8px;display:flex;align-items:center;justify-content:center;opacity:0.4}
.progress-dot.active{color:var(--neon);opacity:1;transform:scale(1.6);text-shadow:0 0 10px rgba(0,255,225,0.8)}
.progress-dot:hover{opacity:0.7;transform:scale(1.3)}

#overlay{position:relative;z-index:2;max-width:1100px;margin:0 auto;padding:20px;min-height:100vh;animation:pageSlideUp 0.6s cubic-bezier(0.25,0.46,0.45,0.94)}
.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap;gap:12px;position:sticky;top:0;z-index:5;backdrop-filter:blur(10px);background:rgba(7,3,10,0.7);padding:12px;border-radius:8px;animation:pageSlideUp 0.5s ease;border:1px solid rgba(0,255,225,0.1)}
.logo{font-family:'Press Start 2P',monospace;color:var(--neon);margin:0;font-size:20px;letter-spacing:2px;text-shadow:0 0 10px rgba(0,255,225,0.5);animation:twinkle 2s ease-in-out infinite}
.topbar nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.topbar nav a{color:var(--muted);text-decoration:none;transition:all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);cursor:pointer}
.topbar nav a:hover{color:var(--neon);text-shadow:0 0 12px rgba(0,255,225,0.5)}
.topbar nav a.btn{background:linear-gradient(90deg,var(--neon),var(--accent));padding:8px 12px;border-radius:8px;color:#07030a;font-weight:600}

.card{backdrop-filter:blur(6px);background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(10,8,20,0.12));border:1px solid rgba(255,255,255,0.04);padding:22px;border-radius:12px;margin-bottom:18px;box-shadow:0 6px 30px rgba(0,0,0,0.6);transition:all 0.4s ease}
.card:hover{border-color:rgba(0,255,225,0.2);box-shadow:0 8px 40px rgba(0,255,225,0.15);transform:translateY(-2px)}
.card h3{color:var(--neon);margin:0 0 16px;font-size:22px;animation:pageSlideUp 0.6s ease}

/* Hero Section */
.hero-section{min-height:90vh;display:flex;align-items:center;justify-content:center;margin-bottom:40px;background:linear-gradient(135deg,rgba(0,255,225,0.05),rgba(255,68,204,0.02));border:2px solid rgba(0,255,225,0.1)}
.hero-content{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;width:100%}
.hero-text{animation:slideInLeft 1s cubic-bezier(0.25,0.46,0.45,0.94)}
.hero-title{font-family:'Press Start 2P',monospace;font-size:48px;color:var(--neon);margin:0 0 16px;line-height:1.2;text-shadow:0 0 20px rgba(0,255,225,0.4)}
.name-highlight{background:linear-gradient(90deg,var(--neon),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:colorShift 4s ease-in-out infinite}
.hero-subtitle{font-size:20px;color:var(--accent);margin:0 0 16px;font-weight:600;opacity:0;transform:translateY(20px);transition:all 0.8s ease}
.hero-description{color:var(--muted);line-height:1.8;margin:0 0 24px;font-size:15px;opacity:0;transform:translateY(20px);transition:all 0.8s ease}
.hero-cta{display:flex;gap:16px;flex-wrap:wrap;align-items:center;opacity:0;transform:translateY(20px);transition:all 0.8s ease}
.cta-primary{padding:14px 28px;background:linear-gradient(90deg,var(--neon),rgba(0,255,225,0.6));color:#07030a;text-decoration:none;border-radius:8px;font-weight:600;transition:all 0.4s ease;display:inline-block;cursor:pointer}
.cta-primary:hover{transform:translateY(-3px);box-shadow:0 8px 25px rgba(0,255,225,0.3);background:linear-gradient(90deg,var(--accent),rgba(255,68,204,0.6));animation:none}
.cta-secondary{padding:14px 28px;border:2px solid var(--neon);color:var(--neon);text-decoration:none;border-radius:8px;font-weight:600;transition:all 0.4s ease;display:inline-block;cursor:pointer}
.cta-secondary:hover{background:rgba(0,255,225,0.1);box-shadow:0 0 20px rgba(0,255,225,0.3)}

.hero-visual{animation:slideInRight 1s cubic-bezier(0.25,0.46,0.45,0.94);display:flex;justify-content:center;align-items:flex-start}
.hero-visual-inline{display:none}
.hero-title-wrapper{display:block}
.profile-image-container{width:220px;height:220px;position:relative;display:flex;align-items:flex-start;justify-content:center;padding-top:0}
.profile-image{width:180px;height:180px;border-radius:12px;object-fit:cover;border:3px solid rgba(0,255,225,0.5);position:relative;z-index:2;animation:pulse 3s ease-in-out infinite;box-shadow:0 0 30px rgba(0,255,225,0.4);object-position:top}
.profile-frame{position:absolute;width:220px;height:220px;border:2px solid rgba(0,255,225,0.2);border-radius:12px;animation:borderGlow 3s ease-in-out infinite;top:0}

.nav-buttons{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap;justify-content:center}
.nav-btn{padding:12px 20px;background:rgba(0,255,225,0.1);border:1px solid rgba(0,255,225,0.3);color:var(--neon);border-radius:6px;cursor:pointer;font-weight:600;transition:all 0.3s ease;font-family:'Space Grotesk',sans-serif;font-size:14px}
.nav-btn:hover{background:rgba(0,255,225,0.2);box-shadow:0 0 15px rgba(0,255,225,0.3);transform:translateY(-2px)}
.nav-btn:active{transform:translateY(0)}

.floating-box{width:220px;height:220px;background:linear-gradient(135deg,rgba(0,255,225,0.1),rgba(255,68,204,0.05));border:2px solid rgba(0,255,225,0.2);border-radius:12px;display:flex;align-items:center;justify-content:center;animation:float 6s ease-in-out infinite;position:relative;overflow:hidden}
.floating-box::before{content:'';position:absolute;inset:0;background:linear-gradient(45deg,transparent 30%,rgba(0,255,225,0.1) 50%,transparent 70%);animation:shimmer 3s infinite}
.code-snippet{font-family:'Space Grotesk',monospace;color:var(--neon);font-size:18px;text-shadow:0 0 15px rgba(0,255,225,0.5)}

/* Skills Grid */
.skills-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;grid-auto-rows:1fr}
.skill-category{padding:14px;background:rgba(0,255,225,0.02);border-radius:8px;border:1px solid rgba(0,255,225,0.06)}
.skill-category h4{color:var(--accent);margin:0 0 8px;font-size:14px}
.tags{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.tags li{background:rgba(0,255,225,0.1);color:var(--neon);padding:4px 8px;border-radius:4px;font-size:12px;border:1px solid rgba(0,255,225,0.2)}

/* Projects Grid */
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.project{padding:16px;border-radius:8px;background:rgba(255,255,255,0.01);border:1px solid rgba(255,255,255,0.05);transition:all 0.4s ease;position:relative}
.project:hover{background:rgba(0,255,225,0.04);border-color:rgba(0,255,225,0.2);transform:translateY(-4px)}
.project-tag{display:inline-block;background:rgba(255,68,204,0.2);color:var(--accent);padding:4px 8px;border-radius:4px;font-size:11px;font-weight:600;margin-bottom:8px}
.project h4{margin:0 0 8px;color:var(--neon)}
.project p{margin:0 0 10px;color:var(--muted);font-size:14px}
.project-meta{color:#777;font-size:12px;margin-bottom:8px}
.link{color:var(--neon);text-decoration:none;font-weight:600;transition:all 0.3s ease;display:inline-flex;align-items:center}
.link:hover{color:var(--accent);text-shadow:0 0 10px rgba(255,68,204,0.4)}

/* Certifications */
.certifications-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.cert-item{padding:14px;background:rgba(255,68,204,0.02);border-radius:8px;border:1px solid rgba(255,68,204,0.1);transition:all 0.3s ease}
.cert-item:hover{border-color:rgba(255,68,204,0.3);background:rgba(255,68,204,0.06);transform:translateY(-2px)}
.cert-item h4{margin:0 0 6px;color:var(--accent);font-size:15px}
.cert-item p{margin:0 0 8px;color:var(--muted);font-size:13px}
.cert-link{color:var(--neon);text-decoration:none;font-size:12px;font-weight:600;transition:all 0.3s ease}
.cert-link:hover{color:var(--accent);text-decoration:underline;text-shadow:0 0 8px rgba(255,68,204,0.3)}

/* Contact Section */
.contact-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.btn-contact{padding:10px 18px;background:rgba(0,255,225,0.1);border:1px solid rgba(0,255,225,0.2);color:var(--neon);text-decoration:none;border-radius:6px;transition:all 0.3s ease;display:inline-block;cursor:pointer}
.btn-contact:hover{background:rgba(0,255,225,0.2);box-shadow:0 0 20px rgba(0,255,225,0.2)}

/* Social Links */
.social-links{margin-top:24px;padding-top:20px;border-top:1px solid rgba(0,255,225,0.1)}
.social-links h4{color:var(--neon);margin:0 0 12px;font-size:16px}
.social-icons{display:flex;gap:12px;flex-wrap:wrap}
.social-btn{padding:10px 16px;background:rgba(0,255,225,0.1);border:1px solid rgba(0,255,225,0.2);color:var(--neon);text-decoration:none;border-radius:6px;transition:all 0.3s ease;display:inline-flex;align-items:center;cursor:pointer}
.social-btn:hover{background:rgba(0,255,225,0.2);box-shadow:0 0 15px rgba(0,255,225,0.3);transform:translateY(-2px)}
.social-btn span{margin-left:6px}

.social-links-full{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-top:20px;animation:fadeInUp 0.6s ease}
.social-item{padding:16px;background:rgba(0,255,225,0.02);border-radius:8px;border:1px solid rgba(0,255,225,0.1);text-align:center;animation:scaleIn 0.5s ease backwards;transition:all 0.3s ease}
.social-item:nth-child(1){animation-delay:0.1s}
.social-item:nth-child(2){animation-delay:0.2s}
.social-item:nth-child(3){animation-delay:0.3s}
.social-item:hover{border-color:rgba(0,255,225,0.3);background:rgba(0,255,225,0.05);transform:translateY(-5px);box-shadow:0 0 20px rgba(0,255,225,0.2)}
.social-item h4{color:var(--neon);margin:0 0 12px;font-size:14px;animation:bounce 1s ease-in-out infinite}
.social-btn-large{display:inline-block;padding:12px 20px;background:linear-gradient(90deg,rgba(0,255,225,0.1),rgba(255,68,204,0.05));border:1px solid rgba(0,255,225,0.2);color:var(--neon);text-decoration:none;border-radius:6px;transition:all 0.3s ease;font-weight:600;word-break:break-all;animation:heartbeat 1.5s ease-in-out infinite}
.social-btn-large:hover{background:linear-gradient(90deg,rgba(0,255,225,0.2),rgba(255,68,204,0.1));box-shadow:0 0 20px rgba(0,255,225,0.3);transform:translateY(-2px);animation:none}
.social-btn-large.instagram:hover{text-shadow:0 0 10px rgba(233,30,99,0.5);border-color:rgba(233,30,99,0.5)}
.social-btn-large.linkedin:hover{text-shadow:0 0 10px rgba(0,127,179,0.5);border-color:rgba(0,127,179,0.5)}
.social-btn-large.email:hover{text-shadow:0 0 10px rgba(76,175,80,0.5);border-color:rgba(76,175,80,0.5)}

.contact-section h4{color:var(--neon);margin:16px 0 12px;font-size:16px}

/* Page Sections */
.page-section{animation:fadeIn 0.8s ease forwards}
.page-section:nth-child(n+2){animation-delay:0.1s}
.page-section:nth-child(n+3){animation-delay:0.2s}

/* About Content */
.about-content{line-height:1.8;color:#e6eef6;animation:fadeInUp 0.6s ease}
.about-content p{margin:0 0 16px;color:var(--muted);animation:fadeInUp 0.5s ease backwards}
.about-content p:nth-child(1){animation-delay:0.1s}
.about-content p:nth-child(2){animation-delay:0.2s}
.about-content p:nth-child(3){animation-delay:0.3s}
.about-content h3{color:var(--neon);margin:24px 0 12px;font-size:18px;animation:slideRight 0.5s ease}
.about-content strong{color:#e6eef6;font-weight:600;animation:twinkle 1.5s ease-in-out infinite}

/* Skills Grid */
.skill-category{padding:16px;background:rgba(0,255,225,0.02);border-radius:8px;border:1px solid rgba(0,255,225,0.1);transition:all 0.3s ease;animation:fadeInUp 0.6s ease backwards;display:flex;flex-direction:column}
.skill-category:hover{border-color:rgba(0,255,225,0.3);background:rgba(0,255,225,0.05);transform:translateY(-2px);box-shadow:0 0 15px rgba(0,255,225,0.2)}
.skill-category h3{color:var(--neon);margin:0 0 14px;font-size:16px;animation:pageSlideUp 0.6s ease}
.skill-list{list-style:none;margin:0;padding:0;flex:1}
.skill-list li{color:var(--muted);margin:0 0 8px;padding-left:16px;position:relative;animation:slideRight 0.4s ease backwards;transition:all 0.3s ease}
.skill-list li:hover{color:var(--neon);transform:translateX(5px);text-shadow:0 0 10px rgba(0,255,225,0.3)}
.skill-list li::before{content:'▸';position:absolute;left:6px;color:var(--accent);animation:rotate360 2s linear infinite}
.skill-category:nth-child(1) .skill-list li{animation-delay:0.1s}
.skill-category:nth-child(2) .skill-list li{animation-delay:0.2s}
.skill-category:nth-child(3) .skill-list li{animation-delay:0.3s}
.skill-category:nth-child(4) .skill-list li{animation-delay:0.4s}
.skill-category:nth-child(5) .skill-list li{animation-delay:0.5s}

/* Projects Grid */
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;grid-auto-rows:1fr}
.project-card{padding:16px;background:rgba(0,255,225,0.02);border-radius:8px;border:1px solid rgba(0,255,225,0.1);transition:all 0.4s ease;position:relative;overflow:hidden;display:flex;flex-direction:column}
.project-card::before{content:'';position:absolute;inset:0;background:linear-gradient(45deg,transparent 30%,rgba(255,255,255,0.1) 50%,transparent 70%);animation:shimmerWave 3s infinite;opacity:0}
.project-card:hover{border-color:rgba(0,255,225,0.3);background:rgba(0,255,225,0.05);transform:translateY(-4px);box-shadow:0 0 20px rgba(0,255,225,0.2)}
.project-card:hover::before{opacity:1}
.project-header{margin-bottom:12px}
.project-header h3{color:var(--neon);margin:0 0 6px;font-size:18px;animation:slideRight 0.5s ease}
.project-meta{color:#777;font-size:12px;margin:0;animation:fadeInDown 0.5s ease 0.2s backwards}
.project-desc{color:var(--muted);margin:0 0 14px;font-size:14px;line-height:1.6;flex:1}
.project-links{margin-bottom:12px}
.project-link{display:inline-block;color:var(--neon);text-decoration:none;font-weight:600;padding:6px 12px;border:1px solid rgba(0,255,225,0.2);border-radius:4px;transition:all 0.3s ease}
.project-link:hover{background:rgba(0,255,225,0.1);box-shadow:0 0 12px rgba(0,255,225,0.3)}

/* Ensure project links sit above decorative elements and are clickable */
.project-links, .project-link{position:relative;z-index:6}
.project-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
.tag{display:inline-block;background:rgba(255,68,204,0.15);color:var(--accent);padding:4px 8px;border-radius:4px;font-size:11px;border:1px solid rgba(255,68,204,0.3)}

/* Certifications Grid */
.certifications-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;grid-auto-rows:1fr}
.cert-card{padding:16px;background:rgba(255,68,204,0.02);border-radius:8px;border:1px solid rgba(255,68,204,0.1);text-decoration:none;color:inherit;display:flex;flex-direction:column;position:relative;overflow:hidden;opacity:1 !important;transition:border-color 0.3s ease,background 0.3s ease,transform 0.3s ease,box-shadow 0.3s ease}
.cert-card::before{content:'';position:absolute;inset:0;background:linear-gradient(45deg,transparent 30%,rgba(255,255,255,0.1) 50%,transparent 70%);animation:shimmerWave 3s infinite;opacity:0}
.cert-card:hover{border-color:rgba(255,68,204,0.3);background:rgba(255,68,204,0.08);transform:translateY(-2px) scale(1.02);box-shadow:0 0 15px rgba(255,68,204,0.2)}
.cert-card:hover::before{opacity:1}
.cert-icon{font-size:32px;margin-bottom:12px;animation:bounce 1s ease-in-out infinite}
.cert-card h3{color:var(--neon);margin:0 0 6px;font-size:16px;flex:1;display:flex;align-items:center}
.cert-issuer{color:#777;font-size:12px;margin:0 0 10px}
.cert-link{color:var(--accent);font-size:12px;font-weight:600;transition:all 0.3s ease;margin-top:auto}
.cert-card:hover .cert-link{color:var(--neon);text-decoration:underline}

/* Contact Form */
.contact-content{color:var(--muted);line-height:1.8;margin-bottom:20px;animation:fadeInUp 0.6s ease}
.contact-content p{margin:0 0 12px;animation:slideRight 0.5s ease backwards}
.contact-content p:nth-child(1){animation-delay:0.1s}
.contact-content p:nth-child(2){animation-delay:0.2s}
.contact-content p:nth-child(3){animation-delay:0.3s}
.contact-content strong{color:#e6eef6}
.page-section.fade-in:last-of-type{text-align:center}
.page-section.fade-in:last-of-type h2{text-align:center}
.page-section.fade-in:last-of-type p{text-align:center}
.contact-form{display:grid;gap:16px;max-width:600px;margin:16px auto 0;animation:fadeInUp 0.6s ease 0.2s backwards}
.form-group{display:flex;flex-direction:column;animation:fadeInUp 0.5s ease backwards}
.form-group:nth-child(1){animation-delay:0.3s}
.form-group:nth-child(2){animation-delay:0.35s}
.form-group:nth-child(3){animation-delay:0.4s}
.form-group:nth-child(4){animation-delay:0.45s}
.form-group label{color:var(--neon);margin-bottom:6px;font-weight:600;font-size:14px;animation:slideRight 0.3s ease}
.form-group input,.form-group textarea{background:rgba(0,255,225,0.02);border:1px solid rgba(0,255,225,0.2);color:#e6eef6;padding:10px 12px;border-radius:6px;font-family:'Space Grotesk',sans-serif;font-size:14px;transition:all 0.3s ease}
.form-group input:focus,.form-group textarea:focus{outline:none;border-color:rgba(0,255,225,0.5);box-shadow:0 0 12px rgba(0,255,225,0.2);transform:scale(1.02)}
.submit-btn{padding:12px 24px;background:linear-gradient(90deg,var(--neon),rgba(0,255,225,0.6));color:#07030a;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:all 0.3s ease;font-family:'Space Grotesk',sans-serif;font-size:14px;animation:fadeInScale 0.5s ease 0.5s backwards}
.submit-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,255,225,0.3);animation:buttonPulse 0.6s ease}
.submit-btn:active{transform:translateY(0)}

/* Quick Links */
.quick-links{margin:40px 0}
.quick-links h2{color:var(--neon);margin:0 0 20px;font-size:24px;animation:pageSlideUp 0.8s ease}
.link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;grid-auto-rows:1fr}
.link-card{padding:20px;background:rgba(0,255,225,0.05);border:1px solid rgba(0,255,225,0.2);border-radius:8px;color:var(--neon);text-decoration:none;text-align:center;transition:all 0.3s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden}
.link-card h3{color:var(--neon);margin:8px 0 6px;font-size:16px}
.link-card p{color:var(--muted);font-size:12px;margin:0;line-height:1.4}
.link-card:hover{background:rgba(0,255,225,0.1);box-shadow:0 0 20px rgba(0,255,225,0.3);transform:translateY(-3px)}
.link-card::before{content:'';position:absolute;inset:0;background:linear-gradient(45deg,transparent 30%,rgba(255,255,255,0.1) 50%,transparent 70%);animation:shimmerWave 3s infinite;opacity:0}
.link-card:hover::before{opacity:1}

/* Nav Link Active State */
.nav-link.active{
  color:var(--neon);
  text-shadow:0 0 8px rgba(0,255,225,0.45);
  font-weight:600;
  position:relative;
  /* disable any JS-driven animation (e.g., shadowExpand) */
  animation: none !important;
}

.topbar nav a:focus{outline:none}

/* Minimal neon underline instead of square highlight */
.nav-link.active::after{
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(0,255,225,0.95), rgba(255,68,204,0.95));
  box-shadow: 0 0 18px rgba(0,255,225,0.35), 0 0 8px rgba(255,68,204,0.12);
  opacity: 0.95;
  transition: all 0.25s ease;
  animation: navUnderlinePulse 2.2s ease-in-out infinite;
}

@keyframes navUnderlinePulse{
  0%{ transform: translateX(-50%) scaleX(0.95); box-shadow:0 0 8px rgba(0,255,225,0.2); }
  50%{ transform: translateX(-50%) scaleX(1.05); box-shadow:0 0 20px rgba(0,255,225,0.45); }
  100%{ transform: translateX(-50%) scaleX(0.95); box-shadow:0 0 8px rgba(0,255,225,0.2); }
}

/* Animations */
@keyframes pulse{0%,100%{box-shadow:0 0 30px rgba(0,255,225,0.3),0 6px 40px rgba(0,0,0,0.6) inset}50%{box-shadow:0 0 50px rgba(0,255,225,0.5),0 6px 40px rgba(0,0,0,0.6) inset}}
@keyframes fadeIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes slideInLeft{from{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:translateX(0)}}
@keyframes slideInRight{from{opacity:0;transform:translateX(50px)}to{opacity:1;transform:translateX(0)}}
@keyframes glow{0%,100%{text-shadow:0 0 10px rgba(0,255,225,0.4)}50%{text-shadow:0 0 20px rgba(0,255,225,0.8)}}
@keyframes float{0%,100%{transform:translateY(0px)}50%{transform:translateY(-20px)}}
@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
@keyframes colorShift{0%,100%{filter:hue-rotate(0deg)}50%{filter:hue-rotate(20deg)}}
@keyframes cardSlideIn{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}
@keyframes borderGlow{0%{border-color:rgba(0,255,225,0.1);box-shadow:0 0 5px rgba(0,255,225,0.1)}50%{border-color:rgba(0,255,225,0.3);box-shadow:0 0 20px rgba(0,255,225,0.2)}100%{border-color:rgba(0,255,225,0.1);box-shadow:0 0 5px rgba(0,255,225,0.1)}}
@keyframes skillTagPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}

/* Glitter & Sparkle Animations */
@keyframes sparkle{0%{opacity:0;transform:scale(0) translate(0,0)}25%{opacity:1}75%{opacity:1}100%{opacity:0;transform:scale(1) translate(var(--tx),var(--ty))}}
@keyframes glitter{0%{opacity:0;transform:scale(0) rotate(0deg)}50%{opacity:1}100%{opacity:0;transform:scale(1) rotate(360deg)}}
@keyframes twinkle{0%,100%{opacity:0.2}50%{opacity:1}}
@keyframes shimmerWave{0%{background-position:0% 50%}100%{background-position:100% 50%}}
@keyframes floatUp{0%{opacity:0;transform:translateY(0) translateX(0)}50%{opacity:1}100%{opacity:0;transform:translateY(-100px) translateX(20px)}}
@keyframes rotateSparkle{0%{transform:rotate(0deg) scale(1)}50%{transform:rotate(180deg) scale(1.2)}100%{transform:rotate(360deg) scale(1)}}

/* Page Transition Animations */
@keyframes pageSlideIn{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@keyframes pageSlideUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
@keyframes pulseGlow{0%{box-shadow:0 0 5px rgba(0,255,225,0.3)}50%{box-shadow:0 0 20px rgba(0,255,225,0.7)}100%{box-shadow:0 0 5px rgba(0,255,225,0.3)}}
@keyframes neonFlicker{0%,19%,21%,23%,25%,54%,56%,100%{text-shadow:0 0 10px rgba(0,255,225,0.5);color:var(--neon)}20%,24%,55%{text-shadow:none;color:#07030a}}
@keyframes buttonPulse{0%{transform:scale(1)}50%{transform:scale(1.05)}100%{transform:scale(1)}}

/* Additional Creative Animations */
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes slideRight{from{transform:translateX(-30px);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes slideLeft{from{transform:translateX(30px);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes scaleIn{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes wobble{0%{transform:rotate(-1deg)}50%{transform:rotate(1deg)}100%{transform:rotate(-1deg)}}
@keyframes heartbeat{0%,100%{transform:scale(1)}25%{transform:scale(1.1)}50%{transform:scale(1)}}
@keyframes glow{0%,100%{box-shadow:0 0 5px rgba(0,255,225,0.3)}50%{box-shadow:0 0 20px rgba(0,255,225,0.8)}}
@keyframes fadeInDown{from{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeInScale{from{opacity:0;transform:scale(0.9)}to{opacity:1;transform:scale(1)}}
@keyframes infiniteBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes rotate360{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes slideInLeft{from{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:translateX(0)}}
@keyframes slideInRight{from{opacity:0;transform:translateX(50px)}to{opacity:1;transform:translateX(0)}}

.fade-in{animation:fadeIn 0.8s cubic-bezier(0.25,0.46,0.45,0.94) forwards;opacity:0}
.fade-in:nth-child(1){animation-delay:0.1s}
.fade-in:nth-child(2){animation-delay:0.2s}
.fade-in:nth-child(3){animation-delay:0.3s}
.fade-in:nth-child(4){animation-delay:0.4s}
.fade-in:nth-child(5){animation-delay:0.5s}
.fade-in:nth-child(6){animation-delay:0.6s}
.fade-in:nth-child(7){animation-delay:0.7s}

.intro h2{animation:glow 3s ease-in-out infinite}
/* Glitter Effects */
.sparkle-effect{position:relative}
.sparkle-effect::after{content:'✨';position:absolute;right:-15px;top:-15px;font-size:20px;animation:glitter 2s ease-out infinite}

/* Background ambient layers - subtle radial gradient + drifting orbs */
.ambient-backdrop{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.ambient-radial{position:absolute;inset:0;background:radial-gradient(circle at 20% 20%, rgba(0,255,225,0.06) 0%, transparent 25%), radial-gradient(circle at 80% 80%, rgba(255,68,204,0.04) 0%, transparent 30%);mix-blend-mode:screen;opacity:0.9;animation:ambientShift 18s linear infinite}
.ambient-orb{position:absolute;border-radius:50%;filter:blur(28px);opacity:0.75;mix-blend-mode:screen}
.ambient-orb.orb-1{width:220px;height:220px;background:radial-gradient(circle, rgba(0,255,225,0.22), rgba(0,255,225,0.02));left:5%;top:10%;animation:orbDrift1 28s ease-in-out infinite}
.ambient-orb.orb-2{width:160px;height:160px;background:radial-gradient(circle, rgba(255,68,204,0.18), rgba(255,68,204,0.01));right:8%;top:30%;animation:orbDrift2 24s ease-in-out infinite}
.ambient-orb.orb-3{width:100px;height:100px;background:radial-gradient(circle, rgba(255,255,255,0.12), rgba(255,255,255,0.01));left:50%;bottom:8%;animation:orbDrift3 32s ease-in-out infinite}

/* Dynamic radial that follows the pointer via CSS variables (theme-oriented) */
.dynamic-radial{
  position:fixed;inset:0;z-index:0;pointer-events:none;mix-blend-mode:screen;opacity:0.85;transition:opacity 0.22s linear;
  background:
    radial-gradient(circle at var(--cursor-x,50%) var(--cursor-y,50%), rgba(0,255,225,0.08) 0%, rgba(0,255,225,0.03) 12%, transparent 28%),
    radial-gradient(circle at calc(var(--cursor-x,50%) - 20px) calc(var(--cursor-y,50%) + 40px), rgba(255,68,204,0.06) 0%, rgba(255,68,204,0.02) 18%, transparent 36%);
}

/* hidden by default; show only when JS toggles .visible */
.dynamic-radial{opacity:0;pointer-events:none;transition:opacity 0.18s linear, transform 0.18s linear}
.dynamic-radial.visible{opacity:0.85}

@media (max-width:768px){
  /* allow dynamic radial on mobile but reduce intensity */
  .dynamic-radial{opacity:0.32}
}

@media (prefers-reduced-motion: reduce){
  .dynamic-radial{display:none !important}
}

@keyframes ambientShift{
  0%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-2%,1%,0) scale(1.03)}
  100%{transform:translate3d(0,0,0) scale(1)}
}

@keyframes orbDrift1{0%{transform:translateY(0) translateX(0)}50%{transform:translateY(-18px) translateX(10px)}100%{transform:translateY(0) translateX(0)}}
@keyframes orbDrift2{0%{transform:translateY(0) translateX(0)}50%{transform:translateY(12px) translateX(-8px)}100%{transform:translateY(0) translateX(0)}}
@keyframes orbDrift3{0%{transform:translateY(0) translateX(0)}50%{transform:translateY(-10px) translateX(6px)}100%{transform:translateY(0) translateX(0)}}

/* Distinct My Journey heading animation */
.my-journey{display:inline-block;color:var(--neon);margin-top:18px;margin-bottom:10px;text-shadow:0 0 18px rgba(0,255,225,0.55);animation:none;font-weight:700}

/* PC vs Mobile animation optimization */
@media (max-width: 768px) {
  /* reduce or disable heavy background animations for performance on mobile */
  .ambient-backdrop{opacity:0.35}
  .ambient-orb{filter:blur(18px);opacity:0.55}
  .ambient-orb.orb-1, .ambient-orb.orb-2, .ambient-orb.orb-3{animation-duration:16s}
  /* shorten heading animations */
  .my-journey{animation:none}
  /* Group social items into a single box on mobile */
  .social-links-full{display:block}
  .social-links-full .social-item{margin:12px auto;max-width:420px}
  .social-links-full .social-item .social-btn-large{width:80%;margin:12px auto;display:block}
  /* simplify particles and shimmer effects already in JS/CSS */
  .project-card::before,.cert-card::before,.link-card::before{opacity:0 !important}
  .card{box-shadow:0 4px 12px rgba(0,0,0,0.6)}
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  .ambient-backdrop, .ambient-orb, .sparkle-effect::after, .cursor-trail { animation: none !important; transition: none !important; }
  .my-journey{animation:none}
  .card, .project-card, .cert-card{transition:none}
}

.page-section{animation:pageSlideUp 0.6s cubic-bezier(0.25,0.46,0.45,0.94) forwards;opacity:0}
.page-section:nth-child(n+2){animation-delay:0.2s}
.page-section:nth-child(n+3){animation-delay:0.4s}

/* Certification Card Entrance Animations */
@keyframes certFadeInUp{
  from{opacity:0;transform:translateY(30px) scale(0.95)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

.certifications-grid .cert-card{animation:certFadeInUp 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;opacity:0}
.certifications-grid .cert-card:nth-child(1){animation-delay:0.1s}
.certifications-grid .cert-card:nth-child(2){animation-delay:0.2s}
.certifications-grid .cert-card:nth-child(3){animation-delay:0.3s}
.certifications-grid .cert-card:nth-child(4){animation-delay:0.4s}
.certifications-grid .cert-card:nth-child(5){animation-delay:0.5s}
.certifications-grid .cert-card:nth-child(6){animation-delay:0.6s}
.certifications-grid .cert-card:nth-child(7){animation-delay:0.7s}
.certifications-grid .cert-card:nth-child(8){animation-delay:0.8s}
.certifications-grid .cert-card:nth-child(9){animation-delay:0.9s}
.certifications-grid .cert-card:nth-child(10){animation-delay:1s}
.certifications-grid .cert-card:nth-child(11){animation-delay:1.1s}
.certifications-grid .cert-card:nth-child(12){animation-delay:1.2s}
.certifications-grid .cert-card:nth-child(13){animation-delay:1.3s}

.footer{display:flex;justify-content:center;color:var(--muted);margin-top:30px;animation:slideInLeft 0.8s ease 0.8s forwards;opacity:0}

/* Cursor follower */
/* Custom Cursor */
.cursor-dot{
  position:fixed;
  left:0;top:0;
  width:12px;height:12px;
  border-radius:50%;
  pointer-events:none;
  z-index:9999;
  /* Use transform for positioning (GPU accelerated) */
  will-change: transform, opacity;
  transition:opacity 0.12s ease, width 0.15s ease, height 0.15s ease;
  background:radial-gradient(circle,var(--neon) 0%,var(--accent) 50%,transparent 70%);
  box-shadow:0 0 20px var(--neon),0 0 36px rgba(0,255,225,0.55),0 0 48px rgba(255,68,204,0.12);
  /* remove transform animation so JS can fully control position via inline styles */
  animation: cursorGlow 1.8s ease-in-out infinite;
  transform:translate3d(0,0,0);
  /* start hidden until JS positions it to avoid flashing at 0,0 */
  visibility: hidden;
  opacity: 0;
}

.cursor-ring{
  position:fixed;
  left:0;top:0;
  width:40px;height:40px;
  border-radius:50%;
  pointer-events:none;
  z-index:9998;
  border:2px solid var(--neon);
  will-change: transform, width, height, opacity;
  transition:opacity 0.12s ease, width 0.18s ease, height 0.18s ease, border-color 0.18s ease;
  box-shadow:0 0 28px rgba(0,255,225,0.9), 0 0 40px rgba(255,68,204,0.12), inset 0 0 18px rgba(0,255,225,0.25);
  opacity:1;
  /* keep a subtle breathing scale but avoid transform that conflicts with translate(-50%,-50%) */
  animation:cursorBreath 3s ease-in-out infinite;
  /* hide until JS reveals */
  visibility: hidden;
  opacity: 0;
}

/* Ambient-follow subtle radial that reacts to cursor (very lightweight) */
.ambient-follow{
  position:fixed;left:0;top:0;width:120px;height:120px;border-radius:50%;pointer-events:none;z-index:9996;mix-blend-mode:screen;opacity:0.12;transform:translate3d(-9999px,-9999px,0);transition:transform 0.12s linear, opacity 0.18s linear;background:radial-gradient(circle at 50% 40%, rgba(0,255,225,0.18) 0%, rgba(255,68,204,0.08) 45%, transparent 60%);
}

/* Slightly stronger trail visibility */
.cursor-trail{box-shadow:0 0 12px var(--neon);}

.cursor-trail{
  position:fixed;
  width:6px;height:6px;
  border-radius:50%;
  pointer-events:none;
  z-index:9997;
  background:var(--neon);
  box-shadow:0 0 10px var(--neon);
  opacity:0.7;
  animation:trailFade 0.5s ease-out forwards;
}

@keyframes cursorPulse{
  0%,100%{transform:translate(-50%,-50%) scale(1);opacity:1}
  50%{transform:translate(-50%,-50%) scale(1.3);opacity:0.8}
}

/* Keep JS in charge of positioning; animate glow (box-shadow & opacity) only */
@keyframes cursorGlow{
  0%{opacity:1;box-shadow:0 0 12px rgba(0,255,225,0.95),0 0 28px rgba(0,255,225,0.4)}
  50%{opacity:0.85;box-shadow:0 0 8px rgba(0,255,225,0.6),0 0 18px rgba(0,255,225,0.2)}
  100%{opacity:1;box-shadow:0 0 12px rgba(0,255,225,0.95),0 0 28px rgba(0,255,225,0.4)}
}

@keyframes cursorRotate{
  /* removed heavy continuous rotation to keep ring visible and consistent with transform translation */
  from{transform:translate(-50%,-50%) scale(1)}
  to{transform:translate(-50%,-50%) scale(1.02)}
}

@keyframes cursorBreath{
  0%,100%{width:40px;height:40px;border-width:2px}
  50%{width:50px;height:50px;border-width:3px}
}

@keyframes trailFade{
  from{opacity:0.7;transform:scale(1)}
  to{opacity:0;transform:scale(0.2)}
}

@keyframes clickRipple{
  from{width:10px;height:10px;opacity:1}
  to{width:80px;height:80px;opacity:0}
}

/* Retro scanlines */
@media (prefers-reduced-motion: no-preference){
  body::before{content:'';position:fixed;inset:0;background-image:linear-gradient(transparent 50%, rgba(255,255,255,0.02) 51%);background-size:100% 4px;pointer-events:none;z-index:1}
}

/* Hide native cursor on desktop/fine-pointer devices and use custom cursor */
@media (pointer: fine) and (hover: hover) and (prefers-reduced-motion: no-preference){
  /* hide native cursor everywhere (including links/buttons) so the site's custom cursor is the only pointer
     Use !important to override browser/user-agent defaults on interactive elements */
  html, body, #overlay, * { cursor: none !important; }
  a, button, input, textarea, select, label { cursor: none !important; }
  /* Also try to override inline cursor styles if present */
  [style*="cursor"]{ cursor: none !important; }
  /* ensure custom cursor elements are visible */
  .cursor-dot, .cursor-ring, .cursor-trail { opacity: 1; pointer-events: none; }
}

/* ============================================
   UNIQUE CREATIVE ANIMATIONS
   ============================================ */

/* 1. Magnetic 3D Tilt Effect on Cards */
.card{transition:transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94),box-shadow 0.3s}
.card:hover{transform:perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px) scale(1.02)}

/* 2. Morphing Gradient Background */
@keyframes morphGradient{
  0%{background-position:0% 50%;background-size:200% 200%}
  50%{background-position:100% 50%;background-size:250% 250%}
  100%{background-position:0% 50%;background-size:200% 200%}
}
.hero-section{position:relative}
.hero-section::before{content:'';position:absolute;inset:0;background:linear-gradient(45deg,rgba(0,255,225,0.05),rgba(255,68,204,0.05),rgba(0,255,225,0.05));animation:morphGradient 15s ease infinite;z-index:0;pointer-events:none}

/* 3. Text Reveal Animation - Flying Letters from All Directions */
@keyframes flyInFromTop{
  from{transform:translateY(-200px) rotate(-45deg);opacity:0}
  to{transform:translateY(0) rotate(0deg);opacity:1}
}
@keyframes flyInFromBottom{
  from{transform:translateY(200px) rotate(45deg);opacity:0}
  to{transform:translateY(0) rotate(0deg);opacity:1}
}
@keyframes flyInFromLeft{
  from{transform:translateX(-200px) rotate(-180deg);opacity:0}
  to{transform:translateX(0) rotate(0deg);opacity:1}
}
@keyframes flyInFromRight{
  from{transform:translateX(200px) rotate(180deg);opacity:0}
  to{transform:translateX(0) rotate(0deg);opacity:1}
}
@keyframes flyInFromTopLeft{
  from{transform:translate(-150px,-150px) rotate(-90deg) scale(0);opacity:0}
  to{transform:translate(0,0) rotate(0deg) scale(1);opacity:1}
}
@keyframes flyInFromTopRight{
  from{transform:translate(150px,-150px) rotate(90deg) scale(0);opacity:0}
  to{transform:translate(0,0) rotate(0deg) scale(1);opacity:1}
}
@keyframes flyInFromBottomLeft{
  from{transform:translate(-150px,150px) rotate(90deg) scale(0);opacity:0}
  to{transform:translate(0,0) rotate(0deg) scale(1);opacity:1}
}
@keyframes flyInFromBottomRight{
  from{transform:translate(150px,150px) rotate(-90deg) scale(0);opacity:0}
  to{transform:translate(0,0) rotate(0deg) scale(1);opacity:1}
}

.hero-title .letter{display:inline-block;opacity:0}
.hero-title .letter.fly-top{animation:flyInFromTop 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards}
.hero-title .letter.fly-bottom{animation:flyInFromBottom 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards}
.hero-title .letter.fly-left{animation:flyInFromLeft 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards}
.hero-title .letter.fly-right{animation:flyInFromRight 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards}
.hero-title .letter.fly-tl{animation:flyInFromTopLeft 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards}
.hero-title .letter.fly-tr{animation:flyInFromTopRight 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards}
.hero-title .letter.fly-bl{animation:flyInFromBottomLeft 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards}
.hero-title .letter.fly-br{animation:flyInFromBottomRight 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards}

/* 4. Text Glitch Effect on Hover */
@keyframes glitch{
  0%{transform:translate(0)}
  20%{transform:translate(-2px,2px)}
  40%{transform:translate(-2px,-2px)}
  60%{transform:translate(2px,2px)}
  80%{transform:translate(2px,-2px)}
  100%{transform:translate(0)}
}
.logo:hover{animation:glitch 0.3s ease-in-out 3}

/* 5. Hologram Scan on Hover */
@keyframes hologramScan{
  0%{transform:translateY(-100%)}
  100%{transform:translateY(100%)}
}
.project-card,.cert-card{position:relative;overflow:hidden}
.project-card::after,.cert-card::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,transparent 0%,rgba(0,255,225,0.2) 50%,transparent 100%);animation:hologramScan 4s linear infinite;pointer-events:none;opacity:0;transition:opacity 0.3s}
.project-card:hover::after,.cert-card:hover::after{opacity:1}

/* 5. Liquid Morph Animation */
@keyframes liquidMorph{
  0%,100%{border-radius:60% 40% 30% 70% / 60% 30% 70% 40%}
  50%{border-radius:30% 60% 70% 40% / 50% 60% 30% 60%}
}
.profile-frame{animation:liquidMorph 8s ease-in-out infinite}

/* 6. Neon Border Pulse on CTA */
@keyframes neonPulse{
  0%,100%{box-shadow:0 0 5px var(--neon),0 0 10px var(--neon),0 0 15px var(--neon)}
  50%{box-shadow:0 0 10px var(--neon),0 0 20px var(--neon),0 0 30px var(--neon),0 0 40px var(--neon)}
}
.cta-primary:hover{animation:neonPulse 1.5s ease-in-out infinite}

/* 7. Breathing Animation */
@keyframes breathe{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.03)}
}
.hero-visual{animation:breathe 4s ease-in-out infinite}

/* 8. Text Shimmer Effect */
@keyframes textShimmer{
  0%{background-position:-500%}
  100%{background-position:500%}
}
.shimmer-text{background:linear-gradient(90deg,currentColor 0%,var(--neon) 50%,currentColor 100%);background-size:200% 100%;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:textShimmer 3s linear infinite}

/* 9. Zoom In Animation */
@keyframes zoomIn{
  from{transform:scale(0.5);opacity:0}
  to{transform:scale(1);opacity:1}
}
.profile-image-container{animation:zoomIn 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.3s backwards}

/* 10. Elastic Bounce */
@keyframes elasticBounce{
  0%{transform:scale(1)}
  30%{transform:scale(1.15)}
  40%{transform:scale(0.9)}
  60%{transform:scale(1.05)}
  80%{transform:scale(0.95)}
  100%{transform:scale(1)}
}
.nav-btn:active,.submit-btn:active{animation:elasticBounce 0.6s ease}

/* 11. Fade and Blur In */
@keyframes fadeBlurIn{
  from{opacity:0;filter:blur(10px) brightness(0.5)}
  to{opacity:1;filter:blur(0) brightness(1)}
}
.hero-description{animation:fadeBlurIn 1s ease 0.6s backwards}

/* 12. Diagonal Cascade */
@keyframes diagonalSlide{
  from{transform:translate(-50px,-50px) rotate(-5deg);opacity:0}
  to{transform:translate(0,0) rotate(0);opacity:1}
}
.quick-link:nth-child(1){animation:diagonalSlide 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.1s backwards}
.quick-link:nth-child(2){animation:diagonalSlide 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.2s backwards}
.quick-link:nth-child(3){animation:diagonalSlide 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.3s backwards}
.quick-link:nth-child(4){animation:diagonalSlide 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.4s backwards}
.quick-link:nth-child(5){animation:diagonalSlide 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.5s backwards}

/* 13. Skill Tag Pop Animation */
@keyframes skillPop{
  0%{transform:scale(0.8);opacity:0}
  70%{transform:scale(1.05)}
  100%{transform:scale(1);opacity:1}
}
.skill-list li{animation:skillPop 0.5s cubic-bezier(0.34,1.56,0.64,1) backwards;opacity:1!important}
.skill-list li:nth-child(1){animation-delay:0.1s}
.skill-list li:nth-child(2){animation-delay:0.15s}
.skill-list li:nth-child(3){animation-delay:0.2s}
.skill-list li:nth-child(4){animation-delay:0.25s}
.skill-list li:nth-child(5){animation-delay:0.3s}
.skill-list li:nth-child(6){animation-delay:0.35s}

/* 14. Ripple Click Effect */
@keyframes ripple{
  to{transform:scale(4);opacity:0}
}
.ripple-effect{position:relative;overflow:hidden}
.ripple{position:absolute;border-radius:50%;background:rgba(0,255,225,0.5);transform:scale(0);animation:ripple 0.6s ease-out;pointer-events:none}

/* 15. Typing Cursor */
.typing-cursor::after{content:'|';animation:blink 1s step-end infinite;color:var(--neon);margin-left:2px}

/* 16. Wave Float */
@keyframes waveFloat{
  0%,100%{transform:translateY(0px) translateX(0px)}
  25%{transform:translateY(-5px) translateX(3px)}
  50%{transform:translateY(0px) translateX(5px)}
  75%{transform:translateY(5px) translateX(3px)}
}
.floating-element{animation:waveFloat 3s ease-in-out infinite}

/* 17. Perspective Card Rotation */
.project-card{transform-style:preserve-3d;transition:transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94)}
.project-card:hover{transform:rotateY(3deg) rotateX(-3deg) translateZ(20px)}

/* 18. Rainbow Text Cycle */
@keyframes rainbow{
  0%{color:#00ffe1}
  25%{color:#ff44cc}
  50%{color:#00ffe1}
  75%{color:#9aa0b2}
  100%{color:#00ffe1}
}
.rainbow-text:hover{animation:rainbow 2s linear infinite}

/* 19. Expand on Hover */
@keyframes expand{
  0%{transform:scale(1)}
  50%{transform:scale(1.05)}
  100%{transform:scale(1)}
}
.social-btn:hover{animation:expand 0.4s ease}

/* 20. Stagger Fade In for Lists */
.stagger-fade{opacity:0;animation:fadeInUp 0.6s ease forwards}
.stagger-fade:nth-child(1){animation-delay:0.05s}
.stagger-fade:nth-child(2){animation-delay:0.1s}
.stagger-fade:nth-child(3){animation-delay:0.15s}
.stagger-fade:nth-child(4){animation-delay:0.2s}
.stagger-fade:nth-child(5){animation-delay:0.25s}
.stagger-fade:nth-child(6){animation-delay:0.3s}
.stagger-fade:nth-child(7){animation-delay:0.35s}
.stagger-fade:nth-child(8){animation-delay:0.4s}
.stagger-fade:nth-child(9){animation-delay:0.45s}
.stagger-fade:nth-child(10){animation-delay:0.5s}

/* ============================================
   MORE UNIQUE ANIMATIONS
   ============================================ */

/* 21. Neon Glow Trail */
@keyframes neonTrail{
  0%{box-shadow:0 0 5px var(--neon)}
  50%{box-shadow:0 0 20px var(--neon),0 0 40px var(--neon),0 0 60px var(--neon)}
  100%{box-shadow:0 0 5px var(--neon)}
}
.nav-btn:hover{animation:neonTrail 1s ease-in-out infinite}

/* 22. Spin and Scale */
@keyframes spinScale{
  0%{transform:rotate(0deg) scale(1)}
  50%{transform:rotate(180deg) scale(1.2)}
  100%{transform:rotate(360deg) scale(1)}
}
.cert-icon:hover{animation:spinScale 0.8s ease-in-out}

/* 23. Slide Up Reveal */
@keyframes slideUpReveal{
  from{transform:translateY(100px);opacity:0;clip-path:inset(100% 0 0 0)}
  to{transform:translateY(0);opacity:1;clip-path:inset(0 0 0 0)}
}
.project-card{animation:slideUpReveal 0.8s ease backwards}
.project-card:nth-child(1){animation-delay:0.1s}
.project-card:nth-child(2){animation-delay:0.2s}
.project-card:nth-child(3){animation-delay:0.3s}

/* 24. Wiggle Animation */
@keyframes wiggle{
  0%,100%{transform:rotate(0deg)}
  25%{transform:rotate(-3deg)}
  75%{transform:rotate(3deg)}
}
.skill-list li:hover::before{animation:wiggle 0.3s ease-in-out infinite}

/* 25. Glow Pulse Border */
@keyframes glowPulseBorder{
  0%,100%{border-color:rgba(0,255,225,0.2);box-shadow:0 0 5px rgba(0,255,225,0.2)}
  50%{border-color:rgba(0,255,225,0.8);box-shadow:0 0 20px rgba(0,255,225,0.6),inset 0 0 10px rgba(0,255,225,0.2)}
}
.skill-category:hover{animation:glowPulseBorder 1.5s ease-in-out infinite}

/* 26. Typewriter Effect */
@keyframes typewriter{
  from{width:0}
  to{width:100%}
}
.typewriter{overflow:hidden;white-space:nowrap;border-right:2px solid var(--neon);width:0;animation:typewriter 2s steps(40) forwards}

/* 27. Flip Card */
@keyframes flipCard{
  0%{transform:rotateY(0deg)}
  100%{transform:rotateY(180deg)}
}
.flip-on-hover{transition:transform 0.6s;transform-style:preserve-3d}
.flip-on-hover:hover{transform:rotateY(180deg)}

/* 28. Pendulum Swing */
@keyframes pendulum{
  0%,100%{transform:rotate(0deg)}
  25%{transform:rotate(15deg)}
  75%{transform:rotate(-15deg)}
}

/* 29. Color Morph */
@keyframes colorMorph{
  0%{background:rgba(0,255,225,0.05)}
  33%{background:rgba(255,68,204,0.05)}
  66%{background:rgba(154,160,178,0.05)}
  100%{background:rgba(0,255,225,0.05)}
}
.color-morph:hover{animation:colorMorph 3s ease-in-out infinite}

/* 30. Bounce In */
@keyframes bounceIn{
  0%{transform:scale(0.3);opacity:0}
  50%{transform:scale(1.05)}
  70%{transform:scale(0.9)}
  100%{transform:scale(1);opacity:1}
}
.quick-link{animation:bounceIn 0.6s cubic-bezier(0.68,-0.55,0.265,1.55) backwards}

/* 31. Slide From Sides */
@keyframes slideFromLeft{
  from{transform:translateX(-100vw);opacity:0}
  to{transform:translateX(0);opacity:1}
}
@keyframes slideFromRight{
  from{transform:translateX(100vw);opacity:0}
  to{transform:translateX(0);opacity:1}
}
.skill-category:nth-child(odd){animation:slideFromLeft 0.8s ease backwards}
.skill-category:nth-child(even){animation:slideFromRight 0.8s ease backwards}

/* 32. Rotate on Scroll */
.rotate-scroll{transition:transform 0.3s ease}

/* 33. Fade Slide Up */
@keyframes fadeSlidUp{
  from{transform:translateY(50px);opacity:0}
  to{transform:translateY(0);opacity:1}
}
.form-group{animation:fadeSlidUp 0.6s ease backwards}

/* 34. Scale Pulse */
@keyframes scalePulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.1)}
}
.project-link:hover{animation:scalePulse 0.5s ease}

/* 35. Infinite Float */
@keyframes infiniteFloat{
  0%,100%{transform:translateY(0px)}
  50%{transform:translateY(-15px)}
}
.logo{animation:infiniteFloat 3s ease-in-out infinite}

/* 36. Shadow Expand */
@keyframes shadowExpand{
  from{box-shadow:0 0 0 0 rgba(0,255,225,0.7)}
  to{box-shadow:0 0 0 20px rgba(0,255,225,0)}
}
.submit-btn:focus{animation:shadowExpand 0.6s ease-out}

/* 37. Blink Fade */
@keyframes blinkFade{
  0%,100%{opacity:1}
  50%{opacity:0.3}
}

/* 38. Jello Wobble */
@keyframes jello{
  0%,100%{transform:skewX(0deg) skewY(0deg)}
  30%{transform:skewX(25deg) skewY(25deg)}
  40%{transform:skewX(-15deg) skewY(-15deg)}
  50%{transform:skewX(15deg) skewY(15deg)}
  65%{transform:skewX(-5deg) skewY(-5deg)}
  75%{transform:skewX(5deg) skewY(5deg)}
}
.tag:hover{animation:jello 0.8s ease}

/* 39. Flip In X */
@keyframes flipInX{
  from{transform:perspective(400px) rotateX(90deg);opacity:0}
  to{transform:perspective(400px) rotateX(0deg);opacity:1}
}

/* 40. Glow Text Pulse */
@keyframes glowTextPulse{
  0%,100%{text-shadow:0 0 5px var(--neon),0 0 10px var(--neon)}
  50%{text-shadow:0 0 10px var(--neon),0 0 20px var(--neon),0 0 30px var(--neon)}
}
h2{animation:glowTextPulse 2s ease-in-out infinite}

/* Apply color morph to cards */
.card{position:relative}
.card::before{content:'';position:absolute;inset:0;opacity:0;transition:opacity 0.5s;pointer-events:none;border-radius:12px}
.card:hover::before{opacity:1;animation:colorMorph 3s ease-in-out infinite}

/* Responsive Design */
@media(max-width:1024px){
  #overlay{max-width:90%;margin:0 auto;padding:16px}
  .hero-content{grid-template-columns:1fr;gap:30px}
  .hero-visual{display:flex;justify-content:center}
  .progress-indicator{right:20px}
}

@media(max-width:768px){
  body{text-align:center}
  #overlay{margin:0 auto !important;padding:15px !important;max-width:100% !important;text-align:center !important}
  .logo{font-size:14px;text-align:center}
  .topbar{gap:8px;padding:10px;margin-bottom:12px;margin-left:auto !important;margin-right:auto !important}
  .topbar nav{gap:10px;font-size:13px;justify-content:center}
  .card{padding:16px;margin-bottom:14px;text-align:center !important;margin-left:auto !important;margin-right:auto !important}
  .card h2{text-align:center !important}
  .card h3{text-align:center !important}
  .card p{text-align:center !important}
  .hero-section{min-height:auto;padding:30px 15px;text-align:center !important}
  .hero-content{grid-template-columns:1fr !important;gap:25px !important;text-align:center !important}
  .hero-text{width:100% !important;text-align:center !important;margin:0 auto !important}
  .hero-visual-desktop{display:none !important}
  .hero-visual-inline{display:inline-flex !important;align-items:center;justify-content:center;margin-left:10px;vertical-align:middle}
  .hero-title-wrapper{display:flex !important;align-items:center !important;justify-content:center !important;flex-wrap:nowrap !important;gap:0 !important}
  .hero-title{font-size:28px !important;line-height:1.3 !important;text-align:center !important;margin:0 !important;display:inline-block !important}
  .hero-subtitle{font-size:16px !important;text-align:center !important;margin:10px auto !important}
  .hero-description{font-size:14px !important;line-height:1.6 !important;text-align:center !important;max-width:100% !important;margin:0 auto 20px !important}
  .hero-cta{justify-content:center !important;flex-direction:row;flex-wrap:wrap;margin:0 auto}
  .cta-primary,.cta-secondary{text-align:center;padding:12px 20px;font-size:14px;margin:0 auto}
  .hero-visual-inline .profile-image-container{width:100px;height:100px;margin:0;display:inline-flex;align-items:center;justify-content:center}
  .hero-visual-inline .profile-image{width:85px;height:85px;border-width:2px}
  .nav-buttons{gap:10px;justify-content:center;flex-wrap:wrap;margin:0 auto}
  .nav-btn{padding:12px 16px;font-size:13px}
  .progress-indicator{display:none}
  .skills-grid{grid-template-columns:1fr;gap:12px;grid-auto-rows:1fr;justify-items:center;width:100%}
  .skill-category{text-align:center !important;margin:0 auto;min-height:160px;display:flex;flex-direction:column;width:100%;max-width:500px}
  .skill-category h3{text-align:center !important}
  .skill-list{flex:1}
  .projects-grid{grid-template-columns:1fr;grid-auto-rows:1fr;justify-items:center;width:100%}
  .project-card{text-align:center !important;margin:0 auto;min-height:300px;display:flex;flex-direction:column;justify-content:space-between;width:100%;max-width:500px}
  .project-card h3{text-align:center !important}
  .project-desc{text-align:center !important;flex:1}
  .certifications-grid{grid-template-columns:1fr;gap:12px;grid-auto-rows:1fr;justify-items:center;width:100%}
  .cert-card{text-align:center !important;margin:0 auto;min-height:200px;display:flex;flex-direction:column;justify-content:space-between;width:100%;max-width:500px}
  .cert-card h3{text-align:center !important;flex:1;display:flex;align-items:center;justify-content:center}
  .social-icons{gap:10px;flex-wrap:wrap;justify-content:center}
  .social-btn{padding:10px 14px;font-size:13px}
  .social-links-full{grid-template-columns:1fr;gap:12px}
  .social-item{text-align:center !important;margin:0 auto}
  .social-item h4{text-align:center !important}
  .contact-form{max-width:100%;margin:0 auto}
  .form-group{margin-bottom:14px;text-align:left}
  .submit-btn{width:100%;padding:14px}
  h2{text-align:center !important}
  p{text-align:center !important}
  .link-grid{grid-template-columns:1fr;gap:12px;text-align:center;grid-auto-rows:1fr;justify-items:center;width:100%;display:none}
  .link-card{text-align:center !important;margin:0 auto;min-height:150px;display:flex;flex-direction:column;justify-content:center;width:100%;max-width:500px}
  .link-card h3{text-align:center !important}
  .link-card p{text-align:center !important}
  .intro{text-align:center !important;margin:0 auto}
  .intro h2{text-align:center !important}
  .intro p{text-align:center !important}
  .contact-content{text-align:center !important;margin:0 auto}
  .contact-content p{text-align:center !important}
}

@media(max-width:480px){
  body{text-align:center !important}
  #overlay{margin:0 auto !important;padding:10px !important;max-width:100% !important;text-align:center !important}
  .logo{font-size:11px;letter-spacing:1px;text-align:center}
  .topbar{margin-bottom:10px;padding:8px;flex-direction:column;align-items:center;text-align:center;margin-left:auto !important;margin-right:auto !important}
  .topbar nav{width:100%;justify-content:center;font-size:11px;flex-wrap:wrap;gap:8px}
  .topbar nav a{margin:0;font-size:11px}
  .card{padding:14px;margin-bottom:12px;border-radius:8px;text-align:center !important;margin-left:auto !important;margin-right:auto !important;max-width:100% !important}
  .card h2{text-align:center !important}
  .card h3{text-align:center !important}
  .card p{text-align:center !important}
  .hero-section{padding:20px 10px;min-height:auto;text-align:center !important}
  .hero-content{display:flex !important;flex-direction:column !important;gap:15px !important;text-align:center !important}
  .hero-text{width:100% !important;text-align:center !important;margin:0 auto !important}
  .hero-visual-desktop{display:none !important}
  .hero-visual-inline{display:inline-flex !important;align-items:center;justify-content:center;margin-left:10px;vertical-align:middle}
  .hero-title-wrapper{display:flex !important;align-items:center !important;justify-content:center !important;flex-wrap:nowrap !important;gap:0 !important}
  .hero-title{font-size:20px !important;margin:0 !important;line-height:1.4 !important;text-align:center !important;display:inline-block !important}
  .hero-subtitle{font-size:13px !important;margin:10px auto !important;text-align:center !important}
  .hero-description{font-size:12px !important;margin:0 auto 16px !important;line-height:1.5 !important;text-align:center !important;max-width:100% !important;padding:0 5px}
  .hero-cta{flex-direction:column !important;gap:10px !important;align-items:center !important;justify-content:center !important;width:100%;margin:0 auto}
  .cta-primary,.cta-secondary{width:90%;max-width:280px;padding:12px;text-align:center;font-size:13px;display:block;margin:0 auto}
  .hero-visual-inline .profile-image-container{width:80px;height:80px;margin:0;display:inline-flex;align-items:center;justify-content:center}
  .hero-visual-inline .profile-image{width:70px;height:70px;border-width:2px}
  .profile-container{width:80px;height:80px}
  .profile-frame{width:80px;height:80px;display:none}
  .floating-box{width:120px;height:120px;font-size:12px}
  .nav-buttons{gap:8px;flex-direction:column;align-items:center;width:100%;margin:0 auto}
  .nav-btn{width:90%;max-width:280px;padding:10px;font-size:12px;text-align:center;margin:0 auto}
  .skills-grid{grid-template-columns:1fr;gap:10px;grid-auto-rows:1fr;justify-items:center;width:100%}
  .skill-category{padding:10px 10px;text-align:center !important;margin:0 auto;min-height:120px;display:flex;flex-direction:column;width:100%;max-width:420px}
  .skill-category h3{font-size:13px;margin-bottom:6px;text-align:center !important}
  .skill-list{gap:6px;justify-content:center;flex-wrap:wrap;flex:1}
  .skill-list li{font-size:11px;padding:4px 8px;padding-left:10px}
  /* mobile: bring bullet closer and enable a short rotation */
  .skill-list li::before{left:6px;animation:rotate360 1s linear infinite}
  .projects-grid{grid-template-columns:1fr;gap:10px;grid-auto-rows:1fr;justify-items:center;width:100%}
  .project-card{padding:12px;text-align:center !important;margin:0 auto;min-height:280px;display:flex;flex-direction:column;justify-content:space-between;width:100%;max-width:500px}
  .project-card h3{font-size:15px;margin-bottom:8px;text-align:center !important}
  .project-desc{font-size:11px;line-height:1.5;text-align:center !important;flex:1}
  .project-meta{font-size:10px;text-align:center !important}
  .project-tech{justify-content:center !important}
  .certifications-grid{grid-template-columns:1fr;gap:10px;grid-auto-rows:1fr;justify-items:center;width:100%}
  .cert-card{padding:12px;text-align:center !important;margin:0 auto;min-height:180px;display:flex;flex-direction:column;justify-content:space-between;width:100%;max-width:500px}
  .cert-card h3{font-size:13px;text-align:center !important;flex:1;display:flex;align-items:center;justify-content:center}
  .cert-icon{font-size:20px;margin-bottom:8px}
  .cert-issuer{text-align:center !important}
  .cert-link{text-align:center !important;margin-top:auto}
  .social-links-full{grid-template-columns:1fr;gap:10px}
  .social-item{padding:12px;font-size:12px;text-align:center !important;margin:0 auto}
  .social-item h4{text-align:center !important}
  .social-btn-large{text-align:center !important;padding:8px 12px;font-size:14px}
  /* CTA label inside social buttons */
  .social-cta{display:inline-block;padding:6px 12px;background:rgba(0,0,0,0.08);border-radius:6px;color:var(--neon);font-weight:600}
  /* visually hide original label but keep for screen readers */
  .social-label{position:absolute !important;left:-9999px !important;top:auto !important;width:1px !important;height:1px !important;overflow:hidden !important}
  .contact-form{max-width:100%;margin:0 auto}
  .form-group{margin-bottom:12px;text-align:left}
  .form-group label{font-size:12px;margin-bottom:4px;text-align:left}
  .form-group input,.form-group textarea{text-align:left}
  h2{text-align:center !important;font-size:18px}
  h3{text-align:center !important}
  p{text-align:center !important}
  .link-grid{grid-template-columns:1fr;gap:10px;text-align:center;grid-auto-rows:1fr;justify-items:center;width:100%;display:grid}
  .link-card{text-align:center !important;margin:0 auto;min-height:120px;padding:12px;display:flex;flex-direction:column;justify-content:center;width:100%;max-width:420px}
  .link-card h3{text-align:center !important}
  .link-card p{text-align:center !important}
  .intro{text-align:center !important;margin:0 auto}
  .intro h2{text-align:center !important}
  .intro p{text-align:center !important}
  .contact-content{text-align:center !important;margin:0 auto}
  .contact-content p{text-align:center !important}
  .contact-content strong{text-align:center !important}
}

