body {
  background: #0A0A0A;
  color: white;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
}

/* NAME */
.name {
  font-family: 'Orbitron', sans-serif;
  font-size: 80px;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #00E5FF, #7A00FF);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s infinite alternate;
}

/* GLOW */
@keyframes glow {
  from { text-shadow: 0 0 10px #00E5FF; }
  to { text-shadow: 0 0 30px #7A00FF; }
}

/* SKILLS */
#skills {
  font-size: 32px;
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* BUTTON */
.neon-btn {

  position: relative;
  overflow: hidden;

}

.neon-btn::before {

  content: "";

  position: absolute;
  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );

  transition: 0.6s;

}

.neon-btn:hover::before {

  left: 100%;

}


/* PROJECT */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card img {
  border-radius: 10px;
  transition: 0.3s;
}

.project-card:hover img {
  transform: scale(1.05);
}

/* OVERLAY */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
}

.project-card:hover .overlay {
  opacity: 1;
  box-shadow: 0 0 20px #00E5FF;
}

/* POPUP */
.project-popup{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(15px);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 9999;
    padding: 20px;
}

.popup-content{

    position: relative;

    width: 90%;
    max-width: 1100px;

    background: #111;
    border-radius: 15px;

    padding: 20px;

    overflow: hidden;
}

.popup-content video{

    display: block;

    width: 100%;
    max-height: 70vh;

    object-fit: contain;

    border-radius: 10px;
}

.close{
    position:absolute;
    top:10px;
    right:15px;
    z-index:100;
} 

/* MARQUEE */
.marquee {
  position: absolute;
  bottom: 40px; /* thoda niche shift */
  left: 0;
  width: 100%;
  overflow: hidden;
  padding: 10px 0; /* IMPORTANT */
}
/* TRACK */
.track {
  display: flex;
  width: max-content;
  animation: scrollIcons 20s linear infinite;
}

/* ICON SET */
.icon-set {
  display: flex;
  align-items: center;
}

/* ITEM */
.item {
  display: flex;
  align-items: center;
  margin: 0 40px;
  gap: 8px;
}

/* ICON */
.item img {
  width: 28px;
  filter: drop-shadow(0 0 6px #00E5FF);
}

/* TEXT */
.item span {
  font-size: 14px;
  color: #00E5FF;
  opacity: 0.7;
}

/* LOOP */
@keyframes scrollIcons {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CONTENT */
.content {
  display: flex;
  align-items: center;
}

/* TEXT STYLE (UPGRADE BIG TIME) */
.content span {
  margin: 0 35px;
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 500;

  color: #00E5FF;
  opacity: 0.6;

  transition: all 0.3s ease;
  position: relative;
}
/* HOVER = WOW EFFECT */
.content span:hover {
  text-shadow: 0 0 20px #00E5FF, 0 0 30px #7A00FF;
  transform: scale(1.1);
}

/* SMOOTH LOOP */
@keyframes scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* TRACK (already hai but speed tweak) */
.track {
  display: flex;
  width: max-content;
  animation: scroll 18s linear infinite;
}

/* TEXT BASE */
.content span {
  margin: 0 35px;
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 500;

  color: #00E5FF;
  opacity: 0.6;

  transition: all 0.3s ease;
  position: relative;
}

/* 🔥 FLOAT EFFECT (subtle movement) */
.content span {
  animation: float 3s ease-in-out infinite;
}

/* delay for variation */
.content span:nth-child(2) { animation-delay: 0.3s; }
.content span:nth-child(3) { animation-delay: 0.6s; }
.content span:nth-child(4) { animation-delay: 0.9s; }
.content span:nth-child(5) { animation-delay: 1.2s; }

/* FLOAT KEYFRAME */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0px); }
}

/* 🔥 HOVER EFFECT */
.content span:hover {
  opacity: 1;
  transform: scale(1.1);
  text-shadow: 0 0 12px #00E5FF;
}

.item:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 12px #00E5FF);
}

.item:hover span {
  opacity: 1;
}
/* 🔥 LIGHT SWEEP EFFECT */
.content span::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, transparent, #00E5FF, transparent);
  transition: 0.3s;
}

.content span:hover::before {
  width: 100%;
}.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, #0A0A0A, transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, #0A0A0A, transparent);
}
/* BUTTON BASE */
.resume-btn {
  position: relative;
  display: inline-block;
  padding: 12px 30px;
  color: #00E5FF;
  border: 1px solid #00E5FF;
  text-decoration: none;
  overflow: hidden;
  transition: 0.3s;
}

