* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
  }

  html {
  scroll-behavior: smooth;
  }

  body {
    min-height: 100vh;
    background: transparent;   /* change this */
    overflow-x: hidden;
    overflow-y: auto;   /* ✅ ALLOW VERTICAL SCROLL */
  }
  
  /* ===== BACKGROUND VIDEO ===== */

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -5;           /* Behind everything */
  overflow: hidden;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;         /* Adjust between 0.12 – 0.25 */
  filter: brightness(1.1);
}

  
  /* NAVBAR */
  .navbar {
    position: absolute;
    top: 30px;
    width: 100%;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo {
    height: 130px;
  
  }
  
  .menu {
    background: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    display: flex;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }
  
  .menu a {
    font-weight: 500;
    cursor: pointer;
    color: #111;              /* force same color */
    text-decoration: none;   /* double safety */
  }
    
  .contact-btn {
    position: relative;
    overflow: hidden;
    background: #111;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  /* Light sweep */
  .contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      120deg,
      transparent,
      rgba(255,255,255,0.4),
      transparent
    );
    transition: all 0.6s ease;
  }
  
  .contact-btn:hover::before {
    left: 100%;
  }
  
  
  /* SHAPES */
  .shape {
    position: absolute;
    filter: blur(40px);
    opacity: 0.8;
    animation: float 10s infinite ease-in-out;
  }
  
  .shape-left {
    width: 400px;
    height: 400px;
    background: linear-gradient(120deg, #c7d2fe, #e0e7ff);
    border-radius: 50% 40% 60% 50%;
    top: -120px;
    left: -120px;
  }
  
  .shape-right {
    width: 350px;
    height: 350px;
    background: linear-gradient(120deg, #dbeafe, #f0f9ff);
    border-radius: 60% 50% 40% 50%;
    bottom: -120px;
    right: -120px;
    animation-delay: 3s;
  }
  
  @keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(40px) translateX(30px); }
    100% { transform: translateY(0px) translateX(0px); }
  }
  
  /* HERO */
  .hero {
    height: 100vh;
    position: relative;
    padding: 120px;
  }
  
  .word {
    position: absolute;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    color: #111;
  }
  
  .building { top: 15%; left: 40%; }
  .wellness { top: 35%; left: 10%; }
  .into { top: 55%; left: 45%; }
  .city { bottom: 10%; right: 5%; opacity: 0.3; }
  
  .side-text {
    position: absolute;
    font-size: 14px;
    opacity: 0.7;
  }
  
  .left { top: 40%; left: 12%; }
  .center { top: 58%; left: 48%; }
  .right { top: 38%; right: 10%; max-width: 260px; }
  
  /* RESPONSIVE */
  @media(max-width: 900px) {
    .hero { padding: 60px; }
    .menu { display: none; }
  }
  
  /* ===== 3D GLASS OVERLAYS ===== */
  
  .glass {
    position: absolute;
    inset: -20%;
    pointer-events: none;
    backdrop-filter: blur(20px) saturate(120%);
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
  }
  
  .glass-front {
    background: linear-gradient(
      120deg,
      rgba(255,255,255,0.25),
      rgba(255,255,255,0.05)
    );
    z-index: 2;
  }
  
  .glass-back {
    background: radial-gradient(
      circle at center,
      rgba(200,220,255,0.15),
      transparent 70%
    );
    z-index: 1;
  }
  
  /* Soft lighting layer */
  .light-layer {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.35), transparent 60%);
    pointer-events: none;
    mix-blend-mode: soft-light;
    z-index: 0;
    transition: transform 0.2s ease-out;
  }

  /* Ensure glass & light layers do not block scroll or clicks */
  .glass,
  .light-layer {
   pointer-events: none;
  }

  
  /* Ensure text stays on top */
  .hero,
  .navbar {
    position: relative;
    z-index: 10;
  }
  
  /* ===== BUBBLE CURSOR ===== */
  
  body {
    cursor: none;
  }
  
  .bubble-cursor {
    width: 30px;
    height: 30px;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
  
    background: radial-gradient(
      circle at 30% 30%,
      rgba(255,255,255,0.9),
      rgba(180,210,255,0.4),
      rgba(120,160,255,0.25)
    );
  
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow:
      0 0 20px rgba(160,190,255,0.6),
      inset 0 0 12px rgba(255,255,255,0.6);
  
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
  }
  
  /* ===== MENU HOVER OUTLINE EFFECT ===== */
  
  .menu-item {
    position: relative;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.25s ease;
  
    font-size: 18px;
    font-weight: 500;
  }
  
  /* Outline effect */
  .menu-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    border: 1.5px solid rgba(0,0,0,0.25);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.25s ease;
  }
  
  .menu-item:hover::after {
    opacity: 1;
    transform: scale(1);
  }
  
  /* Slight glow polish */
  .menu-item:hover {
    background: rgba(255,255,255,0.4);
  }
  
  /* When hovering menu → show normal arrow cursor */
  .menu,
  .menu * {
    cursor: default;
  }
  
  /* ===== BRAND HERO TEXT ===== */
  
  .brand-line {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -2px;
    display: flex;
    gap: 20px;
    animation: floatText 8s ease-in-out infinite;
  }
  
  .brand-main {
    color: #111;
  }
  
  .brand-highlight {
    color: #2563eb; /* IIT HUB color */
  }
  
  /* Floating illusion (no scroll) */
  @keyframes floatText {
    0%   { transform: translate(-50%, 0px); }
    50%  { transform: translate(-50%, -20px); }
    100% { transform: translate(-50%, 0px); }
  }
  
  /* ===== QUOTES ===== */
  
  .quote-line {
    position: absolute;
    font-size: 14px;
    opacity: 0.75;
    animation: fadeMove 10s ease-in-out infinite;
  }
  
  .q1 { top: 55%; left: 20%; }
  .q2 { top: 65%; right: 20%; animation-delay: 2s; }
  .q3 { top: 75%; left: 35%; animation-delay: 4s; }
  
  @keyframes fadeMove {
    0%   { opacity: 0; transform: translateY(20px); }
    20%  { opacity: 0.8; transform: translateY(0); }
    80%  { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-20px); }
  }
  
  /* ===== BRAND CENTER BLOCK ===== */
  .brand-wrapper {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
  }
  
  /* VJR’s */
  .brand-line-1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;    
  }
  
  /* Vishwas IIT HUB */
  .brand-line-2 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -1px;
  }

  .iit-blue {
    color: #2563eb;
    font-weight: 900;
    margin-left: 6px;
  }
  
  
  /* ===== IIT HUB ANIMATION ONLY ===== */
  .iit-animated {
    color: #2563eb;
    display: inline-block;
    animation: iitPulse 3.5s ease-in-out infinite;
  }
  
  @keyframes iitPulse {
    0% {
      transform: translateY(0);
      text-shadow: 0 0 0 rgba(37,99,235,0);
    }
    50% {
      transform: translateY(-12px);
      text-shadow: 0 20px 40px rgba(37,99,235,0.35);
    }
    100% {
      transform: translateY(0);
      text-shadow: 0 0 0 rgba(37,99,235,0);
    }
  }
  
  /* ===== QUOTES ===== */
  .quotes {
    margin-top: 25px;
  }
  
  .quotes p {
    font-size: 14px;
    opacity: 0.75;
    margin-top: 6px;
    animation: quoteFade 8s ease-in-out infinite;
  }
  
  .quotes p:nth-child(2) { animation-delay: 2s; }
  .quotes p:nth-child(3) { animation-delay: 4s; }
  
  @keyframes quoteFade {
    0% { opacity: 0; transform: translateY(10px); }
    20% { opacity: 0.75; transform: translateY(0); }
    80% { opacity: 0.75; }
    100% { opacity: 0; transform: translateY(-10px); }
  }
  
