/* ===== Global ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto Mono', monospace;
  background: #0a0a0a;
  color: #eee;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
  color: inherit;
}
main {
  padding: 1em;
}

/* ===== Custom Cursor ===== */
.custom-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: #00f0ff;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 8px #00f0ff, 0 0 15px #00f0ff66;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #00f0ff33;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

/* ===== Header / Video ===== */
header {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
header video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1);
}
header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  padding: 2em;
  z-index: 2;
  transition: opacity 1s ease;
}
.intro-overlay.active {
  opacity: 1;
}
.overlay-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}
.intro-overlay h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff, 0 0 15px #00f0ff66;
  letter-spacing: 2px;
  animation: fadeIn 1.5s ease-in forwards;
}
.intro-overlay p {
  margin-top: 1em;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: #e0f7fa;
  text-shadow: 0 0 8px #00f0ff66;
  animation: fadeIn 2s ease-in forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Navigation ===== */
.holo-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00f0ff;
  position: relative;
  transform-style: preserve-3d;
  animation: logoSpin 6s linear infinite;
  text-shadow: 0 0 10px #00f0ff66;
}
.logo::before {
  content: 'PG';
  position: absolute;
  top: 0;
  left: 0;
  color: #ff00ff;
  transform: translateZ(-10px);
  opacity: 0.5;
}
.logo::after {
  content: 'PG';
  position: absolute;
  top: 0;
  left: 0;
  color: #aaff00;
  transform: translateZ(-20px);
  opacity: 0.3;
}
@keyframes logoSpin {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  50% { transform: rotateY(180deg) rotateX(10deg); }
  100% { transform: rotateY(360deg) rotateX(0deg); }
}
.holo-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.holo-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: #e0f7fa;
  position: relative;
  padding: 0.5rem;
  transition: color 0.3s ease;
}
.holo-link:hover {
  color: #00f0ff;
}
.holo-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #00f0ff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.holo-link:hover::after {
  transform: scaleX(1);
}
.menu-toggle {
  display: none;
  color: #00f0ff;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .holo-nav ul {
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }
  .holo-nav.active ul {
    transform: translateY(0);
  }
  .menu-toggle {
    display: block;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: #0e1117;
  overflow: hidden;
}
.hero-content {
  z-index: 10;
  max-width: 50%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #00f0ff33;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.neon-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem); /* Adjusted for better fit */
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: #00f0ff;
  text-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff66;
  position: relative;
  transform-style: preserve-3d;
  animation: neonFlicker 3s infinite;
}
.neon-title::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: #ff00ff;
  transform: translateZ(-5px);
  opacity: 0.4;
  animation: neonFlicker 3.2s infinite;
}
.neon-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: #aaff00;
  transform: translateZ(-10px);
  opacity: 0.2;
  animation: neonFlicker 3.4s infinite;
}
.text-wrapper {
  display: inline-block;
}
.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterFadeIn 0.15s ease forwards;
}
@for $i from 1 through 23 {
  .letter:nth-child(#{$i}) {
    animation-delay: #{$i * 0.05}s;
  }
}
@keyframes letterFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff66;
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.6;
  }
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}
.hero .highlight {
  color: #aaff00;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(170, 255, 0, 0.6);
}
.cta-button {
  padding: 0.7rem 1.8rem;
  background: linear-gradient(90deg, #00f0ff, #ff00ff, #aaff00);
  background-size: 200% 100%;
  color: #0e1117;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: gradientShift 4s ease infinite;
}
.cta-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}
.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}
.cta-button:hover::before {
  width: 100px;
  height: 100px;
  opacity: 0;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    gap: 2rem;
  }
  .hero-content {
    max-width: 80%;
  }
}
@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
    padding: 1.5rem;
  }
  .neon-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

