:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #f39c12;
  --light-bg: #ecf0f1;
  --text-dark: #2c3e50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

p {
  text-align: justify;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.nav-logo {
  max-width: 150px; /* limits logo size */
  height: auto; /* keeps aspect ratio */
}

@media (max-width: 576px) {
  .nav-logo {
    max-width: 120px;
  }
}

/* Header Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), #34495e);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Make the navbar toggler (hamburger icon) white */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5); /* optional border */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: bold;
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/hero2.jpg") no-repeat center center/cover;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.btn-primary-custom {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
}

.program-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.program-card img {
  flex-shrink: 0;
}

/* Section Styles */
.section {
  padding: 20px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* About Section */
/* =========================
   About Card Styles
========================= */
.about-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: white;
}

.about-icon i {
  font-size: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.about-card h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.about-card p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* =========================
   Swiper Styles
========================= */
.about-swiper-unique {
  display: none; /* hidden by default for desktop */
  padding-bottom: 60px;
}

.about-swiper-unique .swiper-slide {
  height: auto;
  padding: 0 10px; /* spacing at edges */
}

/* Pagination */
.about-swiper-unique .swiper-pagination {
  bottom: 10px;
}
.about-swiper-unique .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #667eea;
  opacity: 0.3;
  transition: all 0.3s ease;
}
.about-swiper-unique .swiper-pagination-bullet-active {
  opacity: 1;
  background: #764ba2;
}

/* Navigation buttons */
.about-swiper-unique .swiper-button-next,
.about-swiper-unique .swiper-button-prev {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #667eea;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.about-swiper-unique .swiper-button-next::after,
.about-swiper-unique .swiper-button-prev::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
}

.about-swiper-unique .swiper-button-next::after {
  content: "\f054"; /* fa-chevron-right */
}

.about-swiper-unique .swiper-button-prev::after {
  content: "\f053"; /* fa-chevron-left */
}

.about-swiper-unique .swiper-button-next:hover,
.about-swiper-unique .swiper-button-prev:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

/* Position */
.about-swiper-unique .swiper-button-next {
  right: 10px;
}
.about-swiper-unique .swiper-button-prev {
  left: 10px;
}

/* =========================
   Desktop Grid
========================= */
.about-grid-desktop {
  display: flex;
}
.about-grid-desktop .col-lg-4 {
  display: flex;
}
.about-grid-desktop .about-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* =========================
   Responsive Design
========================= */
@media (max-width: 1199px) {
  .about-swiper-unique {
    display: block; /* show swiper */
  }
  .about-grid-desktop {
    display: none; /* hide grid */
  }
}

@media (max-width: 768px) {
  .about-card {
    padding: 1.5rem;
  }
  .about-icon {
    width: 70px;
    height: 70px;
  }
  .about-icon i {
    font-size: 1.5rem;
  }
  .about-card h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .about-card {
    margin: 0 10px;
  }
  .about-swiper-unique {
    padding-bottom: 50px;
  }
  /* smaller nav buttons on phones */
  .about-swiper-unique .swiper-button-next,
  .about-swiper-unique .swiper-button-prev {
    width: 32px;
    height: 32px;
  }
  .about-swiper-unique .swiper-button-next::after,
  .about-swiper-unique .swiper-button-prev::after {
    font-size: 14px;
  }
}

/* Programs Section */
.program-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}
.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.program-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
}
.ph {
  color: var(--primary-color);
  font-weight: bold;
}

/* Swiper navigation same as About */
.programs-swiper-unique .swiper-button-next,
.programs-swiper-unique .swiper-button-prev {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #667eea;
  top: 50%;
  transform: translateY(-50%);
}
.programs-swiper-unique .swiper-button-next::after,
.programs-swiper-unique .swiper-button-prev::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
}
.programs-swiper-unique .swiper-button-next::after {
  content: "\f054";
}
.programs-swiper-unique .swiper-button-prev::after {
  content: "\f053";
}
.programs-swiper-unique .swiper-button-next:hover,
.programs-swiper-unique .swiper-button-prev:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.programs-swiper-unique .swiper-pagination-bullet {
  background: #667eea;
  opacity: 0.4;
}
.programs-swiper-unique .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Statistics Section */
.stats {
  background: linear-gradient(135deg, var(--primary-color), #34495e);
  color: white;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Contact Section */
.contact-form {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
}

.social-links a {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    text-align: center;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(231, 76, 60, 0.2);
  z-index: 1000;
}

.scroll-progress {
  height: 100%;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--accent-color)
  );
  width: 0%;
  transition: width 0.3s ease;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
}

