@font-face {
  font-family: HKGrotesk;
  src: url(/fonts/HKGrotesk-Regular.ttf);
  font-weight: normal;
  font-style: normal;
}

:root {
 font-family: HKGrotesk;
  --bg-dark: #343E48;
  --bg-grey: rgba(255, 255, 255, 0.1);
  --bg-glass: rgba(255, 255, 255, 0.1);
  --accent-white: #ffffff;
  --accent-grey: rgba(255, 255, 255, 0.18);
  --accent-blue: #6282a7;
  --accent-red: #ab7171;
  --accent-shadow: rgba(17, 0, 0, 0.1);
  --accent-green: #A0D0CB; 
  --accent-green-dark: rgb(98, 178, 169);
  --chapter1-gradient: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-green) 100%);
  --chapter2-gradient: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-blue) 100%);
  --chapter3-gradient: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red) 100%);
  --current-chapter-gradient: var(--chapter3-gradient); /* Default gradient */
  --nav-height: 80px;
  --nav-height-mobile: 300px;
  /* Add breakpoints for easier maintenance */
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-laptop: 1024px;
  --breakpoint-desktop: 1200px;
}

.hidden{
  display: none !important;
}

body.dark-mode {
  background: var(--bg-dark);
  color: var(--accent-white);
  min-height: 100vh;
  position: relative;
}

.fullpage-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  position: relative;
  padding: 0 1rem;
}

