/* 
   Innoventure Premium Design System
   Vanilla CSS with CSS Variables, Flexbox, CSS Grid, and custom animations.
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables */
:root {
  --primary: #672d8f;      /* Royal Purple */
  --primary-light: #8e44ad;
  --primary-dark: #3c1b54;
  --primary-bg: #481c90;
  --primary-bg-dark: #271b59;
  --accent: #f9af38;       /* Vibrant Gold */
  --accent-hover: #d88e1e;
  --dark-bg: #120d24;      /* Deep night purple background */
  --light-bg: #fdfbfe;
  --gray-light: #f7f5fa;
  --gray-border: #e6e0f0;
  --text-dark: #1a1625;
  --text-muted: #5e5768;
  --text-light: #ffffff;
  --text-light-muted: #d0c7de;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 35px rgba(103, 45, 143, 0.12);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 80px 0;
}

.grid {
  display: grid;
  gap: 30px;
}

.flex {
  display: flex;
  align-items: center;
}

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

.text-light {
  color: var(--text-light);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 50px auto;
  font-weight: 400;
}

/* Buttons and Badges */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(103, 45, 143, 0.3);
}

.btn-accent {
  background-color: var(--accent);
  color: #271b59;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(249, 175, 56, 0.3);
}

.btn-dark {
  background-color: rgba(26, 22, 37, 0.85);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark:hover {
  background-color: rgba(26, 22, 37, 1);
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  background-color: rgba(103, 45, 143, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  border: 1px solid rgba(103, 45, 143, 0.2);
}

/* Navigation Bar */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

header.sticky {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  backdrop-filter: blur(10px);
}

header.sticky .nav-links a {
  color: var(--text-dark);
}

header.sticky .burger span {
  background: var(--text-dark);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-light);
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

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

.nav-links a:hover {
  color: var(--accent);
}

/* Dashboard Login nav button */
.nav-dashboard-btn {
  background: var(--accent) !important;
  color: var(--text-dark) !important;
  padding: 8px 18px !important;
  border-radius: var(--border-radius-sm) !important;
  font-weight: 600 !important;
  transition: background var(--transition), transform 0.15s !important;
}

.nav-dashboard-btn::after {
  display: none !important;
}

.nav-dashboard-btn:hover {
  background: var(--accent-hover) !important;
  color: var(--text-dark) !important;
  transform: translateY(-1px);
}

.account-menu {
  position: relative;
}

.account-menu > a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-pic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--text-light);
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-sm);
  list-style: none;
  padding: 10px 0;
  width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border: 1px solid var(--gray-border);
}

.account-menu:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  color: var(--text-dark) !important;
  display: block;
  padding: 8px 20px;
  font-size: 0.9rem;
}

.dropdown-menu li a:hover {
  background-color: var(--gray-light);
  color: var(--primary) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: 50% 60%;
  padding-top: 120px;
  color: var(--text-light);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 13, 36, 0.75); /* Darkening overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-text {
  max-width: 750px;
}

.hero-brand-logo {
  max-width: 320px;
  margin-bottom: 25px;
  animation: float 4s ease-in-out infinite;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(249, 175, 56, 0.2);
}

.collab-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light-muted);
  margin-bottom: 12px;
}

.collab-logos {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.collab-logos img {
  max-height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: var(--transition);
}

.collab-logos img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Our Vision Section */
.vision {
  background-color: var(--light-bg);
}

.vision-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.vision-left img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.vision-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vision-video-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--gray-border);
  background-color: #000;
}

.vision-video-wrapper video {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* Aligned Goals Section & Continuous Logo Ticker */
.aligned-goals {
  background: linear-gradient(135deg, var(--primary-bg), var(--primary-bg-dark));
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.aligned-goals h2 {
  color: var(--text-light);
  margin-bottom: 40px;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker 25s linear infinite;
  gap: 50px;
}

.ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  background: #ffffff;
  padding: 10px 15px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ticker-item:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-md);
}

.ticker-item img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Testimonials / Trusted Voices */
.testimonials {
  background-color: var(--gray-light);
}

