/* Hero section */

/* ===== CSS Variables and Basic Setup ===== */
:root {
  --bg-color: #f5f3ff;
  --text-color: #111827;
  --primary-color: #7c3aed;
  --primary-color-light: rgba(124, 58, 237, 0.1);
  --border-color: rgba(0, 0, 0, 0.1);
  --font-family: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.hero-section .anim-reveal {
  list-style: disc;
}

/* ===== Initial Load Animation Control ===== */
.is-loading .anim-reveal {
  opacity: 0;
  transform: translateY(20px);
}

/* ===== Modern Navigation Bar ===== */
.nav-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  bottom: 1.5rem; /* Mobile first */
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 0.25rem; /* Reduced gap for smaller screens */
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.nav-link {
  position: relative;
  cursor: pointer;
  font-size: 0.8rem; /* Adjusted for smaller screens */
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--text-color);
  z-index: 2;
  transition: color 0.3s ease;
}

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

.nav-active-pill {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  border-radius: 9999px;
  background-color: var(--primary-color-light);
  z-index: 1;
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-active-pill::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 0.25rem;
  background-color: var(--primary-color);
  border-radius: 9999px;
  box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color),
    0 0 30px var(--primary-color);
}

/* Desktop navigation styles */
@media (min-width: 768px) {
  .nav-wrapper {
    bottom: auto;
    top: 1.5rem;
  }
  .nav-content {
    gap: 0.5rem;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Existing Body Scroll Lock */
body.is-menu-open {
  overflow: hidden;
}

/* Contact Section Placeholder Styles */
.contact-section {
  padding: 8rem 1.5rem;
}

.contact-email-btn {
  margin-top: 2rem;
}

a {
  color: var(--primary-color);
}

/* =================================================================
   1. HAMBURGER BUTTON STYLES
   ================================================================= */

/* The hamburger button itself */
.hamburger-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1001; /* Must be on top of the menu overlay */
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* The three lines of the hamburger */
.hamburger-btn span {
  width: 2rem;
  height: 3px;
  background: var(--primary-color); /* --text-color */
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

/* Animate the hamburger to an 'X' when the menu is open */
body.is-menu-open .hamburger-btn span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}
body.is-menu-open .hamburger-btn span:nth-child(2) {
  opacity: 0;
}
body.is-menu-open .hamburger-btn span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Hide the hamburger button on desktop screens */
@media (min-width: 768px) {
  .hamburger-btn {
    display: none;
  }
}

/* =================================================================
   2. NAVIGATION STYLES (MOBILE-FIRST)
   ================================================================= */

/* Default state: Mobile Navigation Overlay (hidden off-screen) */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: rgba(245, 243, 255, 0.9); /* --bg-color with transparency */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(100%); /* Start off-screen to the right */
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Active state: Show the mobile menu when body has the class */
body.is-menu-open .nav-wrapper {
  transform: translateX(0); /* Slide into view */
}

/* Vertically stack the navigation links on mobile */
.nav-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* Style the links for the large mobile overlay */
.nav-link {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  color: #111827; /* --text-color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link.active {
  color: #7c3aed; /* --primary-color */
}

/* The desktop pill is not needed on mobile */
.nav-active-pill {
  display: none;
}

/* =================================================================
   3. DESKTOP NAVIGATION OVERRIDES
   ================================================================= */

/* On screens 768px and wider, transform the overlay into the floating pill */
@media (min-width: 768px) {
  /* Reset mobile overlay styles and create the pill container */
  .nav-wrapper {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%); /* Center the pill */
    width: auto;
    height: auto;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: none; /* No slide transition needed for desktop */
  }

  /* Horizontally align the links */
  .nav-content {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  /* Adjust link styles for the smaller desktop pill */
  .nav-link {
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    z-index: 2;
  }

  /* Make the active pill visible on desktop */
  .nav-active-pill {
    display: block;
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    border-radius: 9999px;
    background-color: rgba(124, 58, 237, 0.1); /* --primary-color-light */
    z-index: 1;
    transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Add the glowing line above the pill */
  .nav-active-pill::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 0.25rem;
    background-color: #7c3aed; /* --primary-color */
    border-radius: 9999px;
    box-shadow: 0 0 10px #7c3aed, 0 0 20px #7c3aed, 0 0 30px #7c3aed;
  }
}

/* Prevents the page from scrolling when the mobile menu is open */
body.is-menu-open {
  overflow: hidden;
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-image-container {
    margin-top: 2.5rem;
  }
  .hero-text {
    order: 2;
  }
}

.hero-text .subtitle {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

/* Optional: Add a blinking cursor effect */
.hero-text h1::after {
  content: "|";
  display: inline-block;
  margin-left: 5px;
  animation: blink 0.7s steps(2, start) infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-text .description {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
  color: var(--text-color);
  border: 1px solid rgba(120, 119, 119, 0.497);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
  color: #fff;
}

.btn .arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}
.btn:hover .arrow {
  transform: translateX(5px);
}

/* ===== Creative Hero Image & Deco Shapes ===== */
.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
  animation: hero-image-move 18s cubic-bezier(0.4, 0.2, 0.2, 1) infinite
    alternate;
  will-change: transform;
  border-radius: 20px;
}

.hero-image-clipper {
  width: clamp(280px, 80%, 450px);
  aspect-ratio: 1 / 1;
  position: relative;
  /* clip-path: polygon(
    41% 0,
    85% 14%,
    100% 50%,
    82% 87%,
    49% 100%,
    15% 85%,
    0% 50%,
    15% 15%
  ); */
  animation: hero-image-clipper-float 15s cubic-bezier(0.4, 0.2, 0.2, 1)
    infinite alternate;
  will-change: transform;
}

@keyframes hero-image-move {
  0% {
    transform: translateY(0) scale(1.01) rotate(-2deg);
    box-shadow: 0 8px 32px 0 rgba(124, 58, 237, 0.1);
  }
  30% {
    transform: translateY(-10px) scale(1.03) rotate(1deg);
    box-shadow: 0 16px 40px 0 rgba(124, 58, 237, 0.13);
  }
  60% {
    transform: translateY(-18px) scale(1.04) rotate(-1deg);
    box-shadow: 0 24px 48px 0 rgba(124, 58, 237, 0.16);
  }
  80% {
    transform: translateY(-10px) scale(1.03) rotate(1deg);
    box-shadow: 0 16px 40px 0 rgba(124, 58, 237, 0.13);
  }
  100% {
    transform: translateY(0) scale(1.01) rotate(-2deg);
    box-shadow: 0 8px 32px 0 rgba(124, 58, 237, 0.1);
  }
}

@keyframes hero-image-clipper-float {
  0% {
    transform: translateY(0) scale(1) rotate(-1deg);
    box-shadow: 0 8px 32px 0 rgba(124, 58, 237, 0.1);
  }
  40% {
    transform: translateY(-6px) scale(1.01) rotate(1deg);
    box-shadow: 0 16px 40px 0 rgba(124, 58, 237, 0.13);
  }
  70% {
    transform: translateY(-12px) scale(1.02) rotate(-1deg);
    box-shadow: 0 24px 48px 0 rgba(124, 58, 237, 0.16);
  }
  100% {
    transform: translateY(0) scale(1) rotate(-1deg);
    box-shadow: 0 8px 32px 0 rgba(124, 58, 237, 0.1);
  }
}

.hero-image-clipper img {
  width: 100%;
  height: 134%;
  object-fit: cover;
  border-radius: 50%;
}

.deco-shape {
  position: absolute;
  background-color: var(--primary-color-light);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}
.shape-2 {
  width: 50px;
  height: 50px;
  bottom: 15%;
  right: 0%;
  animation-delay: -2s;
}
.shape-3 {
  width: 120px;
  height: 120px;
  bottom: 5%;
  left: 20%;
  animation-delay: -4s;
  background-color: rgba(124, 58, 237, 0.05);
}
.shape-4 {
  width: 30px;
  height: 30px;
  top: 15%;
  right: 10%;
  animation-delay: -1s;
}

@keyframes float {
  0% {
    transform: translate(0, 0px);
  }
  50% {
    transform: translate(10px, -20px);
  }
  100% {
    transform: translate(0, 0px);
  }
}

/* ===== Featured Section ===== */
.featured-section {
  padding: 80px 1.5rem;
  background-color: var(--bg-color);
  border-top: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

/* Background grid for premium feel */
.featured-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      rgba(229, 231, 235, 0.5) 1px,
      transparent 1px
    ),
    linear-gradient(to right, rgba(229, 231, 235, 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.featured-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.featured-text {
  font-weight: 500;
  color: #6c757d;
  margin-bottom: 3rem;
  box-shadow: 3px 3px 0 #999, 6px 6px 0 #bbb, 9px 9px 15px rgba(0, 0, 0, 0.2);
}

.slider-wrapper {
  overflow: hidden;
  position: relative;
  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
  );
}

.slider-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: fit-content;
  animation: scroll-left 40s linear infinite;
}
.slider-wrapper:hover .slider-track {
  animation-play-state: paused;
}

.slider-track img {
  height: 68px;
  width: auto;
  transition: all 0.3s ease-in-out;
  filter: grayscale(0%) opacity(1);
  mix-blend-mode: color-burn;
  object-fit: contain;
}
.slider-track img:hover {
  scale: 1.2;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== Scroll-Reveal Animations ===== */
.anim-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: var(--delay, 0s);
}

.anim-reveal.is-visible {
  opacity: 1;
  font-weight: 400;
  transform: translateY(0);
}

/* About section */

/* ===== About Section Styles ===== */
.about-section {
  padding: 8rem 1.5rem;
  background-color: var(--bg-color); /* Uses the same lavender background */
}

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto;
  text-wrap: balance;
}

/* Main Content Grid Layout */
.about-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.about-main-image {
  width: 100%;
  height: 100%;
  max-height: 620px;
  border-radius: 1rem;
  object-fit: cover;
}

.about-grid-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Breakout Card for Teaching Philosophy */
.breakout-card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.breakout-icon {
  color: var(--primary-color);
}

.breakout-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.breakout-description {
  color: #4b5563;
}

.breakout-btn {
  align-self: flex-start; /* Button doesn't stretch */
}

.about-secondary-image {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  flex-grow: 1; /* Fills remaining space */
}

/* Certifications Section */
.certifications-wrapper {
  padding: 6rem 0;
  text-align: center;
}

.certifications-title {
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 2rem;
}

.certifications-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cert-item {
  background-color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out,
    all 0.3s ease-in-out;
  cursor: default;
}

.cert-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  background-color: var(--primary-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
  color: #fff;
}

/* Achievements Card */
.achievements-card {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .achievements-card {
    padding: 4rem;
    text-align: left;
  }
  .achievements-text .section-description {
    margin: 0;
  }
}

.achievements-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .achievements-grid {
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
  }
}

