

:root {
    --primary-bg: #f5f5f5;
    --secondary-bg: #ffffff;
    --text-color: #333;
    --info: white;
    --hover-text: rgb(255, 67, 57);
    --text-color2: rgb(27, 27, 27);
    --header-bg: #ffffff;
    --font-family:"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.dark-mode {
    --primary-bg: #090909;
    --secondary-bg: #000000;
    --text-color: #ffffff;
    --text-color2: rgb(141, 141, 141);
    --header-bg: #000000;
    --hover-text: rgb(60, 117, 203);
    --font-family:"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --info: rgba(41, 41, 41, 0.285);
}

.sponsorImg{
    height: 100px;
    width: auto;
    margin: 2rem;
}

html {
    scroll-behavior: smooth;
}


.dark-mode {
    background-color: #090909;
    color: #ffffff;
}



body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    font-weight: normal;
}

body {
    background: var(--primary-bg);
}

/* Header */


header {
    background: var(--header-bg);
    padding: 8px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    max-height: 3rem;
    gap: 3rem;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
}

nav ul li img{
    height: 4rem;
    transform: translateY(0.25rem);
}

nav ul li {
    text-transform: uppercase; 
}
.dropdown {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container a {
    display: inline-block;
}

.logo-container img {
    cursor: pointer;
    scale: 120%;
}


/* Dropdown Menu */



.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 55%;
    padding: 0;
    margin: 0;
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0s 0.3s;
    display: flex;
    flex-direction: column;
    transform: translateY(450%);
}

.dropdown-menu li {
    text-align: center;
}

.dropdown-menu li:last-child {
    border-bottom: none;
    
}

.dropdown-menu li a {
    text-decoration: none;
    color: var(--text-color);
    margin: -12rem;
    border-radius: 4rem;
    max-width: 10rem;
    display: block;
    background-color: var(--header-bg);
    font-size: 1rem;
    padding: 8px 16px; 
}

.dropdown-menu li:hover {
    background: var(--primary-bg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(470%); 
    transition-delay: 0s;  
}

.dropdown:not(:hover) .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    transition-delay: 0.3s; 
}

.dropdown:not(:hover) .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    transition-duration: 0.5s;
    transition-delay: 0.5s;  
}





/* Hero Section */

.info-header h3 {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

h2:not(.collabsHead h2 , .teamHeader h2, .projHead h2) {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 20px;
  color: var(--text-color)
}

h2:not(.collabsHead h2 , .teamHeader h2,.projHead h2)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 4px;
  background-color: var(--hover-text);
  transition: transform 0.4s ease;
  border-radius: 2px;
}

h2:not(.collabsHead h2 , .projHead h2, .research-title, .teamHeader h2):hover::after {
  transform: translateX(-50%) scaleX(1);
}


.hero {
    height: 95vh;
 background: 
        linear-gradient(to bottom,#f5f5f500, var(--primary-bg)),
        url('../Assets/BG.jpeg') no-repeat center center/cover; 


    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 20px;

    
}

.heroOther{
    height: 40vh;
    padding-top: 10vh;
    background-position-y: 30%;
}

#RecentPublished{
    width:75%;
}

.lab-description {
    font-size: 1.75rem;
    padding-bottom: 1rem;
    color: var(--text-color);
    margin-top: 10px;
    text-transform: uppercase;
        font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.newsTab h4{
    font-weight: 600;
    margin: 0%;
    margin-bottom: 2rem;
}

iframe{
    width: 100%;
    height: auto;
}

hr{
    border-color: rgba(0, 0, 0, 0.512);
}

.hero p{
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    color:var(--text-color);
    margin-bottom: 1.5rem;
    font-family:'Times New Roman', Times, serif;
}

.newsTab h4:hover {
    text-decoration: underline;
}


/* Vision Section */




.vision-section {
    text-align: center;
    padding: 5rem 8%;
    padding-bottom: 2%;
    background-color: var(--primary-bg);
}

.vision-content h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.vision-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1rem;
    color: var(--text-color);
}

