/* Basic */
 

:root {
    --font_fam: Arial, sans-serif;
  }
  
  
  #font-mode:checked ~ * {
   --font-fam: Doto, sans-serif;
  }
  #font-mode:not(:checked) ~ *{
    --font-fam: Arial, sans-serif;
  }
  
 
  
  .font-scheme-wrapper {
    min-height: 100vh;
    font-family: var(--font-fam);
  }
  
  .arial-font-mode-hide {
    display: none;
  }
  
  #font-mode{
  display: none;
  }
  
  label[for='font-mode'] {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  font-family: var(--font-fam);
  border-radius: 0;
  user-select: none;
  background: linear-gradient(132deg, rgb(253, 112, 136) 0.00%, rgb(255, 211, 165) 100.00%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: .5em;
  text-align: left;
  line-height: 1em;
  padding: 0.5em;
  }
  label[for='font-mode']:hover { 
      border: 0; 
      color:transparent;
  }
  label[for='font-mode']:active {
    content: "";
    transform: translateY(1px);
    border: 0px;
    color:transparent;
  }
  label[for='font-mode']:after{
    
  height: 1.2rem;
  width: 1.2rem;
  margin-left: 0rem;
  
  text-align: center;
  
  color: white;
  }
  #font-mode~label[for='font-mode'] { display: none; }
  #font-mode:checked ~ .arial-font-mode-hide { display: inline-block; }
  #font-mode:not(:checked) ~ .dot-font-mode-hide { display: inline-block; } 

body {
    background: #050505;
    font-family: Arial, sans-serif;
}

body, input, select, textarea {
    color: #fdfdfd;
    font-family: var(--font-fam);
    font-size: 16pt;
    font-weight: 400;
    line-height: 1.75em;
}

strong, b {
    color: #777;
    font-weight: 700;
}

em, i {
    font-style: italic;
}

p {
    
    margin: 0 0 1.25em 0;
    font-size: 0.8em;
    font-weight:100;
    font-family: var(--font-fam);
    position: relative;
}
h1{
    font-size:2.3em;
}
h1, h2, h3, h4, h5, h6 {
    color: #efeeee;
    font-weight: 700;
    line-height: 1em;
    margin: 0 0 0.5625em 0;
    font-family: var(--font-fam);
}

    h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
        border: 0;
        color: inherit;
        text-decoration: none;
    }

h2 {
    font-size: 1.75em;
    line-height: 1.5em;
}

h3 {
    font-size: 1.75em;
    line-height: 1.5em;
}

h4 {
    font-size: 1.25em;
    line-height: 1.5em;
    
}

h5 {
    font-size: 0.9em;
    line-height: 1.5em;
}

h6 {
    font-size: 0.7em;
    line-height: 1.5em;
}

sub {
    font-size: 0.8em;
    position: relative;
    top: 0.5em;
}

sup {
    font-size: 0.7em;
    position: relative;
    color: #b3afaf;
    top: -1.5em;
    font-family: var(--font-fam);
}

hr.ab {
    border: 0;
    background: radial-gradient(circle at 12.3% 89.3%, rgb(218, 98, 85) 0%, rgb(95, 209, 249) 100.2%);
    margin: 2.25em 0;
    height: 5px;
}

    hr.major {
        margin: 3.375em 0;
    }

blockquote {
    border-left: solid 8px #e4e4e4;
    font-style: italic;
    margin: 0 0 2.25em 0;
    padding: 0.5em 0 0.5em 2em;
}

code {
    background: #555;
    border-radius: 5px;
    color: #fff;
    font-family: "Source Code Pro", monospace;
    font-size: 0.9em;
    margin: 0 0.25em;
    padding: 0.25em 0.65em;
}

pre {
    font-family: "Source Code Pro", monospace;
    font-size: 0.9em;
    margin: 0 0 2.25em 0;
}

    pre code {
        -webkit-overflow-scrolling: touch;
        display: block;
        line-height: 1.5em;
        overflow-x: auto;
        padding: 1em 1.5em;
    }

.align-left {
    text-align: left;
}

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

.align-right {
    text-align: right;
}