.achievement-stat p {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.achievement-stat span {
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--primary-color);
}

.achievements-bg-grid {
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(
      rgba(229, 231, 235, 0.7) 1px,
      transparent 1px
    ),
    linear-gradient(to right, rgba(229, 231, 235, 0.7) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom right, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 60%);
}

.achievements-text,
.achievements-grid {
  position: relative;
  z-index: 1;
}

/* ===== Teaching Approach Section ===== */
.approach-section {
  padding: 8rem 1.5rem;
  background-color: var(--bg-color);
}

.text-center {
  text-align: center;
}

.approach-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 992px) {
  .approach-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.approach-steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.approach-step-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}
.approach-step-item.is-active {
  opacity: 1;
}

.step-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d1d5db;
  background-color: #e5e7eb;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.5s ease;
  position: relative;
}

.step-number,
.step-checkmark {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.step-checkmark {
  position: absolute;
  opacity: 0;
  transform: scale(0.5);
  color: white;
}

.approach-step-item.is-active .step-icon {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
}
.approach-step-item.is-active .step-number {
  opacity: 0;
  transform: scale(0.5);
}
.approach-step-item.is-active .step-checkmark {
  opacity: 1;
  transform: scale(1);
}

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

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.step-content p {
  color: #4b5563;
}

/* Image Carousel Styles */
.approach-image-container {
  position: relative;
  height: 500px;
  border-radius: 1rem;
  overflow: hidden;
  /* Add a subtle perspective for the 3D effect */
  perspective: 1000px;
}

.approach-feature-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(50px) rotateX(-20deg) scale(0.95);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.approach-feature-image.is-active {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
}
.approach-feature-image.is-exiting {
  opacity: 0;
  transform: translateY(-50px) rotateX(20deg) scale(0.95);
}

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

/* Gradient overlay on image */
.approach-feature-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-color), transparent);
}
/* =============================================
   REFINED FEATURED BENTO GALLERY STYLES
   ============================================= */