/* ================= ORBIT GALLERY (FRAMER STYLE) ================= */

.orbit-gallery {
    position: relative;
    height: 100vh;
    background: radial-gradient(circle at center, #eef2ff 0%, #ffffff 65%);
    overflow: hidden;
  }
  
  /* Rings */
  .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.06);
    pointer-events: none;
  }
  
  .ring-1 { width: 320px; height: 320px; }
  .ring-2 { width: 520px; height: 520px; }
  .ring-3 { width: 760px; height: 760px; }
  
  /* Center content */
  .orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
  }
  
  .orbit-center h2 {
    font-size: 36px;
    font-weight: 700;
  }
  
  .orbit-center p {
    font-size: 14px;
    opacity: 0.6;
  }
  
  /* Orbit container */
  .orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    animation: orbitRotate 40s linear infinite;
  }
  
  /* ORBIT CARD */
.orbit-card {
  position: absolute;
  width: 145px;
  height: 145px;
  border-radius: 18px;
  background: white;
  padding: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: orbitCounter 40s linear infinite;
}

.orbit img {
  filter: grayscale(0%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.orbit:hover {
  animation-play-state: paused;
}

/* STOP card self-rotation on hover */
.orbit:hover .orbit-card {
  animation-play-state: paused;
}

/* When hovering ONE card → dim other cards */
.orbit-card:hover ~ .orbit-card img,
.orbit-card:has(~ .orbit-card:hover) img {
  filter: grayscale(100%) opacity(0.5);
}

/* Hovered card stays colorful */
.orbit-card:hover img {
  filter: grayscale(0%) opacity(1);
}


.orbit img:hover {
  filter: grayscale(0%) opacity(1);
  z-index: 5;
}


/* Image inside card */
.orbit-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* TITLE BAR */
.orbit-card::after {
  content: attr(data-title);
  position: absolute;
  left: 0;
  bottom: 10px;               /* slight lift from edge */
  width: 100%;

  text-align: center;
  font-size: 13px;
  font-weight: 800;

  color: #ffffff;             /* white text */
  background: none;           /* ❌ remove white strip */

  text-shadow:               /* ensures readability */
    0 2px 6px rgba(0,0,0,0.45);
}



/* Title bar */
.orbit img::after {
  content: attr(data-title);

  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;

  padding: 8px 6px;
  text-align: center;

  font-size: 13px;
  font-weight: 700;

  color: #111;
  background: rgba(255, 255, 255, 0.9);

  border-radius: 0 0 14px 14px;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
}


  /* Position images around the circle */
  .orbit-card:nth-child(1) { top: 0%; left: 50%; transform: translate(-50%, -50%); }
  .orbit-card:nth-child(2) { top: 15%; left: 85%; transform: translate(-50%, -50%); }
  .orbit-card:nth-child(3) { top: 50%; left: 100%; transform: translate(-50%, -50%); }
  .orbit-card:nth-child(4) { top: 85%; left: 85%; transform: translate(-50%, -50%); }
  .orbit-card:nth-child(5) { top: 100%; left: 50%; transform: translate(-50%, -50%); }
  .orbit-card:nth-child(6) { top: 85%; left: 15%; transform: translate(-50%, -50%); }
  .orbit-card:nth-child(7) { top: 50%; left: 0%; transform: translate(-50%, -50%); }
  .orbit-card:nth-child(8) { top: 15%; left: 15%; transform: translate(-50%, -50%); }
  
  
  /* Rotation animation */
  @keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
  }
  
  /* Keep images upright */
  @keyframes orbitCounter {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(-360deg); }
  }
 
   