/* 🔥 IDLE ANIMATION (WITHOUT HOVER) */
.resume-btn {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 5px #00E5FF; }
  50% { box-shadow: 0 0 15px #00E5FF; }
  100% { box-shadow: 0 0 5px #00E5FF; }
}

/* 🔥 HOVER EFFECT (SWEEP LIGHT) */
.resume-btn span {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, #00E5FF, transparent);
  transition: 0.5s;
}

.resume-btn:hover span {
  left: 100%;
}

/* HOVER COLOR CHANGE */
.resume-btn:hover {
  background: #00E5FF;
  color: black;
  box-shadow: 0 0 20px #00E5FF;
}
.about h2 {
  font-size: 36px;
  font-weight: 600;
  color: white;
  letter-spacing: 2px;
  position: relative;
}

/* subtle neon underline */
.about h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 2px;
  background: #00E5FF;
}
.section-title { color:#fff; letter-spacing:2px; position:relative; }
.section-title::after{
  content:""; display:block; width:60px; height:2px; background:#00E5FF; margin-top:8px;
}

.contact-text { color:#aaa; }
.contact-list { list-style:none; padding:0; }
.contact-list li { margin:8px 0; }
.contact-list a { color:#00E5FF; text-decoration:none; }

.contact-form input,
.contact-form textarea{
  width:100%;
  margin-bottom:12px;
  padding:10px;
  background:#111;
  border:1px solid #222;
  color:#fff;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:#00E5FF;
  box-shadow:0 0 8px #00E5FF33;
}
/* ================= LOADER ================= */

#loader {

  position: fixed;
  inset: 0;

  background: #000;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  z-index: 9999;

}


/* TEXT */

#loaderText {

  display: block;

  font-size: 64px;

  letter-spacing: 10px;

  font-family: 'Orbitron', sans-serif;

  background:
    linear-gradient(
      90deg,
      #7A5CFF,
      #00D9FF
    );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 12px rgba(0,217,255,0.25);

}


/* ================= RING ================= */

.loader-ring {

  width: 42px;
  height: 42px;

  margin-top: 34px;

  border-radius: 50%;

  border: 1.5px solid rgba(255,255,255,0.06);

  border-top: 1.5px solid #00D9FF;
  border-right: 1.5px solid #7A5CFF;

  box-shadow:
    0 0 12px rgba(0,217,255,0.12);

  animation: loaderSpin 2.2s linear infinite;

}


/* SPIN */

@keyframes loaderSpin {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}
.letter {
  width: 24px;
  height: 50px;
  overflow: hidden;
  position: relative;
}

.letter span {
  position: absolute;
  width: 100%;
  text-align: center;
  left: 0;
  top: 0;
  animation: spin 0.08s linear infinite;
  filter: blur(1px);
}

.letter.stop span {
  animation: none;
  filter: blur(0);
}

@keyframes spin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}
@keyframes neonFlow {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}

section{
  opacity:0;
  transform:translateY(40px);
  transition:0.6s ease;
}
.custom-nav {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  padding: 10px 0;
}

.nav-link {
  color: white;
  margin-left: 15px;
  transition: 0.3s;
}

.nav-link:hover {
  color: #00E5FF;
}

.navbar-brand {
  font-weight: bold;
  color: #00E5FF;
}
/* SECTION TITLE */
.section-title {
  color: white;
  letter-spacing: 2px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 2px;
  background: #00E5FF;
  display: block;
  margin-top: 10px;
}

/* TIMELINE BASE */
.timeline {
  position: relative;
  margin-top: 40px;
}

/* CENTER LINE */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #222;
  transform: translateX(-50%);
}

/* ITEM */
.timeline-item {
  width: 50%;
  padding: 20px;
  position: relative;
  opacity: 0;
  transition: all 0.6s ease;
}

/* LEFT */
.timeline-item.left {
  left: 0;
  transform: translateX(-80px);
}

/* RIGHT */
.timeline-item.right {
  left: 50%;
  transform: translateX(80px);
}

/* ACTIVE (scroll pe) */
.timeline-item.show {
  opacity: 1;
  transform: translateX(0);
}

/* CONTENT BOX */
.timeline-content {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  border-left: 2px solid #00E5FF;
  transition: 0.3s;
}

/* HOVER */
.timeline-content:hover {
  box-shadow: 0 0 15px #00E5FF;
}

/* TEXT */
.timeline-content h5 {
  margin: 0;
  font-size: 18px;
}

.timeline-content p {
  color: #aaa;
  margin: 5px 0;
}

.timeline-content span {
  font-size: 12px;
  color: #666;
}