.content {
    width: 55%; 
    margin: auto;
    padding-top: 60px;
}


 /*nav list*/
 ul.ex1 {
    list-style-type: none;
    font-size:.7em;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: rgba(5, 5, 5, 0.95);
    font-family: var(--font-fam);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
  }
  
  li.ex1 {
    float: left;
  }
  
  li.ex1 a {
    color: #777;
    background: linear-gradient(132deg, rgb(253, 112, 136) 0.00%, rgb(255, 211, 165) 100.00%);
    background-clip: text;
    -webkit-background-clip: text;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-family: var(--font-fam);
    transition: all 0.3s ease;
  }
  
  
  li.ex1 a:hover {
    color: transparent;
    transform: translateY(-2px);
  }
  li.ex1 a.active {
    color:#fbfafa;
    transform: translateY(-2px);
  }
  li.ex1 a:current {
    color:#fbfafa;
  }
  li.ex1 a:inactive {
    color:#777;
  }
 
  .nofloat{
    display: flex;
    position:relative;
    
    flex-direction: column;
    margin-bottom: 150px;
    
  }
  
  .text-block {
    display: flex;
    position: relative;
    padding: 1% 1em;
    box-sizing: border-box;
    word-break: break-all;
    color: #FFF;
    background: #000;
    background-clip: padding-box; 
    border: solid 3px transparent; 
    border-radius: 1em;
    width: 100%;
    margin: 0 0 20px 0;
}

.text-block::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -3px; 
    border-radius: inherit; 
    background: linear-gradient(132deg, rgb(253, 112, 136) 0.00%, rgb(255, 211, 165) 100.00%);
}

.text-block-1 {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1% 1em;
    box-sizing: border-box;
    word-break: break-all;
    color: #FFF;
    background: #000;
    background-clip: padding-box; 
    border: solid 3px transparent; 
    border-radius: 1em;
    width: 100%;
    margin: 0;
}

.text-block-1::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -3px; 
    border-radius: inherit; 
    background: radial-gradient(circle at 12.3% 19.3%, rgb(85, 88, 218) 0%, rgb(95, 209, 249) 100.2%);
}

