@font-face {
    font-family: 'Maiandra GD';
    src: url('UI/fonts/MaiandraGD.ttf') format('truetype');
}

::-webkit-scrollbar {
  width: 4px; /* Adjust the width as needed */
}

::-webkit-scrollbar-track {
  background: transparent; /* Removes the background track */
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5); /* Color of the moving thumb/bar */
  border-radius: 10px; /* Rounded corners for aesthetics */
  border: 3px solid transparent; /* Optional: creates spacing around the thumb */
}
  
:root {
    --switch-width: 70px;
    --lightmode: linear-gradient(to bottom, rgb(102, 149, 231) 0%, rgb(224, 71, 71) 33%, rgb(102, 149, 231) 50%, rgb(224, 71, 71) 100%);
    --darkmode: linear-gradient(to bottom, rgb(0, 0, 0) 0%, rgb(19, 8, 63) 50%, rgb(0, 0, 0) 100%);
    --fontcolor: black;
    --secondary-fontcol: hsl(0, 0, 20%);
    --fog-intensity: 50;
    --inverse-fontcolor: whitesmoke;
    --fillcolor: var(--fontcolor);
    --semitransparentfill: rgba(255, 255, 255, 10%);
    --background-color-light: rgba(217, 216, 216, 0.9);
    --background-color-dark: rgba(0, 0, 0, 0.8);
    --bg-color: var(--background-color-light);
    --font-family: Arial, Helvetica, sans-serif;
}
  
body {
    margin: 0;
    height: 400vh;
    background: var(--lightmode);
    font-family: var(--font-family);
}
  
nav {
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 10; /* ensure it's on top */
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.3);
}
  
#logo {
    display: flex;
    align-items: center;
    justify-content: start;
    font-size: calc(var(--switch-width) / 2);
    color: var(--fontcolor);
    font-family: 'Maiandra GD', Arial, Helvetica, sans-serif;
    font-weight: 900;
}
 
#nav-switches {
    display: flex;
    justify-content: end;
    align-items: center;
}
  
.switch {
    background-color: var(--semitransparentfill);
    position: relative;
    display: flex;
    margin-left: 10px;
    align-items: center;
    width: var(--switch-width);
    height: calc(var(--switch-width) * 0.5);
    aspect-ratio: 2 / 1;
    border: calc(var(--switch-width) * 0.03) solid var(--fontcolor);
    border-radius: calc(var(--switch-width) * 0.4);
}
  
.circle {
    position: absolute;
    width: 40%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: calc(var(--switch-width) * 0.03) solid var(--fontcolor);
    margin-left: calc(5% - var(--switch-width) * 0.03);
    transition: margin-left 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
  
#circle-mode {
    border: 0;
}
  
.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
  
#landing {
    position: absolute;
    background-color: var(--semitransparentfill);
    margin: 0;
    height: 100vh;
    font-family: Helvetica, sans-serif;
    color: var(--fontcolor);
}
  
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 0;
}
  
/* Landing Section */
#landing-content {
    width: 100%;
    padding-left: 10vw;
    padding-right: 10vw;
    padding-top: 50vh;  /* Push landing content down */
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 20px;
}
  
.landing-text {
    font: 3rem sans-serif;
    font-weight: 800;
    flex: 1;
    color: var(--fontcolor);
    z-index: 1;
    text-align: left;
}
  
.descrip {
    font: 2.5rem sans-serif;
    font-weight: 400;
    color: var(--secondary-fontcol);
    z-index: 1;
    margin-top: 10px;
    text-align: left;
}
  
#landing-buttons {
    z-index: 1;
    margin-top: 20px;
}
  
.buttons {
    background-color: var(--semitransparentfill);
    width: 130px;
    height: 40px;
    font: 20px sans-serif;
    font-weight: 400;
    color: var(--fontcolor);
    border: 3px solid var(--fontcolor);
    border-radius: 10px;
    z-index: 1;
}
  
.buttons:hover {
    background-color: var(--fontcolor);
    color: var(--inverse-fontcolor);
}
  
/* Social Media Links Container on Landing */
#landing-socials {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: absolute;
    bottom: 20px;
}
  
.social-icons {
    background-color: var(--semitransparentfill);
    border: 3px solid var(--fontcolor);
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}
  
.social-icons:hover {
    background-color: var(--fontcolor);
    --fillcolor: var(--inverse-fontcolor);
}
  
/* Projects Section */
#projects {
    position: absolute;
    background-color: var(--bg-color);
    top: 100vh;
    transform: translate(0, 0);
    z-index: 1;
    height: 100vh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
  
#team-section {
    position: absolute;
    background-color: var(--bg-color);
    top: 200vh;
    transform: translate(0, 0);
    z-index: 1;
    height: 100vh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
/* Team Section Additional Styles */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
  margin: 2rem auto;
}

.team-photo {
  flex: 2;
  min-width: 250px;
  text-align: left	;
}

.team-photo img {
  width: 80%;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.team-description {
  flex: 1;
  min-width: 250px;
  padding: 1rem;
  text-align: left;
}

  
#todo-section {
    position: absolute;
    top: 300vh;
    transform: translate(0, 0);
    z-index: 1;
    height: 100vh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
  
#section-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    color: var(--fontcolor);
    padding-top: 20px;
}
  
#projects-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    box-sizing: border-box;
    width: 90%;
    height: 90vh;
}
  
