:root {
  --background: #03010a;
  --surface: #0c0818;
  --accent: #c084fc;
  --accent-glow: rgba(192, 132, 252, 0.4);
  --text-muted: #94a3b8;
}

body {
  background-color: var(--background);
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 10;
}

.aura-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.2;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.2);
}

.text-gradient {
  background: linear-gradient(to right, #c084fc, #e879f9, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #e879f9);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-magnetic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2.5rem;
  background: #ffffff;
  color: #000000;
  font-weight: 900;
  border-radius: 1.5rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px -10px rgba(192, 132, 252, 0.4);
}

.btn-magnetic:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 40px -10px rgba(192, 132, 252, 0.6);
}

.cursor-glow {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(192, 132, 252, 0.12) 0%,
    transparent 70%
  );
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out;
}

::-webkit-scrollbar {
  width: 4px;
}

#about, #experience, #projects, #contact {
  position: relative;
  z-index: 20;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.animated-underline {
  position: relative;
}
.animated-underline::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #e879f9, var(--accent));
  transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.animated-underline.in-view::after {
  width: 100%;
}

/* Floating Portrait Frame */
.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 0.85;
  background: var(--surface);
  border-radius: 3.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
  transition: transform 0.8s ease;
}

.portrait-frame:hover img {
  transform: scale(1.05) rotate(-1deg);
  filter: grayscale(0%) contrast(1.1);
}

.expertise-badge {
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* Tech Stack Marquee */
.marquee-container {
  overflow: hidden;
  display: flex;
  gap: 4rem;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-content {
  display: flex;
  gap: 4rem;
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 2rem));
  }
}

.tech-icon-wrapper {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  position: relative;
}

.tech-icon-wrapper:hover {
  background: rgba(192, 132, 252, 0.1);
  border-color: rgba(192, 132, 252, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(192, 132, 252, 0.2);
}

.tech-icon-wrapper img,
.tech-icon-wrapper svg {
  width: 45%;
  height: 45%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.5) opacity(0.7);
  transition: all 0.5s ease;
}

.tech-icon-wrapper:hover img,
.tech-icon-wrapper:hover svg {
  filter: grayscale(0) brightness(1) opacity(1);
  transform: scale(1.1);
}

.tech-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--accent);
  color: black;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
}

.tech-icon-wrapper:hover .tech-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Timeline Styles */
.experience-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform: translateX(-50%);
  opacity: 0.2;
}

.timeline-item {
  position: relative;
  margin-bottom: 5rem;
  width: 50%;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  right: -10px;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  border: 4px solid var(--background);
  box-shadow: 0 0 15px var(--accent);
  z-index: 10;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
  right: auto;
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
}

@media (max-width: 768px) {
  .experience-timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 0;
  }
  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 3.5rem;
  }
  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }
}
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(192, 132, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 132, 252, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent);
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 60px 60px;
  }
}

/* Star Particles */
.stars-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: starPulse var(--duration) ease-in-out infinite;
}

@keyframes starPulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: var(--opacity);
    transform: scale(1);
  }
}

/* Text Scan Animation */
.text-scan-reveal {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.text-scan-reveal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(192, 132, 252, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  animation: textScan 3s infinite;
}

@keyframes textScan {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 200%;
  }
}

/* Magnetic Button Effect */
.btn-magnetic {
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.social-sidebar {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 150;
}

.social-sidebar::after {
  content: "";
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0c0818;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-btn:hover {
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(1.1);
}

.orbit-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
}

.orbit-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(192, 132, 252, 0.3);
  border-radius: 50%;
  animation: rotateOrbit 60s linear infinite;
}

.orbit-item {
  position: absolute;
  width: 36px;
  height: 36px;
  background: #0c0818;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transform: translate(-50%, -50%);
}

@keyframes rotateOrbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.terminal-bar {
  background: rgba(12, 8, 24, 0.6);
  border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  color: var(--accent);
  display: inline-flex;
  gap: 1rem;
}

.tech-badge-enhanced {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  font-weight: 700;
  color: #ffffff;
  /* Remove transition to prevent GSAP conflicts */
}

.tech-badge-enhanced:hover {
  background: rgba(192, 132, 252, 0.1);
  border-color: var(--accent);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(192, 132, 252, 0.3);
}
