
:root {
  --color-bg: #ffffff;
  --color-fg: #0d0d0d;
  --panel-bg: #f4f4f4;
  --panel-border: #e2e2e2;
  --accent: #c5322e;
  --muted: #4a4a4a;
  --global-transition-time: 0.3s;
}

[data-theme="dark"] {
  --color-bg: #0c0c0c;
  --color-fg: #f5f5f5;
  --panel-bg: #151515;
  --panel-border: #2a2a2a;
  --accent: #f47b58;
  --muted: #c7c7c7;
}


/* Background text animation */
.background {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: auto;
  justify-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -100;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.background p {
  font-size: 0.3em;
  font-weight: bold;
  color: var(--color-fg);
  opacity: 0.06;
}

.background p:nth-child(even) {
  animation: animateUp 2s infinite linear;
}

.background p:nth-child(odd) {
  animation: animateDown 2s infinite linear;
}


/* @keyframes animateUp {
  0% {
      transform: translate(0, -100%);
  }

  100% {
      transform: translate(0, 100%);
  }
}

@keyframes animateDown {
  0% {
      transform: translate(0, 100%);
  }

  100% {
      transform: translate(0, -100%);
  }
} */

* {
    font-family: 'Roboto Slab', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-size: 1em;
    max-width: 70%;
    padding: 0 1.5em;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-fg);
    transition: background-color var(--global-transition-time) ease, color var(--global-transition-time) ease;
}

.landingPage {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}
.toheebImage img{
    width: 8em;
    height: 8em;
    border-radius: 50%;
    object-fit: contain;
    object-position: top center;
    background-color: var(--color-bg);
    text-align: left;
    animation: myPicture 1s ease-in-out 0.1s infinite reverse both;
    animation-play-state: paused;
}


.toheebImage img:hover {
    /* animation-play-state: running; */
}

@keyframes myPicture {
    0%,
    100% {
        transform: rotate(0deg);
        transform-origin: 50% 50%;
    }

    10% {
        transform: rotate(8deg);
    }

    20%,
    40%,
    60% {
        transform: rotate(-10deg);
    }

    30%,
    50%,
    70% {
        transform: rotate(10deg);
    }

    80% {
        transform: rotate(-8deg);
    }

    90% {
        transform: rotate(8deg);
    }
}

.toheebImage strong{
    margin: 0;
    padding: 0;
}


.pagesContainer {
    font-size: 1.1em;
    margin: 1.25em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35em;
}

.pagesContainer a {
    /* color: #000000; */
    text-decoration: none;
    margin: 0 0.25em;
    transition: color 0.2s ease, background-color 0.2s ease;
    font-weight: bold;
}
.pagesContainer:active{
  color: hsl(240, 89%, 41%);
}
/* Light mode */
[data-theme="light"] .pagesContainer a {
    color: #000000; /* Black links in light mode */
}

/* Dark mode */
[data-theme="dark"] .pagesContainer a {
    color: #ffffff; /* White links in dark mode */
}
.pagesContainer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.divider {
    letter-spacing: 0;
    margin: 0 0.15em;
    color: var(--muted);
}

 button {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: all var(--global-transition-time) ease-in-out;
    border-radius: 2rem;
    cursor: pointer;
    color: var(--color-fg);
    background-color: var(--color-bg);
    border: 0.15rem solid var(--color-fg);
  }

/* Default (light theme) */
[data-theme="light"] body {
    background-color: white;
    color: black;
  }
  
  /* Dark theme */
  [data-theme="dark"] body {
    background-color: black;
    color: white;
  }
  
  /* Additional text color styles */
  h1, h2, h3, p, span, div {
    transition: color 0.3s ease, background-color 0.3s ease;
  }
  
  [data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] p {
    color: white;  /* Dark theme text color */
  }
  
  [data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] p {
    color: black;  /* Light theme text color */
  }
  
  hr {
    width: 100%;
    height: 0.1em;
    border: none;
    background-color: hsl(0, 2%, 22%);
    margin: 1.2em auto; 
  }

  h2 {
    margin-top: 2em;
  }

  .changeSize {
    font-size: 2em;
}

a:hover {
  color: #C5322E;
  text-decoration: underline;
}

