/* Global Styles */
/* Galactic White Theme */
:root {
  --cosmic-silver: #FFFFFF;
  --silver-light: #F5F5FA;
  --deep-space: #1A1A2E;
  --nebula-purple: #8309D5;
  --cosmic-cyan: #09C1D5;
  --stardust: #E8E8E8;
  --void-dark: #0F0F1E;
  --galaxy-bg: #16213E;
  --text-white: #FFFFFF;
  --text-dark: #2A2A3E;
}

/* Global Styles with Consistent Typography */
* {
  font-family: 'Poppins', sans-serif;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--galaxy-bg) !important;
  color: #FFFFFF !important;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor - Desktop Only */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(131, 9, 213, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, border-color 0.3s ease;
    mix-blend-mode: screen;
  }

  .custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #8309D5, #09C1D5);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(131, 9, 213, 0.6);
  }

  .custom-cursor-trail {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(9, 193, 213, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s ease-out, opacity 0.2s ease;
    mix-blend-mode: screen;
  }

  .custom-cursor.hover {
    transform: scale(1.5);
    border-color: rgba(9, 193, 213, 1);
  }

  .custom-cursor-trail.hover {
    transform: scale(1.3);
    border-color: rgba(131, 9, 213, 0.6);
  }
}

/* Show default cursor on mobile/touch devices */
@media (hover: none) or (pointer: coarse) {
  body {
    cursor: auto !important;
  }
}

/* Cursor states */
a, button, .button, [role="button"], 
.project, .skill-enhanced, .mentorship-card,
.carousel-btn, .featured-project-card {
  cursor: pointer;
}

#graph-container {
  cursor: default;
  background: var(--galaxy-bg);
  position: relative;
  min-height: 600px;
}

#graph-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(131, 9, 213, 0.1), transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(9, 193, 213, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#graph-container canvas {
  position: relative;
  z-index: 1;
}

#graph-container.hovering {
  cursor: pointer;
}

/* Ensure all headings use Space Grotesk for a modern, tech feel */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Force all text to white */
p, span, li, label, div {
  font-family: 'Poppins', sans-serif;
  color: #FFFFFF !important;
}

/* Headings get gradient treatment */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  background: linear-gradient(135deg, #8309D5, #09C1D5) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

a {
  font-family: 'Poppins', sans-serif;
  color: #FFFFFF;
}

button {
  font-family: 'Poppins', sans-serif;
}

/* Input and textarea need special handling */
input, textarea {
  font-family: 'Poppins', sans-serif;
  color: #FFFFFF !important;
}

body.theme-dark {
  background: #333;
  color: #fff;
}

a {
  text-decoration: none;
  color: #fff;
}

.button {
  background: linear-gradient(to right, #8309D5, #09C1D5);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(131, 9, 213, 0.3);
}

.section {
  padding: 40px 0;
  background: var(--galaxy-bg) !important;
  color: #FFFFFF !important;
}

.section * {
  color: #FFFFFF !important;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, #8309D5, #09C1D5) 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(131, 9, 213, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8309D5, #09C1D5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

/* This rule makes the header text white and removes the gradient */
header nav a.gradient-text {
    color: white !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

.nav-links li a {
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #8309D5, #09C1D5);
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #09C1D5 !important;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  display: none;
}

/* Hero Section */
#hero {
  background: var(--galaxy-bg);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--cosmic-silver);
  margin-bottom: 15px;
  line-height: 1.2;
}

.gradient-text-hero {
  background: linear-gradient(to right, var(--cosmic-silver), var(--cosmic-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--cosmic-silver);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--cosmic-silver);
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.button-primary {
  background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-cyan));
  color: white;
  font-weight: 600;
  border: 2px solid transparent;
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--cosmic-cyan), var(--nebula-purple));
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(131, 9, 213, 0.4);
}

.button-secondary {
  background: rgba(232, 232, 240, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(184, 184, 208, 0.3);
  color: var(--cosmic-silver);
  font-weight: 600;
}

.button-secondary:hover {
  background: rgba(232, 232, 240, 0.1);
  border-color: var(--cosmic-cyan);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cosmic-silver);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: var(--stardust);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-image {
  position: relative;
  margin-top: 50px;
  text-align: center;
}

.hero-image img {
  max-width: 600px;
  width: 90%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.hero-image-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(131, 9, 213, 0.3), transparent);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}

/* About Section */
#about {
  background: var(--galaxy-bg);
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(131, 9, 213, 0.15), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(9, 193, 213, 0.15), transparent 50%);
  pointer-events: none;
}