#projects-text {
    display: flex;
    box-sizing: border-box;
    width: 45%;
    height: 80%;
    align-self: center;
}
  
#mashup-title {
    position: absolute;
    color: white;
    font-weight: bold;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}
  
#projects-right {
    width: 45%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-self: center;
    overflow: auto;
}
  
#gif-display {
    min-width: 100%;
    max-height: 100%;
    opacity: 0.5;
    object-fit: cover;
}
  
#gif-display-2 {
    transform: translate(-100%);
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    opacity: 0.5;
}
  
h1, h3, p {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--fontcolor);
}
  
p {
    line-height: 1.6;
}
  
#projects-socials {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    align-items: flex-start;
    justify-items: center;
    width: 100%;
    height: 10%;
}
  
.social-icons {
    background-color: var(--semitransparentfill);
    border: 3px solid var(--fontcolor);
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}
  
.social-icons:hover {
    background-color: var(--fontcolor);
    --fillcolor: var(--inverse-fontcolor);
}
  
#form {
    position: absolute;
    height: 100vh;
    top: 200vh;
}


/* --- Carousel Slider Styles --- */
.carousel-wrapper {
    width: 80vw;
    height: 70vh;
    margin: 2rem auto;
    padding: 2rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.project-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 2rem;
    margin: 0 auto;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Default Desktop Slide Inner Layout: row (image on left, text on right) */
.slide-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Desktop project image styling */
.project-image {
  max-height: 600px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
}

/* Carousel Arrow Buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    z-index: 2;
    border-radius: 50%;
}

.carousel-arrow.left {
    left: -2rem;
    right: auto;
}

.carousel-arrow.right {
    right: -2rem;
    left: auto;
}




.team-details {
  margin-top: 1rem;
  text-align: left;
}

.team-details h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--fontcolor);
}

.team-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-details li {
  margin-bottom: 0.3rem;
}

.team-details a {
  text-decoration: none;
  color: var(--fontcolor);
  font-weight: bold;
}

.team-details a:hover {
  color: var(--secondary-fontcol);
}



/* --- Responsive Adjustments --- */
@media (max-width: 800px) {
    :root {
        --switch-width: 50px;
    }
  
    #landing-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        padding-left: 5vw;
        padding-right: 5vw;
        padding-top: 50vh;
    }
  
    .landing-text {
        font: 1.5rem sans-serif;
        font-weight: 800;
        width: 100%;
        margin: 0;
        text-align: center;
    }
  
    .descrip {
        font: 1.5rem sans-serif;
        font-weight: 400;
        text-align: center;
    }
  
    .buttons {
        margin-top: 50px;
    }
  
    #projects {
        position: absolute;
        top: 100vh;
        transform: translate(0, 0);
        z-index: 1;
        height: 100vh;
        display: flex;
        justify-content: center;
    }
  
    #projects-flex {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        box-sizing: border-box;
        width: 90%;
        height: 80vh;
    }
  
    #projects-text {
        width: 90%;
        height: 40%;
    }
  
    #projects-right {
        width: 90%;
        height: 50%;
        display: flex;
        flex-direction: column;
        padding: 10px;
    }
      
    #projects-img {
        box-sizing: border-box;
        width: 100%;
        height: 70%;
    }
      
    #projects-socials {
        border-radius: 50px;
        box-sizing: border-box;
        width: 100%;
        height: 20%;
        margin: 0;
        padding: 0;
    }
  
    .social-icons {
        border: 3px solid var(--fontcolor);
        border-radius: 50%;
        height: 50%;
        aspect-ratio: 1 / 1;
    }
}

/* --- Carousel Responsive Adjustments for Mobile (max-width: 600px) --- */
@media screen and (max-width: 600px) {
  /* Adjust carousel dimensions on mobile */
  .carousel-wrapper {
    width: 80vw;
    height: 80vh;
    margin: 1rem auto;
    padding: 1rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .carousel-arrow {
    font-size: 1.5rem;
    padding: 0.3rem 0.8rem;
  }
  
  .carousel-arrow.left {
    left: -1rem;
    right: auto;
  }
  
  .carousel-arrow.right {
    right: -1rem;
    left: auto;
  }
  
  /* Adjust project slides on mobile */
  .project-slide {
    padding: 1rem;
    box-sizing: border-box;
  }
  
  /* Mobile override: switch carousel slide layout to column */
  .slide-inner {
    flex-direction: column;
  }
  
  /* Mobile override: force images to fill container (for iPhones) */
  .project-image {
    width: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
  }
  
  .project-info {
    width: 100%;
  }
  
  .project-image {
    margin-bottom: 1rem;
  }
  
  /* Landing Buttons: Fit all three side-by-side on mobile */
  #landing-buttons {
      display: flex;
      justify-content: center;
      gap: 10px;
  }
  
  .buttons {
    width: 100px;
    height: 40px;
    font-size: 16px;
  }

  #landing {
      position: relative;
      top: auto;
      height: auto;

  }

  #projects {
      position: relative;
      top: auto;
      height: auto;


  }
  /* TEAM & ABOUT US: Override positioning so they stack naturally */
  #team-section {
      position: relative;
      top: auto;
      height: auto;


  }
  
  #todo-section {
      position: relative;
      top: auto;
      height: auto;
 


  }
}