.aboutMeCollapse{
display: none;
}
.detailsAbout p{
  margin-top: 5px;
  padding-top: 5px;
}

.detailsAbout ul {
  margin: 0.35em 0 0.75em 0;
  padding-left: 1.25em;
}

.detailsAbout li {
  margin: 0.35em 0;
}

.interestsDetail {
  margin-top: 1em;
  border-left: 3px solid #C5322E;
  padding-left: 0.6em;
}

.interestsHeader {
  cursor: pointer;
  color: #000000;
  transition: color 0.3s ease;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
}

.interestsHeader:hover {
  color: #C5322E;
}

.interestsHeader::after {
  content: ' ▼';
  font-size: 0.8em;
  margin-left: 5px;
}

.interestsHeader.active::after {
  content: ' ▲';
}

.interestsContent {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.8s ease-in-out, opacity 0.8s ease-in-out, padding 0.8s ease-in-out;
  padding: 0 0.6em;
  background-color: #f0f0f0;
  border-radius: 5px;
}

.interestsContent.expanded {
  max-height: 130em;
  opacity: 1;
  padding: 0.6em;
}

.interestsContent ul {
  padding-left: 1.25em;
  list-style-type: disc;
}

.interestsContent li {
  margin-bottom: 0.5em;
}

.interestsCollapse{
  display: none;
}
.expandableList li {
  margin-bottom: 0.6em;
  list-style: none;
}

#leaderDesign{
  margin-top: 2em;
}
.expandableList li ul {
  margin-top: 0.25em;
  padding-left: 1.25em;
}

.expandableList li ul li {
  margin-bottom: 5px;
}

.expandableHeader {
  cursor: pointer;
  color: #000000;
  transition: color 0.3s ease;
}

.expandableHeader:hover {
  color: #C5322E;
}

.projectDetails li{
  list-style: circle;
}

.expandableHeader.active {
  color: #C5322E;
  font-weight: bold;
}

.expandableHeader {
  cursor: pointer;
  color: #000000;
  transition: color 0.5s ease;
}

.expandableHeader:hover {
  color: #C5322E;
}

.expandableHeader.active {
  color: #C5322E;
  font-weight: bold;
}

.shortDescription {
  display: block;
  margin-top: 5px;
  margin-left: 0;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  max-height: 3.1em;
  opacity: 1;
  overflow: hidden;
}

.shortDescription.hidden {
  max-height: 0;
  opacity: 0;
}

.expandableContent {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.8s ease-in-out, opacity 0.8s ease-in-out, padding 0.8s ease-in-out;
  padding: 0 0.6;
  background-color: #f0f0f0;
  border-radius: 5px;
}

.expandableContent.expanded {
  max-height: 260em; /* Increased to accommodate larger content */
  opacity: 1;
  padding: 0.6em;
}

.projectDiagram {
  margin: 0.9em 0;
}

.projectDiagram img {
  display: block;
  width: 100%;
  max-width: 44em;
  height: auto;
  border-radius: 0.5em;
  border: 1px solid #d3d3d3;
  box-shadow: 0 0.3em 1em hsla(0, 0%, 0%, 0.08);
}

.projectDetailsButton{
  border-radius: 0.9em;
  border: solid 0.25em;
  background-color: #f0f0f0;
  padding: 0.2em;
  padding-left: 0.4em;
  padding-right: 0.4em;
  margin-left: 45vw;
  text-decoration: none;
}

.projectActionRow {
  margin: 1.2em 0 1em;
}

.projectReportButton {
  display: inline-block;
  padding: 0.7em 1.1em;
  border-radius: 999px;
  border: 1px solid #0d4b8f;
  background: linear-gradient(135deg, #0d4b8f, #1371c8);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0.35em 1em hsla(209, 82%, 30%, 0.2);
}

.projectReportButton:hover {
  background: linear-gradient(135deg, #0a3c72, #0f5fa8);
}

.projectGallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
  gap: 1em;
  margin-top: 1.2em;
}

.projectGalleryItem {
  margin: 0;
  padding: 0.75em;
  border: 1px solid #d9dee8;
  border-radius: 0.8em;
  background: #f8fbff;
  box-shadow: 0 0.25em 0.85em hsla(0, 0%, 0%, 0.05);
}

.projectGalleryItem img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.55em;
  margin-bottom: 0.7em;
}