/* ================= ABOUT US (PRO LEVEL) ================= */

.about-us {
  position: relative;
  min-height: 100vh;
  padding: 160px 120px;
  background: radial-gradient(
    circle at 30% 20%,
    #eef2ff,
    #ffffff 60%
  );
  overflow: hidden;
}

#about-us {
  scroll-margin-top: 100px;
}


/* Glass container */
.about-glass {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;

  padding: 100px;
  border-radius: 48px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.6),
    rgba(255,255,255,0.25)
  );

  backdrop-filter: blur(24px) saturate(120%);
  box-shadow:
    0 60px 120px rgba(0,0,0,0.12);

  transform-style: preserve-3d;
}

/* Left content */
.about-left {
  z-index: 2;
}

.about-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.6;
  margin-bottom: 20px;
}

.about-left h2 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 30px;
}

.about-left h2 span {
  color: #2563eb;
}

.about-lead {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}

.about-left p {
  font-size: 15px;
  opacity: 0.75;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Right abstract depth */
.about-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating orbs */
.about-orb {
  width: 400px;
  height: 350px;
  border-radius: 50%;

  background: radial-gradient(
    circle at 30% 30%,
    #c7d2fe,
    #93c5fd
  );

  filter: blur(40px);
  opacity: 0.85;

  animation: floatOrb 10s ease-in-out infinite;
}

.about-orb.small {
  position: absolute;
  width: 180px;
  height: 180px;
  opacity: 0.7;
  animation-delay: 3s;
}

@keyframes floatOrb {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-40px); }
  100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 900px) {
  .about-us {
    padding: 100px 40px;
  }

  .about-glass {
    grid-template-columns: 1fr;
    padding: 60px;
  }

  .about-right {
    height: 300px;
  }
}

