:root {
  --bg-dark: #0b0216;
  --primary-purple: #7b2cbf;
  --neon-blue: #4cc9f0;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

html {
  /* Fixes the issue where clicking links hides the title behind the navbar */
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-purple);
  border-radius: 4px;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Navbar */
.navbar {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(11, 2, 22, 0.8);
  border-bottom: 1px solid var(--glass-border);
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}
.navbar-nav .nav-link {
  color: var(--text-gray);
  transition: color 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-white);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

.avatar-container {
  position: relative;
  display: inline-block;
  z-index: 2;
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(123, 44, 191, 0.6) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  filter: blur(40px);
  z-index: -1;
}

.avatar-container img {
  width: 200px;
  height: 200px; /* FORCE height to match width */
  object-fit: cover; /* Crops the image so it doesn't stretch */
  border: 4px solid var(--primary-purple);
  /* You can remove border-radius here if you use bootstrap's .rounded-circle class in HTML, 
     OR add border-radius: 50% here and remove the class from HTML. */
}

.highlight-text {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlight-text::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: -10px;
  right: -8px;
  height: 50px;
  background: transparent;
  border: 2px solid var(--primary-purple);
  border-radius: 50%;
  transform: rotate(-2deg);
  z-index: -1;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(123, 44, 191, 0.2);
  border-color: rgba(123, 44, 191, 0.4);
}

/* Tech Stack Orbit */
.tech-orbit-container {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.orbit-center {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-purple), #3c096c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 50px rgba(123, 44, 191, 0.5);
  z-index: 10;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.ring-1 {
  width: 200px;
  height: 200px;
  animation: spin 20s linear infinite;
}
.ring-2 {
  width: 350px;
  height: 350px;
  animation: spin-reverse 25s linear infinite;
}

.tech-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #240b3b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Project Cards */
.project-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s;
}
.project-card-img:hover {
  opacity: 0.8;
  cursor: pointer;
}

/* Animations */
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes spin-reverse {
  100% {
    transform: rotate(-360deg);
  }
}

/* Background Gradients */
.bg-gradient-spot {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(76, 201, 240, 0.1) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  filter: blur(80px);
  z-index: -2;
  border-radius: 50%;
}

/* Helper Classes */
.text-gradient {
  background: linear-gradient(45deg, #fff, #a0a0a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-custom {
  background: linear-gradient(90deg, var(--primary-purple), #5a189a);
  border: none;
  color: white;
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-custom:hover {
  box-shadow: 0 0 20px rgba(123, 44, 191, 0.6);
  transform: scale(1.05);
  color: white;
}

.social-link {
  font-size: 1.5rem;
  color: var(--text-gray);
  margin-right: 1.5rem;
  transition: color 0.3s;
}
.social-link:hover {
  color: var(--neon-blue);
}