.nofloat {
    display: flex;
    position: relative;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

@media (min-width: 1400px) {
    .text-block {
        position: absolute;
        width: 400px;
        margin: 0;
    }
    
    .text-block-1 {
        position: absolute;
        margin-left: 420px;
        width: 400px;
    }

    .nofloat {
        height: 250px;
        margin-bottom: 150px;
    }
}

@media (max-width: 1400px) {
    .text-block-1 {
        margin: 20px 0 0 0;
    }
    
    .nofloat {
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 768px) {
    .content {
        width: 90%;
        padding-top: 50px;
    }

    ul.ex1 {
        font-size: 0.6em;
    }

    li.ex1 {
        float: none;
    }

    li.ex1 a {
        padding: 10px 8px;
    }

    .nofloat {
        display: block;
        margin-top: 20px;
        margin-bottom: 0;
    }

    .text-block, .text-block-1 {
        width: 100%;
        margin: 0 0 20px 0;
        padding: 15px;
    }

    .text-block-1 {
        margin-bottom: 0;
    }

    h4 {
        font-size: 1.1em;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    p {
        font-size: 0.8em;
        margin-bottom: 0.8em;
    }
}

/* Add specific styles for very small phones */
@media screen and (max-width: 360px) {
    .content {
        width: 98%;
        padding: 60px 5px 0 5px;
    }

    li.ex1 {
        margin: 3px 5px;
    }

    li.ex1 a {
        padding: 6px 10px;
        font-size: 0.85em;
    }

    .text-block, .text-block-1 {
        padding: 12px;
        margin: 10px 0;
    }
}

.text-color{
    font-size:.8em;
    background: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);


    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-family: var(--font-fam);
  }

  a.links {
    color: #777;
    background: linear-gradient(132deg, rgb(253, 112, 136) 0.00%, rgb(255, 211, 165) 100.00%);
    background-clip: text;
    -webkit-background-clip: text;
    text-align: center;
    padding: 2px 2px;
    text-decoration: none;
  }
  
 
  a.links:hover {
    color: transparent;
    transition: 500ms ease;
   
  }
  p.pg{
    color:transparent;
    background: radial-gradient(328px at 2.9% 15%, rgb(191, 224, 251) 0%, rgb(232, 233, 251) 25.8%, rgb(252, 239, 250) 50.8%, rgb(234, 251, 251) 77.6%, rgb(240, 251, 244) 100.7%);

    background-clip: text;
    -webkit-background-clip: text;
  }
  p.hi{
    color:#d9d5d5;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;

  }
  p.hi:hover{
    transform: scale(1.2) translate(15px, 0);
    box-shadow: 0 0 4px 0 rgba(33,33,33,0.2);

  }
  /*Code pen https://codepen.io/namousi/pen/vEGpqW*/

  /* Replace li with item selector */
/* Replace n + 2 with limit criterion */
.limit-items .items-list li:nth-of-type(n + 2) { display: none; }
.limit-items #show-all:checked ~ .items-list li { display: list-item; }
.limit-items #show-all ~ label[for='show-all'] { display: none; }
.limit-items #show-all:checked ~ .text-hide { display: inline-block; }
.limit-items #show-all:not(:checked) ~ .text-show { display: inline-block; }

.limit-items-ford .items-list-ford li:nth-of-type(n + 2) { display: none; }
.limit-items-ford #show-all-ford:checked ~ .items-list-ford li { display: list-item; }
.limit-items-ford #show-all-ford ~ label[for='show-all-ford'] { display: none; }
.limit-items-ford #show-all-ford:checked ~ .text-hide-ford { display: inline-block; }
.limit-items-ford #show-all-ford:not(:checked) ~ .text-show-ford { display: inline-block; }

.limit-items-pubs .items-list-pubs li:nth-of-type(n + 2) { display: none; }
.limit-items-pubs #show-all-pubs:checked ~ .items-list-pubs li { display: list-item; }
.limit-items-pubs #show-all-pubs ~ label[for='show-all-pubs'] { display: none; }
.limit-items-pubs #show-all-pubs:checked ~ .text-hide-pubs { display: inline-block; }
.limit-items-pubs #show-all-pubs:not(:checked) ~ .text-show-pubs { display: inline-block; }

/* OPTIONAL */
/* Style label as button below items */
.limit-items {
  position: relative;
  padding-bottom: 2em;
}

.limit-items #show-all { display: none; }
.limit-items label[for='show-all'] {
  position: absolute;
  width: 100%;
  bottom: 0;
  border: 0;
  font-size: .75em;
  text-align: left;
  line-height: 1em;
  padding: 0.5em;
  color: #a29f9f;
  cursor: pointer;
  background: linear-gradient(132deg, rgb(253, 112, 136) 0.00%, rgb(255, 211, 165) 100.00%);
  background-clip: text;
  -webkit-background-clip: text;
}

.limit-items label[for='show-all']:hover { 
    border: 0; 
    color: transparent;
}

.limit-items label[for='show-all']:active {
  border: 0px;
  color: #ef1414;
}

.limit-items-ford {
  position: relative;
  padding-bottom: 2em;
}

.limit-items-ford #show-all-ford { display: none; }
.limit-items-ford label[for='show-all-ford'] {
  position: absolute;
  width: 100%;
  bottom: 0;
  border: 0;
  font-size: .75em;
  text-align: left;
  line-height: 1em;
  padding: 0.5em;
  color: #a29f9f;
  cursor: pointer;
  background: linear-gradient(132deg, rgb(253, 112, 136) 0.00%, rgb(255, 211, 165) 100.00%);
  background-clip: text;
  -webkit-background-clip: text;
}

.limit-items-ford label[for='show-all-ford']:hover { 
    border: 0; 
    color: transparent;
}

.limit-items-ford label[for='show-all-ford']:active {
  border: 0px;
  color: #ef1414;
}

.limit-items-pubs {
  position: relative;
  padding-bottom: 2em;
}

.limit-items-pubs #show-all-pubs { display: none; }
.limit-items-pubs label[for='show-all-pubs'] {
  position: absolute;
  width: 100%;
  bottom: 0;
  border: 0;
  font-size: .75em;
  text-align: left;
  line-height: 1em;
  padding: 0.5em;
  color: #a29f9f;
  cursor: pointer;
  background: linear-gradient(132deg, rgb(253, 112, 136) 0.00%, rgb(255, 211, 165) 100.00%);
  background-clip: text;
  -webkit-background-clip: text;
}

.limit-items-pubs label[for='show-all-pubs']:hover { 
    border: 0; 
    color: transparent;
}

.limit-items-pubs label[for='show-all-pubs']:active {
  border: 0px;
  color: #ef1414;
}

hr.ab1 {
    border-top: .5px solid black;
}


.bt{
    color: #777;
    background: linear-gradient(132deg, rgb(253, 112, 136) 0.00%, rgb(255, 211, 165) 100.00%);
    background-clip: text;
    -webkit-background-clip: text;
    text-align: center;
    padding: 2px 2px;
    text-decoration: none;
  }
  
 
  span.bt:hover {
    color: transparent;
    transition: 500ms ease;
   
  }
  /* Awards section styles */
.awards-container {
    max-height: 200px;
    overflow-y: auto;
    position: relative;
    padding: 10px 0;
    margin: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.awards-container ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.awards-container li {
    padding: 12px 20px;
    margin: 8px 0;
    transition: all 0.4s ease;
    opacity: 0.4;
    background: transparent;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    transform: translateY(0);
}

.awards-container li:hover,
.awards-container li:focus-within {
    opacity: 1;
    transform: translateY(-3px);
    z-index: 1;
}

.awards-container li p {
    margin: 0;
    color: #fdfdfd;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    font-size: 0.8em;
    position: relative;
}

.awards-container li:hover p,
.awards-container li:focus-within p,
.awards-container li.visible p {
    color: #ffffff;
    transform: translateX(5px);
}

.awards-container li .bt {
    color: #919191;
    font-size: 0.8em;
    transition: all 0.3s ease;
    display: inline-block;
    word-wrap: break-word;
    max-width: 100%;
}

.awards-container li:hover .bt,
.awards-container li:focus-within .bt,
.awards-container li.visible .bt {
    color: #fdfdfd;
}

/* Add scroll-based highlight effect */
@media (hover: none) {
    .awards-container li {
        opacity: 0.4;
        transition: opacity 0.3s ease;
    }

    .awards-container li:active,
    .awards-container li:focus {
        opacity: 1;
    }

    /* Add intersection observer based highlight */
    .awards-container li.visible {
        opacity: 1;
        transform: translateY(-2px);
    }

    .awards-container li.visible p {
        color: #ffffff;
    }

    .awards-container li.visible .bt {
        color: #fdfdfd;
    }
}

/* Custom scrollbar for awards container */
.awards-container::-webkit-scrollbar {
    width: 6px;
}

.awards-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.awards-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.awards-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Remove the old publications specific styles */
#pubs .awards-container li {
    transition: all 0.4s ease;
}

/* When Dotify is clicked, apply dotted font to all text */
#font-mode:checked ~ .font-scheme-wrapper {
    font-family: 'Doto', sans-serif;
}

#font-mode:checked ~ .font-scheme-wrapper h1,
#font-mode:checked ~ .font-scheme-wrapper h2,
#font-mode:checked ~ .font-scheme-wrapper h3,
#font-mode:checked ~ .font-scheme-wrapper h4,
#font-mode:checked ~ .font-scheme-wrapper h5,
#font-mode:checked ~ .font-scheme-wrapper h6,
#font-mode:checked ~ .font-scheme-wrapper p,
#font-mode:checked ~ .font-scheme-wrapper span,
#font-mode:checked ~ .font-scheme-wrapper div,
#font-mode:checked ~ .font-scheme-wrapper li,
#font-mode:checked ~ .font-scheme-wrapper a,
#font-mode:checked ~ .font-scheme-wrapper label,
#font-mode:checked ~ .font-scheme-wrapper .text-color,
#font-mode:checked ~ .font-scheme-wrapper .bt,
#font-mode:checked ~ .font-scheme-wrapper .links,
#font-mode:checked ~ .font-scheme-wrapper sup {
    font-family: 'Doto', sans-serif;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    transition: all 0.5s ease;
    max-height: 100px;
    overflow: hidden;
    cursor: pointer;
}

