:root {
  /* SilverByte Brand Colors */
  --digital-teal:  #2196A6;
  --slate-navy:    #1E3A5F;
  --silver-mist:   #B0BEC5;
  --charcoal:      #2D2D2D;
  --soft-white:    #F4F6F8;
  --white:         #FFFFFF;
  --light-teal:    #E6F5F8;
  --light-navy:    #2C4A73;
  --sunset-orange: #E87A00;

  /* Additional Gradients & Shadows for premium feel */
  --bg-gradient: linear-gradient(135deg, var(--soft-white) 0%, #E8ECEF 100%);
  --card-shadow: 0 10px 30px rgba(30, 58, 95, 0.08);
  --hover-shadow: 0 15px 35px rgba(33, 150, 166, 0.15);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Coming Soon Overlay defaults */
  --overlay-bg: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(33, 150, 166, 0.85) 100%);
  --overlay-bg-hover: linear-gradient(135deg, rgba(30, 58, 95, 0.7) 0%, rgba(33, 150, 166, 0.7) 100%);
  --overlay-text: #FFFFFF;
}

[data-theme="dark"] {
  --digital-teal:  #3AC0D3;
  --slate-navy:    #E4E9F2;
  --silver-mist:   #78909C;
  --charcoal:      #B0BEC5;
  --soft-white:    #1A1D24;
  --white:         #0F1115;
  --light-teal:    #162B32;
  --light-navy:    #4A6B99;
  --sunset-orange: #FF9800;

  --bg-gradient: linear-gradient(135deg, #0A0C10 0%, #11141A 100%);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --hover-shadow: 0 15px 35px rgba(58, 192, 211, 0.15);

  /* Coming Soon Overlay dark mode overrides */
  --overlay-bg: linear-gradient(135deg, rgba(15, 17, 21, 0.85) 0%, rgba(22, 43, 50, 0.85) 100%);
  --overlay-bg-hover: linear-gradient(135deg, rgba(15, 17, 21, 0.75) 0%, rgba(22, 43, 50, 0.75) 100%);
  --overlay-text: var(--digital-teal);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gradient);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--slate-navy);
  line-height: 1.2;
}

a {
  color: var(--digital-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--light-navy);
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* Top Bar */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid rgba(176, 190, 197, 0.2);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--charcoal);
  position: relative;
  transition: var(--transition);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--digital-teal);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--digital-teal);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger Toggle Button */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 101;
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background-color: var(--slate-navy);
  transition: var(--transition);
  position: absolute;
}

[data-theme="dark"] .hamburger-bar {
  background-color: var(--digital-teal);
}

.hamburger-bar:nth-child(1) {
  top: 0px;
}

.hamburger-bar:nth-child(2) {
  top: 7px;
}

.hamburger-bar:nth-child(3) {
  top: 14px;
}

.hamburger-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--light-teal);
  color: var(--digital-teal);
}

.hooray-btn {
  background: var(--sunset-orange);
  color: var(--white);
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(232, 122, 0, 0.3);
}

.hooray-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 122, 0, 0.4);
  background: #ff8e1a; /* slightly lighter orange */
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--digital-teal);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(33, 150, 166, 0.3);
}

.btn-primary:hover {
  background: var(--slate-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.2);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--digital-teal);
  color: var(--digital-teal);
}

.btn-outline:hover {
  background: var(--digital-teal);
  color: var(--white);
}

.btn.disabled,
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none !important;
  cursor: not-allowed;
  box-shadow: none;
}

/* Hero Section */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: 20px;
  margin-bottom: 25px;
}

.hero-content {
  max-width: 850px;
}

.hero-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.hero-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.1);
  border: 4px solid var(--white);
  flex-shrink: 0;
}

.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 0.2rem;
}

.hero-content h2 {
  font-size: 1.5rem;
  color: var(--digital-teal);
  font-weight: 500;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 2rem;
  max-width: 90%;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Hero Stats Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 auto 2.5rem auto;
  max-width: 800px;
  width: 100%;
}

.hero-stat-card {
  background: var(--white);
  padding: 1.25rem 1rem;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(176, 190, 197, 0.2);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
  border-color: var(--digital-teal);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--digital-teal);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

[data-theme="dark"] .hero-stat-card {
  background: var(--white);
  border-color: rgba(120, 144, 156, 0.15);
}

@media (max-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .hamburger-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid rgba(176, 190, 197, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    align-items: stretch;
    z-index: 99;
  }

  .nav-menu.active {
    display: flex;
    animation: navMenuFadeIn 0.25s ease-out forwards;
  }

  .nav-menu a {
    font-size: 1rem;
    padding: 0.5rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(176, 190, 197, 0.1);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .nav-menu a::after {
    display: none;
  }
}

@keyframes navMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skills Section */
.skills-header {
  margin-bottom: 2rem;
  text-align: center;
}

.skills-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.skills-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--silver-mist);
  background: var(--white);
  color: var(--slate-navy);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--sunset-orange);
  color: var(--sunset-orange);
}