.primary-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    background-color: black;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.next-btn, .prev-btn{
    display: inline-block;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    border-radius: 50%;
    border-style: none;
    background-color: black;
    color: white;
    border: 2px solid black;
    transition: background-color 0.3s ease, color 0.3s ease;

}

.next-btn:hover, .prev-btn:hover {
    background-color: white;
    color: black;
}

.primary-button:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* research */
/*
#research-section {
  padding: 5px 5%;
  padding-top: 10rem;
  background-color: #f7f7f7;

  font-family: 'Georgia', serif;
}



.research-divider {
  border: none;
  border-top: 4px solid #111;
  margin-bottom: 2rem;
}

.research-list-container {
  display: flex;
  justify-content: center;
}

.research-column {
  flex: 1;
  list-style-type: none;
  padding: 0 20px;
  margin: 0 0 20px 0;
}

.research-column li {
    font-weight: 400;
    font-family: var(--font-family);
  margin-bottom: 30px;
  font-size: 1.2rem;
  padding-bottom: 4px;
}
*/


/* Info Section */

.info-section {
    display: flex;
    justify-content: center;
    padding: 0rem 8%;
    padding-bottom: 2rem;
    position: relative;
    background-color: var(--primary-bg);
}

.publications{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}


.info-container {
    display: flex;
    
    z-index: 2;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
}

.home-info{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap
}

.projects{
flex-direction:column;
}

.info-box {
    align-content: center;
    min-width: 300px;
    min-height: 200px;
    padding: 2rem 4rem;
    background: var(--info);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    box-sizing: border-box;

}

.publications .info-box{
    width: 45%;
}

.info-section .info-box .info-header h3{
    font-size: 1.25rem;
    font-weight: 600;
}



.info-header{
    display: flex;
    flex-direction: row;
}


.info-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.info-body{
    display: flex;
    
}

.info-box h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.sponsor-logo{
    object-fit: contain;
    width: 5rem;
    padding: 1rem;
    align-self: center;
}

.prototype-image{
object-fit: contain;
max-width:30%;
}


.info-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);

    padding: 0.5em;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    width: 100%;
}

.info-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
}


.info-section .info-box .info-body p{
   text-align: left;
}


.learn-more-button {
    display: inline-block;
    text-decoration: none;
    font-size: 1rem;
    color: black;
    border: 2px solid black;
    padding: 8px 20px;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.learn-more-button:hover {
    background-color: black;
    color: white;
}





.info-container.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5em;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.info-container.gallery img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.8em;
}

.info-container.gallery h1 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: normal;
    margin: 0;
    opacity: 0.85;
}



/* Mission Section */


.mission-section {
    position: relative;
    text-align: center;
    padding: 18rem 12%;
    background-color: var(--secondary-bg);
    background-size: cover;
    color: #222;
    overflow: hidden;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 0;
}

.mission-content {
    position: relative;
    z-index: 1;
}



.mission-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.mission-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.mission-section p {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.objectives-section {
    text-align: center;
    padding: 15rem 8%;
    background-color: var(--primary-bg);
    
}

.paddingFix{
    padding: 0;
    padding-top: 5rem;
}

.objectives-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.objectives-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.objectives-section p {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.objectivesOther{
    padding: 5rem 8%;
}


#AC{
    text-align: center;
}



.collabs{
    padding: 0rem 15vw;
    padding-bottom: 5rem;
    text-align: left;
}

.collabs h2{
    margin-top: 2rem;
    padding-bottom: 0.25rem;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.collabs p{
    font-size: 1.25rem;
    max-width: 100%;

    margin: 0;
    padding: 0;
}

.pub-button {
    background: #222;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 1.5rem;
    transition: 0.3s;
}

.pub-button:hover {
    background: #444;
}



.fade-in {
    opacity: 0;
    transform: translateY(3rem); 
    transition: opacity 1s ease-out, transform 1s ease-out;
}


.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


.footer {
    background-color: #222;
    color: var(--text-color);
    font-size: 12px; 
    padding: 10px 15px;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-info, .research-areas {
    flex: 1;
    margin-right: 10px;
    max-width: 45%;
}

.contact-info p, .research-areas ul {
    margin: 2px 0;
    color: white;
}

.research-areas h5 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
}

.research-areas ul {
    list-style: none;
    padding: 0;
    font-size: 12px;
}

.research-areas li {
    padding: 2px 0;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 5px;
}

.footer-bottom p{
    color: white;
}



/* Team Page */


.team-section {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: var(--primary-bg);
}



.team-content {
    display: flex;
    align-items: center;
    padding: 0 5rem 0 10rem;
    width: 100%;
}

.text {
    padding: 0 4rem;
}

.role {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.2rem;
    margin-bottom: 1.5rem;

}

.text h2 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 auto;
}

.pi-image {
    min-width: 30%;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.16);
    height: auto;
    border-radius: 10px;
}


