/* Hero Section with animated blobs and word animations */
.hero {
  padding: 0 0 120px 0;
  min-height: 60vh;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

[data-theme="light"] .hero-video {
  filter: brightness(1) saturate(0.8) opacity(0.2);}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Adjust transparency as needed */
  z-index: 1;
}

/* Ensure the text content is above the video and overlay */
.hero-content {
  padding-top: 50px;
  position: relative;
  z-index: 2;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.1;
  animation: blob-animation 8s infinite ease-in-out;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-purple);
  top: -10%;
  left: -5%;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: var(--purple-lighter);
  bottom: -10%;
  right: -5%;
  animation-delay: -4s;
}

@keyframes blob-animation {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

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

.hero-title {
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero-word {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-purple), var(--purple-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0.3rem;
  opacity: 0;
  animation: word-fade 0.6s ease forwards;
}

[data-theme="light"] .hero-word {
  display: inline-block;
  background: linear-gradient(135deg, var(--hero-purple-color), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0.3rem;
  opacity: 0;
  animation: word-fade 0.6s ease forwards;

}

.hero-word:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-word:nth-child(2) {
  animation-delay: 0.3s;
}
.hero-word:nth-child(3) {
  animation-delay: 0.5s;
}
.hero-word:nth-child(4) {
  animation-delay: 0.7s;
}

@keyframes word-fade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
  }
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
  animation: fade-in 0.8s ease 0.8s forwards;
  opacity: 0;
}

[data-theme="light"] .hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
  animation: fade-in 0.8s ease 0.8s forwards;
  opacity: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fade-in 0.8s ease 1s forwards;
  opacity: 0;
}

/* Hero pc scaling */
@media (min-width: 1024px) {
  .hero {
    padding: 200px 0; /* Significantly increases vertical space */
    min-height: 90vh; /* Almost fills the entire viewport height on PC */
  }

  .hero-title {
    font-size: 5rem; /* Larger title for big screens */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    font-size: 1.6rem; /* Proportional subtitle increase */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero Mobile Scaling */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }

  .hero-title {
    font-size: 2.2rem; /* Significantly smaller for mobile */
    padding: 0 10px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 80%; /* Full width buttons for easier tapping */
  }
}

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-purple), var(--purple-light));
  color: white;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(147, 51, 234, 0.6);
}

.btn-secondary {
  background: rgba(147, 51, 234, 0.1);
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--primary-purple), var(--purple-light));
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 20px;
  background: var(--primary-purple);
  border-radius: 1px;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Section titles with staggered word animations */
.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.title-word {
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
  display: inline-block;
  margin: 0 0.5rem;
  opacity: 0;
  animation: slide-up 0.6s ease forwards;
}

.title-word:nth-child(1) {
  animation-delay: 0.2s;
}
.title-word:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NEW: Section Description Styling */
.section-description {
  max-width: 700px;
  margin: -2rem auto 3.5rem auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
  opacity: 0;
  animation: fade-in 0.8s ease 0.6s forwards;
}


/* Our Mission Section Styling */
.our-mission {
  padding: 100px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.our-mission.animated {
  opacity: 1;
  transform: translateY(0);
}

.mission-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 4rem;
  align-items: center;
}

.mission-text-content {
  text-align: left;
}

.section-title.left-align {
  text-align: left;
  margin-bottom: 1.5rem;
}

