/* ==========================================================================
   Animation Institute Andheri — Stylesheet
   ========================================================================== */

:root {
  --primary: #ff5e00;
  --primary-dark: #d94e00;
  --secondary: #111827;
  --accent: #fff700;
  --accent-dark: #e0d900;
  --gradient-brand: linear-gradient(135deg, var(--primary), var(--accent));
  --light-grey: #f5f6fa;
  --white: #ffffff;
  --text-muted: #6b7280;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 40px rgba(17, 24, 39, 0.08);
  --shadow-hover: 0 20px 50px rgba(17, 24, 39, 0.15);
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--secondary);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100%;
}

a {
  text-decoration: none;
  transition: var(--transition);
}
img {
  max-width: 100%;
}

::selection {
  background: var(--primary);
  color: var(--secondary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--light-grey);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
#preloader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader-ring {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 94, 0, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Utility / Section Common
   ========================================================================== */
.section-padding {
  padding: 90px 0;
}
.bg-light-grey {
  background: var(--light-grey);
}

.section-tag {
  display: inline-block;
  background: rgba(255, 94, 0, 0.12);
  color: #b34400;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title {
  font-weight: 800;
  font-size: 2.4rem;
  margin-bottom: 18px;
  color: var(--secondary);
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.text-accent {
  color: var(--primary);
}
.text-primary-yellow {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-primary {
  background: var(--gradient-brand);
  color: var(--secondary);
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 25px rgba(255, 94, 0, 0.35);
  transition: var(--transition);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 94, 0, 0.5);
  color: var(--secondary);
}
.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.btn-hero-outline:hover {
  background: #fff;
  color: var(--secondary);
  transform: translateY(-3px);
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-submit {
  background: var(--gradient-brand);
  color: var(--secondary);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 94, 0, 0.35);
  color: var(--secondary);
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
  background: var(--secondary);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar a {
  color: #cbd5e1;
}
.top-bar a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  z-index: 1030;
  transition: var(--transition);
}
header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.navbar {
  padding: 14px 0;
}
.brand-text {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  max-width: 100%;
}
.brand-text small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  width: 100%;
}
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--secondary);
  margin: 0 10px;
  position: relative;
  padding: 8px 2px !important;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-dark);
}

.enquire-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
  font-weight: 600;
}
.enquire-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
}
.heroSwiper,
.heroSwiper .swiper-wrapper,
.heroSwiper .swiper-slide {
  height: 100%;
}
.swiper-slide {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 24, 39, 0.92) 10%,
    rgba(17, 24, 39, 0.55) 60%,
    rgba(17, 24, 39, 0.35) 100%
  );
}
.hero-content {
  color: #fff;
  max-width: 780px;
}
.hero-content h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.1rem;
  color: #e5e7eb;
  margin-bottom: 30px;
  line-height: 1.8;
}
.heroSwiper .swiper-pagination {
  bottom: 30px !important;
}
.heroSwiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
  width: 10px;
  height: 10px;
}
.heroSwiper .swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
  width: 30px;
  border-radius: 5px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  bottom: -25px;
  left: 25px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-badge i {
  font-size: 2rem;
  color: var(--primary);
}
.about-badge strong {
  display: block;
  font-size: 1.1rem;
  color: var(--secondary);
}
.about-badge span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.about-list li {
  margin-bottom: 12px;
  font-weight: 500;
}
.about-list i {
  color: var(--primary);
  margin-right: 10px;
}

/* ==========================================================================
   Counter Section
   ========================================================================== */
.counter-section {
  background: linear-gradient(135deg, var(--secondary), #1f2937);
  padding: 60px 0;
}
.counter-card {
  text-align: center;
  color: #fff;
  padding: 20px 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.counter-card:hover {
  transform: translateY(-8px);
}
.counter-card i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: inline-block;
}
.counter-card h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.counter-card p {
  color: #cbd5e1;
  margin: 0;
  font-weight: 500;
}

/* ==========================================================================
   Courses
   ========================================================================== */
.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  height: 100%;
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.course-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.course-card:hover .course-img img {
  transform: scale(1.1);
}
.course-duration {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(17, 24, 39, 0.8);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
}
.course-body {
  padding: 24px;
}
.course-body h4 {
  font-weight: 700;
  margin-bottom: 10px;
}
.course-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 18px;
}
.course-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.course-actions.justify-content-end {
  justify-content: flex-end;
}
.btn-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
}
.btn-link:hover {
  color: var(--primary-dark);
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-grey);
  color: var(--secondary);
  border: none;
  transition: var(--transition);
}
.icon-btn:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: var(--transition);
  border: 1px solid transparent;
}
.why-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.why-card i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-block;
  transition: var(--transition);
}
.why-card:hover i {
  color: var(--accent-dark);
  transform: scale(1.15);
}
.why-card h5 {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

/* ==========================================================================
   Alumni
   ========================================================================== */
.alumni-card {
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  margin: 10px 4px 30px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alumni-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.alumni-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Recruiters
   ========================================================================== */
.recruiter-logo {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  transition: var(--transition);
  border: 1px solid #eef0f4;
}
.recruiter-logo img {
  filter: grayscale(100%);
  opacity: 0.75;
  transition: var(--transition);
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  -webkit-filter: grayscale(100%);
}
.recruiter-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
  border-color: transparent;
}
.recruiter-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  -webkit-filter: grayscale(0%);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 180px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}
.gallery-item:hover img {
  transform: scale(1.12);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover::after {
  opacity: 1;
}
.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 1.6rem;
  color: #fff;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: var(--transition);
}
.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-modal-content {
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
  background: transparent;
}
.gallery-modal-content .btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background-color: #fff;
  border-radius: 50%;
  opacity: 1;
  padding: 8px;
}