/* Other Members */


.team-category {
    color: var(--text-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 8%;
    background-color: var(--primary-bg);
    
}

.team-member {
    min-width: 500px;
    width: 550px;
    color: var(--text-color);
    display: flex;
    flex-direction: row;
    padding:3rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member:nth-child(2n){
    flex-direction: row-reverse;
    text-align: right;
}



/* Text Section */
.team-text {
    flex: 1;
    min-width: 250px;
    align-self: center;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Heading Styles */
.team-text h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.team-text h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.team-text p {
    padding-top: 0.25rem;
    font-size: 1.25rem;
    color: var(--text-color);
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.326);
}



@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        font-size: 1rem;
    }

    
    .publications .info-box{
        width: 100%;
}

    .contact-info, .research-areas {
        max-width: 100%;
        margin-right: 0;
        text-align: center;
    }


    .research-areas h5 {
        font-size: 1.25rem;
    }
    
    .research-areas ul {
        font-size: 1rem;
    }
    

}

.phoneHeader{
    display: none;
}


@media (max-width: 768px) {

    header {
        display: none;
        
    position:relative;
        
    }

    .phoneHeader{
        display:inline;
    }


.home-info{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap
}




    .phoneHeader nav ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-height: 50vh;
    }

    
    .phoneHeader nav ul li{
        font-size: large;
    }

.info-header{
    flex-direction: column;
}

.prototype-image{
max-width:80%;
align-self: center;
}

.info-body{
    flex-direction: column;
}
    .info-box {
        padding: 1rem;
    }

    .info-box h3 {
        font-size: 1.2rem;
    }

    .info-box h2 {
        font-size: 1rem;
    }

    .info-box h4 {
        font-size: 0.9rem;
    }

    .info-box p {
        font-size: 0.85rem;
    }


    .team-content {
        flex-direction: column;
        padding: 0 1rem;
        align-items: center;
        width: 70%;
    }

    .pi-image {
        max-width: 43vw;
        margin-bottom: 3rem;
    }

    .text {
        width: 100%;
        text-align: center;
    }

    .team-member {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
        text-align: center;
    }

    .team-member img {
        width: 150px;
        height: 150px;
        margin-bottom: 2rem;
    }

    .team-member:nth-child(2n){
        flex-direction: column;
        text-align: center;
    }

}

.prev-btn.disabled, .next-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info{
    display: inline-block;
}
















.Social {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.Social ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.Social li {
    list-style: none;
    width: 50px;
    height: 50px;
    position: relative;
}

.Social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    
    text-decoration: none;
    height: 100%;
    background: rgba(128, 128, 128, 0.214);
    color: rgba(0, 0, 0, 0.47);
    font-size: 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.Social a:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.Social li:nth-child(1) a:hover { background: #47b881; }
.Social li:nth-child(2) a:hover { background: #4078c0; }
.Social li:nth-child(3) a:hover { background: #e1306c; }
.Social li:nth-child(4) a:hover { background: #1da1f2; }
.Social li:nth-child(5) a:hover { background: #ea4335; }



@media (max-width: 768px) {

.Social ul {
    display: flex;
    flex-direction: row;
}

.Social {
  position: fixed;
  top: calc(100vh - 40px);
  right:calc(50% - 150px);

}

.Social ul {
  justify-content: center; /* Centers items horizontally */
}

}