.highlight-bold {
  font-weight: 700;
  color: #000000;
}


/* ===== ABOUT FOUNDER (PREMIUM DEFAULT VISIBLE) ===== */

.about-founder {
  position: relative;
}

/* Founder image – VISIBLE by default */
.founder-img {
  position: absolute;
  width: 2500px;
  max-width: 100%;
  bottom: 0;

  opacity: 1;                          /* ✅ visible */
  transform: translateY(0) scale(1);   /* ✅ normal state */
  transition: all 0.6s ease;
  z-index: 3;

  filter: 
    drop-shadow(0 30px 60px rgba(0,0,0,0.25))
    saturate(90%);
}

/* Hover → enhance founder */
.about-founder:hover .founder-img {
  transform: translateY(-6px) scale(1.02);
  filter:
    drop-shadow(0 40px 80px rgba(0,0,0,0.35))
    saturate(110%);
}

/* Orb softens on hover */
.about-founder:hover .about-orb {
  opacity: 0.45;
}


/* ================= OUR COURSES – ACADEMIC PILLARS ================= */

.courses-pillars {
  position: relative;
  min-height: 120vh;
  padding: 160px 0;
  background: radial-gradient(circle at top, #eef2ff 0%, #ffffff 65%);
  overflow: hidden;
}

.courses-header {
  text-align: center;
  margin-bottom: 140px;
}

.courses-header h2 {
  font-size: 48px;
  font-weight: 800;
}

.courses-header p {
  opacity: 0.65;
  margin-top: 10px;
}

/* Track */
.pillars-track {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 140px;
  perspective: 1200px;
}

/* Pillar base */
.pillar {
  position: relative;
  width: 240px;
  height: 420px;
  padding-top: 16px;   /* 👈 ONLY top padding */
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.95),
    rgba(240,245,255,0.95)
  );
  border-radius: 28px;
  box-shadow:
    0 60px 120px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transform-style: preserve-3d;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  cursor: pointer;
}

/* Center pillar stronger */
.pillar.main {
  height: 500px;
  transform: translateY(-40px);
}

/* Glow line behind */
.pillar::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    circle at top,
    rgba(99,102,241,0.25),
    transparent 70%
  );
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* Content */
.pillar-body {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.pillar-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pillar-body span {
  font-size: 14px;
  opacity: 0.6;
}

/* Hover depth */
.pillar:hover {
  transform: translateY(-20px) translateZ(40px);
  box-shadow: 0 80px 160px rgba(0,0,0,0.18);
  filter: grayscale(0%) opacity(1);
}

.pillar:hover::before {
  opacity: 1;
  filter: brightness(1.25);
}

/* Default state */
.pillar {
  filter: grayscale(0%) opacity(1);
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.6s ease;
}

/* When hovering ONE card → dim ALL cards */
.pillars-track .pillar:hover ~ .pillar,
.pillars-track .pillar:has(~ .pillar:hover) {
  filter: grayscale(100%) opacity(0.55);
}

/* Hovered card stays normal */
.pillar:hover {
  filter: grayscale(0%) opacity(1);
}


/* Hovered card stays colorful & sharp */
.pillars-track:hover .pillar:hover {
  filter: grayscale(0%) opacity(1);
}

.modal-card {
  min-height: 420px;               /* 👈 taller */
  align-items: center;
}

.modal-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-img-wrap {
  position: relative;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.25),
    rgba(147,197,253,0.35)
  );
  box-shadow:
    0 2px 80px rgba(99,102,241,0.35);
}

