/* === Root Variables === */
:root {
  --purple-primary: #7b2cbf;
  --purple-dark: #5a189a;
  --purple-light: #9d4edd;
  --dark-bg: #10002b;
  --dark-secondary: #240046;
  --light-bg: #f8f9fa;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

/* === General Typography === */
body {
  font-family: var(--font-body);
  color: #333;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

.ls-1 {
  letter-spacing: 1px;
}
.ls-2 {
  letter-spacing: 2px;
}

.text-purple {
  color: var(--purple-primary) !important;
}
.text-purple-light {
  color: var(--purple-light) !important;
}

/* === Gradient Buttons Fix === */
.btn-gradient {
  background: linear-gradient(45deg, var(--purple-dark), var(--purple-primary));
  border: none;
  color: white !important;
  transition: all 0.3s ease;
}

.btn-gradient:hover,
.btn-gradient:active,
.btn-gradient:focus {
  background: linear-gradient(
    45deg,
    var(--purple-primary),
    var(--purple-light)
  );
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(123, 44, 191, 0.4);
  color: white !important;
}

/* === Navbar === */
.navbar {
  transition: all 0.3s ease;
  background-color: transparent;
}
.navbar-scrolled {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 5px;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--purple-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* === Home Hero Section === */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(16, 0, 43, 0.8),
    rgba(36, 0, 70, 0.7)
  );
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

/* === Animations === */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Sections Colors === */
.section-bg-dark {
  background-color: var(--dark-bg);
}
.section-bg-light {
  background-color: var(--light-bg);
}
.section-bg-white {
  background-color: #fff;
}

/* === Wave Divider === */
.wave-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider-top svg {
  position: relative;
  display: block;
  width: calc(150% + 1.3px);
  height: 80px;
  transform: rotateY(180deg);
}
.wave-divider-top .shape-fill {
  fill: #ffffff;
}

/* === Feature Cards === */
.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
  border-color: var(--purple-primary);
}
.icon-box {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.bg-purple-soft {
  background-color: rgba(123, 44, 191, 0.15);
}

/* === Service Boxes === */
.service-box {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--purple-light);
}
.read-more i {
  transition: margin-left 0.3s ease;
}
.service-box:hover .read-more i {
  margin-left: 10px;
}

/* === Logo Slider === */
.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}
.logo-track {
  display: flex;
  width: calc(150px * 12);
  animation: scroll 20s linear infinite;
}
.slide {
  width: 150px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide img {
  max-width: 100%;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-150px * 6));
  }
}

/* === Footer === */
.footer-dark {
  background-color: var(--dark-secondary);
}
.footer-links li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}
.footer-links li a:hover {
  color: var(--purple-light);
  padding-left: 5px;
}
.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.social-links a:hover {
  background-color: var(--purple-primary);
  color: white !important;
}

/* === Inner Page Header  === */
.page-header {
  height: 60vh;
  min-height: 450px;
  background: url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?q=80&w=2070&auto=format&fit=crop")
    no-repeat center center/cover;
  position: relative;
  margin-top: -80px;
  padding-top: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(16, 0, 43, 0.6), var(--dark-bg));
  z-index: 1;
}

.bg-dark-glass {
  background-color: rgba(16, 0, 43, 0.95) !important;
  backdrop-filter: blur(10px);
}

/* === Course Cards === */
.bg-dark-card {
  background-color: #1a0b2e;
  border: 1px solid rgba(123, 44, 191, 0.2);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.course-card:hover .bg-dark-card {
  border-color: var(--purple-primary);
  background-color: #240046;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.course-thumb img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .course-thumb img {
  transform: scale(1.05);
}
.badge.bg-purple {
  background-color: var(--purple-primary);
}

/* === Buttons & Tabs Fix  === */
.btn-outline-purple {
  color: white;
  border: 1px solid var(--purple-primary);
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-purple:hover,
.btn-outline-purple:active,
.btn-outline-purple:focus,
.btn-outline-purple.active {
  background-color: var(--purple-primary) !important;
  color: white !important;
  border-color: var(--purple-primary) !important;
  box-shadow: 0 0 10px rgba(123, 44, 191, 0.5);
}

.bg-gradient-purple {
  background: linear-gradient(135deg, var(--dark-bg), var(--purple-primary));
}

/* === Who We Are Page Extras === */
.hover-border-purple {
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}

.hover-border-purple:hover {
  border-bottom-color: var(--purple-primary) !important;
  transform: translateY(-5px);
}

.grayscale-hover {
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.grayscale-hover:hover {
  filter: grayscale(0%);
}
/* === Team Card Styling === */
.team-card img {
  transition: transform 0.5s ease;
}
.team-card:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}
.team-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}
.bg-gradient-dark {
  background: linear-gradient(to top, #10002b 0%, transparent 100%);
}
.translate-y-20 {
  transform: translateY(20px);
}

/* Card Hover Animation */
.team-card:hover .social-icons {
  opacity: 1;
  transform: translateY(0);
}

/* === Form Control Custom  === */
.form-control-custom {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white !important;
}

.form-control-custom:focus {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--purple-primary);
  color: white !important;
  box-shadow: 0 0 0 0.25rem rgba(123, 44, 191, 0.25);
}

.form-floating > .form-control-custom ~ label {
  color: rgba(255, 255, 255, 0.5);
}

.form-floating > .form-control-custom:focus ~ label,
.form-floating > .form-control-custom:not(:placeholder-shown) ~ label {
  color: var(--purple-light) !important;
}

/* === Autofill Fix === */
.form-control-custom:-webkit-autofill,
.form-control-custom:-webkit-autofill:hover,
.form-control-custom:-webkit-autofill:focus,
.form-control-custom:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #1a0b2e inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: white;
}