/* Navigation Styles */
.main-nav {
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  padding: 0 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  background: var(--bg-dark);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-toggle{
  background: transparent;
  border: none;
  padding: 0;
  display: none;
  align-items: center;
  cursor: pointer;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--accent-white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
  color: var(--accent-green);
}

@media screen and (max-width: 768px) {
  .main-nav {
      padding: 0 1rem;
  }

  /* Hamburger Menu Button - Now inside media query */
  .nav-toggle {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 30px;
      height: 21px;
      cursor: pointer;
      padding: 0;
      background: none;
      border: none;
      z-index: 1001;
  }

  /* Hamburger spans - Now inside media query */
  .nav-toggle span {
      display: block;
      width: 100%;
      height: 3px;
      background-color: var(--accent-white);
      transition: all 0.3s ease;
  }

  .nav-links {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 0;
      flex-direction: column;
      background: var(--bg-dark);
      overflow: hidden;
      transition: height 0.3s ease;
      padding: 0;
      margin: 0;
  }

  /* When mobile menu is open */
  .nav-links.active {
    height: auto;  /* Full viewport height when active */
    opacity: 1;
    visibility: visible;
    padding: 2rem;
}

  .nav-links a {
      color: var(--accent-white);
        text-decoration: none;
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
      transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.active a {
      opacity: 1;
      transform: translateY(0);
  }

  /* Hamburger animation when active */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
}
}

.landing-container {
  position: relative;
  height: 100vh;
}

.hero-view{
  position: relative;
  height: 100%;
  width: 100%;
  background-color: var(--bg-dark);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: auto;
  min-height: 70vh;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.hero-left {
  flex: 1; /* Each takes up equal width */
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.hero-right {
  flex: 1; /* Each takes up equal width */
  display: flex;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  margin: 0 auto;
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero-left h1,
.hero-left h2,
.hero-left p {
    text-align: center;
    width: 100%; /* Ensure full width for proper centering */
}

.cta-button {
  display: block;  /* Makes the button a block element */
  margin: 2rem auto;  /* Centers the button horizontally with space above/below */
  width: fit-content;
  text-align: center;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  color: var(--accent-white);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  background: var(--accent-green-dark);
  border: 1px solid var(--accent-white);
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .landing-container {
      min-height: 100vh;
  }
  .hero-content {
      flex-direction: column;
      padding: 1rem;
      padding-top: var(--nav-height-mobile);
  }

  .hero-left {
      order: 2;
      width: 100%;
  }

  .hero-right {
      order: 1;
      width: 100%;
  }

  .hero-image {
      width: 100%;
      max-width: 300px;
      margin: 2rem auto 0;
  }

  h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
  }

  h2 {
      font-size: 1.5rem;
      margin: 1rem 0;
  }

  .cta-button {
    text-align: center;
    position: relative; /* Change to relative for mobile */
    bottom: auto; /* Remove bottom positioning */
    left: auto; /* Remove left positioning */
    transform: none; /* Remove transform */
    display: block;
    margin: 2rem auto;
  }
}

 
@keyframes pulse {
  0% {
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
      box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.cta-button:hover {
  background: var(--accent-green);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
}

html {
  scroll-behavior: smooth; /* Enable smooth scrolling */
}

.assessment-section {
  background-color: var(--bg-dark); /* Match your dark theme */
}

.landing-container, 
.landing-container.showing-results {
  position: relative;
  height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
  background: linear-gradient(135deg, #343E48 0%, #2C353D 100%);
}

.hero-view {
  transform: translateY(0);
}

/* When transitioning */
.transitioning .hero-view {
  transform: translateY(-100%); /* Move up and out of view */
}

.transitioning {
  transform: translateY(0); /* Move up into view */
}

/* Assessment View Styles */
.assessment-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  min-height: calc(100vh - var(--nav-height));
  padding: 1rem;
  gap: 1.5rem;
  align-items: center;
}

.assessment-left {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2 rem;
}

.assessment-right {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
}

/* Main image styling */
#questionImage {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#questionImage img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease; /* Smooth transition when images change */
}

@media (max-width: 768px) {
  .assessment-content {
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .assessment-left {
    display: none;  /* Hide image on mobile */
  }

  .assessment-right {
    width: 100%;
    flex: 1;
  }

  .glass-panel{
    transform: none !important;
    background-color: transparent !important;
    border: 1px solid var(--accent-grey) !important;
  }
}

/* Glass Panel */
.glass-panel {
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--accent-grey);
  box-shadow: 0 8px 32px var(--accent-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.glass-panel h2 {
  color: var(--accent-white);
  font-size: 1.1rem;
  margin-bottom: 0;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.glass-panel h3{
  color: var(--accent-white)
}

.glass-panel h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-green);
  transition: width 0.3s ease;
}

.glass-panel h2:hover::after {
  width: 100%;
}

.question-content {
  position: relative;
  z-index: 5;
  margin-bottom: 1.0rem;
}

.question-content h2{
  font-weight: 300;
  position: relative;
  z-index: 10;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 0.75rem;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  background: var(--current-chapter-gradient);
  height: 100%;
  /*transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);*/
  transition: all 0.3s ease-out;;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  animation: progressShine 2s ease-in-out infinite;
}

.progress-text {
  color: var(--accent-white);
  font-size: 0.8rem;
  margin-top: 0.2rem;
  text-align: left;
  opacity: 0.8;
}

/* Category Styling */
.chapter-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  font-weight: 500;
  opacity: 0.9;
  transition: color 0.3s ease;
}

/* Dynamic Chapter Colors */
.chapter-1 .chapter-label { color: var(--accent-green); }
.chapter-1 .continue-button { background: var(--accent-green-dark); }
.chapter-1 .continue-button:hover { background: var(--accent-green); }

.chapter-2 .chapter-label { color: var(--accent-blue); }
.chapter-2 .continue-button { background: var(--accent-blue); }
.chapter-2 .continue-button:hover { background: rgba(98, 130, 167, 0.8); }

.chapter-3 .chapter-label { color: var(--accent-red); }
.chapter-3 .continue-button { background: var(--accent-red); }
.chapter-3 .continue-button:hover { background: rgba(171, 113, 113, 0.8); }

/* Fixed Answer Options Position */
.options-container {
  width: 100%;
  height: calc(100vh - 400px);
  min-height: 300px;
  max-height: 600px;
  overflow-y: auto;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 20;
  margin: 2rem 0;
}

.option-item {
  min-height: 60px;
  height: auto;
  padding: 1rem 1rem 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.option-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-green);
  background: rgba(160, 208, 203, 0.05);
}

.option-item input[type="radio"] {
  display: none;
}

.option-item input[type="radio"]:checked + .option-text::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  color: var(--accent-green);
  font-size: 1.2rem;
}

.option-item input[type="radio"]:checked + .option-text {
  color: var(--accent-green);
}

.option-item:has(input[type="radio"]:checked) {
  background: linear-gradient(90deg, rgba(160, 208, 203, 0.1) 0%, rgba(160, 208, 203, 0.05) 100%);
  border-color: var(--accent-green);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Option Text */
.option-text {
  color: var(--accent-white);
  font-size: 0.9rem;
  transition: color 0.3s ease;
  width: 100%;
}

.option-text-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-description {
  font-size: 0.6rem;
  color: var(--accent-white);
  max-height: 0;
  opacity: 0.5;
  transition: all 0.3s ease;
  margin-top: 0;
}

.option-item:hover .option-description,
.option-item:focus-within .option-description {
  max-height: 100px;
  opacity: 1;
  margin-top: 0.5rem;
}

/* Update the button container styles */
.button-container {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.75rem;
  position: sticky;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, 
    #343E48,
    #343E48
  );
  z-index: 30;
  backdrop-filter: blur(8px);
  border-radius: 16px; /* Match the glass-panel border radius */
}

/* Update button styles for better contrast */
.continue-button {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent-green-dark);
  color: var(--accent-white);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 2;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.continue-button:hover {
  background: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.back-button {
  width: 100%;
  padding: 0.75rem;
  background: rgba(74, 82, 89, 0.8);
  color: var(--accent-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  backdrop-filter: blur(4px);
}

.back-button:hover {
  background: rgba(90, 99, 107, 0.9);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Add this to ensure proper spacing at the bottom of the glass panel */
.glass-panel {
  padding-bottom: calc(1rem + 60px); /* Adjust based on your button container height */
}

/* Animations */
@keyframes buttonPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes progressShine {
  0% { transform: translateX(0%); }
  100% { transform: translateX(200%); }
}

@keyframes slideDown {
  to { transform: translateY(0); }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .assessment-content {
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .assessment-left,
  .assessment-right {
    width: 100%;
  }

  .image-container {
    display: none;
  }

  .glass-panel {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .glass-panel h2 {
    font-size: 0.9rem;
  }

  .progress-container {
    margin-bottom: 0.1rem;
  }

  .option-item {
    padding: 0.5rem 1rem 0.5rem 2rem;
    min-height: 60px;
    margin-bottom: 0.25rem;
    align-items: center;
  }

  .option-text {
    font-size: 0.85rem;
  }

  .button-container {
    padding: 0.5rem;
  }

  .continue-button, 
  .back-button {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
}

.hero-view,
.assessment-view,
.results-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
    padding: 2rem;
}

.hero-view {
    transform: translateY(0);
}

.assessment-view {
  display: flex;
  align-items: center;
  transform: none;
  min-height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
}


.results-view {
    transform: translateY(200%);
}

/* Transition states */
.transitioning .hero-view {
    transform: translateY(-100%);
}

/* New classes for results transition */
.showing-results .hero-view {
    transform: translateY(-200%);
}

.showing-results {
    transform: translateY(-100%);
}

.showing-results .results-view {
  transform: translateY(0);
  z-index: 2;
}

.demographics-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.demographics-container .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demographics-container label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.demographics-container .form-control {
  background-color: rgba(20, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.demographics-container .form-control:focus {
  outline: none;
  border-color: #A0D0CB;
  box-shadow: 0 0 0 2px rgba(160, 208, 203, 0.25);
}

.demographics-container select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Styles for the error state */
.demographics-container .form-control.error {
  border-color: #ff5c5c;
}

.demographics-container .error-message {
  color: #ff5c5c;
  font-size: 14px;
  margin-top: 4px;
}

/* Make sure the options area has dark mode styling */
.demographics-container option {
  background-color: #1a1a2e;
  color: white;
}

/* Adjust spacing for the "Other" field */
#otherSectorGroup {
  margin-top: -10px;
  transition: all 0.3s ease;
}

/* Results View Container */
.results-view {
  background: linear-gradient(150deg, #343E48 0%, #2C353D 100%);
  min-height: 100vh;
  padding-bottom: 4rem;
}

/* Results Header Styling */
.results-header-wrapper {
  background: linear-gradient(to bottom, rgba(52, 62, 72, 0.95) 0%, rgba(44, 53, 61, 0.9) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;  /* Reduced from 4rem to 2rem */
  margin: var(--nav-height) 0 2rem;  /* Reduced bottom margin from 3rem to 2rem */
}

.results-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.results-header h1 {
  font-size: 2.0rem;  /* Reduced from 4rem/clamp */
  font-weight: 200;
  color: var(--accent-white);
  margin-bottom: 0.5rem;  /* Reduced from 1.5rem */
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.results-header h1::after {
  content: '';
  position: absolute;
  bottom: -8px;  /* Adjusted to be closer to text */
  left: 0;
  width: 60px;  /* Reduced from 120px */
  height: 3px;  /* Reduced from 4px */
  background: var(--accent-green);
  border-radius: 2px;
}

/* Main Results Content */
.results-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.results-content.detailed-results {
  display: block;  /* Override the grid display from results-content */
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

/*
.results-tabs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
*/

/* Chart Panel */
.glass-panel.chart-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  height: 600px;
  transition: all 0.3s ease;

  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 85px !important; /* Critical: make room for legend */
  height: auto !important; 
  min-height: 450px;
}

.glass-panel.chart-panel:hover {
  box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.2),
      0 0 30px rgba(160, 208, 203, 0.1);
  border-color: rgba(160, 208, 203, 0.3);
}

/* Score Cards */
.category-scores {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.score-item {
  background: rgba(52, 62, 72, 0.5);  /* Darker, semi-transparent background */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border-left-width: 5px !important; /* Match accordion item border */
  border-left-style: solid;
  border-left-color: transparent; /* Default/fallback color */
  position: relative; /* Good practice for borders/positioning children */
  overflow: hidden; /* Helps ensure border radius interacts well */
}

/* Apply specific border colors based on the data-category attribute */
.score-item[data-category="AI APPLICATION"] {
  border-left-color: var(--accent-green);
}

.score-item[data-category="PEOPLE & ORGANIZATION"] {
  border-left-color: var(--accent-blue);
}

.score-item[data-category="TECH & DATA"] {
  border-left-color: var(--accent-red);
}

.score-item:hover {
  border-color: rgba(160, 208, 203, 0.3);
  box-shadow: 
      0 10px 20px rgba(0, 0, 0, 0.2),
      0 0 15px rgba(160, 208, 203, 0.1);
  background: rgba(160, 208, 203, 0.05);
}

.score-label {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--accent-white);
}

.score-value {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(160, 208, 203, 0.3);
}

/* Detailed Results Section */
.detailed-results { 
margin-top: 3rem; /* Keep or adjust spacing */
 padding: 0 2rem 3rem; /* Keep or adjust padding */
 max-width: 1400px; /* Keep */
 margin: 3rem auto 0; /* Keep or adjust spacing */
 display: block; /* Ensure block display */
 }

/* 
.result-tab {
  background: rgba(52, 62, 72, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}


.result-tab[data-category="AI APPLICATION"] {
  border-left: 4px solid var(--accent-green);
}

.result-tab[data-category="PEOPLE & ORGANIZATION"] {
  border-left: 4px solid var(--accent-blue);
}

.result-tab[data-category="TECH & DATA"] {
  border-left: 4px solid var(--accent-red);
}

.result-tab[data-category="AI APPLICATION"] .tab-header h3 {
  color: var(--accent-green);
}

.result-tab[data-category="PEOPLE & ORGANIZATION"] .tab-header h3 {
  color: var(--accent-blue);
}

.result-tab[data-category="TECH & DATA"] .tab-header h3 {
  color: var(--accent-red);
}

.result-tab:hover {
  border: var(--accent-white);
  background: rgba(52, 62, 72, 0.8);
  box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.2),
      0 0 30px rgba(160, 208, 203, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-header h3 {
  font-size: 1.7rem;
  font-weight: 300;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

*/

tab-content {
  color: var(--accent-white);
  line-height: 1.6;
  font-size: 1.5rem;
  opacity: 1;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .results-content {
      grid-template-columns: 1fr;
      gap: 2rem;
  }
}

/* Fix for uneven box lengths */
@media (min-width: 768px) {
  .results-content {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 3rem;
      align-items: stretch; /* Wichtig: Dehnt die Items aus */
  }

  /* Add this new rule */
.primary-action {
  background: var(--accent-green-dark);
  color: var(--accent-white);
  border: none;
  padding: 0.75rem 1.5rem; /* Consistent padding */
  border-radius: 8px;
  font-size: 1rem; /* Consistent font size */
  cursor: pointer;
  transition: all 0.3s ease;
  /* Add margin if needed for spacing within .button-group */
  /* margin-top: 0; Remove if not needed */
}

/* Add a hover state for the primary action */
.primary-action:hover {
background: var(--accent-green);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Optional hover shadow */
}

/* Add a disabled state style */
.primary-action:disabled {
  background-color: rgba(98, 178, 169, 0.5); /* Dimmed green */
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}
  
  .glass-panel.chart-panel,
  .glass-panel.scores-panel {
      height: 100% !important;
      min-height: 450px;
      display: flex;
      flex-direction: column;
      background: rgba(52, 62, 72, 0.3);
    backdrop-filter: blur(10px);
  }
  
  /* Radar-Chart container soll den verfügbaren Platz ausfüllen */
  .glass-panel.chart-panel {
      padding-bottom: 85px !important; /* Platz für Legende */
  }
  
  #radarChart {
      flex: 1;
      width: 100% !important;
  }

  .results-content.detailed-results {
    grid-template-columns: 1fr; /* Force single column if grid is applied */
  }
}

@media (max-width: 768px) {
  .results-header-wrapper {
      padding: 3rem 0 2rem;
  }
  
  .results-header h1 {
      font-size: 2.5rem;
  }
  
  .results-content {
      padding: 0 1rem;
  }
  
  .score-item {
      padding: 1.25rem;
  }
  
  .score-label {
      font-size: 1rem;
  }
  
  .score-value {
      font-size: 1.5rem;
  }
  
  .glass-panel.chart-panel {
    /*height: 350px;*/
    position: relative;
    padding-bottom: 90px; /* Extra space specifically for the legend */
    display: flex;
    flex-direction: column;
  }

  .chart-panel {
    padding-bottom: 70px !important; /* Extra space for the legend */
  }
  
  /* Ensure legend stays visible */
  #radarChart {
    flex: 1;
    position: relative;
    height: 100% !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    /*margin-bottom: 60px; /* Space for legend */
  }

  canvas#radarChart {
    max-height: calc(100% - 50px) !important;
  }

  .chart-legend-container {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
  }
  
  /* Make legend text more visible */
  .chart-js-legend {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 10px;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.550);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;  /* Hidden by default */
}

.modal-overlay.active {
  display: block;
}

/* Ensure detailed results are hidden initially */
.detailed-results.hidden {
  display: none;
}

.contact-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-dark);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--accent-white);
  width: 90%;
  max-width: 500px;
  z-index: 1001;
  color: var(--accent-white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  background-color: rgba(30, 40, 50, 0.6);
  border: 1px solid rgba(120, 160, 170, 0.3);
  color: #fff;
  font-family: 'HKGrotesk', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 30px;
}

.contact-form select:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 2px rgba(98, 178, 169, 0.25);
}


/* Styling for the "Other" input field group */
#otherSectorGroup {
  margin-top: -10px;
  transition: all 0.3s ease;
}

#otherSectorGroup.visible {
  margin-top: 0;
  opacity: 1;
}

/* Prevent disabled options from being selected */
.contact-form select option[disabled] {
  color: rgba(255, 255, 255, 0.4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--accent-white);
  font-size: 0.9rem;
}

.form-group input {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--accent-green);
  background: var(--bg-grey);
  color: var(--accent-white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-green);
}

.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.consent-group input[type="checkbox"] {
  margin-top: 0.3rem;
}

.privacy-link {
  color: var(--accent-white);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.privacy-link:hover {
  opacity: 0.8;
}

.submit-button {
  padding: 1rem;
  background: var(--accent-green-dark);
  color: var(--accent-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-button:hover {
  background: var(--accent-green);
}

.submit-button .button-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.submit-button .button-loading.hidden,
.submit-button .button-text.hidden {
  display: none;
}

.spinner-small {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {transform: rotate(360deg);}
}

/* Add disabled state */
.submit-button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

.modal-overlay.active {
  display: block;
}

.chart-panel {
  padding: 2rem;
  min-height: 400px;
  height: 60vh;
  max-height: 600px;
  width: 100%;
}

@media (max-width: 768px) {
  .chart-panel {
      min-height: 300px;
      height: 50vh;
      padding: 1rem;
  }
  .results-content {
      flex-direction: column;
  }
}

/* Add these styles to your site.css */

.initial-results {
  margin-bottom: 2rem;
}

.glass-effect {
  background: rgba(52, 62, 72, 0.5) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-scores {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.score-item {
  background: rgba(52, 62, 72, 0.5) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  width: 100%;
}

.score-item:hover {
  border-color: rgba(160, 208, 203, 0.3);
  box-shadow: 
      0 10px 20px rgba(0, 0, 0, 0.2),
      0 0 15px rgba(160, 208, 203, 0.1);
  background: rgba(52, 62, 72, 0.7) !important;
}

.score-label {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--accent-white);
}

.score-value {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(160, 208, 203, 0.3);
}

/* Panel Container */
.scores-panel {
  background: rgba(52, 62, 72, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
}

.locked-content {
  position: relative;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--accent-grey);
}

.lock-overlay {
  position: relative;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.lock-message {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.lock-message h2 {
  color: var(--accent-green);
  margin-bottom: 1rem;
}

.lock-message ul {
  text-align: left;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.lock-message li {
  margin: 0.5rem 0;
  color: var(--accent-white);
}

.detailed-results.hidden {
  display: none;
}

.detailed-results {
  margin-top: 2rem;
}

.unlock-prompt {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--accent-grey);
  text-align: center;
}

.unlock-prompt p {
  color: var(--accent-white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.scores-panel .unlock-button {
  background: var(--accent-green-dark);
  color: var(--accent-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scores-panel .unlock-button:hover {
  background: var(--accent-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .initial-results {
      flex-direction: column;
      gap: 1rem;
  }

  .results-left,
  .results-right {
      width: 100%;
  }

  .lock-message {
      padding: 1rem;
  }
}

/* Dynamic Chapter Option Highlighting */
.chapter-1 .option-item input[type="radio"]:checked + .option-text::before {
  color: var(--accent-green);
}

.chapter-1 .option-item input[type="radio"]:checked + .option-text {
  color: var(--accent-green);
}

.chapter-1 .option-item:has(input[type="radio"]:checked) {
  background: linear-gradient(90deg, rgba(160, 208, 203, 0.1) 0%, rgba(160, 208, 203, 0.05) 100%);
  border-color: var(--accent-green);
}

.chapter-2 .option-item input[type="radio"]:checked + .option-text::before {
  color: var(--accent-blue);
}

.chapter-2 .option-item input[type="radio"]:checked + .option-text {
  color: var(--accent-blue);
}

.chapter-2 .option-item:has(input[type="radio"]:checked) {
  background: linear-gradient(90deg, rgba(98, 130, 167, 0.1) 0%, rgba(98, 130, 167, 0.05) 100%);
  border-color: var(--accent-blue);
}

.chapter-3 .option-item input[type="radio"]:checked + .option-text::before {
  color: var(--accent-red);
}

.chapter-3 .option-item input[type="radio"]:checked + .option-text {
  color: var(--accent-red);
}

.chapter-3 .option-item:has(input[type="radio"]:checked) {
  background: linear-gradient(90deg, rgba(171, 113, 113, 0.1) 0%, rgba(171, 113, 113, 0.05) 100%);
  border-color: var(--accent-red);
}

/* Hover states for each chapter */
.chapter-1 .option-item:hover {
  border-color: var(--accent-green);
  background: rgba(160, 208, 203, 0.05);
}

.chapter-2 .option-item:hover {
  border-color: var(--accent-blue);
  background: rgba(98, 130, 167, 0.05);
}

.chapter-3 .option-item:hover {
  border-color: var(--accent-red);
  background: rgba(171, 113, 113, 0.05);
}

/* Scroll Indicator Styles */
.scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
}

.scroll-indicator.visible {
  opacity: 1;
  visibility: visible;
  display: block;
  animation: floatAnimation 2s infinite ease-in-out;
}

.scroll-indicator svg {
  width: 40px;
  height: 25px;
  filter: drop-shadow(0 0 8px rgba(160, 208, 203, 0.3));
}

.scroll-indicator .triangle {
  fill: var(--accent-green);
  opacity: 0.9;
}

@keyframes floatAnimation {
  0% {
      transform: translate(-50%, 0);
  }
  50% {
      transform: translate(-50%, 15px);
  }
  100% {
      transform: translate(-50%, 0);
  }
}


.perception-gauge {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 0rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.gauge-container {
  position: relative;
  width: 200px;
  height: 100px;
  margin: 0 auto;
  overflow: hidden;
}

.gauge-background {
  position: absolute;
  width: 200px;
  height: 100px;
  background: linear-gradient(90deg, 
      var(--accent-red) 0%,
      var(--accent-blue) 50%,
      var(--accent-green) 100%
  );
  border-radius: 100px 100px 0 0;
  opacity: 0.2;
}

.gauge-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 100px;
  background: conic-gradient(
      from 180deg at 50% 100%,
      var(--accent-green) 0deg,
      var(--accent-green) calc(var(--percentage) * 180deg),
      transparent calc(var(--percentage) * 180deg),
      transparent 180deg
  );
  border-radius: 100px 100px 0 0;
  transform-origin: 50% 100%;
  transition: all 1s ease-out;
}

.gauge-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 90px;
  background: var(--accent-white);
  transform-origin: bottom center;
  transform: rotate(calc(var(--percentage) * 180deg));
  transition: transform 1s ease-out;
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0 1rem;
  color: var(--accent-white);
  font-size: 0.9rem;
  opacity: 0.8;
}


/* Chart Panel Loading Animation */
@keyframes chartPanelLoad {
  0% {
      opacity: 0;
      transform: translateY(20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

.glass-panel.chart-panel {
  animation: chartPanelLoad 0.8s ease-out forwards;
}

/* Glowing Effect for Score Items */
@keyframes scoreGlow {
  0% {
      box-shadow: 0 0 5px rgba(160, 208, 203, 0.2);
  }
  50% {
      box-shadow: 0 0 20px rgba(160, 208, 203, 0.4);
  }
  100% {
      box-shadow: 0 0 5px rgba(160, 208, 203, 0.2);
  }
}

.score-item:hover {
  animation: scoreGlow 2s infinite;
  border-color: rgba(160, 208, 203, 0.3);
  background: rgba(52, 62, 72, 0.7) !important;
}


/* Replace the tech-grid with this more dynamic version */
.dynamic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gradient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  background: var(--accent-green);
  animation: sphereFloat 20s infinite ease-in-out;
}

.gradient-sphere:nth-child(1) {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
  animation-delay: -2s;
  background: radial-gradient(circle at center, var(--accent-green), transparent 70%);
}

.gradient-sphere:nth-child(2) {
  width: 500px;
  height: 500px;
  top: 40%;
  right: -100px;
  animation-delay: -4s;
  background: radial-gradient(circle at center, var(--accent-blue), transparent 70%);
}

.gradient-sphere:nth-child(3) {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 30%;
  animation-delay: -6s;
  background: radial-gradient(circle at center, var(--accent-green-dark), transparent 70%);
}

@keyframes sphereFloat {
  0%, 100% {
      transform: translate(0, 0);
  }
  25% {
      transform: translate(5%, 5%);
  }
  50% {
      transform: translate(-5%, 2%);
  }
  75% {
      transform: translate(2%, -5%);
  }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-color: transparent;
  overflow: hidden;
  transform: rotate(30deg) scale(2);
  transform-origin: center;
}

.grid-overlay::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
      linear-gradient(30deg, transparent 49.5%, #62B2A9 49.7%, #62B2A9 50.3%, transparent 50.5%),
      linear-gradient(-30deg, transparent 49.5%, #62B2A9 49.7%, #62B2A9 50.3%, transparent 50.5%),
      linear-gradient(90deg, transparent 49.5%, #62B2A9 49.7%, #62B2A9 50.3%, transparent 50.5%);
  background-size: 60px 104px;
  opacity: 0.1;
  filter: drop-shadow(0 0 5px var(--accent-green));
  animation: gridPulse 4s infinite ease-in-out;
}

@keyframes gridPulse {
  0%, 20% {
      opacity: 0.1;
      filter: drop-shadow(0 0 5px var(--accent-green));
  }
  10% {
      opacity: 0.2;
      filter: drop-shadow(0 0 15px var(--accent-green));
  }
}

.grid-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at center,
      transparent 0%,
      rgba(52, 62, 72, 0.3) 20%,
      rgba(52, 62, 72, 0.95) 50%
  );
  transform: rotate(-30deg) scale(2);
}

/* Scanning line can be removed if not needed */
.scan-line {
  display: none; /* Remove the scanning line effect */
}

/* Floating Elements Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/*Pulse Animation for Important Elements*/
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/*Interactive Hover Effects */
.result-tab {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.result-tab:hover {
  transform: scale(1.01);
}

/* Tech Dots Background */
.tech-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 50%, rgba(160, 208, 203, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Glitch Effect for Headers*/
@keyframes glitch {
  0% {
      clip-path: inset(50% 0 30% 0);
      transform: translate(-2px, 2px);
  }
  20% {
      clip-path: inset(20% 0 60% 0);
      transform: translate(2px, -2px);
  }
  40% {
      clip-path: inset(40% 0 40% 0);
      transform: translate(1px, 1px);
  }
  60% {
      clip-path: inset(60% 0 20% 0);
      transform: translate(-1px, -1px);
  }
  80% {
      clip-path: inset(30% 0 50% 0);
      transform: translate(2px, -2px);
  }
  100% {
      clip-path: inset(50% 0 30% 0);
      transform: translate(-2px, 2px);
  }
}

/* AI Lab Contact Section Styles */
/* AI Lab Contact Section Styles */
.ai-lab-section {
  margin-top: 3rem;
  padding-bottom: 3rem;
}

.results-content.ai-lab-content.full-width {
  display: block;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.glass-panel.contact-panel.full-width {
  width: 100%;
  max-width: 100%;
  background: rgba(52, 62, 72, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.glass-panel.contact-panel.full-width:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(160, 208, 203, 0.1);
  border-color: rgba(160, 208, 203, 0.3);
}

.glass-panel.contact-panel.single-contact {
  display: flex;
  flex-direction: column;
}

.glass-panel.contact-panel.single-contact h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-person {
  flex: 0 0 calc(33.333% - 2rem);
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-person.large {
  flex: 0 0 100%;
  max-width: 600px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

/* CRITICAL: Avatar and image handling */
.contact-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #2a323d;
}

.contact-person.large .contact-avatar {
  width: 160px;
  height: 160px;
}

/* Image prioritized with higher z-index */
.avatar-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2; /* Higher than placeholder */
}

/* Empty src images are hidden */
.avatar-image[src=""] {
  display: none;
}

/* Placeholder positioned under image by default */
.avatar-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-green-dark) 0%, var(--accent-green) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Lower than image */
}

.avatar-initials {
  font-size: 4rem;
  font-weight: 300;
  color: var(--accent-white);
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-info h4 {
  color: var(--accent-white);
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0;
}

.contact-role {
  color: var(--accent-white);
  font-size: 1rem;
  margin: 0;
  opacity: 0.8;
}

.contact-email {
  color: var(--accent-green);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-email:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.accent-text {
  color: var(--accent-green);
  font-weight: 400;
}

/* Responsive design */
@media (max-width: 768px) {
  .results-content.ai-lab-content.full-width {
    padding: 0 1rem;
  }
  
  .contact-person {
    flex: 0 0 100%;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .contact-avatar {
    margin: 0 auto;
  }
  
  .contact-person.large .contact-avatar {
    width: 150px;
    height: 150px;
  }
  
  .contact-person.large .contact-info h4 {
    font-size: 1.7rem;
  }
  
  .contact-person.large .contact-role {
    font-size: 1.1rem;
  }
  
  .contact-person.large .contact-email {
    font-size: 1rem;
  }
  
  .avatar-initials {
    font-size: 3rem;
  }
}

/* --- START: NEW ACCORDION STYLES --- */
.detailed-results {
  /* Ensure it's a block container, remove grid if previously applied */
  display: block;
  margin-top: 3rem; /* Keep or adjust spacing */
  padding-bottom: 3rem; /* Keep or adjust spacing */
  /* Remove grid-template-columns and gap if they were here */
}

.accordion-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Space between accordion items */
}

.accordion-item {
  background: rgba(52, 62, 72, 0.5); /* Match score item hover */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; /* Use --border-radius-base if defined, or keep 12px */
  overflow: hidden;
  transition: border-color 0.3s ease;
  position: relative;
  border-left-width: 5px;
  border-left-style: solid;
}

/* Category-specific border colors */
.accordion-item[data-category="AI APPLICATION"] { border-left-color: var(--accent-green); }
.accordion-item[data-category="PEOPLE & ORGANIZATION"] { border-left-color: var(--accent-blue); } /* Use adjusted blue if defined */
.accordion-item[data-category="TECH & DATA"] { border-left-color: var(--accent-red); } /* Use adjusted red if defined */

.accordion-header {
  /* Existing styles */
  display: flex; /* ADD: Use Flexbox */
  justify-content: space-between; /* ADD: Space out title, score, icon */
  align-items: center; /* ADD: Vertically align items */
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--accent-white);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
  gap: 1rem; /* ADD: Optional gap between items */
}

.accordion-header:hover { background-color: rgba(255, 255, 255, 0.05); }

.accordion-header h3 {
  margin: 0;
  font-size: 1.2rem; /* Adjust if needed */
  font-weight: 500;
  flex-grow: 1; /* Allow title to take available space */
  /* Make sure title doesn't push score off screen if too long */
  min-width: 0; /* Allows flex item to shrink */
  overflow: hidden; /* Optional: hide overflow */
  text-overflow: ellipsis; /* Optional: add ellipsis */
  white-space: nowrap; /* Optional: prevent wrapping */
}

/* Category-specific header text colors */
.accordion-item[data-category="AI APPLICATION"] .accordion-header h3 { color: var(--accent-green); }
.accordion-item[data-category="PEOPLE & ORGANIZATION"] .accordion-header h3 { color: var(--accent-blue); } /* Use adjusted blue if defined */
.accordion-item[data-category="TECH & DATA"] .accordion-header h3 { color: var(--accent-red); } /* Use adjusted red if defined */

.accordion-icon {
  /* Existing styles */
  width: 22px; height: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  margin-left: 1rem; /* Adjust or remove if using gap */
  flex-shrink: 0; /* Prevent icon from shrinking */
}
.accordion-icon::before {
  content: '+'; font-size: 1.4rem; line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease;
  font-weight: 300;
}
.accordion-header:hover .accordion-icon { border-color: var(--accent-white); }
.accordion-header:hover .accordion-icon::before { color: var(--accent-white); }

/* Icon state when accordion is open */
.accordion-header[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-header[aria-expanded="true"] .accordion-icon::before { transform: translateY(-1px); }


.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease-in-out,
              padding 0.4s ease;
  padding: 0 1.5rem; /* Match header horizontal padding */
}

/* State when accordion is open */
.accordion-content.active {
  /* max-height set by JS */
  opacity: 1;
  padding: 0.5rem 1.5rem 1.5rem; /* Top, H, Bottom padding when open */
}

/* Styles for the text content within the accordion panel */
/* Reuse .tab-content class if JS targets it, or style directly */
.accordion-content .tab-content {
  color: rgba(240, 240, 240, 0.85); /* Use --accent-white with opacity */
  line-height: 1.7;
  font-size: 0.95rem;
}
.accordion-content .tab-content p { margin: 0 0 1em 0; }
.accordion-content .tab-content p:last-child { margin-bottom: 0; }

/* Style the container we added in JS */
.accordion-header-score {
  /* Inherits from .score-value-container, add specifics */
  flex-shrink: 0; /* Prevent score from shrinking */
  text-align: right; /* Align text inside to the right */
}

/* Adjust font sizes within the header */
.accordion-header .score-value {
  font-size: 1.1rem; /* Smaller than initial display */
  font-weight: 400; /* Maybe slightly bolder */
  /* Adjust text shadow if desired */
  /* text-shadow: 0 0 10px rgba(160, 208, 203, 0.2); */
}

.accordion-header .score-maturity {
  font-size: 0.75rem; /* Smaller than initial display */
  margin-top: 2px; /* Adjust spacing */
  padding: 1px 6px; /* Adjust padding */
  /* background-color: transparent; */ /* Optional: remove background */
  /* border: 1px solid rgba(255, 255, 255, 0.2); */ /* Optional: add border */
}


/* --- START: MODAL CLOSE BUTTON STYLE --- */
/* Add this rule */
.close-modal-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent-white);
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 1002;
}
.close-modal-button:hover {
  opacity: 1;
}
/* --- END: MODAL CLOSE BUTTON STYLE --- */

.loading-overlay {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 53, 61, 0.85); 
  backdrop-filter: blur(5px); 
  display: flex;
  justify-content: center; 
  align-items: center; 
  /* Increase z-index just in case mobile nav interferes */
  z-index: 1001; 
  opacity: 0; 
  visibility: hidden; 
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s; 
  text-align: center; 
}

.loading-overlay.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0s;
}

.loading-content {
  color: var(--accent-white);
  padding: 20px; 
  max-width: 90%; 
  box-sizing: border-box;
}

/* Simple CSS Spinner (Example) */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: var(--accent-green); /* Use your accent color */
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem; /* Center and space below */
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#contactOptInButton .button-loading {
  display: flex; /* Use flex for alignment */
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* Space between spinner and text */
}

/* If using a custom image/SVG loader */
.custom-loader { 
  width: 80px; 
  height: 80px; 
  margin-bottom: 1.5rem; 
  /* Add animations if needed */
}

.loading-message {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--accent-white);
}

.loading-submessage {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 300px;
  margin: 0 auto;
  color: var(--accent-white);
}

.score-value-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5px;
}
.score-maturity {
  font-size: 0.9em;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}
.maturity-exploring { background-color: #34070b; color: white;}
.maturity-building { background-color: #4b6a02; color: rgb(255, 255, 255);}
.maturity-pioneering { background-color: #037b63; color: white;}