.modal-img-wrap::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 34px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(199,210,254,0.6),
    transparent 70%
  );
  z-index: -1;
}


.modal-img-wrap img {
  width: 260px;
  border-radius: 22px;
  display: block;
}

.modal-right p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.85;
}

/* ===== MODAL TITLE – HOME PAGE BRAND MATCH ===== */
.modal-title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
  color: #111;
  line-height: 1.15;
}

.modal-title span {
  color: #2563eb; /* IIT HUB blue */
  display: inline-block;
  animation: modalTitleFloat 3.5s ease-in-out infinite;
}

/* Subtle premium motion (NOT distracting) */
@keyframes modalTitleFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}


/* ================= DETAILS PANEL ================= */

.course-details {
  position: fixed;
  top: 50%;
  right: -420px;
  transform: translateY(-50%);
  width: 380px;
  padding: 30px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.2);
  transition: right 0.6s ease;
  z-index: 999;
}

.course-details.active {
  right: 40px;
}

.course-details h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.course-details p {
  font-size: 15px;
  opacity: 0.75;
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* 🎹 Piano Flow Animation */
.piano-flow .pillar {
  animation: piano 6s infinite;
}

.piano-flow .pillar:nth-child(1) { animation-delay: 0s; }
.piano-flow .pillar:nth-child(2) { animation-delay: 1.2s; }
.piano-flow .pillar:nth-child(3) { animation-delay: 2.4s; }
.piano-flow .pillar:nth-child(4) { animation-delay: 3.6s; }

@keyframes piano {
  0% { transform: translateY(0); box-shadow: 0 40px 80px rgba(0,0,0,0.12); }
  15% { transform: translateY(-18px); box-shadow: 0 60px 120px rgba(0,0,0,0.18); }
  30% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/* 🖼️ Image inside cards */
.pillar-img {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  opacity: 0.9;
  border-radius: 20px;      /* 👈 matches inner curve */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  object-fit: cover;
}

/* ================= CARD-WISE IMAGE CONTROL ================= */

/* Olympiad – shorter, playful */
.pillar-olympiad .pillar-img {
  height: 280px;
}

/* IIT & NEET – tallest, academic focus */
.pillar-iit .pillar-img {
  height: 350px;
}

/* IAS – medium, calm */
.pillar-ias .pillar-img {
  height: 280px;
}

/* IAS – medium, calm */
.pillar-advanced .pillar-img {
  height: 350px;
}

/* ================= CARD-WISE TEXT GAP CONTROL ================= */

/* Olympiad – more breathing space */
.pillar-olympiad .pillar-body {
  bottom: 20px;
}

/* IIT & NEET – slightly closer (academic, focused) */
.pillar-iit .pillar-body {
  bottom: 30px;
}

/* IAS – relaxed but balanced */
.pillar-ias .pillar-body {
  bottom: 20px;
}

/* Extra spacing for EAMCET pillar */
.pillar-advanced .pillar-body {
  bottom: 30px;   /* move text slightly lower */
}

/* ===== MODAL BACKDROP ===== */
.course-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.course-modal.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== MODAL CARD ===== */
.modal-card {
  position: relative;
  width: min(900px, 90%);
  background: linear-gradient(
    180deg,
    #ffffff,
    #f4f7ff
  );
  border-radius: 26px;
  padding: 40px;
  box-shadow:
    0 60px 120px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.8);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  transform: scale(0.92);
  transition: transform 0.4s ease;
}

.course-modal.active .modal-card {
  transform: scale(1);
}

/* ===== CLOSE BUTTON INSIDE CARD ===== */
.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  font-size: 26px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-close:hover {
  background: rgba(0,0,0,0.15);
  transform: rotate(90deg);
}

/* ===== IMAGE AREA ===== */
.modal-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

/* ===== CONTENT ===== */
.modal-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.modal-content p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .modal-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}



