/* ===== Header & Navigation ===== */
html {
  forced-color-adjust: none;
}

header {
  background: #009688;
  padding: 20px;
  color: white;
  text-align: center;
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
}

html.dark {
  --bg-color: #121212;
  --text-color: #f5f5f5;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.main-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Center nav links */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Theme toggle (left) */
#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Icons */
#theme-toggle .icon {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  color: #f5f5f5;
}

/* Light mode → show moon */
#theme-toggle .sun {
  display: none;
}

/* Dark mode → show sun */
html.dark #theme-toggle .sun {
  display: block;
}

html.dark #theme-toggle .moon {
  display: none;
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;          
  font-size: 24px;
  cursor: pointer;
}

p {
  font-size: 18px;
  line-height: 1.5;
}

nav a {
  color: white;
  margin: 0 15px;
  font-size: 18px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #00fcfc;
}

/* ===== Layout ===== */
.container {
  max-width: 850px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: left;
}

h2 {
  margin-top: 40px;
}

/* ===== Footer ===== */
.footer-content {
  margin-top: 60px;
  padding: 20px;
  background: #009688;
  color: white;
  text-align: center;
  font-size: 14px;
}

.short-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.short-page .container {
  flex: 1;
}

.video-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.text-link:link {
  color: #41d3e3;/* normal link */
}

.text-link:visited {
  color: #388eff; /* visited link */
}

.text-link:hover {
  color: #27ea71; /* hover */
  text-decoration: underline;
}

.text-link:active {
  color: #41e846; /* while clicking */
}

/* Container for the section */
#links {
  max-width: 850px;  
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

/* Make the links row flex on desktop */
#links .icon-link {
  display: inline-flex;       
  width: 30%;                 
  min-width: 150px;           
  margin: 1%;                 
  text-decoration: none;
  color: inherit;
  vertical-align: top;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Flex container for image + text */
.about {
  display: flex;
  align-items: flex-start; 
  gap: 20px;             
  flex-wrap: wrap;         
}

/* Image styling */
.about-img {
  width: 300px;    
  height: auto;         
  border-radius: 8px;     
  flex-shrink: 0;         
}

.about-text {
  flex: 1;            
}

/* Icon + text layout */
.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Icon styling */
.icon-wrapper svg {
  width: 250px;
  height: 250px;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

/* Text styling */
.icon-wrapper span {
  font-size: 30px;
  margin-top: 4px;
  transition: color 0.3s ease;
}

/* Hover effect for icon + text */
.icon-link:hover .icon-wrapper svg,
.icon-link:hover .icon-wrapper span {
  color: #0077ff;  
  transform: translateY(-3px);
}

.DCR-results {
  display: flex;
  align-items: flex-start; 
  gap: 20px;             
  flex-wrap: wrap; 
}

.DCR-image {
  width: 300px;    
  height: auto;         
  border-radius: 8px;     
  flex-shrink: 0;
}

.DRC-results-text {
  flex: 1;            
}

/* Mobile stacking */
@media (max-width: 750px) {
  #links .icon-link {
    display: block;  
    width: 80%;  
    margin: 15px auto; 
  }

  .icon-wrapper svg {
    width: 300px;
    height: 300px;
    margin-bottom: 6px;
    transition: color 0.3s ease;
  }

  .about-text {
    flex: 0 1 auto;        
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;   /* below header */
    right: 10px;
    width: 180px;
    background-color: #009688;
    border: 1px solid #ccc;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex; 
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    z-index: 1100; /* above menu */
    line-height: 60px; /* vertically center */
  }

  @media (max-width: 768px) {
    .DCR-results {
      flex-direction: column;
    }
  }
}










