/* ==========================================================================
   Reality Academy - Stylesheet & Animations
   ========================================================================== */

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

:root {
  --primary-purple: #3B075F;
  --primary-dark-purple: #230438;
  --primary-magenta: #F53353;
  --primary-gradient: linear-gradient(90deg, #6640A2 0%, #F53353 100%);
  --brand-bg: #F8F7FC;
  --brand-pink-light: #FBF6FE;
  --brand-pink-subtle: #FAF1F7;
  --text-dark: #1E1A29;
  --text-muted: #6B7280;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Gradient Text */
.title-gradient {
  background: linear-gradient(90deg, #6640A2 0%, #F53353 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.title-gradient-alt {
  background: linear-gradient(90deg, #F53353 0%, #FF7A90 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Navbar Dynamic States */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(59, 7, 95, 0.08);
  backdrop-filter: blur(12px);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.navbar-scrolled .navbar-link,
.navbar-scrolled .dropdown-btn {
  color: var(--primary-purple) !important;
}

.navbar-scrolled .navbar-link:hover,
.navbar-scrolled .dropdown-btn:hover {
  color: var(--primary-magenta) !important;
}

.navbar-scrolled .logo-white {
  display: none !important;
}

.navbar-scrolled .logo-color {
  display: block !important;
}

/* Category Color Gradients */
.grad-hse {
  background: linear-gradient(180deg, #FC6B0D 0%, #FD0200 100%);
}

.grad-mobility {
  background: linear-gradient(180deg, #5AEB7A 0%, #01B99C 100%);
}

.grad-rps {
  background: linear-gradient(180deg, #29E5FF 0%, #00ACC4 100%);
}

.grad-cyber {
  background: linear-gradient(180deg, #754DB1 0%, #380660 100%);
}

.grad-management {
  background: linear-gradient(180deg, #269DFE 0%, #151FF9 100%);
}

.grad-sales {
  background: linear-gradient(180deg, #23C0C0 0%, #136883 100%);
}

.grad-diversity {
  background: linear-gradient(180deg, #F5EA4A 0%, #FFD147 100%);
}

.grad-rse {
  background: linear-gradient(180deg, #0A9E45 0%, #043E1B 100%);
}

.grad-meditation {
  background: linear-gradient(180deg, #FF57A8 0%, #A5008B 100%);
}

/* Badge Tags */
.badge-roleplay {
  background: linear-gradient(90deg, #6640A2 0%, #F53353 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  display: inline-block;
}

.tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-magenta);
  background-color: rgba(245, 51, 83, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

/* Buttons */
.btn-primary {
  background: #ffffff;
  color: var(--primary-purple);
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(59, 7, 95, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 51, 83, 0.25);
  color: var(--primary-magenta);
}

.btn-primary .icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F8F7FC;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.btn-primary:hover .icon-circle {
  transform: translateX(3px);
  background: rgba(245, 51, 83, 0.1);
}

.btn-gradient {
  background: linear-gradient(90deg, #6640A2 0%, #F53353 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 25px rgba(245, 51, 83, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 51, 83, 0.45);
}

/* Experience Interactive Tabs */
.experience-tab-btn {
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  border-left: 3px solid #E5E7EB;
  padding-left: 1.25rem;
}

.experience-tab-btn.active {
  border-left-color: var(--primary-magenta);
}

.experience-tab-btn .tab-progress {
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #6640A2 0%, #F53353 100%);
  transform-origin: top;
  transform: scaleY(0);
}

.experience-tab-btn.active .tab-progress {
  animation: progressTimer 5.5s linear infinite;
}

@keyframes progressTimer {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

/* Formations Card Hover */
.formation-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.formation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(59, 7, 95, 0.12);
}

.formation-card:hover .formation-img {
  transform: scale(1.04);
}

.formation-img {
  transition: transform 0.5s ease;
}

/* Infinite Marquee */
.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 2rem;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-content.reverse {
  animation: scrollMarqueeReverse 35s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 2rem)); }
}

@keyframes scrollMarqueeReverse {
  from { transform: translateX(calc(-100% - 2rem)); }
  to { transform: translateX(0); }
}

/* Logo Card */
.client-logo-card {
  height: 85px;
  width: 170px;
  background: #ffffff;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.client-logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 7, 95, 0.08);
  border-color: rgba(245, 51, 83, 0.2);
}

.client-logo-card img {
  max-height: 48px;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.3s ease;
}

.client-logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Custom Accordion */
.faq-accordion-header {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-accordion-header:hover {
  color: var(--primary-magenta);
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion.open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-accordion.open .faq-content {
  opacity: 1;
}

/* Popup Modal */
.roleplay-popup {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.roleplay-popup.hidden-popup {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #3B075F;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #F53353;
}