/* ================= CONTACT US – PRO ================= */

.contact-pro {
  position: relative;
  padding: 160px 0 200px;
  background: linear-gradient(
    to bottom,
    #eef2ff 10%,
    #dbeafe 45%,
    #ffffff 100%
  );
  overflow: hidden;
}

/* LOGO STRIP CONTAINER */
.contact-logos {
  width: 100%;
  overflow: hidden;
  padding: 10px 0 40px;
  transform: translateY(-100px);   /* adjust value as needed */
  position: relative;
}

/* MOVING TRACK */
.logos-track {
  display: flex;
  width: max-content;
  gap: 110px;
  animation: marquee 30s linear infinite;
}

/* LOGO STYLE */
.logos-track img {
  height: 80px;
  object-fit: contain;
  opacity: 1;
  filter: grayscale(0%);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logos-track img:hover {
  opacity: 0.6;
  filter: grayscale(100%);
}

/* ANIMATION */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.contact-logos::before,
.contact-logos::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
}

.contact-logos::before {
  left: 0;
  background: linear-gradient(to right, #eef2ff, transparent);
}

.contact-logos::after {
  right: 0;
  background: linear-gradient(to left, #eef2ff, transparent);
}

.contact-logos:hover .logos-track {
  animation-play-state: paused;
}

.contact-logos:hover img {
  filter: grayscale(100%);
  opacity: 0.6;
}

.contact-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}



/* MAIN CONTENT */
.contact-content {
  max-width: 1200px;
  margin: auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  position: relative;
  z-index: 2;
  transform: translateY(-40px);
}

/* LEFT */
.contact-left h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
}

.address {
  font-size: 16px;
  opacity: 0.75;
  margin-bottom: 30px;
}

.contact-line {
  font-size: 16px;
  margin-bottom: 10px;
  opacity: 0.85;
}

.social-icons {
  display: flex;
  gap: 18px;
  margin-top: 30px;
}

.social-icons img {
  width: 22px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.social-icons img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* RIGHT */
.contact-right iframe {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* SIGNATURE */
.contact-signature {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) scaleY(1.60);
  font-size: clamp(6rem, 10vw, 6rem);
  font-weight: 1000;
  opacity: 0.06;
  white-space: nowrap;
  pointer-events: none;
}

/* ===== SERVICE FLIP MODAL ===== */
.service-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.service-modal.active {
  opacity: 1;
  pointer-events: all;
}

/* CARD */
.service-card {
  width: min(920px, 92%);
  background: linear-gradient(180deg, #ffffff, #f4f7ff);
  border-radius: 28px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 42px;

  transform-style: preserve-3d;
  transform: perspective(1400px) rotateY(90deg) rotateX(12deg) scale(0.7);
  transition: transform 0.9s cubic-bezier(.2,.9,.2,1);
  box-shadow: 0 80px 160px rgba(0,0,0,0.35);
}



@keyframes modalFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}


/* ACTIVE THROW */
.service-modal.active .service-card {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg) scale(1);
}

/* IMAGE SIDE */
.service-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-left img {
  width: 100%;
  max-width: 320px;
  border-radius: 22px;
  display: block;
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.25),
    rgba(147,197,253,0.35)
  );
  padding: 18px;
  box-shadow:
    0 10px 80px rgba(99,102,241,0.35);
}

.service-right {
  padding-top: 22px;   /* 👈 THIS moves text down */
}

/* TEXT */
.service-right h3 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 18px;
}

.service-right p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.85;
}

/* CLOSE */
.service-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  cursor: pointer;
  background: rgba(0,0,0,0.1);
}