#about h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-picture {
  width: 200px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(131, 9, 213, 0.3);
  border: 3px solid var(--stardust);
}

.about-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(26, 26, 46, 0.6) !important;
  border-radius: 8px;
  border-left: 3px solid var(--nebula-purple);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

.highlight-item i {
  color: var(--cosmic-cyan);
  font-size: 1.2rem;
  min-width: 20px;
}

.highlight-item span {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Projects Section */
#projects {
  background: var(--galaxy-bg);
  position: relative;
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(9, 193, 213, 0.12), transparent 70%);
  pointer-events: none;
}

#projects h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--stardust);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project {
  background: rgba(26, 26, 46, 0.6) !important;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(131, 9, 213, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(131, 9, 213, 0.4);
  border-color: rgba(131, 9, 213, 0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project h3 {
  color: var(--cosmic-silver);
}

.project p {
  color: var(--stardust);
}

.project h3 {
  font-size: 1.5rem;
  padding: 20px;
  margin: 0;
}

.project p {
  font-size: 1rem;
  padding: 0 20px 20px;
}

.project .button {
  margin: 0 10px 20px 20px;
  font-size: 0.9rem;
  padding: 10px 20px;
}

/* Skills Section */
#skills {
  background: var(--galaxy-bg);
  position: relative;
}

#skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(9, 193, 213, 0.03), transparent 60%);
  pointer-events: none;
}

#skills h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px;
}

.skills-category {
  margin-bottom: 50px;
}

.skills-category-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skills-category-title i {
  color: var(--cosmic-cyan);
}

.skills-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.skill-enhanced {
  background: rgba(26, 26, 46, 0.7) !important;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  border: 2px solid rgba(131, 9, 213, 0.3);
}

.skill-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 25px rgba(131, 9, 213, 0.6);
  border-color: rgba(131, 9, 213, 0.7);
  background: rgba(26, 26, 46, 0.9) !important;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.skill-header i {
  font-size: 1.5rem;
  color: #8309D5;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cosmic-silver);
}

.skill-bar {
  height: 8px;
  background: rgba(15, 15, 30, 0.5);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(to right, #8309D5, #09C1D5);
  border-radius: 10px;
  transition: width 1s ease;
}

.skill-level {
  font-size: 0.85rem;
  color: var(--stardust);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-enhanced[data-level="expert"] .skill-progress {
  background: linear-gradient(to right, #8309D5, #09C1D5);
}

.skill-enhanced[data-level="advanced"] .skill-progress {
  background: linear-gradient(to right, #09C1D5, #8309D5);
}

.skill-enhanced[data-level="intermediate"] .skill-progress {
  background: linear-gradient(to right, #A855F7, #09C1D5);
}

/* Contact Section */
#contact {
  background: var(--galaxy-bg);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(131, 9, 213, 0.06), transparent);
  border-radius: 50%;
}

#contact h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 15px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-info {
  background: rgba(26, 26, 46, 0.7) !important;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(131, 9, 213, 0.3);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(131, 9, 213, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(131, 9, 213, 0.25);
  transform: translateX(5px);
}

.contact-method i {
  font-size: 1.5rem;
  color: #8309D5;
  min-width: 30px;
}

.contact-method strong {
  display: block;
  color: #FFFFFF !important;
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.contact-method p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
  margin: 0;
}

.contact-social {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid rgba(131, 9, 213, 0.3);
}

.contact-social a {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #8309D5, #09C1D5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.contact-social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(131, 9, 213, 0.3);
}

.contact-form-wrapper {
  background: rgba(26, 26, 46, 0.7) !important;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(131, 9, 213, 0.3);
}

#contact-form {
  background: transparent;
  padding: 0;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #FFFFFF !important;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(131, 9, 213, 0.4);
  border-radius: 12px;
  font-size: 1rem;
  color: #FFFFFF !important;
  background: rgba(15, 15, 30, 0.6) !important;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--nebula-purple);
  background: rgba(15, 15, 30, 0.7);
  box-shadow: 0 0 0 3px rgba(131, 9, 213, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1;
}

.button-submit {
  width: 100%;
  font-size: 1.1rem;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#form-status {
  margin-top: 20px;
  text-align: center;
  color: var(--text-dark);
  font-weight: 500;
  padding: 15px;
  border-radius: 8px;
  background: rgba(131, 9, 213, 0.05);
}

/* Responsive Contact */
@media (max-width: 968px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-info {
    padding: 30px;
  }
  
  .contact-form-wrapper {
    padding: 30px;
  }
}

/* Professional Services & Merch Sections */
#ad-services, #merch-shop {
  background: linear-gradient(to right, #8309D5, #09C1D5);
}

#ad-services .section-description,
#merch-shop .section-description {
  text-align: center;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#projects .section-description {
  color: #555;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.merch-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.merch-item:hover {
  transform: translateY(-5px);
}

.merch-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.2);
}

