/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

/* Base styles */
body {
  background-color: black;
  font-family: Inter, sans-serif;
  color: white;
}

.description {
  color: #cacaca;
  font-size: 14px;
}

/* Section containers */
.hero-section,
.highlights-section,
#feature-packs .rounded-3,
#tools .rounded-3 {
  padding: 80px;
}

/* ------------------- NAVIGATION ------------------- */
/* Navbar styles */
.nav-link {
  color: white;
  font-size: 13px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #a0a0a0;
}

.navbar-nav .nav-item + .nav-item {
  margin-left: 48px;
}

/* Base class for navbar version buttons */
.navbar-version-button {
  border-radius: 50px;
  background-color: var(--button-color);
  font-size: 10pt;
  color: white;
  border: 0;
}

.navbar-version-button:hover,
.navbar-version-button:focus,
.navbar-version-button:active,
.navbar-version-button.show {
  border-radius: 50px;
  background-color: var(--button-color);
  font-size: 10pt;
  color: white;
}

/* Version-specific classes */
.version-3-6 {
  --button-color: #1C7E3C;
}

.version-3-9 {
  --button-color: #4A7DFF;
}

.navbar-version-dropwdown-menu {
  border-radius: 16px;
  min-width: auto;
  width: auto;
  padding: 0;
  background-color: #303030;
}

.navbar-version-dropwdown-item {
  padding: 5px 15px;
  font-size: 10pt;
  border-radius: 16px;
  background-color: #303030;
  color: white;
}

.navbar-version-dropwdown-item:hover {
  background-color: white;
  border-radius: 16px;
}

/* ------------------- VERSION BUTTONS ------------------- */
/* Base styles for version buttons */
.version-button-base {
  border-radius: 8px;
  background-color: var(--button-color);
  font-size: 13px;
  color: white;
  border: 0;
  height: 36px;
}

/* Width for the first button in group */
.btn-group .version-button-base:first-child {
  width: 153px;
}

/* Hover, focus, and active states */
.version-button-base:hover,
.version-button-base:focus,
.version-button-base.show {
  background-color: white;
  color: black;
}

/* Link color changes on hover/focus */
.version-button-base:hover a,
.version-button-base:focus a,
.version-button-base.show a {
  color: black !important;
}

/* Version-specific colors */
.version-button-3-6 {
  --button-color: #1C7E3C;
}

.version-button-3-9 {
  --button-color: #4A7DFF;
}