.testimonials-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--text-light);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(103, 45, 143, 0.3);
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '“';
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  color: rgba(103, 45, 143, 0.15);
  position: absolute;
  top: -20px;
  left: -15px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--gray-border);
  padding-top: 15px;
}

.testimonial-user img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.testimonial-info h4 {
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Innovation Advantage (Video Embeds Grid) */
.advantage {
  background-color: var(--light-bg);
}

.video-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.video-card {
  background: var(--text-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}

.video-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(103, 45, 143, 0.2);
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-content {
  padding: 25px;
}

.video-card-quote {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
  font-style: italic;
}

.video-card-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

.video-card-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Student Benefits Split Layout */
.benefits {
  background: linear-gradient(135deg, #1c1538, #100b21);
  color: var(--text-light);
}

.benefits-grid {
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.benefits-sticky {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.benefits-sticky h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.benefits-sticky p {
  color: var(--text-light-muted);
  margin-bottom: 35px;
  font-size: 1.1rem;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.benefit-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 25px 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateX(10px);
}

.benefit-icon {
  background: rgba(249, 175, 56, 0.15);
  color: var(--accent);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.benefit-text h5 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.benefit-text p {
  font-size: 0.92rem;
  color: var(--text-light-muted);
}

/* Student Gallery */
.gallery {
  background-color: var(--light-bg);
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
  background: #fff;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 10px;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

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

/* Best Schools & Call to Action Banner */
.best-schools {
  background: linear-gradient(180deg, var(--primary-bg), var(--primary-bg-dark));
  color: var(--text-light);
  text-align: center;
}

.best-schools h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
}

.best-schools p {
  color: var(--text-light-muted);
  max-width: 800px;
  margin: 0 auto 35px auto;
  font-size: 1.1rem;
}

.school-banner-img {
  max-width: 100%;
  margin: 30px auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.best-schools-footer {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 30px 0;
  color: var(--accent);
}

/* Student and Parent Experiences (Grid of 3 Video embeds) */
.parent-experiences {
  background-color: var(--gray-light);
}

.experiences-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.experience-card {
  background: var(--text-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.experience-info {
  padding: 20px;
  text-align: center;
}

.experience-info h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.experience-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Timeline/Round Details */
.timeline {
  background-color: var(--light-bg);
  text-align: center;
}

.timeline h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 30px;
}

.timeline-img {
  max-width: 1000px;
  margin: 20px auto 40px auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-border);
}

/* As Featured On Ticker */
.featured-on {
  background-color: var(--gray-light);
  padding: 60px 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.featured-on h3 {
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}

.featured-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.featured-ticker img {
  max-height: 45px;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(1);
  transition: var(--transition);
}

.featured-ticker img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* Get Recognized (Certification Layout) */
.certification {
  background-color: var(--light-bg);
}

.cert-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.cert-left {
  max-width: 500px;
}

.cert-left h2 {
  font-size: 2.4rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.cert-left p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.cert-right img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}

.cert-right img:hover {
  transform: scale(1.02);
}

/* National Winners & PDF Links */
.winners {
  background-color: var(--gray-light);
}

.winners-grid {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.winner-card {
  background: var(--text-light);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.winner-card img {
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.winner-card h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

/* Impact / Charts Section */
.impact {
  background-color: var(--light-bg);
  text-align: center;
}

.impact-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.impact-card {
  background: var(--text-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}

.impact-card img {
  width: 100%;
  height: auto;
  display: block;
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Partners & Footer */
.partners-footer-sec {
  background-color: var(--dark-bg);
  color: var(--text-light);
  text-align: center;
  padding: 80px 0 40px 0;
}

.partners-footer-sec h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.partners-footer-sec p {
  color: var(--text-light-muted);
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.partners-banner-img {
  max-width: 800px;
  margin: 0 auto 50px auto;
  border-radius: var(--border-radius-md);
  opacity: 0.9;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  font-size: 0.85rem;
  color: var(--text-light-muted);
}

/* Keyframes Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem !important; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-brand-logo { margin: 0 auto 25px auto; }
  .collab-logos { justify-content: center; }
  .vision-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; gap: 40px; }
  .benefits-sticky { position: static; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .experiences-grid { grid-template-columns: repeat(2, 1fr); }
  .winners-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; text-align: center; }
  .cert-left { margin: 0 auto; }
}

@media (max-width: 768px) {
  .container { padding: 50px 0; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-bg-dark);
    flex-direction: column;
    padding: 80px 40px;
    align-items: flex-start;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    color: var(--text-light) !important;
    font-size: 1.1rem;
  }
  .burger {
    display: flex;
  }
  .burger.toggle .line-1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .burger.toggle .line-2 {
    opacity: 0;
  }
  .burger.toggle .line-3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .experiences-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem !important; }
  .section-title { font-size: 1.8rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .collab-logos { gap: 15px; }
  .collab-logos img { max-height: 30px; }
}

/* ==========================================
   NEW PREMIUM FUNCTIONAL AND VISUAL STYLES
   ========================================== */

/* 1. Custom Video Placeholder Cards */
.video-placeholder {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #0d0a1a;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 1;
}

.video-placeholder .video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-placeholder:hover .video-thumb {
  transform: scale(1.08);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 13, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.video-placeholder:hover .play-overlay {
  background: rgba(18, 13, 36, 0.25);
}

.play-btn-pulse {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #271b59;
  font-size: 1.4rem;
  box-shadow: 0 0 0 0 rgba(249, 175, 56, 0.6);
  animation: pulse-ring 2.2s infinite;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-btn-pulse i {
  margin-left: 4px; /* Offset to center the play icon triangle visually */
}

.video-placeholder:hover .play-btn-pulse {
  transform: scale(1.15);
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 175, 56, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(249, 175, 56, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 175, 56, 0);
  }
}

/* 2. Testimonials Carousel Slider */
.testimonials-carousel {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.carousel-track-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 15px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  gap: 30px;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 20px); /* 3 cards visible on desktop */
  box-sizing: border-box;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid var(--gray-border);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--primary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.carousel-btn.btn-left {
  left: -24px;
}

.carousel-btn.btn-right {
  right: -24px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 35px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray-border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background-color: var(--primary);
  width: 28px;
  border-radius: 50px;
}

/* 3. Lightbox Gallery Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(12, 9, 24, 0.96);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox-modal.show {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #ffffff;
  font-size: 45px;
  font-weight: 300;
  transition: var(--transition);
  cursor: pointer;
  z-index: 2100;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.lightbox-close:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 80%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content-wrapper img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.show img {
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 15px;
  color: var(--text-light-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  text-align: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2050;
  font-size: 1.2rem;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--accent);
  color: #271b59;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(249, 175, 56, 0.4);
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

/* 4. Floating Scroll to Top & Circular Progress */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(103, 45, 143, 0.4);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

#scrollToTopBtn i {
  position: absolute;
  font-size: 1.1rem;
  z-index: 2;
  transition: transform 0.3s ease;
}

#scrollToTopBtn:hover {
  background: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(103, 45, 143, 0.6);
}

#scrollToTopBtn:hover i {
  transform: translateY(-3px);
}

#scrollToTopBtn.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  pointer-events: none;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.1s linear;
  stroke-dasharray: 150.796; /* 2 * PI * r (r=24) */
  stroke-dashoffset: 150.796;
}

/* 5. Scroll Reveal System */
.reveal-element {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-fade {
  transform: translateY(0);
}

.reveal-zoom {
  transform: scale(0.95);
}

.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 6. Background ambient glowing effects */
.glow-bg-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 45, 143, 0.12) 0%, rgba(103, 45, 143, 0) 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.glow-bg-blob.accent-glow {
  background: radial-gradient(circle, rgba(249, 175, 56, 0.06) 0%, rgba(249, 175, 56, 0) 70%);
}

.vision {
  position: relative;
  overflow: hidden;
}

/* 3D Tilt Card Container */
.cert-right {
  perspective: 1000px;
}

.cert-right img {
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

/* Responsive updates for carousel */
@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 15px); /* 2 cards on tablet */
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 100%; /* 1 card on mobile */
  }
  .carousel-btn.btn-left {
    left: 10px;
  }
  .carousel-btn.btn-right {
    right: 10px;
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-close {
    top: 15px;
    right: 15px;
  }
}