/* Mobile-first timeline layout */
@media screen and (max-width: 768px) {
    .timeline {
        padding: 10px;
        margin: 30px auto;
        max-height: 60px; /* Reduced height for collapsed state */
    }

    .timeline:not(.expanded) .timeline-item {
        display: none; /* Hide all items when collapsed */
    }

    .timeline.expanded {
        max-height: none;
        overflow: visible;
    }

    .timeline.expanded .timeline-item {
        display: block; /* Show items when expanded */
        opacity: 1;
        transform: none;
    }

    .timeline::after {
        display: none;
    }

    .timeline-item {
        width: 100%;
        padding: 0;
        margin: 0;
        position: relative;
        opacity: 1;
        transform: none;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        width: 100%;
        transform: none;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-date {
        position: relative;
        top: 0;
        right: auto;
        left: auto;
        margin-bottom: 10px;
        font-size: 1.1em;
        color: #4ECDC4;
        font-weight: bold;
    }

    .timeline-item:nth-child(even) .timeline-date {
        left: auto;
        right: auto;
    }

    .timeline-content {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;
        border-bottom: 2px solid rgba(78, 205, 196, 0.3);
        border-radius: 0;
        background: transparent;
    }

    .timeline-content:last-child {
        border-bottom: none;
    }

    .timeline-content h5 {
        font-size: 1.1em;
        margin-bottom: 8px;
        color: #4ECDC4;
    }

    .timeline-content p {
        font-size: 0.9em;
        line-height: 1.4;
        word-wrap: break-word;
        white-space: normal;
        margin: 0;
    }

    /* Add horizontal line between items */
    .timeline-item:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, 
            rgba(78, 205, 196, 0.3) 0%,
            rgba(255, 107, 107, 0.3) 100%);
    }

    /* Mobile hint text */
    .timeline::before {
        content: 'Tap to expand timeline';
        font-size: 0.9em;
        color: #4ECDC4;
        text-align: center;
        display: block;
        margin-bottom: 15px;
    }
}