.filter-btn.active {
  background: var(--sunset-orange);
  border-color: var(--sunset-orange);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(232, 122, 0, 0.2);
}

/* Timeline Section */
.timeline-section {
  background: var(--white);
  border-radius: 24px;
  padding: 4rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 5rem;
}

.timeline-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100px;
  width: 2px;
  background: var(--light-teal);
}

.timeline-item {
  position: relative;
  padding-left: 140px;
  margin-bottom: 3rem;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.timeline-item.hidden {
  display: none;
}

.timeline-item.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.timeline-dot {
  position: absolute;
  left: 91px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--digital-teal);
  box-shadow: 0 0 0 4px rgba(33, 150, 166, 0.1);
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  background: var(--digital-teal);
}

.timeline-content {
  background: var(--soft-white);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(176, 190, 197, 0.3);
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--hover-shadow);
  transform: translateY(-2px);
  border-color: var(--digital-teal);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.25rem;
  color: var(--slate-navy);
}

.timeline-year {
  position: absolute;
  left: 0;
  top: 4px;
  width: 75px;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--silver-mist);
}

.timeline-company {
  color: var(--digital-teal);
  font-weight: 500;
  font-size: 1rem;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--silver-mist);
  background: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--silver-mist);
}

.timeline-body {
  color: var(--charcoal);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.timeline-body ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.timeline-body li {
  margin-bottom: 0.4rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  background: var(--light-teal);
  color: var(--digital-teal);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Rich Media Placeholder (Downloads) */
.media-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--silver-mist);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--slate-navy);
  text-decoration: none;
  transition: var(--transition);
}

.media-attachment:hover {
  border-color: var(--sunset-orange);
  color: var(--white);
  background: var(--sunset-orange);
  box-shadow: 0 4px 10px rgba(232, 122, 0, 0.2);
}

.media-attachment .material-symbols-outlined {
  font-size: 1.1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--silver-mist);
  font-size: 0.9rem;
}

/* Certifications Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--silver-mist);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--digital-teal);
}

.cert-icon-wrapper {
  width: 80px;
  height: 80px;
  background: var(--light-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  border: 2px solid var(--digital-teal);
  overflow: hidden;
}

.cert-icon {
  font-size: 2.5rem !important;
  color: var(--slate-navy);
}

.cert-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--digital-teal);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

.cert-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  text-align: center;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--silver-mist);
  text-align: center;
  margin-bottom: 1rem;
}

.cert-desc {
  font-size: 0.9rem;
  color: var(--charcoal);
  text-align: center;
  flex-grow: 1;
}

/* Underway / In-Progress Certification Cards */
.cert-card.underway {
  border: 2px dashed var(--silver-mist);
  background: rgba(244, 246, 248, 0.45);
  cursor: default;
}

[data-theme="dark"] .cert-card.underway {
  background: rgba(26, 29, 36, 0.45);
}

.cert-card.underway:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--silver-mist);
}

.cert-badge.underway {
  background: rgba(232, 122, 0, 0.1);
  color: var(--sunset-orange);
  border: 1.5px solid var(--sunset-orange);
}

[data-theme="dark"] .cert-badge.underway {
  background: rgba(255, 152, 0, 0.15);
  color: var(--sunset-orange);
  border: 1.5px solid var(--sunset-orange);
}

.cert-card.underway .cert-icon-wrapper img {
  opacity: 0.75;
  filter: grayscale(10%);
}

.cert-card.underway .cert-icon {
  color: var(--silver-mist);
}

/* Contact Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 21, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--card-shadow);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--silver-mist);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--silver-mist);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.close-btn:hover {
  color: var(--sunset-orange);
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--slate-navy);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--silver-mist);
  border-radius: 8px;
  background: var(--soft-white);
  color: var(--charcoal);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--digital-teal);
  box-shadow: 0 0 0 3px rgba(33, 150, 166, 0.1);
  background: var(--white);
}

[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-header-row {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .hero-avatar {
    width: 100px;
    height: 100px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .timeline-section {
    padding: 2rem;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item {
    padding-left: 45px;
  }
  
  .timeline-dot {
    left: 6px;
  }
  
  .timeline-year {
    display: none;
  }
  
  .timeline-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Scroll Profile in Top Bar */
.scroll-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, visibility;
}

.scroll-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--digital-teal);
}

.scroll-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--slate-navy);
  font-size: 1rem;
}

@media (max-width: 600px) {
  .scroll-name {
    display: none;
  }
}

/* Coming Soon Overlay styling */
.coming-soon-card {
  position: relative;
  overflow: hidden;
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  transition: var(--transition);
}

.coming-soon-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--overlay-text);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.8rem 2.2rem;
  border: 3px solid var(--overlay-text);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transform: rotate(-3deg);
  transition: var(--transition);
  user-select: none;
  pointer-events: none; /* so hover goes to card or passes through if needed, but since it's on top it's fine */
}