.nexus-header {
  text-align: center;
}

.nexus-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nexus-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 400;
}

.aurora-accordion {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.prism-item {
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prism-item:last-child {
  border-bottom: none;
}

.prism-item:hover {
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
}

.quantum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  cursor: pointer;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quantum-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.quantum-header:hover::before {
  left: 100%;
}

.quantum-header:hover {
  background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.quantum-header.nexus-active {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
}

.quantum-header.nexus-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.02);
  }
}

.stellar-name {
  font-weight: 700;
  z-index: 10;
  position: relative;
}

.vortex-icon {
  font-size: 1.8rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  position: relative;
  font-weight: 300;
}

.nexus-active .vortex-icon {
  transform: rotate(45deg);
  color: #fbbf24;
}

.cosmos-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.cosmos-content.nexus-expanded {
  max-height: 800px;
}

.infinity-wrapper {
  padding: 40px 32px;
  position: relative;
}

.infinity-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.ethereal-role {
  display: inline-block;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.transcend-bio {
  color: #374151;
  line-height: 1.8;
  font-size: 1.05rem;
  text-align: justify;
  position: relative;
  padding-left: 20px;
}

.transcend-bio::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  animation: gradient-flow 4s ease-in-out infinite;
}

@keyframes gradient-flow {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1.1);
    opacity: 1;
  }
}

.transcend-bio p {
  margin-bottom: 16px;
  opacity: 0;
  animation: fade-in-up 0.8s ease-out forwards;
}

.transcend-bio p:nth-child(1) {
  animation-delay: 0.1s;
}
.transcend-bio p:nth-child(2) {
  animation-delay: 0.2s;
}
.transcend-bio p:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .zenith-container {
    padding: 15px;
  }

  .nexus-title {
    font-size: 2rem;
  }

  .quantum-header {
    padding: 20px 24px;
    font-size: 1.1rem;
  }

  .infinity-wrapper {
    padding: 30px 24px;
  }

  .transcend-bio {
    font-size: 1rem;
    padding-left: 16px;
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.cosmic-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: cosmic-spin 1s linear infinite;
}

@keyframes cosmic-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* === Program Card Styling === */
/* === Program Card Styling === */
.lavanya-program-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);

  /* ✅ Make all cards equal height */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.lavanya-program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.lavanya-program-card:hover::before {
  left: 100%;
}

.lavanya-program-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 1);
}

.lavanya-program-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  position: relative;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.lavanya-program-card:hover .lavanya-program-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

.lavanya-program-title {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}

.lavanya-program-description {
  color: #5a6c7d;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

/* === Swiper Styling === */
.lavanya-programs-swiper {
  padding: 20px 0 80px 0;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* Force equal height slides */
.lavanya-programs-swiper .swiper-wrapper {
  display: flex !important;
  align-items: stretch !important;
}

.lavanya-programs-swiper .swiper-slide {
  display: flex !important;
  height: auto !important; /* reset Swiper inline height */
}

.lavanya-program-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* center content vertically */
  height: 100%; /* ✅ fills slide height */
}

.lavanya-programs-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #ff6b6b;
  transform: scale(1.2);
}

.lavanya-programs-swiper .swiper-button-next,
.lavanya-programs-swiper .swiper-button-prev {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lavanya-programs-swiper .swiper-button-next::after,
.lavanya-programs-swiper .swiper-button-prev::after {
  font-size: 18px;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .lavanya-section-title {
    font-size: 2.5rem;
  }

  .lavanya-program-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .lavanya-program-card {
    padding: 1.5rem;
  }
}