.merch-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.merch-item h3 {
  color: #fff;
  margin-bottom: 10px;
}

.merch-item p {
  color: rgba(255, 255, 255, 0.9);
}

.service-button-cta {
  font-size: 1.1rem;
  padding: 15px 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.button i.fas {
  margin-right: 5px;
}

/* Footer */
/* --- Your NEW Footer Style --- */
footer {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(15, 15, 30, 0.98));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  text-align: center;
  padding: 40px 0;
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, #8309D5, #09C1D5) 1;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(131, 9, 213, 0.1);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(131, 9, 213, 0.05), transparent 70%);
  pointer-events: none;
}

footer .container {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.95rem;
  margin: 0;
}

.footer-coffee {
  display: flex;
  justify-content: center;
}

.coffee-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #8309D5, #09C1D5);
  border-radius: 50px;
  color: white !important;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(131, 9, 213, 0.3);
  border: 2px solid transparent;
}

.coffee-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(131, 9, 213, 0.5);
  background: linear-gradient(135deg, #09C1D5, #8309D5);
}

.coffee-button i {
  font-size: 1.2rem;
  animation: coffee-steam 2s ease-in-out infinite;
}

.coffee-emoji {
  font-size: 1.1rem;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes coffee-steam {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #09C1D5 !important;
  transform: translateY(-3px);
}

/* Scroll to Top Button */
.scroll-to-top-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  transition: background-color 0.3s ease;
  z-index: 99;
}

.scroll-to-top-button:hover {
  background-color: #0056b3;
}

/* Music Controls */
.music-controls {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(184, 184, 208, 0.2);
  padding: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.music-controls button {
  background: linear-gradient(to right, #8309D5, #09C1D5);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-right: 10px;
  padding: 8px 12px;
  border-radius: 5px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.music-controls button:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.music-controls button.playing {
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  from {
      transform: scale(1);
      opacity: 1;
  }
  to {
      transform: scale(1.1);
      opacity: 0.7;
  }
}

.music-controls input[type="range"] {
  width: 100px;
}

/* Dark/Light Theme Switch */
.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  height: 0;
  width: 0;
  visibility: hidden;
}

.theme-switch .slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.theme-switch .slider:before {
  background: linear-gradient(135deg, var(--cosmic-silver), var(--stardust));
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
}

input:checked + .slider {
  background-color: #66bb6a;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.theme-switch .slider.round {
  border-radius: 34px;
}

.theme-switch .slider.round:before {
  border-radius: 50%;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  /* General adjustments for smaller screens */
  .container {
      width: 95%;
  }

  /* Header adjustments */
  nav {
      padding: 10px;
  }

  .logo {
      font-size: 1.2rem;
  }

  .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background-color: #191919; /* Match header background */
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      padding: 10px;
      text-align: center;
  }

  .nav-links.active {
      display: flex;
  }

  .nav-links li {
      margin: 10px 0;
  }

  .nav-links li a {
      font-size: 1.1rem;
  }

  .mobile-menu-button {
      display: block;
  }

  /* Hero section adjustments */
  #hero {
      padding: 50px 0;
  }

  .hero-content h1 {
      font-size: 2.5rem;
  }

  .hero-content p {
      font-size: 1rem;
  }

  .hero-image img {
      width: 200px;
  }

  /* About section adjustments */
  #about h2 {
      font-size: 2rem;
  }

  .about-content {
      flex-direction: column;
      align-items: center;
  }

  .profile-picture {
      width: 150px;
  }

  .about-text p {
      font-size: 1rem;
  }

  /* Projects section adjustments */
  #projects h2 {
      font-size: 2rem;
  }

  /* Skills section adjustments */
  #skills h2 {
      font-size: 2rem;
  }

  /* Contact section adjustments */
  #contact h2 {
      font-size: 2rem;
  }

  .footer-content {
      gap: 15px;
  }

  .coffee-button {
      font-size: 0.9rem;
      padding: 10px 24px;
  }
}