/* Desktop timeline styles */
@media screen and (min-width: 769px) {
    .timeline::before {
        content: 'Hover to expand timeline';
        font-size: 0.9em;
        color: #4ECDC4;
        text-align: center;
        display: block;
        margin-bottom: 15px;
    }

    .timeline::after {
        content: '';
        position: absolute;
        width: 2px;
        background: linear-gradient(132deg, rgb(253, 112, 136) 0.00%, rgb(255, 211, 165) 100.00%);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -1px;
        transition: all 0.5s ease;
    }

    .timeline:hover {
        max-height: none;
        overflow: visible;
    }

    .timeline:hover .timeline-item {
        opacity: 1;
        transform: translateX(0);
    }

    .timeline:hover .timeline-content {
        opacity: 1;
        transform: translateY(0);
    }

    .timeline:hover::before {
        opacity: 0;
    }

    .timeline-item {
        padding: 10px 40px;
        position: relative;
        width: calc(50% - 60px);
        opacity: 0;
        transform: translateX(-100px);
        transition: all 0.8s ease;
        margin: 30px 0;
    }

    .timeline-item:nth-child(even) {
        left: calc(50% + 30px);
        width: calc(50% - 30px);
        transform: translateX(100px);
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
        background: linear-gradient(132deg, rgb(253, 112, 136) 0.00%, rgb(255, 211, 165) 100.00%);
        border-radius: 50%;
        position: absolute;
        right: -48px;
        top: 15px;
        z-index: 1;
        transition: all 0.5s ease;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: -28px;
    }

    .timeline-date {
        position: absolute;
        top: 12px;
        right: -140px;
        color: #fdfdfd;
        font-size: 0.9em;
        font-weight: bold;
        transition: all 0.5s ease;
    }

    .timeline-item:nth-child(even) .timeline-date {
        left: -100px;
        right: auto;
    }

    .timeline-content {
        padding: 25px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        position: relative;
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(20px);
        width: 100%;
        box-sizing: border-box;
    }

    .timeline-content h5 {
        margin: 0 0 10px 0;
        font-size: 1.2em;
        color: #fdfdfd;
    }

    .timeline-content p {
        margin: 0;
        font-size: 0.9em;
        line-height: 1.6;
        color: #fdfdfd;
        white-space: normal;
        word-wrap: break-word;
    }

    .timeline-content:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Add smooth scrolling to the page */
html {
    scroll-behavior: smooth;
}

/* Tablet Responsiveness */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .content {
        width: 75%;
    }
}