/* ===== Reset & Base ===== */
*{box-sizing:border-box;
  margin:0;padding:0
}
html,body{
  height:100%
}
body{
  font-family:"Orbitron",sans-serif;
  background:#03030a;color:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

/* ===== Tiny Star Background ===== */

#bg-stars{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:-3
}

/* ===== Custom Cursor ===== */
.cursor{
  position:fixed
  ;width:16px;
  height:16px;
  z-index:9999;
  pointer-events:none;
  background:#ff80b3;
  clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  transform:translate(-50%,-50%);
  transition:transform 0.08s linear;
  box-shadow:0 0 10px rgba(255,128,179,0.8)
}
.sparkle{
  position:fixed;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#ff80b3;
  opacity:1;
  pointer-events:none;
  animation:sparkleFade 0.6s forwards
}
@keyframes sparkleFade{0%{transform:scale(1);opacity:1}100%{transform:scale(0);opacity:0}}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  z-index: 999;
  padding: 0 30px;
  transition: transform 0.4s ease, 
              background-color 0.3s ease,
              box-shadow 0.3s ease04;
}
/* Place logo at absolute left corner */
.logo {
  position: absolute;
  height: 40px;
  left: 30px; /* distance from left edge */
  top: 15px;  /* distance from top */
  text-decoration: none;
}

/* Moon icon styling */
.logo i {
  font-size: 59px;
  color: #ff9bd7;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo i:hover {
  transform: rotate(-40deg) scale(1.1);
  text-shadow: 0 0 10px #ff6ec7, 0 0 20px #ff9bd7;
  color: #fff;
}

.nav {
  display: flex;
  gap: 50px;
  align-items: center;
}
header.hide {
  transform: translateY(-100%);
}

.nav a {
  margin: 0 15px;
  color: #dcdcdc;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  font-weight: 600;
  transition: color 0.s;
  font-size: 1rem;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #ff80b3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
  box-shadow: 0 0 8px rgba(255, 128, 179, 0.6);
}

.nav a:hover {
  color: #fff;
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* ===== Sections ===== */
.section {
  padding: 110px 32px;
  text-align: center;
  position: relative;
  margin-top: 70px; /* Added to account for fixed header */
}
.section-title{
  text-align:left;
  font-size:2rem;
  color:#ff80b3;
  margin-bottom:18px
}

/* ===== Home ===== */
.home{
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative
}
.home-inner{
  text-align:center
}
.glow-name{
  font-size:4rem;
  color:#ff80b3;
  text-shadow:0 0 16px rgba(255,128,179,0.8),0 0 32px rgba(255,77,166,0.5);
  animation:glow 3s ease-in-out infinite alternate
}
@keyframes glow{0%{text-shadow:0 0 10px rgba(255,128,179,0.6)}100%{text-shadow:0 0 28px rgba(255,77,166,0.7),0 0 44px rgba(255,128,179,0.9)}}

.quote-box{
  margin-top:18px;
  padding:14px 22px;
  border-radius:12px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,128,179,0.12);
  color:#ffd6e6
}

/* ===== Floating Social Icons ===== */
.side-socials {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
  transform-origin: right center;
  pointer-events: none;
}

.side-socials.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.side-socials a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb6c1;
  font-size: 1.3rem;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 128, 179, 0.3);
  animation: floatY 3s ease-in-out infinite, glowPulse 2.5s ease-in-out infinite;
  transition: transform 0.3s, box-shadow 0.3s, color 0.3s;
  text-decoration: none; /* ✅ Removes underline */
}

.side-socials a:nth-child(2) {
  animation-delay: 0.5s;
}

.side-socials a:nth-child(3) {
  animation-delay: 1s;
}

.side-socials a:nth-child(4) {
  animation-delay: 1.5s;
}

.side-socials a:hover {
  transform: scale(1.2);
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 128, 179, 0.9);
}

@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255, 128, 179, 0.4);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 128, 179, 0.9);
  }
}
/* ===== About Section ===== */
/* Add Google Font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&display=swap');

.section {
  text-align: center;
  padding: 50px 20px;
  color: #ffb6c1;
  background-color: transparent;
  font-family: 'Orbitron', sans-serif;
}

.section-title {
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 25px;
  color: #ff9ff4;
}

.about-points {
  list-style-type: "";
  text-align: auto;
  display: inline-block;
  margin: 0 auto;
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: #ffffff;
}

.about-quote {
  margin-top: 30px;
  font-size: 1.1rem;
  font-style: italic;
  color: #8e8a8b;
}

.readmore-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 1rem;
  color: #ff6cb0;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.readmore-link:hover {
  color: #ff98c7;
  transform: scale(1.1);
}



/* ===== Skills Section ===== */
#skills {
  position: relative;
  overflow: hidden;
  height: 500px;
  background: transparent;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #ffb6c1;
  margin-bottom: 25px;
}

.skills-area {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ===== Skill Circle ===== */
.skill-circle {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 2px solid rgb(255, 182, 193);
  border-radius: 50%;
  color: #ff80b3e6;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 128, 179, 0.4);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.skill-circle:hover {
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(255, 128, 179, 0.902);
}

/* Tooltip with skill name */
.skill-circle::after {
  content: attr(data-skill);
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #ffb6c1;
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-circle:hover::after {
  opacity: 1;
}

/* ===== Orbiting Dot ===== */
.dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: #ffb6c1;
  border-radius: 50%;
  transform-origin: -35px 0; /* radius of circle edge */
  animation: orbit 3.5s linear infinite;
}

/* Perfect circular orbit path */
@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Skill name appears below */
.skill-circle::after {
  content: attr(data-skill);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #ffb6c1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.skill-circle:hover::after {
  opacity: 1;
}

/* Orbit animation for dot */
@keyframes orbit {
  from { transform: rotate(0deg) translateX(45px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(45px) rotate(-360deg); }
}

/* Floating animation inside section (random drift) */
@keyframes floatInSpace {
  0% { transform: translate(0px, 0px); }
  25% { transform: translate(50px, -30px); }
  50% { transform: translate(-60px, 40px); }
  75% { transform: translate(40px, 50px); }
  100% { transform: translate(-40px, -50px); }
}


/* ===== Popup Base ===== */
.popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 2, 6, 0.75);
  z-index: 2000;
}