/* LIST */
.timeline-content ul {
  padding-left: 15px;
  color: #ccc;
}

/* HIGHLIGHT */
.highlight {
  border-left: 3px solid #00E5FF;
}

/* MOBILE FIX */
@media (max-width: 768px) {

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    transform: translateX(0) !important;
    padding-left: 30px;
  }
}
.highlight {
  border-left: 3px solid #00E5FF;
  background: rgba(0, 229, 255, 0.05);
}
/* ================= HERO ================= */

.hero {

  position: relative;
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(circle at 70% 30%,
      rgba(0,255,255,0.08),
      transparent 35%),

    radial-gradient(circle at 30% 70%,
      rgba(122,0,255,0.08),
      transparent 35%),

    #050505;

}


/* ================= GRID ================= */

.hero::before {

  content: "";

  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);

  background-size: 60px 60px;

  mask-image: radial-gradient(circle at center,
      black 40%,
      transparent 100%);

  z-index: 0;

}


/* ================= AMBIENT GLOW ================= */

.hero::after {

  content: "";

  position: absolute;

  width: 700px;
  height: 700px;

  border-radius: 50%;

  background:
    radial-gradient(circle,
      rgba(0,229,255,0.12),
      transparent 70%);

  filter: blur(120px);

  right: -200px;
  top: 50%;

  transform: translateY(-50%);

  z-index: 0;

}


/* ================= NAME ================= */

.name {

  position: relative;
  z-index: 2;

  font-family: 'Orbitron', sans-serif;

  font-size: clamp(4rem, 9vw, 8rem);

  letter-spacing: 6px;

  background:
    linear-gradient(
      90deg,
      #00D9FF,
      #4DA3FF,
      #7A5CFF
    );

  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 10px rgba(0,217,255,0.45),
    0 0 30px rgba(0,217,255,0.18),
    0 0 60px rgba(122,92,255,0.12);

}


/* ================= SKILLS ================= */

#skills {

  position: relative;
  z-index: 2;

  margin-top: 18px;

  font-size: 2rem;
  font-weight: 300;

  color: rgba(255,255,255,0.92);

  letter-spacing: 1px;

  animation: floatSkill 4s ease-in-out infinite;

}

@keyframes floatSkill {

  0% { transform: translateY(0px); }

  50% { transform: translateY(-4px); }

  100% { transform: translateY(0px); }

}


/* ================= BUTTON ================= */

.neon-btn {

  position: relative;
  z-index: 2;

  margin-top: 45px;

  padding: 14px 34px;

  border-radius: 14px;

  border: 1px solid rgba(0,229,255,0.35);

  background:
    rgba(255,255,255,0.04);

  backdrop-filter: blur(14px);

  color: white;

  font-weight: 500;
  letter-spacing: 1px;

  overflow: hidden;

  transition: all 0.35s ease;

  box-shadow:
    0 0 25px rgba(0,229,255,0.08);

}


/* BUTTON HOVER */

.neon-btn:hover {

  transform: translateY(-3px);

  border-color: rgba(0,229,255,0.7);

  box-shadow:
    0 0 35px rgba(0,229,255,0.22);

}


/* LIGHT SWEEP */

.neon-btn::before {

  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 80%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.22),
      transparent
    );

  transform: skewX(-20deg);

}

.neon-btn:hover::before {

  animation: sweep 0.9s ease;

}

@keyframes sweep {

  from {
    left: -120%;
  }

  to {
    left: 150%;
  }

}
/* CARD */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  transition: 0.4s;
}

.project-card:hover img {
  transform: scale(1.1);
}

/* OVERLAY */
.project-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.4s;
}

.project-card:hover .overlay {
  opacity: 1;
}

/* POPUP */
.project-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
}

.popup-content {
  width: 75%;
  max-width: 900px;
  max-height: 90vh;

  overflow-y: auto;

  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s ease;

  padding: 20px;
}
.project-popup.active .popup-content {
  transform: scale(1);
  opacity: 1;
}

.popup-content video{
    width:100%;
    max-height:80vh;
    object-fit:contain;
}

.close {
  cursor: pointer;
  font-size: 20px;
}

#tools img {
  width: 30px;
  margin: 5px;
}
.tool-icon {
  width: 35px;
  margin: 5px;
  filter: drop-shadow(0 0 5px #00E5FF);
}

#softwareName {
  color: #00E5FF;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 1px;
}
#popupDesc {
  color: #aaa;
  font-size: 15px;
  line-height: 1.7;
  max-width: 700px;
  margin: 10px auto;
  text-align: center;
  letter-spacing: 0.5px;
}
.project-popup {
  backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.85);
}
.popup-content {
  width: 70%;
  transform: scale(0.7);
  opacity: 0;
  transition: all 0.4s ease;
}

