@font-face {
    font-family: "Sora";
    src: url("./fonts/Sora-VariableFont_wght.ttf") format("truetype");
    font-style: normal;
}

html {
    box-sizing:border-box;
}

*,*:before,*:after {
    box-sizing:inherit;
}

body{
    background-color: #121212;
    color: white;
    margin: 0;
    font-family: 'Sora', sans-serif;
}

a{
    text-decoration: none;
    color: white;
}

#hero{
    background-color: #121212;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out;
    margin-top: 5vh;
    position: relative;
    z-index: 1;
}

#hero-text {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 72pt;
    margin: 0;
    z-index: 1;
    font: 'Sora', sans-serif;
}

#subtitle{
    font-size: 36pt;
    margin: 0;
    z-index: 1;
}

#ctab{
    background-color: rgba(153, 0, 255, 0.4);
    color: white;
    border: none;
    border-radius: 10px;
    height: 10vh;
    width: 85vw;
    max-width: 250px;
    margin-top: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#ctab:hover{
    background-color: rgba(153, 0, 255, 0.5);
}

#ctab text{
    font-size: inherit;
    font-size: 16pt;
}

#gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 20% 45%, rgba(0, 102, 255, 0.4), transparent 30%),
        radial-gradient(circle at 42.5% 75%, rgba(102, 0, 255, 0.4), transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(153, 0, 255, 0.4), transparent 30%);
    background-blend-mode: screen;
    filter: blur(120px);
    z-index: 0;
  }

#navbar{
    position: fixed;
    height: 10vh;
    width: 80%;
    background-color: #121212;  
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#navLogo{
    width: 60%;
    padding-left: 20px;
}

#navLogoText{
    font-weight: 800;
    font-size: 32pt;
    letter-spacing: -.3em;
}

#hamburger {
    display: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    padding: 0 20px;
}

#navLinks{
    width: 40%;
}

#navLinks ul{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

#navLinks li{
    list-style-type: none;
}

#projects{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.project{
    height: auto;
    min-height: 90vh;
    width: 85vw;
    background-color: rgba(0, 0, 0, 0.2);    
    z-index: inherit;
    margin-bottom: 15vh;
    border-radius: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 1;
}

.projectImage{
    height: calc(.85 * 90vh);
    width: 45%;
    border-radius: 20px;
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: center;
    object-position: top;
    z-index: inherit;
}

.projectInfo{
    height: 85%;
    width: 45%;
    display: flex;
    flex-direction: column;
    z-index: inherit;
}

.projectInfo h3{
    margin: 0;
}

.projectHeader{
    font-size: 36pt;
    font-weight: 600;
    z-index: inherit;
    text-align: center;
}

.projectDescription{
    font-size: 16pt;
    font-weight: 200;
    margin-top: 20px;
    z-index: inherit;
}

.projectButton{
    background-color: rgba(153, 0, 255, 0.4);
    color: white;
    border: none;
    border-radius: 10px;
    height: 10vh;
    width: 85vw;
    max-width: 250px;
    margin-top: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: calc(.075 * 90vh);
    left: 55%;
    transform: translateX(55%);
    z-index: 1;
}

.projectButton:hover{
    background-color: rgba(153, 0, 255, 0.5);
}

/* Tablet screens (768px and below) */
@media (max-width: 768px) {

    #hamburger {
        display: block;
    }
    
    #navLinks {
        display: none;
        width: 100%;
        background-color: #121212;
        margin-top: 10px;
    }
    
    #navLinks ul {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        gap: 10px;
    }
    
    #navLinks.show {
        display: block;
    }

    #hero-text {
        font-size: 48pt;
    }
  
    #subtitle {
        font-size: 24pt;
        text-align: center;
        padding: 0 10px;
    }
  
    #ctab {
        width: 90vw;
        height: 8vh;
    }
  
    #ctab text {
      font-size: 14pt;
    }
  
    #navLogoText {
        font-size: 24pt;
        letter-spacing: -0.2em;
    }
  
    #navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 10px 20px;
        flex-wrap: wrap; /* ✅ allows wrapping to second line */
      }
      
      #navLinks {
        display: none;
        width: 100%;
        background-color: #121212;
        padding: 10px 0;
      }
      
      #navLinks.show {
        display: block;
      }
      
      #navLinks ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
        margin: 0;
      }

    .project {
        flex-direction: column-reverse;
        width: 95vw;
        min-height: auto;
        padding: 5vh 0;
    }
  
    .projectImage {
        width: 90%;
        margin-bottom: 20px;
        margin-top: 20px;
    }
  
    .projectInfo {
        width: 90%;
        align-items: center;
    }
  
    .projectHeader {
        font-size: 28pt;
    }
  
    .projectDescription {
        font-size: 14pt;
    }
  
    .projectButton {
        position: static;
        transform: none;
        margin: 20px auto 0 auto;
    }
}
  
  /* Phone screens (480px and below) */
  @media (max-width: 480px) {
    #hero-text {
        font-size: 32pt;
        text-align: center;
    }
  
    #subtitle {
        font-size: 18pt;
    }
  
    .projectHeader {
        font-size: 24pt;
    }
  
    .projectDescription {
        font-size: 12pt;
    }
  
    #ctab {
        height: 7vh;
    }
  
    #ctab text {
        font-size: 12pt;
    }
  
    #navLogoText {
        font-size: 20pt;
    }
}
  