/* Three.js Solar System Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
  pointer-events: none;
  contain: strict;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  z-index: 1;
  font-family: "Inter", sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #0a0a0f, #0f0f1a, #0a0a0f);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e2e8f0;
  overflow-x: hidden;
}

.redirect-link {
  position: absolute;
  height: 100%;
  top: 0;
  width: 100%;
  opacity: 0;
  left: 0;
}

.glass-panel {
  background: linear-gradient(
    135deg,
    #0f0f1870 0%,
    #1a1a2e 50%,
    #0f0f1870 100%
  );
  border-radius: 16px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 140, 0, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 140, 0, 0.1);
  overflow: hidden;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.sidebar {
  background: linear-gradient(
    135deg,
    #0f0f1880 0%,
    #1a1a2e80 50%,
    #0f0f1880 100%
  );

  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 140, 0, 0.1);
}

.main-content {
  padding: 2rem;
}

.section-divider {
  border-top: 1px solid rgba(255, 140, 0, 0.15);
  margin: 1.5rem 0;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 140, 0, 0.08);
  color: #e2e8f0;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin: 0.25rem 0.4rem 0.25rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.skill-pill:hover {
  background-color: rgba(255, 140, 0, 0.25);
  border-color: rgba(255, 140, 0, 0.5);
  color: #ffc700;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.15);
}

.header-accent {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  color: #ffc700;
  font-weight: 600;
}

.header-accent:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, #ff8c00, #ffc700);
  border-radius: 4px;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px rgb(241, 165, 99);
  margin: 0 auto 1.5rem;
  cursor: pointer;
  transition: transform 0.5s ease;

  /* 🔥 Add this line to start the glow animation */
  animation: glowPulse 3s infinite ease-in-out;
}

/* Hover spin stays the same */
.profile-img:hover {
  box-shadow: 0 4px 20px rgb(254, 254, 254);
}

/* 🌟 Continuous glowing animation */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 10px #f1a56390;
  }
  50% {
    box-shadow: 0 0 25px #f1a56390;
  }
  100% {
    box-shadow: 0 0 10px #f1a56390;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #d4d4e4;
}

.contact-icon {
  color: #ff8c00;
  min-width: 20px;
}

.project-card {
  background: linear-gradient(
    135deg,
    rgba(255, 140, 0, 0.03) 0%,
    rgba(255, 140, 0, 0.06) 100%
  );
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 140, 0, 0.15);
  content-visibility: auto;
  contain-intrinsic-size: 220px;
}

.project-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #ff8c0080 0%, #ff8c0080 100%);
  border-color: rgba(255, 140, 0, 0.3);
  box-shadow: 0 12px 28px rgba(255, 140, 0, 0.1);
}

.project-icon {
  color: #ff8c00;
  margin-right: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: rgba(255, 140, 0, 0.08);
  margin: 0.25rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 140, 0, 0.15);
  color: #d4d4e4;
}

.social-link:hover {
  background: rgba(255, 140, 0, 0.2);
  border-color: rgba(255, 140, 0, 0.4);
  color: #ffc700;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.12);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  color: #d4d4e4;
  content-visibility: auto;
  contain-intrinsic-size: 90px;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: 12px;
  width: 12px;
  background: #ff8c00;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 140, 0, 0.4);
}

.timeline-item:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 17px;
  height: calc(100% - 17px);
  width: 2px;
  background: rgba(255, 140, 0, 0.2);
}

.timeline-item:last-child:after {
  display: none;
}

@media (max-width: 768px) {
  .grid-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 1rem;
    border-radius: none;

    border-right: none;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
  }

  .main-content {
    padding: 1rem;
  }
  .glass-panel {
    border-radius: 0px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .profile-img {
    animation: none;
  }

  .skill-pill,
  .project-card,
  .social-link {
    transition: none;
  }
}