/* --- Fade to Footer Effect --- */

/* This creates a "ghost" element at the bottom of the page */
body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px; /* Adjust the height to control the fade distance */
  background: linear-gradient(to top, #191919, transparent);
  pointer-events: none; /* Allows you to click through the effect */
  z-index: 98; /* Sits just above the 3D canvas but below content */
}





/* Graph Instructions Overlay */
.graph-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    z-index: 1000;
    border: 2px solid rgba(131, 9, 213, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.instructions-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.instructions-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.instructions-list li i {
    color: #09C1D5;
    font-size: 1.2rem;
    min-width: 20px;
}

.instructions-list li strong {
    color: white;
}

#got-it-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .graph-instructions {
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .evolution-legend {
        display: none;
    }
}

/* Evolution Legend */
.evolution-legend {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(131, 9, 213, 0.3);
    border-radius: 12px;
    padding: 20px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.evolution-legend h4 {
    color: #FFFFFF !important;
    font-size: 1rem;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.evolution-legend h4 i {
    color: #09C1D5;
}

.legend-section {
    margin-bottom: 15px;
}

.legend-section:last-child {
    margin-bottom: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    position: relative;
}

.legend-icon.sphere {
    border-radius: 50%;
    background: linear-gradient(135deg, #8309D5, #09C1D5);
    box-shadow: 0 0 8px rgba(131, 9, 213, 0.6);
}

.legend-icon.diamond {
    width: 12px;
    height: 12px;
    background: #FFD700;
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.legend-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, #8309D5, #09C1D5);
    display: inline-block;
}

.legend-line.solid {
    opacity: 0.8;
    height: 3px;
}

.legend-line.thin {
    opacity: 0.3;
    height: 1px;
    background: #09C1D5;
}


/* Mentorship Section */
#mentorship {
    background: var(--galaxy-bg);
    position: relative;
}

#mentorship::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(131, 9, 213, 0.04), transparent 50%);
    pointer-events: none;
}

#mentorship .section-title {
    /* Gradient applied globally to all h2 */
}

.mentorship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.mentorship-card {
    background: rgba(26, 26, 46, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(131, 9, 213, 0.3);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mentorship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #8309D5, #09C1D5);
}

.mentorship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(131, 9, 213, 0.15);
    border-color: rgba(131, 9, 213, 0.2);
}

.mentorship-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8309D5, #09C1D5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mentorship-icon.alpfa {
    background: linear-gradient(135deg, #09C1D5, #8309D5);
}

.mentorship-icon i {
    font-size: 2rem;
    color: white;
}

.mentorship-card h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.mentorship-role {
    color: var(--nebula-purple);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.mentorship-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.mentorship-description strong {
    color: var(--text-dark);
}

.mentorship-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mentorship-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(131, 9, 213, 0.05);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    border: 1px solid rgba(184, 184, 208, 0.2);
}

.stat-icon {
    font-size: 1.2rem;
}

.mentorship-cta {
    text-align: center;
    padding: 40px;
    background: rgba(232, 232, 240, 0.03);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(184, 184, 208, 0.1);
    border-radius: 16px;
    margin-top: 20px;
}

.mentorship-cta p {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.mentorship-cta .button {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* Responsive Mentorship */
@media (max-width: 768px) {
    .mentorship-grid {
        grid-template-columns: 1fr;
    }
    
    .mentorship-card {
        padding: 25px;
    }
}



/* ============================================
   FILTER TABS STYLING
   ============================================ */

.filter-tabs {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(131, 9, 213, 0.3);
  border-radius: 50px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(131, 9, 213, 0.2);
}

.filter-tab {
  padding: 8px 20px;
  background: transparent;
  border: 2px solid rgba(131, 9, 213, 0.5);
  border-radius: 25px;
  color: #E0E0E0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-tab:hover {
  border-color: #8309D5;
  background: rgba(131, 9, 213, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.filter-tab.active {
  background: linear-gradient(135deg, #8309D5, #09C1D5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(131, 9, 213, 0.5);
}

.filter-tab.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(131, 9, 213, 0.7);
}

@media (max-width: 768px) {
  .filter-tabs {
    top: 70px;
    gap: 8px;
    padding: 10px 12px;
  }
  
  .filter-tab {
    padding: 6px 14px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .filter-tabs {
    top: 65px;
    gap: 4px;
    width: 95vw;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .filter-tab {
    padding: 6px 12px;
    font-size: 10px;
    white-space: nowrap;
  }
}