/* Re-using existing styles for consistency */
.gallery-section {
  padding: 8rem 1.5rem;
  background-color: var(--bg-color);
}
.section-header,
.container {
  /* Assuming these are defined elsewhere in your CSS */
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.section-header {
  margin-bottom: 4rem;
}
.section-title {
  font-size: 2.5rem; /* or your theme's title size */
  margin-bottom: 1rem;
  color: var(--text-color);
}
.section-description {
  font-size: 1.1rem;
  color: #4b5563; /* a softer text color */
  max-width: 600px;
  margin: 0 auto;
}

/* NEW: The Bento Grid for the Feature Section */
.featured-bento-grid {
  display: grid;
  /* A 2-column layout for mobile-first */
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px; /* Base height for grid items */
  gap: 1rem;
}

/* A more complex 4-column layout for larger screens */
@media (min-width: 768px) {
  .featured-bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px; /* Slightly adjust base height for desktop */
  }
}

/* Classes to control grid spanning */
.grid-col-span-1 {
  grid-column: span 1;
}
.grid-col-span-2 {
  grid-column: span 2;
}
.grid-row-span-1 {
  grid-row: span 1;
}
.grid-row-span-2 {
  grid-row: span 2;
}

/* On mobile, force larger items to take up full width for a better flow */
@media (max-width: 767px) {
  .grid-col-span-2 {
    grid-column: span 2;
  }
  .grid-row-span-2 {
    grid-row: span 1;
  } /* Avoid overly tall images on mobile */
}