.coming-soon-card:hover .coming-soon-overlay {
  background: var(--overlay-bg-hover);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.coming-soon-card:hover .coming-soon-text {
  transform: rotate(0deg) scale(1.05);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Interactive Compliance Assessment Tool
   ========================================================================== */
.audit-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.scenario-selector {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.scenario-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--silver-mist);
  background: var(--white);
  color: var(--slate-navy);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.scenario-btn:hover {
  border-color: var(--digital-teal);
  color: var(--digital-teal);
}

.scenario-btn.active {
  background: var(--digital-teal);
  border-color: var(--digital-teal);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(33, 150, 166, 0.2);
}

.checklist-card {
  background: var(--white);
  border: 1px solid rgba(176, 190, 197, 0.3);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.checklist-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(176, 190, 197, 0.2);
  padding-bottom: 1rem;
}

.checklist-header .header-icon {
  color: var(--digital-teal);
  font-size: 1.8rem;
}

.checklist-header h3 {
  font-size: 1.25rem;
  color: var(--slate-navy);
}

.controls-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Custom Checkbox Items */
.control-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--soft-white);
  border: 1px solid rgba(176, 190, 197, 0.2);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.control-item:hover {
  border-color: var(--digital-teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(33, 150, 166, 0.05);
}

.control-item input[type="checkbox"] {
  display: none; /* Hide standard checkbox */
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--silver-mist);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  flex-shrink: 0;
  transition: var(--transition);
  margin-top: 0.1rem;
}

.control-item:hover .custom-checkbox {
  border-color: var(--digital-teal);
}

.control-item.checked .custom-checkbox {
  background: var(--digital-teal);
  border-color: var(--digital-teal);
}

.custom-checkbox::after {
  content: 'check';
  font-family: 'Material Symbols Outlined';
  font-size: 1rem;
  color: var(--white);
  display: none;
}

.control-item.checked .custom-checkbox::after {
  display: block;
}

.control-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.control-label {
  font-weight: 600;
  color: var(--slate-navy);
  font-size: 0.95rem;
  transition: var(--transition);
}

.control-item.checked .control-label {
  color: var(--digital-teal);
  text-decoration: line-through;
  opacity: 0.8;
}

.control-desc {
  font-size: 0.85rem;
  color: var(--charcoal);
  opacity: 0.85;
}

/* Status Card styling */
.status-card {
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: var(--card-shadow);
  color: var(--white) !important;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Risk Gradient States */
.status-card.risk-level-critical {
  background: linear-gradient(135deg, #E05252 0%, #F28D35 100%);
  box-shadow: 0 10px 30px rgba(224, 82, 82, 0.25);
}

.status-card.risk-level-high {
  background: linear-gradient(135deg, #F28D35 0%, #E0B034 100%);
  box-shadow: 0 10px 30px rgba(242, 141, 53, 0.25);
}

.status-card.risk-level-medium {
  background: linear-gradient(135deg, #E0B034 0%, #2196A6 100%);
  box-shadow: 0 10px 30px rgba(224, 176, 52, 0.25);
}

.status-card.risk-level-low {
  background: linear-gradient(135deg, #2196A6 0%, #1E3A5F 100%);
  box-shadow: 0 10px 30px rgba(33, 150, 166, 0.3);
}

.status-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-card-header h4 {
  color: var(--white) !important;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.risk-badge {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Circular Score Gauge */
.circular-meter-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.progress-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring__circle {
  stroke-dasharray: 427.26; /* Circumference of r=68 is 2 * pi * 68 = 427.256 */
  stroke-dashoffset: 427.26;
  transition: stroke-dashoffset 0.5s ease-in-out, stroke 0.5s ease-in-out;
  stroke-linecap: round;
}

.progress-score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#progressPercent {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* SOP Recommendation Box */
.audit-recommendation-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rec-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.rec-title span {
  display: inline-flex;
  align-items: center;
}

.rec-title .material-symbols-outlined {
  font-size: 1.1rem;
}

.rec-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* Dark theme overrides for custom checklist cards */
[data-theme="dark"] .checklist-card {
  background: var(--white); /* In dark mode, --white resolves to the dark color (#0F1115) */
  border-color: rgba(120, 144, 156, 0.2);
}

[data-theme="dark"] .control-item {
  background: var(--soft-white); /* Resolves to #1A1D24 in dark theme */
  border-color: rgba(120, 144, 156, 0.15);
}

[data-theme="dark"] .control-item:hover {
  border-color: var(--digital-teal);
}

[data-theme="dark"] .custom-checkbox {
  background: #0F1115;
  border-color: var(--silver-mist);
}

[data-theme="dark"] .control-item.checked .custom-checkbox {
  background: var(--digital-teal);
  border-color: var(--digital-teal);
}

/* Responsive collapse */
@media (max-width: 768px) {
  .audit-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