/* ===== Projects Section ===== */
#projects {
  background: #0a0a0a;
  padding: 60px 20px;
}
.project-card {
  background: linear-gradient(145deg, #1a1a1a, #121212);
  border: 2px solid transparent;
  margin: 20px auto;
  padding: 25px;
  border-radius: 15px;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}
.project-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 0 30px #00f0ff66;
  border: 2px solid #00f0ff;
  animation: glitchBorder 2s infinite;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.project-card:hover::before {
  transform: translateX(100%);
}
.holo-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.project-card:hover .holo-sheen {
  opacity: 1;
}
.project-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(0, 240, 255, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.project-card:hover .project-glow {
  opacity: 1;
}
.project-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #00f0ff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}
.project-card:hover::after {
  width: 20px;
  height: 20px;
  opacity: 0;
  animation: particleBurst 0.5s ease forwards;
}
@keyframes particleBurst {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}
@keyframes glitchBorder {
  0% { border-color: #00f0ff; }
  20% { border-color: #ff00ff; }
  40% { border-color: #aaff00; }
  60% { border-color: #ff00ff; }
  100% { border-color: #00f0ff; }
}
.project-header h3 {
  font-family: 'Orbitron', sans-serif;
  color: #00f0ff;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  text-shadow: 0 0 8px #00f0ff88;
}
.project-card p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #e0f7fa;
  margin: 10px 0;
  line-height: 1.6;
}
.project-features {
  list-style: none;
  margin: 15px 0;
  padding-left: 0;
}
.project-features li {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #c0c0c0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
.project-features li:hover {
  transform: translateX(10px);
  color: #00f0ff;
}
.project-features li i {
  margin-right: 10px;
  color: #00f0ff;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.project-features li:hover i {
  transform: rotate(360deg);
}
.tech-stack {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.tech-tag {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: #00f0ff;
  font-weight: 600;
  background: #00f0ff22;
  padding: 5px 10px;
  border-radius: 5px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.tech-tag:hover {
  transform: scale(1.1);
  background: #00f0ff44;
  box-shadow: 0 0 10px #00f0ff66;
  animation: pulseTag 1s infinite;
}
@keyframes pulseTag {
  0% { box-shadow: 0 0 10px #00f0ff66; }
  50% { box-shadow: 0 0 15px #00f0ff88; }
  100% { box-shadow: 0 0 10px #00f0ff66; }
}
@media (max-width: 768px) {
  .project-card {
    max-width: 100%;
    padding: 15px;
  }
}

/* ===== Experience Section ===== */
#experience {
  background: #0e0e0e;
  padding: 60px 20px;
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: #00f0ff;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.experience-card {
  background: #1c1c1c;
  border-left: 4px solid #00f0ff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
  width: 45%;
}
.experience-card:nth-child(odd) {
  margin-left: 55%;
}
.experience-card:nth-child(even) {
  margin-right: 55%;
}
.experience-card::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background: #00f0ff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.experience-card:nth-child(odd)::before {
  left: -27px;
}
.experience-card:nth-child(even)::before {
  right: -27px;
}
.experience-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: #00f0ff;
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  margin-bottom: 10px;
}
.experience-card p {
  margin-bottom: 10px;
  font-size: clamp(0.9rem, 2vw, 1rem);
}
.experience-card ul {
  list-style-type: "✅ ";
  padding-left: 20px;
}
@media (max-width: 768px) {
  .timeline::before {
    left: 15px;
  }
  .experience-card {
    width: 85%;
    margin-left: 30px;
    margin-right: 15px;
  }
  .experience-card:nth-child(odd),
  .experience-card:nth-child(even) {
    margin-left: 30px;
    margin-right: 15px;
  }
  .experience-card::before {
    left: -22px;
  }
}

/* ===== Contact Section ===== */
#contact {
  background: #0a0a0a;
  padding: 60px 20px;
  text-align: center;
}
.contact-box {
  max-width: 500px;
  margin: auto;
  padding: 20px;
  border: 2px dashed #00f0ff;
  border-radius: 10px;
  background: #161616;
}
.contact-box p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 20px;
}
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  background: #222;
  border: 1px solid #00f0ff;
  border-radius: 5px;
  color: #e0f7fa;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00f0ff;
  box-shadow: 0 0 10px #00f0ff66;
}
.form-group label {
  position: absolute;
  top: 50%;
  left: 10px;
  color: #00f0ff;
  font-size: 0.9rem;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  pointer-events: none;
  background: #222;
  padding: 0 5px;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 0.8rem;
}
.form-group textarea {
  height: 100px;
  resize: none;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.glow-btn {
  padding: 10px 20px;
  background: #00f0ff22;
  color: #00f0ff;
  border: 1px solid #00f0ff;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.glow-btn:hover {
  background: #00f0ff;
  color: #000;
  box-shadow: 0 0 15px #00f0ff66;
}
@media (max-width: 768px) {
  .contact-box {
    max-width: 90%;
  }
}

/* ===== Footer ===== */
.footer {
  background: #0a0a0a;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #00f0ff33;
}
.footer-gradient {
  background: linear-gradient(90deg, #00f0ff, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}
.signature {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #00f0ff;
}
.tagline {
  font-size: 0.9rem;
  color: #e0f7fa;
  margin-top: 10px;
}
.social-icons {
  margin: 15px 0;
}
.social-icon {
  font-size: 1.5rem;
  color: #00f0ff;
  margin: 0 10px;
  transition: transform 0.3s ease;
}
.social-icon:hover {
  transform: scale(1.2);
}