/* Styling for each item in the featured grid */
.featured-bento-item {
  display: block; /* Make the whole area a clickable link */
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #e5e7eb; /* Placeholder color */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-bento-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.featured-bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-bento-item:hover img {
  transform: scale(1.05);
}

/* Overlay and Title on hover */
.featured-bento-item .item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 75%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.featured-bento-item .item-title {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  color: white;
  font-weight: 600;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.featured-bento-item:hover .item-overlay,
.featured-bento-item:hover .item-title {
  opacity: 1;
  transform: translateY(0);
}

/* Styles for the "View More" button container and button */
.view-more-container {
  text-align: center;
  margin-top: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39);
}

.btn-primary:hover {
  background-color: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.45);
}
/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: 8rem 1.5rem;
  background-color: var(--bg-color); /* A clean white to contrast */
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-color-light);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.badge .star-icon {
  width: 1rem;
  height: 1rem;
}

.testimonial-nav-dots {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.testimonial-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: all 0.4s ease;
}
.testimonial-dot.is-active {
  background-color: var(--primary-color);
}

/* Carousel Styles */
.testimonials-carousel {
  position: relative;
  min-height: 400px;
}
.testimonial-card-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(50px) scale(0.95);
  transition: all 0.6s ease-in-out;
  z-index: 1;
}

.testimonial-card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 10;
}

.testimonial-card-stars {
  display: flex;
  gap: 0.25rem;
  color: #f59e0b; /* Yellow-500 */
  margin-bottom: 1.5rem;
}

.testimonial-card-content {
  position: relative;
  flex-grow: 1;
  font-style: italic;
  color: #4b5563;
}
.quote-icon {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  width: 2rem;
  height: 2rem;
  color: var(--primary-color-light);
  transform: rotate(180deg);
}
.testimonial-card-content p {
  position: relative;
  z-index: 1;
}