.service-right h3 span {
  color: #2563eb;
  display: inline-block;
  animation: iitPulse 3.5s ease-in-out infinite;
}

/* ===== SERVICE MODAL TITLE – IIT HUB EFFECT ===== */
.service-right h3 span {
  color: #2563eb;
  display: inline-block;
  animation: iitPulse 3.5s ease-in-out infinite;
}

/* ================= PRO 3D SPHERE TESTIMONIALS ================= */
.testimonials-sphere {
  position: relative;
  min-height: 140vh;
  background: transparent;
  padding: 160px 60px 120px;
  overflow: hidden;

  /* TOP + BOTTOM FADE BRIDGE */
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}




/* Floating Background Orbs (like your hero section) */
.testi-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbitFloat 28s ease-in-out infinite;
  pointer-events: none;
}

.testi-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle at 30% 30%, #c7d2fe, #e0e7ff);
  top: -8%;
  left: -12%;
  animation-delay: 0s;
}

.testi-orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 40% 40%, #dbeafe, #bfdbfe);
  bottom: -5%;
  right: -8%;
  animation-delay: 10s;
}

.testi-orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 50% 50%, #fce7f3, #fbcfe8);
  top: 45%;
  right: 15%;
  animation-delay: 20s;
}

@keyframes orbitFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(50px, -60px) rotate(90deg) scale(1.15);
  }
  50% {
    transform: translate(-40px, 50px) rotate(180deg) scale(0.95);
  }
  75% {
    transform: translate(60px, 30px) rotate(270deg) scale(1.08);
  }
}

/* Glass Layer (like your hero glass) */
.testi-glass-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* Section Header */
.testi-section-header {
  text-align: center;
  margin-bottom: 100px;
  position: relative;
  z-index: 10;
}

.testi-label {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.8)
  );
  backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #2563eb;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.testi-section-header h2 {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 900;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testi-section-header p {
  font-size: 20px;
  color: #64748b;
  font-weight: 500;
}

/* Sphere Container */
.sphere-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 650px;
  margin: 0 auto;
  perspective: 2500px;
  perspective-origin: 50% 50%;
}

/* 3D Sphere */
.sphere-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Sphere Cards */
.sphere-card {
  position: absolute;
  width: 380px;
  height: 480px;
  left: 50%;
  top: 50%;
  margin-left: -190px;
  margin-top: -240px;
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Position cards in 3D sphere */
.card-1 { transform: rotateY(0deg) translateZ(700px); }
.card-2 { transform: rotateY(60deg) translateZ(700px); }
.card-3 { transform: rotateY(120deg) translateZ(700px); }
.card-4 { transform: rotateY(180deg) translateZ(700px); }
.card-5 { transform: rotateY(240deg) translateZ(700px); }
.card-6 { transform: rotateY(300deg) translateZ(700px); }

/* Card Inner (for flip animation) */
.sphere-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  cursor: pointer;
}

.sphere-card:hover .sphere-card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.sphere-front,
.sphere-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 32px;
  padding: 50px 40px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.25);
}

/* Front Side */
.sphere-front {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.9)
  );
  backdrop-filter: blur(30px) saturate(150%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Student Photo */
.student-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 28px;
  border: 6px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 900;
  color: white;
}

.sphere-front h3 {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  margin-bottom: 10px;
}

.student-meta {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 24px;
}

.rating {
  font-size: 26px;
  color: #fbbf24;
  letter-spacing: 6px;
}

/* Back Side */
.sphere-back {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.96),
    rgba(168, 85, 247, 0.96)
  );
  backdrop-filter: blur(30px) saturate(150%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}

.quote-icon {
  font-size: 120px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  top: 30px;
  left: 40px;
}

.testimonial-text {
  font-size: 19px;
  line-height: 1.75;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.ring-1 {
  width: 600px;
  height: 600px;
  animation-delay: 0s;
}

.ring-2 {
  width: 800px;
  height: 800px;
  animation-delay: 13s;
}

.ring-3 {
  width: 1000px;
  height: 1000px;
  animation-delay: 26s;
}

@keyframes ringRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Sphere Controls */
.sphere-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 100;
}