/* ==========================================================================
   Life at Our Institute — Tabs
   ========================================================================== */
.life-tabs {
  gap: 10px;
  border-bottom: none;
  flex-wrap: wrap;
}
.life-tabs .nav-link {
  background: var(--light-grey);
  border: 1.5px solid transparent;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  transition: var(--transition);
}
.life-tabs .nav-link:hover {
  background: rgba(255, 94, 0, 0.1);
  color: var(--primary);
}
.life-tabs .nav-link.active {
  background: var(--gradient-brand);
  color: var(--secondary);
  border-color: transparent;
}

/* ==========================================================================
   Affiliations
   ========================================================================== */
.affiliation-group-title {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary);
  text-align: center;
}
.affiliation-group-title i {
  color: var(--primary);
  margin-right: 8px;
}
.affiliation-card {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: var(--transition);
}
.affiliation-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.affiliation-card img {
  max-height: 55px;
  object-fit: contain;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  padding: 90px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 247, 0, 0.3), transparent 70%);
  top: -200px;
  right: -100px;
}
.cta-section h2 {
  font-weight: 800;
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-info-card {
  background: linear-gradient(135deg, var(--secondary), #1f2937);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  height: 100%;
  color: #fff;
}
.contact-info-card h5 {
  font-weight: 700;
  margin-bottom: 30px;
  font-size: 1.3rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}
.contact-info-item i {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 94, 0, 0.15);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.1rem;
}
.contact-info-item span {
  display: block;
  color: #9ca3af;
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.contact-info-item a,
.contact-info-item p {
  color: #fff;
  margin: 0;
  font-weight: 500;
  line-height: 1.7;
}
.contact-info-item a:hover {
  color: var(--primary);
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}
.contact-form-card h4 {
  font-weight: 700;
  margin-bottom: 22px;
}
.contact-form-card .form-control,
.contact-form-card .form-select {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.12);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--secondary);
  padding: 26px 0;
}
footer .copyright {
  color: #9ca3af;
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   Enquiry Modal
   ========================================================================== */
.enquire-modal-content {
  border-radius: var(--radius-lg);
  border: none;
  padding: 10px;
}
.enquire-modal-content .btn-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
}
.enquire-modal-content h4 {
  font-weight: 700;
}
.enquire-modal-content h4 i {
  color: var(--primary);
  margin-right: 6px;
}
.enquire-modal-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.enquire-modal-content .form-control,
.enquire-modal-content .form-select {
  border-radius: 50px;
  padding: 12px 18px;
  border: 1.5px solid #e5e7eb;
}

/* ==========================================================================
   Floating Buttons
   ========================================================================== */
.floating-btn {
  position: fixed;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  font-size: 1.4rem;
  transition: var(--transition);
  border: none;
}
.call-float {
  bottom: 100px;
  right: 24px;
  background: var(--gradient-brand);
  color: var(--secondary);
  animation: pulse-brand 2s infinite;
}
.whatsapp-float {
  bottom: 30px;
  right: 24px;
  background: #25d366;
}
.whatsapp-float img {
  width: 30px;
  height: 30px;
}
.enquire-float {
  position: fixed;
  top: 50%;
  right: -63px;
  width: 176px;
  height: 46px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-brand);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  padding: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: var(--shadow-hover);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}
.enquire-float i {
  font-size: 1.1rem;
}
.enquire-float:hover {
  transform: translateY(-50%) rotate(-90deg) scale(1.06);
  color: var(--secondary);
}
.back-to-top {
  bottom: 100px;
  left: 24px;
  background: var(--secondary);
  color: var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.floating-btn:hover {
  transform: scale(1.1);
}
.whatsapp-float:hover,
.back-to-top:hover {
  color: #fff;
}

@keyframes pulse-brand {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 94, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 94, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 94, 0, 0);
  }
}

/* ==========================================================================
   Mobile Sticky Bar
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  z-index: 1010;
}
.mobile-sticky-bar a,
.mobile-sticky-bar button {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary);
  border-right: 1px solid #eee;
}
.mobile-sticky-bar a:last-child,
.mobile-sticky-bar button:last-child {
  border-right: none;
}
.mobile-sticky-bar i {
  font-size: 1.2rem;
  color: var(--primary);
}
.mobile-sticky-bar a:first-child i {
  color: #25d366;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.9rem;
  }
  .hero-section {
    height: auto;
    min-height: auto;
    padding-top: 80px;
  }
  .heroSwiper .swiper-slide {
    padding: 140px 0;
    height: auto;
    min-height: 500px;
  }
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .navbar-collapse {
    margin-top: 16px;
  }
  .nav-buttons {
    margin-top: 16px;
    flex-wrap: wrap;
  }
  body {
    padding-bottom: 62px;
  }
  .call-float {
    bottom: 160px;
  }
  .back-to-top {
    bottom: 160px;
  }
  .whatsapp-float {
    bottom: 90px;
  }
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 1.9rem;
  }
  .about-img-wrap img {
    height: 320px;
  }
  .cta-section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .section-tag {
    font-size: 0.7rem;
  }
  .counter-card h3 {
    font-size: 1.7rem;
  }
  .gallery-item {
    height: 140px;
  }
  .enquire-float {
    width: 150px;
    height: 40px;
    right: -55px;
    font-size: 0.82rem;
  }
}