.testimonial-separator {
  width: 100%;
  height: 1px;
  background-color: #e5e7eb;
  margin: 1.5rem 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.author-info h4 {
  font-weight: 600;
}
.author-info p {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Decorative shapes for carousel */
.shape-5 {
  width: 6rem;
  height: 6rem;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--primary-color-light);
  border-radius: 1rem;
  z-index: 0;
  animation: none; /* Override float animation */
}
.shape-6 {
  width: 6rem;
  height: 6rem;
  top: -1.5rem;
  right: -1.5rem;
  background-color: var(--primary-color-light);
  border-radius: 1rem;
  z-index: 0;
  animation: none; /* Override float animation */
}

/* =============================================
   8. FOOTER SECTION
   ============================================= */

/* Main Wrapper for the Footer Section */
.site-footer-wrapper {
  background-color: var(--bg-color); /* Uses the default --bg-color */
  color: var(--text-color);
  margin-top: 4rem; /* Add some space above the footer */
}

/* Inner Footer Styling */
.site-footer {
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden; /* To contain the blur shape */
}

.footer-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 1.5rem;
}

/* Footer Grid Layout */
.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Staggered animation for columns */
.footer-grid > div {
  opacity: 0; /* Initially hidden for animation */
  transform: translateY(20px);
}

.is-visible .footer-grid > div {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: var(--delay, 0s);
}

/* Typography & Content */
.footer-heading {
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.footer-subheading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.footer-description,
.footer-address,
.footer-quote {
  color: #4b5563; /* Muted text color */
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.footer-quote {
  font-style: italic;
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primary-color-light);
}

.footer-address {
  font-style: normal;
}

/* Navigation Links */
.footer-nav,
.footer-legal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

/* Social Links & Tooltips */
.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-button {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.social-button:hover {
  background-color: var(--primary-color-light);
  color: var(--primary-color);
  border-color: var(--primary-color-light);
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  background-color: var(--text-color);
  color: var(--bg-color);
  text-align: center;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.2s;
  font-size: 0.75rem;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
  }
}

.copyright-text {
  font-size: 0.875rem;
  color: #4b5563;
}

.footer-legal-nav {
  flex-direction: row;
  gap: 1.5rem;
}

/* Decorative Shape */
.footer-blur-shape {
  position: absolute;
  top: 0;
  right: -1rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.1;
  filter: blur(40px);
  pointer-events: none;
}

/* --- NEW PREMIUM & PROFESSIONAL PROFILE CARD DESIGN --- */

.academic-profile-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.profile-card {
  width: 100%;
  max-width: 800px;
  background-color: #f0eefc;
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 12px 12px 24px #d9d6e9, -12px -12px 24px #ffffff;
  transition: all 0.4s ease;
  height: 54rem;
}
@media (max-width: 640px) {
  .profile-card {
    padding: 1.5rem;
    height: 58rem;
  }
}

.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}
.profile-subtitle {
  font-size: 1.125rem;
  color: #6b757d;
  margin-top: 0.25rem;
}

.profile-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.profile-toggle {
  display: inline-flex;
  background-color: var(--primary-color-light);
  border-radius: 99px;
  padding: 0.5rem;
  position: relative;
}
.toggle-button {
  border: none;
  background: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #6b757d;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}
.toggle-button.is-active {
  color: white;
}
.toggle-pill {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.5rem;
  background-color: var(--primary-color);
  border-radius: 99px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile-content {
  position: relative;
  min-height: 400px;
}
.tab-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
}
.tab-pane.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.list-item {
  opacity: 0;
  transform: translateY(15px);
  animation: item-fade-in 0.5s ease-out forwards;
}
@keyframes item-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qualifications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.qual-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
}
.qual-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-color-light);
  color: var(--primary-color);
}
.qual-degree {
  font-weight: 600;
  color: var(--text-color);
}
.qual-university {
  color: #6b757d;
  font-size: 0.9rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .experience-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.experience-stat-card {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--primary-color-light);
  border-radius: 1rem;
}
.stat-number {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}
.stat-label {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

.experience-points {
  list-style: none;
  padding: 0;
  margin: 0;
}
.experience-points li {
  display: flex;
  gap: 1rem;
  align-items: start;
  color: #4b5563;
  margin-bottom: 1.5rem;
}
.experience-points .icon {
  color: var(--primary-color);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* --- NEW: Professional YouTube Button Style --- */
.youtube-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #ff0000;
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}
.youtube-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.author-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}