.popup.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-card {
  position: relative;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgb(34, 10, 27));
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 128, 179, 0.15);
  width: 92%;
  max-width: 720px;
  color: #ffdfee;
  z-index: 3;
  transform: scale(0.8);
  opacity: 0;
  animation: popupGrow 0.5s ease forwards;
}

@keyframes popupGrow {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 26px;
  color: #ff80b3;
  cursor: pointer;
}

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

.about-img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
}

.about-text {
  text-align: left;
  flex: 1;
}

.readmore-link {
  color: #ff80b3;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.readmore-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: #ff80b3;
}

/* Canvas for sparks */
#sparkCanvas {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  z-index: 2;
  pointer-events: none;
  border-radius: 14px;
}

/* ===== Projects Section ===== */
#projects {
  position: relative;
  overflow: hidden;
  padding: 50px 0;
  /*background: radial-gradient(circle at top, #1a001f, #050509);*/
}

.projects-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
}

.projects-container {
  display: flex;
  gap: 24px;
  overflow-x: hidden;
  padding: 30px 20px;
  transition: transform 0.8s ease;
  will-change: transform;
  transform: translateX(0); /* Start from left */
}

/* ===== Project Card Style ===== */
.project-card {
  min-width: 335px;
  max-width: 352px;
  /*background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.95));*/
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 35px;
  text-align: left;
  color: #ffdfee;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 128, 179, 0.1);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 25px rgba(255, 128, 179, 0.6), 0 0 50px rgba(47, 5, 22, 0.3);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgb(34, 10, 27));
}

.project-card h3 {
  font-size: 1.3rem;
  color: #ffb6c1;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 14px;
}

.repo-link {
  display: inline-block;
  font-size: 0.95rem;
  color: #ff80b3;
  text-decoration: none;
  position: relative;
}

.repo-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #ff80b3;
  transition: width 0.3s ease;
}

.repo-link:hover::after {
  width: 100%;
}



/* ===== Experience Section ===== */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.experience-card {
  padding: 20px;
  border-left: 3px solid #ff80b3;
  position: relative;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  color: #fff; /* make all text white */
}

.experience-card::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #ff80b3, #ff1493);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.experience-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 128, 179, 0.1), rgba(255, 20, 147, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.experience-card:hover {
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 5px 15px rgba(255, 128, 179, 0.2);
  background: rgba(255, 128, 179, 0.07);
}

.experience-card:hover::before {
  transform: scaleY(1);
}

.experience-card:hover::after {
  opacity: 1;
}

/* ===== "View" Link (no button background) ===== */
.exp-link {
  color: #ff80b3;
  text-decoration: none;
  font-weight: 800;
  font-size:15px;
  position: relative;
  transition: color 0.3s ease;
  background: none; /* remove background */
  border: none; /* remove border */
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  display: inline-block;
}

.exp-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #ff80b3;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.exp-link:hover {
  color:  #ff80b3;
}

.exp-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
/** ===== Updated link  ===== */

/* ===== Pop-up Box ===== */
.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.popup img {
  width: 45%;
  height: 97%;
  max-width: 600px;
  border-radius: 30px;
  box-shadow: 0 0 0px #ff80b3;
  animation: zoomIn 0.3s ease;
}

.popup .close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #d98baa;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.popup .close:hover {
  color:  #ff80b3;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}



/* ===== Resume ===== */
.resume-card{
  text-align:center;
  line-height:1.6;
  margin-top:20px;
  color: #fff; /* make all text white */
}
.resume-download{
  display:inline-block;
  margin-top:16px;
  padding:10px 18px;
  background:linear-gradient(90deg,#ff80b3,#d74890);
  color:#05040a;
  border-radius:999px;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 6px 20px rgba(255,128,179,0.18)
}
.resume-download:hover{
  transform:translateY(-4px);
  transition:transform .2s
}


/* ===== Footer Waves ===== */
footer{
  position:relative;
  padding:0;
  text-align:center;
  color:#d5257d
}
.footer-waves{
  position:relative;
  left:0;
  right:0;
  bottom:0;
  height:120px;
  overflow:hidden
}
.wave{
  position:absolute;
  left:0;
  bottom:0;
  width:200%;
  height:100%;
  animation:waveMove 6s linear infinite
}
.wave2{
  opacity:.6;
  animation-delay:-3s
}
@keyframes waveMove{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ===== Scroll to Top ===== */
#scrollTopBtn{
  position:fixed;
  bottom:30px;
  right:30px;
  background:#090910;
  color:#dc6192;
  border:none;
  padding:12px;
  border-radius:50%;
  cursor:pointer;
  opacity:0.7;
  z-index:9999;
  transition:opacity .25s
}
#scrollTopBtn:hover{
  opacity:1
}

/* ===== Responsive ===== */
@media(max-width:720px){
  .glow-name{font-size:3rem}.skill-star{width:50px;height:50px;font-size:22px}.side-socials{right:8px}
}