.projectGalleryItem figcaption {
  font-size: 0.95em;
  line-height: 1.5;
  color: #243244;
}

.projectImageButton {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.projectImageButton img {
  margin-bottom: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.projectImageButton:hover img {
  transform: scale(1.02);
  box-shadow: 0 0.45em 1.2em hsla(209, 82%, 30%, 0.16);
}

.imageLightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2em;
  background: hsla(217, 37%, 8%, 0.86);
  z-index: 2000;
}

.imageLightbox.is-open {
  display: flex;
}

.imageLightboxContent {
  max-width: min(92vw, 70em);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 0.8em;
  box-shadow: 0 1em 3em hsla(0, 0%, 0%, 0.35);
}

.imageLightboxClose {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.skillsContent ul{
  list-style: none;
  padding-left: 0;
  display: block;
  flex-wrap: wrap;
}
#proVideos{
  /* margin-top: 0.3em; */
  margin-top: 0.6em;
}

details p{font-size: small;}

.educationContent ul li{
  list-style: circle;
}


.educationItem {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.87em;
}

.educationContent {
  flex: 1;
  margin-right: 1.25em;
}

.institutionLogo {
  width: 3.75em;
  height: 3.75em;
  flex-shrink: 0;
  margin-top: 5px;
}

.institutionLogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 25%;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

.institutionLogo img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.1);
  filter: brightness(1.1);
}

.blogList {
  list-style: none;
}
.blogList li a{
  text-decoration: none;
  color: hsl(0, 0%, 0%);
}
.blogList li a:hover{
  color: #C5322E;
}

.contactInfo{
  text-decoration: none;
}

.contactDetails{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 1.25em;
}

.contactList{
  display: flex;
  gap: 2em;
  margin-bottom: 2em;
  margin-right: 35vw;
}

.cvButton{
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background-color: rgba(225, 111, 0, 0.2);
  color: #C5322E;;
  border: 2px solid #C5322E;;
  border-radius: 1.5rem;
  font-size: 0.87em;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cvButton .fa-circle-down{
  width: 1.25em;
  height: 1.25em;
  margin-right: 5px;
}
.cv-button:hover {
  color: #000;
  background-color: #e16f0080;
  box-shadow: 0 0 1.25em #e16f00b3;
 
}
.cv-button:hover::before{
  transform: translateY(0.225em);
  box-shadow:
      inset 0 0.03em 0 0 #f4f4f4,
      0 0.03em 0 0 #efefef,
      0 0.0625em 0 0 #cecece,
      0 0.125em 0 0 #eDeDe0,
      0 0.125em 0 0 #dedede,
      0 0.2em 0 0 #dcdcdc,
      0 0.225em 0 0 #cacaca,
      0 0.225em 0.375em 0 #cecece;
  cursor: pointer;
}

.interestsFullDetails ul{
  list-style: circle;
}

.darkMode{
  margin-top: 2rem;
}

.detailsAbout:not(.currentAbout),
.aboutMeCollapse:not(.currentAbout){
  display: none;
}

/* Overrides and new utility styles */
.interestsHeader { color: var(--color-fg); }
.interestsHeader::after { content: ' ▾'; font-size: 0.8em; margin-left: 5px; }
.interestsHeader.active::after { content: ' ▴'; }

.interestsContent,
.expandableContent {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 0 0.6em;
}

.interestsContent.expanded,
.expandableContent.expanded {
  padding: 0.6em;
}

.expandableHeader { color: var(--color-fg); }

.projectDetailsButton{
  background-color: var(--panel-bg);
  color: var(--color-fg);
  margin-left: 0;
  margin-top: 0.6em;
}

.skillsContent li{ color: var(--muted); }

.skillsGrid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1em;
  margin-top: 0.75em;
}

.skillCard{
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.8em 1em;
}

.contactDetails{
  gap: 1em;
}

.contactList{
  margin-right: 25vw;
  gap: 1.5em;
}

.summaryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8em;
  margin-top: 0.8em;
}

.summaryCard {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.8em 1em;
}

.metaList { list-style: none; padding-left: 0; margin-top: 0.4em; }
.metaList li { margin-bottom: 0.35em; color: var(--muted); }

.blogList:not(:first-of-type){
  display: none;
}