.version-dropdown-menu {
  border-radius: 8px;
  width: 178px;
  padding: 0;
  background-color: #303031;
  margin-top: 4px;
  overflow: hidden;
  max-height: calc(5 * 37px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.version-dropdown-item {
  padding: 8px 15px;
  font-size: 13px;
  color: white;
  background-color: #303031;
  text-align: center;
}

.version-dropdown-item:hover {
  background-color: white;
  color: black;
}

/* Single version button */
.single-version-button {
  border-radius: 8px;
  background-color: #303031;
  font-size: 13px;
  color: white;
  border: 0;
  height: 36px;
  width: 194px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

.single-version-button:hover,
.single-version-button:focus,
.single-version-button:active {
  background-color: white;
  color: black;
}

/* Feature packs buttons */
.secondary-version-button {
  border-radius: 8px;
  background-color: #303031;
  font-size: 13px;
  color: white;
  border: 0;
  height: 36px;
}

.btn-group .secondary-version-button:first-child {
  width: 194px;
  text-align: center;
  display: inline-block;
  line-height: 24px;
}

.secondary-version-button:hover,
.secondary-version-button:focus,
.secondary-version-button.show {
  background-color: white;
  color: black;
}

.secondary-version-dropdown-menu {
  border-radius: 8px;
  width: 194px;
  padding: 0;
  background-color: #303031;
  margin-top: 4px;
  overflow: hidden;
  max-height: calc(5 * 37px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.secondary-version-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.secondary-version-dropdown-menu::-webkit-scrollbar-track {
  background: #303031;
}

.secondary-version-dropdown-menu::-webkit-scrollbar-thumb {
  background-color: #4a4a4a;
  border-radius: 6px;
}

.secondary-version-dropdown-item {
  padding: 8px 15px;
  font-size: 13px;
  color: white;
  background-color: #303031;
  text-align: center;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.secondary-version-dropdown-item:hover {
  background-color: white;
  color: black;
}

/* Common dropdown divider */
.dropdown-divider {
  margin: 0;
  border-top: 1px solid #4a4a4a;
}

/* ------------------- CARDS & HIGHLIGHTS ------------------- */
/* Card styling for all sections */
.card {
  display: flex;
  flex-direction: row;
  height: 100%;
  background-color: #0F0F10;
  border-radius: 13px;
  border: 0;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px !important;
}

/* Highlight cards */
.card-highlight {
  display: flex;
  flex-direction: column;
  background-color: #0F0F10;
  margin-bottom: 20px;
}

.card-img {
  border-radius: 13px;
}

.card-img-top {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.card-img-left {
  width: 190px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 12px;
}

/* Card links */
.card-link-wrapper {
  text-decoration: none;
  display: block;
  color: inherit;
}

.clickable-card {
  position: relative;
  border-radius: 12px;
  transition: border 0.3s ease;
}

.clickable-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 3px solid transparent;
  background: linear-gradient(to bottom, #3f3f3f, rgba(255, 255, 255, 0)) border-box;
  -webkit-mask: linear-gradient(#3f3f3f 0 0) padding-box, linear-gradient(#3f3f3f 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clickable-card:hover::before {
  opacity: 1;
}

.card-link {
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 500;
  color: #c6cbfb;
}

.arrow {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-left: 5px;
  display: inline-block;
}

.clickable-card:hover .arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* Badge styling */
.badge {
  font-weight: normal;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  background-color: rgba(71, 82, 133, 0.5) !important;
}

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge-container .badge {
  margin-left: 0 !important;
}

.badge-custom {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ------------------- CAROUSEL ------------------- */
.carousel-indicators {
  position: static;
  margin-top: 30px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 5px;
}

.carousel-indicators button.active {
  background-color: rgba(255, 255, 255, 0.8);
}

/* ------------------- FOOTER ------------------- */
.footer-text {
  color: #a3a3a3;
  font-size: 12px;
}

.footer-link {
  text-decoration: none;
  color: #a3a3a3;
  font-size: 12px;
}

.footer-link:hover {
  text-decoration: underline;
  color: white;
}

.footer-copyright {
  text-align: left;
  width: 100%;
  border-color: #333;
}

.footer-copyright p {
  word-wrap: break-word;
  white-space: normal;
  display: inline-block;
  width: 100%;
  line-height: 1.5;
}

.footer-copyright a {
  display: inline;
  white-space: nowrap;
}

/* Footer layout */
.hstack > .vr {
  align-self: stretch;
  min-height: 200px;
}

.hstack {
  min-height: 200px;
}

/* ------------------- SECTION BACKGROUNDS ------------------- */
.hero-bg-3-9 {
  background: radial-gradient(68.79% 84.63% at 44.77% 131.53%, rgba(95, 72, 189, 0.60) 0%, rgba(95, 72, 189, 0.00) 100%), 
              radial-gradient(303.31% 73.91% at 84.84% 88.25%, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.00) 54.64%, #000 100%);
  background-size: cover;
  background-position: center;
  height: 538px;
}

.highlights-bg-3-9 {
  background: radial-gradient(65.88% 89.34% at 44.22% -32.93%, #5F48BD 0%, rgba(15, 15, 16, 0.50) 100%), #0F0F10;
}

.hero-bg-3-6 {
  background: radial-gradient(68.79% 84.63% at 44.77% 131.53%, rgba(74, 131, 30, 1) 0%, rgba(95, 72, 189, 0.00) 100%), 
              radial-gradient(303.31% 73.91% at 84.84% 88.25%, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.00) 54.64%, #000 100%);
  background-size: cover;
  background-position: center;
  height: 538px;
}

.masterclass {
  background-size: cover;
  background-position: center;
}

/* ------------------- RESPONSIVE LAYOUT ------------------- */
/* Small screens (phones) */
@media (max-width: 576px) {
  .hero-section,
  .highlights-section,
  #feature-packs .rounded-3,
  #tools .rounded-3 {
    padding: 30px !important;
  }

  .col-md-6 {
    flex-basis: 100%;
    max-width: 100%;
  }

  .card {
    flex-direction: column;
  }

  .card-img-left {
    margin-bottom: 15px;
    width: 100%;
  }

  .card-body {
    text-align: left;
  }
}

/* Medium screens (tablets) */
@media (max-width: 768px) {
  .hero-section,
  .highlights-section,
  #feature-packs .rounded-3,
  #tools .rounded-3 {
    padding: 40px;
  }

  /* Tools section modifications */
  #tools .card {
    flex-direction: column;
  }
  
  #tools .card-img-left {
    display: none;
  }
  
  #tools .card-body {
    width: 100%;
    padding: 20px !important;
  }
  
  #tools .card-body p.description {
    text-align: left;
    justify-content: center;
  }

  #tools .card-body .d-flex {
    justify-content: flex-start;
  }

  .first-extras-section-card {
    margin-bottom: 15px;
  }

  /* footer adjustments */
  .hstack.gap-4 {
    flex-direction: column;
  }
  
  .hstack.gap-4 .vr {
    display: none;
  }
  
  .hstack.gap-4 > div {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .footer-copyright p {
    text-align: left;
    padding-right: 1rem;
  }
  
  .footer-copyright p .ms-3 {
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }

  .navbar-nav .nav-item + .nav-item {
    margin-left: 0px;
  }
}

/* Medium-large screens */
@media (max-width: 992px) and (min-width: 768px) {
  .feature-pack-card {
    flex: 0 0 50%;
    max-width: 50%;
  }

  #feature-packs .container .row {
    justify-content: center;
  }

  .navbar-nav .nav-item + .nav-item {
    margin-left: 0px;
  }
}

/* Large screens */
@media (max-width: 992px) {
  .hero-section,
  .highlights-section,
  #feature-packs .rounded-3,
  #tools .rounded-3 {
    padding: 60px;
  }
  
  .card {
    flex-direction: row;
    width: 100%;
  }
}