.section-description-mission {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* Minimal Tiles Styling */
.mission-tiles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.minimal-tile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(147, 51, 234, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.minimal-tile:hover {
  border-color: var(--primary-purple);
  transform: translateX(10px); /* Slides right slightly on hover */
  background: rgba(147, 51, 234, 0.05);
}

.tile-icon img {
  font-size: 2rem;
  background: rgba(147, 51, 234, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.tile-text h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.tile-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .mission-container {
    grid-template-columns: 1fr; /* Stack on small screens */
    gap: 2.5rem;
  }
}

.feature-card:not(.card-wide) a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Space between text and icon */
.feature-card:not(.card-wide) h3 {
  margin-bottom: 0.5rem;
}

.feature-card:not(.card-wide) p {
  margin-bottom: 1.2rem;
}

/* Icon box centered */
.feature-card:not(.card-wide) .icon-box {
  margin: 0 auto;
}

/* GIF icon sizing */
.feature-card:not(.card-wide) .feature-icon img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: contain;
}



/* Features Section (3D Hover Cards) */
.features {
  padding: 100px 0;
  background-color: var(--bg-color);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.features.animated {
  opacity: 1;
  transform: translateY(0);
}

.features-grid {
  display: grid;
  /* Defining a 3-column grid to allow 2:1 ratio spanning */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Base Card Styling */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 20px; /* Softer corners like the screenshot */
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left; /* Aligned left like the screenshot */
}

/* The "Uneven" Logic */
.card-wide {
  grid-column: span 2; /* Takes up 2/3 of the row */
}

/* Horizontal Layout for Wide Cards */
.card-horizontal-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

/* Image Wrapper Adjustments */
.feature-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}

.card-wide .feature-image-wrapper {
  width: 50%; /* Image takes half of the wide card */
  height: 240px;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text Content */
.feature-text {
  flex: 1;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-card a {
  text-decoration: none;
  display: block;
  height: 100%;
}

/* Hover Effects */
.feature-card:hover {
  border-color: var(--primary-purple);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr; /* Stack everything in one column */
  }

  .card-wide {
    grid-column: span 1;
  }

  .card-horizontal-content {
    flex-direction: column; /* Stack image and text inside the card */
    gap: 1.5rem;
  }

  .card-wide .feature-image-wrapper {
    width: 100%;
  }
}


/* Reviews Section (Testimonial Carousel) */
.reviews {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(147, 51, 234, 0.03) 100%);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reviews.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure the wrapper acts as a viewport */
.reviews-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px 0; /* Add padding so hover transforms aren't clipped */
}

.reviews-grid {
  display: flex;
  width: 100%;
  gap: 2rem; /* Consistent gap */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
}

.reviews-grid:active {
  cursor: grabbing;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid rgba(147, 51, 234, 0.15);
  padding: 2.5rem;
  border-radius: 12px;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  /* Calculate width: 100% of container minus the gaps, divided by 3 visible cards */
  flex: 0 0 calc((100% - (2rem * 2)) / 3);
  box-sizing: border-box;
}

/* Tablet: Show 2 cards */
@media (max-width: 992px) {
  .review-card {
    flex: 0 0 calc((100% - 2rem) / 2);
  }
}

/* Mobile: Show 1 card */
@media (max-width: 600px) {
  .review-card {
    flex: 0 0 100%;
  }
}
[data-theme="light"] .review-card {
  background: var(--card-bg);
  border-color: var(--border-color);
}
[data-theme="light"] .review-card:hover {
  box-shadow: 0 10px 40px rgba(147, 51, 234, 0.1);
}

.review-card:hover {
  background: rgba(147, 51, 234, 0.12);
  border-color: var(--primary-purple);
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(147, 51, 234, 0.2);
}

.review-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  border: 2px solid var(--primary-purple);
  flex-shrink: 0;
}

.avatar-1 {
  background: linear-gradient(135deg, #9333ea, #a855f7);
}

.avatar-2 {
  background: linear-gradient(135deg, #a855f7, #c084fc);
}

.avatar-3 {
  background: linear-gradient(135deg, #c084fc, #9333ea);
}

.review-header h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.review-role {
  font-size: 0.88rem;
  color: var(--primary-purple);
  font-weight: 500;
}

.review-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
  font-style: italic;
}

.stars {
  color: var(--primary-purple);
  font-size: 1.3rem;
  letter-spacing: 0.4rem;
}

/* Carousel Indicators */
.carousel-indicators {
  text-align: center;
  margin-top: 1.5rem;
}

.indicator {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: var(--border-color);
  border: none;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.indicator.active {
  background-color: var(--primary-purple);
  transform: scale(1.2);
}

/* Team Section */
.team {
  padding: 100px 0;
  background-color: var(--dark-bg);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.team.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Marquee Wrapper - New Scroll Container */
.team-marquee-wrapper {
  overflow-x: scroll;
  white-space: nowrap;
  padding-bottom: 20px;

  -ms-overflow-style: none;
  scrollbar-width: none;

  scroll-snap-type: x mandatory;

  position: relative;
}

/* Hides the default scrollbar visually */
.team-marquee-wrapper::-webkit-scrollbar {
  display: none;
}


/* NEW: Custom Scroll Indicator TRACK */
.custom-scroll-track {
  width: 200px;
  height: 4px;
  background: rgba(160, 160, 160, 0.2);
  border-radius: 2px;
  margin: 20px auto 0 auto;
  position: relative;
}

/* NEW: Custom Scroll Indicator THUMB (Animated by JS) */
.custom-scroll-thumb {
  width: 30px;
  height: 4px;
  background: var(--primary-purple);
  border-radius: 2px;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.1s linear;
}


.team-grid.team-marquee {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
  animation: none;
}

/* Team Card styling for horizontal layout */
.team-card {
  width: 260px;
  flex-shrink: 0;
  scroll-snap-align: start;

  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  opacity: 1;
  animation: none;
}

[data-theme="light"] .team-card {
  background: var(--card-bg);
  border-color: var(--border-color);
}
[data-theme="light"] .team-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .team-card:hover {
  box-shadow: 0 6px 15px rgba(147, 51, 234, 0.1);
}

.team-card:hover {
  border-color: var(--primary-purple);
  transform: translateY(-5px);
}

/* Updated team image styling */
.team-image-wrapper {
  width: 100%;
  height: 270px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.05), rgba(168, 85, 247, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-image-wrapper {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(192, 132, 252, 0.1));
}

.team-card:hover .team-image {
  transform: scale(1.05);
}

.team-card h3 {
  font-size: 1.2rem;
  margin: 1.8rem 1.5rem 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.team-role {
  color: var(--primary-purple);
  font-size: 0.95rem;
  margin: 0 1.5rem 1.8rem;
  font-weight: 500;
}

/* NEW JOIN US SECTION STYLES */
.join-us {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), transparent);
  border-top: 1px solid rgba(147, 51, 234, 0.2);
  /* Initially hidden for reveal animation */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.join-us.animated {
  opacity: 1;
  transform: translateY(0);
}

.join-us-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--purple-lighter);
}

.join-us-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.join-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* HEADER / NAVIGATION STYLES */

/* Header Wrapper (Transparent/Open) */
.header {
  background-color: var(--header-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none !important;
  box-shadow: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.3s ease;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: auto;
}

.logo-image {
  height: 40px;
  width: auto;  /* Maintains aspect ratio */
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}


.logo:hover .logo-image {
  transform: scale(1.05);
}


/* Navigation Links */
.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  flex-grow: 1;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-purple), var(--purple-lighter));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-purple);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {
  .header-content {
    padding: 0 15px;
  }

  .dynamic-island {
    gap: 1rem;
    padding: 0.6rem 1rem;
    width: 90%; /* Scale with screen width */
  }

  .nav {
    display: none; /* Hide links on mobile to prevent overflow */
    position: static;
    transform: none;
  }

  .header-actions {
    gap: 0.8rem;
    margin-left: auto;
  }

  .cta-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* CTA Button */
.cta-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  padding: 0.7rem 1.8rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

/* LIGHT MODE FIX: CTA */
[data-theme="light"] .cta-btn {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.cta-btn:hover {
  background: var(--primary-purple);
  color: white;
  border-color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

/* Theme Toggle */
.theme-toggle {
  flex-shrink: 0;
  margin-right: 0;
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

/* LIGHT MODE FIX: Theme Toggle */
[data-theme="light"] .theme-toggle {
  background: var(--card-bg);
  border-color: var(--border-color);
}
[data-theme="light"] .theme-toggle svg {
  stroke: var(--primary-purple);
  fill: var(--primary-purple);
}

[data-theme="dark"] .theme-toggle svg {
  stroke: var(--purple-lighter);
  fill: none;
}

.theme-toggle:hover {
  border-color: var(--primary-purple);
  transform: rotate(15deg) scale(1.05);
}

/* --- Hamburger Menu --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001; /* Ensure it stays above the nav overlay */
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* --- Mobile View Optimization --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex; /* Show hamburger on mobile */
  }

  .nav {
    display: none;
    position: fixed;
    top: 70px;
    right: 15px;
    width: auto;
    min-width: 180px;
    background-color: var(--card-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
  }

  /* When the menu is active, show it */
  .nav.mobile-active {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
  }

  .nav-link:hover {
    background-color: rgba(147, 51, 234, 0.1);
    color: var(--primary-purple);
  }

  /* Transform the Hamburger into an 'X' */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Footer styles */

.footer {
  border-top: 1px solid rgba(147, 51, 234, 0.1);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
  backdrop-filter: blur(8px);
  background: var(--card-bg);
}

[data-theme="light"] .footer {
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-section a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.7rem;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.footer-section a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-purple);
  transition: width 0.3s ease;
}

.footer-section a:hover::before {
  width: 100%;
}

.footer-section a:hover {
  color: var(--primary-purple);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(147, 51, 234, 0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
}