.sphere-nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(99, 102, 241, 0.2);
  font-size: 28px;
  color: #6366f1;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sphere-nav-btn:hover {
  background: #6366f1;
  color: white;
  transform: scale(1.12);
  box-shadow: 0 18px 45px rgba(99, 102, 241, 0.35);
}

.sphere-nav-btn:active {
  transform: scale(0.96);
}

/* Dots Navigation */
.sphere-dots {
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot:hover {
  background: rgba(99, 102, 241, 0.5);
  transform: scale(1.2);
}

.dot.active {
  background: #6366f1;
  width: 40px;
  border-radius: 8px;
  border-color: rgba(99, 102, 241, 0.3);
}

/* Bottom Stats Row */
.testi-stats-row {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin-top: 140px;
  position: relative;
  z-index: 10;
}

.stat-box {
  text-align: center;
}

.stat-value {
  font-size: 60px;
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-title {
  font-size: 14px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
  .sphere-container {
    height: 550px;
  }
  
  .sphere-card {
    width: 320px;
    height: 400px;
    margin-left: -160px;
    margin-top: -200px;
  }
  
  .card-1 { transform: rotateY(0deg) translateZ(550px); }
  .card-2 { transform: rotateY(60deg) translateZ(550px); }
  .card-3 { transform: rotateY(120deg) translateZ(550px); }
  .card-4 { transform: rotateY(180deg) translateZ(550px); }
  .card-5 { transform: rotateY(240deg) translateZ(550px); }
  .card-6 { transform: rotateY(300deg) translateZ(550px); }
  
  .testi-stats-row {
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .testimonials-sphere {
    padding: 120px 24px 80px;
  }
  
  .sphere-container {
    height: 600px;
  }
  
  .sphere-card {
    width: 280px;
    height: 380px;
    margin-left: -140px;
    margin-top: -190px;
  }
  
  .card-1 { transform: rotateY(0deg) translateZ(400px); }
  .card-2 { transform: rotateY(60deg) translateZ(400px); }
  .card-3 { transform: rotateY(120deg) translateZ(400px); }
  .card-4 { transform: rotateY(180deg) translateZ(400px); }
  .card-5 { transform: rotateY(240deg) translateZ(400px); }
  .card-6 { transform: rotateY(300deg) translateZ(400px); }
  
  .sphere-front,
  .sphere-back {
    padding: 40px 30px;
  }
  
  .student-photo {
    width: 110px;
    height: 110px;
  }
  
  .sphere-front h3 {
    font-size: 24px;
  }
  
  .testimonial-text {
    font-size: 17px;
  }
  
  .testi-stats-row {
    flex-direction: column;
    gap: 50px;
  }
  
  .sphere-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* ================= WHATSAPP FLOATING BUTTON ================= */

.whatsapp-wrapper {
  position: fixed;
  right: 35px;
  bottom: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  transition: bottom 0.4s ease, right 0.4s ease;
}

/* ICON ONLY — NO BOX */
.whatsapp-icon img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
}

.whatsapp-icon img:hover {
  transform: scale(1.12);
}

/* TEXT ABOVE ICON — ALWAYS VISIBLE */
.whatsapp-text {
  font-size: 14px;
  font-weight: 600;
  color: #25D366;
  margin-bottom: 8px;
  animation: floatText 3s ease-in-out infinite;
}

/* Subtle floating animation */
@keyframes floatText {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .navbar {
    padding: 0 20px;
  }

  .hero {
    padding: 80px 20px;
  }

  .about-us {
    padding: 100px 20px;
  }

  .about-glass {
    padding: 40px 20px;
  }

  .courses-pillars {
    padding: 100px 20px;
  }

  .pillars-track {
    flex-direction: column;
    gap: 60px;
    align-items: center;
  }

  .orbit {
    width: 100%;
    height: auto;
  }

  .contact-content {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .service-card,
  .modal-card {
    grid-template-columns: 1fr;
  }

}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

section, div {
  max-width: 100%;
}