.project-popup.active .popup-content {
  transform: scale(1);
  opacity: 1;
}

.popup-content video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
}
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #00E5FF;
  transform: scale(1.2);
}

#pulse{
  position:fixed;
  inset:0;
  display:none;
  z-index:9998;

  background: radial-gradient(circle at center, #00E5FF, #7A00FF, transparent 70%);
  opacity:0;

  animation: pulseOut 0.8s ease forwards;
}

@keyframes pulseOut{
  0%{
    transform:scale(0.3);
    opacity:1;
  }
  100%{
    transform:scale(3);
    opacity:0;
  }
}
body.reveal {
  animation: fadeReveal 0.8s ease forwards;
}

@keyframes fadeReveal {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.item {
  display: flex;
  align-items: center;
  margin: 0 40px;
  gap: 8px;

  height: 40px; /* 🔥 ensures no cut */
}
.item img {
  width: 28px;
  height: 28px; /* fix distortion + crop */
  object-fit: contain;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, #0A0A0A, transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, #0A0A0A, transparent);
}
.filters button {
  margin: 5px;
  padding: 8px 16px;
  border: 1px solid #00E5FF;
  background: transparent;
  color: #00E5FF;
  cursor: pointer;
  transition: 0.3s;
}

.filters button:hover,
.filters .active {
  background: #00E5FF;
  color: black;
  box-shadow: 0 0 10px #00E5FF;
}
/* BASE */
.project-item {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* HIDE */
.project-item.hide {
  opacity: 0;
  transform: scale(0.9);
}

/* SHOW */
.project-item.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* INITIAL SLIDE */
.project-item {
  transform: translateX(40px);
}
.project-item.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0,229,255,0.5);
  border-radius: 50%;

  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  from {
    transform: translateY(100vh);
    opacity: 0;
  }

  to {
    transform: translateY(-10vh);
    opacity: 1;
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

  background-size: 50px 50px;

  z-index: -2;
}
.neon-btn {
  animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {

  0% {
    box-shadow: 0 0 5px #00E5FF;
  }

  50% {
    box-shadow: 0 0 20px #00E5FF;
  }

  100% {
    box-shadow: 0 0 5px #00E5FF;
  }

}
#skills {
  animation: skillFloat 3s ease-in-out infinite;
}

@keyframes skillFloat {

  0% { transform: translateY(0px); }

  50% { transform: translateY(-4px); }

  100% { transform: translateY(0px); }

}
.name {

  text-shadow:
    0 0 8px rgba(0,229,255,0.8),
    0 0 20px rgba(0,229,255,0.5),
    0 0 40px rgba(122,0,255,0.35);

}
/* ================= LOADER RING ================= */

.loader-ring {

  width: 100px;
  height: 100px;

  margin-top: 38px;

  border-radius: 50%;

  border: 1.5px solid rgba(255,255,255,0.06);

  border-top: 1.5px solid #00D9FF;
  border-right: 1.5px solid #7A5CFF;

  box-shadow:
    0 0 10px rgba(0,217,255,0.12),
    0 0 25px rgba(122,92,255,0.08);

  animation: loaderSpin 2.2s linear infinite;

  opacity: 0.9;

}
.loader-ring {

  animation:
    loaderSpin 2.2s linear infinite,
    ringFloat 3s ease-in-out infinite;

}

@keyframes ringFloat {

  0% { transform: translateY(0px) rotate(0deg); }

  50% { transform: translateY(-3px) rotate(180deg); }

  100% { transform: translateY(0px) rotate(360deg); }

}

/* SPIN */

@keyframes loaderSpin {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}
.about-img{
    width: 320px;
    height: 320px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #00E5FF;

    box-shadow: 0 0 25px rgba(0,229,255,0.4);
}
.portfolio-header{
    margin-bottom:60px;
    text-align:center;
}

.portfolio-title{
    color:#fff;
    font-size:52px;
    font-weight:700;
    letter-spacing:2px;
    margin-bottom:40px;
}

.portfolio-filters{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

.filter-btn{
    background:transparent;
    border:1px solid #00e5ff;
    color:#00e5ff;
    padding:14px 28px;
    font-size:18px;
    cursor:pointer;
    transition:.3s;
}

.filter-btn:hover,
.filter-btn.active{
    background:#00e5ff;
    color:#000;
    box-shadow:0 0 20px #00e5ff;
}