:root {
    --auto-img: auto;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-align: center;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 500;
    overflow-x: hidden;
}

section {
    width: 100vw;
}

section:not(#contact-me) {
    min-height: 100vh;
    padding: 13vh 10vw 5vh 10vw;
}

img {
    height: var(--auto-img);
}

a {
    text-decoration: none;
}

strong {
    font-weight: 700;
}

nav {
    position: fixed;
    display: flex;
    flex-direction: row;
    background-color: #2a2060ce;
    width: 100%;
    min-height: 10vh;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 3px 3px rgb(0, 0, 0);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 7vw;
}

#logo {
    border-radius: 100%;
    width: 65px;
    height: 65px;
    transition: all 200ms ease;
    margin-top: auto;
    margin-left: 2vw;
    z-index: 100;
}

#logo:hover {
    width: 150px;
    height: 150px;
    margin-right: -85px;
    margin-top: auto;
}

.logo-container.active .logo:hover ~ .img-text {
  transform: translateX(calc(40vw + 2vw + 155px));
}

.img-text {
    color: #ffffff;
    font-family: 'Poppins', Montserrat, sans-serif;
    position: absolute;
    left: -40vw;
    transition: all 200ms ease;
    font-size: 1.5rem;
}

.navbar {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    display: flex;
    flex-direction: row;
    height: 100%;
    width: max-content;
    margin-right: 1vw;
    list-style-type: none;
    justify-content: space-between;
}

.navlink {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 15px;
    padding-right: 15px;
    max-width: max-content;
    width: 100%;
    height: 10vh;
}

.navlink:hover {
    background-color: #aa55ff;
}

.navlink a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    width: 100%;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

@keyframes linearCycle {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#home {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(20deg, #105189 0%, #000b14 90%);
    background-size: 200% 200%;
    animation: linearCycle 10s ease infinite;
}

.welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.welcome h1 {
    font-size: 3.5rem;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
}

.welcome p {
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 200;
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.5);
}

#about-me {
    background-color: #10006b;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    color: white;
    padding: 15vh 10vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 3vh;
    min-height: fit-content;
}

#about-me * {
    text-align: left;
}

#about-me ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

#about-me h3 {
    font-weight: 600;
    font-size: 2rem;
}

/* My real name is Islam */

.my-real-name {
    font-weight: 300;
}

#about-me p, #about-me li {
    font-size: 1rem;
}

#services {
    background-color: #21a640;
    font-family: Montserrat;
    color: #dfdfdf;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 15vh;
}

.services-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.services-main h1 {
    font-size: 3rem;
    font-weight: 700;
}

.services-main p {
    font-size: 1.5rem;
}

#services hr {
    width: 100vw;
    margin: 5vh 0;
    border: 3px solid;
}

.services-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin-top: 5vh;
    gap: 10vw;
}

.service {
    width: 25vw;
    height: max-content;
    border: 3px solid black;
    border-radius: 7px;
    background-color: #136727;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 300ms ease, border 100ms ease;
}

.service-1:hover {
    transform: translateY(-10px);
    z-index: 1;
    box-shadow: 0 0 15px rgb(255, 255, 255);
    border: 3px solid black;
}

.service-2:hover {
    transform: translateY(-10px);
    z-index: 1;
    box-shadow: 0 0 12px rgb(255, 255, 255);
    border: 3px solid black;
}

.service img {
    width: 100%;
    height: var(--auto-img);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.services-text-container {
    flex: 1;
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    font-size: 1.4rem;
    padding: 10% 0;
}

.services-text-container-main {
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

.services-text-container-other {
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transition: all 350ms ease;
    color: #d97b00;
}

.service:hover span {
    opacity: 1;
}

#projects {
    background-color: #4087a6;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.projects-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.projects-main h1 {
    font-size: 3rem;
}

.projects-main p {
    font-size: 2rem;
    font-weight: 300;
} 

.projects-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin-top: 5vh;
    gap: 10vw;
}

.project {
    width: 25vw;
    border: 3px solid black;
    border-radius: 7px;
    background-color: #136767;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 350ms ease;
    position: relative;
    overflow: hidden; /* keeps inner elements inside */
    font-size: 1.3rem;
}

.project1 img {
    aspect-ratio: 17/12;
    width: 100%;
    transition: all 350ms ease;
}

.project:not(.project2):hover {
    transform: translateY(-10px);
    box-shadow: 0 0 10px #ffffffc2;
}


.project2 {
    width: 25vw;
    border: 3px solid black;
    border-radius: 7px;
    background-color: #136767;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 350ms ease;
    position: relative;
    overflow: hidden; /* keeps inner elements inside */
}

.project2-img {
    aspect-ratio: 25/16;
    width: 100%;
    transition: all 350ms ease;
}

.project-text-main-container {
    flex: 1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    padding: 10% 0 5% 0;
    transition: all 350ms ease;
}

.project-text-main {
    transition: all 350ms ease;
}

.project-description {
    color: #fff;
    font-size: 0.8rem;
    padding: 3% 1%;
}

.project2-description {
    transition: all 350ms ease;
}

.project2:hover {
    background-color: rgba(153,153,153,0.9);
}

.project2:hover .project2-img, .project2:hover .project-text-other, .project2:hover .project-text-main, .project2:hover .project2-description {
    opacity: 0.2;
    filter: blur(2.5px);
}

.coming-soon-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.3rem;
    color: #ffffff00;
    transition: all 350ms ease;
    text-align: center;
    pointer-events: none;
}

.project2:hover .coming-soon-text {
    font-size: 1.5rem;
    color: #fff;
}


.project2:hover span {
    opacity: 0;
}

.overlay-project2 {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    background-color: rgba(128, 128, 128, 0); /* transparent by default */
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 0.3rem;
    transition: all 350ms ease;
    z-index: 10;
    padding-bottom: 50%;
}

.project2:hover .overlay-project2 {
    background-color: rgba(153, 153, 153, 0.9);
    color: #fff;
    font-size: 1.5rem;
}
.project-text-main {
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

.project-text-other {
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transition: all 350ms ease;
    color: #d97b00;
}

.project:hover span {
    opacity: 1;
}

#certifications {
    background-color: #1B1B32;
    font-family: Lato;
    color: #E4E4E4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* I only have 1 certification ¯\_(ツ)_/¯, but there will be many more to show in the near future! */

#certifications hr {
    width: 100vw;
}

.cert-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cert-main h1 {
    font-size: 3rem;
    font-weight: 700;
}

.cert-main p {
    font-size: 1.5rem;
}

.secret {
    font-weight: 100;
    opacity: 0.01;
}

.cert-grid {
    margin-top: 5vh;
}

.cert {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 3px solid #f5f6f7;
    text-decoration: none;
    color: #E4E4E4;
    width: 30vw;
    height: max-content;
    padding: 0;
    background-color: #3a3b4f;
}


.cert:hover {
    background-color: #f5f6f7;
    color: #1B1B32;
}

.cert img {
    width: 100%;
    height: var(--auto-img);
}

.cert-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1vh;
    padding: 10% 5vw;
}

.cert-text-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    font-size: 1.5rem;
}

.issued {
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.3vw;
}

.issued i {
    font-size: 1.2rem;
    font-weight: 600;
}

#contact-me {
    background-color: #3b485f;
    color: #dedede;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10vh;
    padding-top: 25vh;
    min-height: 85vh;
    padding-top: 25vh;
}

.contact-me-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-me-main h1 {
    font-size: 3.5rem;
    font-weight: 600;
}

.together {
  display: inline-block;
  background: linear-gradient(145deg, #ffffff, #d1b3ff, #a8e6ff); /* reversed gradient */
  background-size: 100% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  cursor: pointer;
}

.together:hover {
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 10px rgba(168, 230, 255, 0.7), 0 0 20px rgba(209, 179, 255, 0.5);
  transform: scale(1.08);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.contact-me-main p {
    font-style: italic;
    font-weight: 100;
    font-size: 2rem;
}

.contact-options {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5vw;
    list-style-type: none;
}

.contact-option {
    font-size: 1.5rem;
    transition: all 350ms ease;
}

.contact-option:hover {
    transform: translateY(10px);
}

.contact-option a {
    color: #dedede;
}

footer {
    background-color: #011b32;
    height: 15vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1vh;
    color: #dedede;
    font-size: 1.2rem;
    font-weight: 400;
}

.passion {
    background: linear-gradient(90deg, #e3f6ff, #7ed6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
}

.update {
    font-size: 0.7rem;
    font-weight: 300;
}

/* Added in v2.2.0, updated in v2.3.0, For responsive design.*/

@media (min-width: 3841px) and (max-width: 7680px) {
    html {
        font-size: 80px;
    }
    .navbar {
        width: 50vw;
        margin-right: 3vw;
    }
    .cert-text {
        padding: 7% 3vw;
    }
    .cert-text-main {
        font-size: 2rem;
    }
    .issued, #fcc-logo {
        font-size: 1.5rem;
    }
    #fcc-logo {
        margin-left: 0.3vw;
        margin-top: 0.3vh;
    }
    #logo {
        width: 5vw;
        height: 5vw;
        transition: all 200ms ease;
    }
    #logo:hover {
        width: 11.5vw;
        height: 11.5vw;
        margin-right: -85px;
        margin-top: auto;
    }
    .navlink a {
        font-size: 1.5rem;
    }
}


@media (min-width: 2561px) and (max-width: 3840px) {
    html {
        font-size: 40px;
    }
    .navbar {
        width: 50vw;
        margin-right: 3vw;
    }
    .cert-text {
        padding: 7% 3vw;
    }
    .cert-text-main {
        font-size: 2rem;
    }
    .issued, #fcc-logo {
        font-size: 1.5rem;
    }
    #fcc-logo {
        margin-left: 0.3vw;
        margin-top: 0.3vh;
    }
    #logo {
        width: 5vw;
        height: 5vw;
        transition: all 200ms ease;
    }
    #logo:hover {
        width: 11.5vw;
        height: 11.5vw;
        margin-right: -85px;
        margin-top: auto;
    }
}

@media (min-width: 1921px) and (max-width: 2560px) {
    html {
        font-size: 28px;
    }
    .navbar {
        width: 50vw;
        margin-right: 3vw;
    }
    .cert-text {
        padding: 7% 3vw;
    }
    .cert-text-main {
        font-size: 2rem;
    }
    .issued, #fcc-logo {
        font-size: 1.5rem;
    }
    #fcc-logo {
        margin-left: 0.3vw;
        margin-top: 0.3vh;
    }
    #logo {
        width: 5vw;
        height: 5vw;
        transition: all 200ms ease;
    }
    #logo:hover {
        width: 11.5vw;
        height: 11.5vw;
        margin-right: -85px;
        margin-top: auto;
    }
}

@media (min-width: 729px) and (max-width: 1024px) and (orientation: landscape) {
    html {
        font-size: 15px;
    }
    .cert {
        width: 40vw;
    }
    .service {
        width: 35vw;
    }
    .cert {
        width: 55vw;
    }
    .cert-text-main {
        font-size: 2rem;
    }
    .issued, #fcc-logo {
        font-size: 1.5rem;
    }
    #fcc-logo {
        margin-left: 1vw;
    }
}

@media (min-width: 887px) and (max-width: 1024px) and (orientation: portrait) {
    html {
        font-size: 16px;
    }
    section {
        padding: 13vw 5vh 5vw 5vh;
    }
    .cert {
        width: 50vw;
    }
    .service {
        width: 45vw;
    }
    .services-text-container {
        font-size: 1.6rem;
    }
    .img-text {
        visibility: hidden;
    }
    .services-container {
        flex-direction: column;
    }
    .projects-container {
        flex-direction: column;
    }
    .project {
        width: 45vw;
    }
    .project-text-main-container {
        font-size: 1.6rem;
    }
    .project-description {
        font-size: 1rem;
    }
    .img-text {
        visibility: hidden;
    }
    .welcome h1 {
        font-size: 2.9rem;
    }
    .welcome p {
        font-size: 2.9rem;
    }
    .nav {
        max-height: 100px;
        min-height: 0   ;
        max-width: 100vw;
        position: fixed;
        top: 1vh;
    }
    .navlink a {
        font-size: 1.3rem;
    }
    .img-text {
        visibility: hidden;
    }
    .cert-text-main {
        font-size: 2rem;
    }
    .issued, #fcc-logo {
        font-size: 1.5rem;
    }
    #fcc-logo {
        margin-left: 1vw;
        margin-bottom: -0.7vh;
    }
}

@media (min-width: 769px) and (max-width: 886px) and (orientation: portrait) {
    html {
        font-size: 16px;
    }
    section {
        padding: 13vw 5vh 5vw 5vh;
    }
    .cert {
        width: 50vw;
    }
    .service {
        width: 45vw;
    }
    .services-text-container {
        font-size: 1.6rem;;
    }
    .service {
        width: 45vw;
    }
    .services-text-container {
        font-size: 1.6rem;;
    }
    .project {
        width: 40vw;
    }
    .project-text-main-container {
        font-size: 1.5rem;
    }
    .project-description {
        font-size: 0.8rem;
    }
    .img-text {
        visibility: hidden;
    }
    .welcome h1 {
        font-size: 2.9rem;
    }
    .welcome p {
        font-size: 2.9rem;
    }
    .nav {
        max-height: 100px;
        min-height: 0;
        max-width: 100vw;
        position: fixed;
        top: 1vh;
    }
    .navbar {
        width: 60vw;
        display: grid;
        grid-auto-rows: 4vh;
        grid-template-columns: repeat(3, 1fr);
        gap: 1vh;
        margin-right: 5vw;
        margin-top: 1vh;
        height: 10vh;
    }
    .navlink {
        justify-self: center;
        align-self: center;
        height: 5vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto;
        height: fit-content;
    }
    .navlink a {
        font-size: 1.4rem;
    }
    .img-text {
        visibility: hidden;
    }
    .cert-text-main {
        font-size: 1.7rem;
    }
    .issued, #fcc-logo {
        font-size: 1.2rem;
    }
    #fcc-logo {
        margin-left: 1vw;
        margin-bottom: -0.7vh;
    }
}

@media (min-width: 701px) and (max-width: 768px)  {
    html {
        font-size: 14px;
    }
    section {
        padding: 13vw 5vh 5vw 5vh;
    }
    .cert {
        width: 50vw;
    }
    .service {
        width: 55vw;
    }
    .img-text {
        visibility: hidden;
    }
    .services-container {
        flex-direction: column;
    }
    .project {
        width: 55vw;
    }
    .projects-container {
        flex-direction: column;
    }
    .project-text-main-container {
        font-size: 1.6rem;
    }
    .welcome h1 {
        font-size: 2.9rem;
    }
    .welcome p {
        font-size: 2.9rem;
    }
    .nav {
        max-height: 100px;
        min-height: 0   ;
        max-width: 100vw;
        position: fixed;
        top: 1vh;
    }
    .navbar {
        width: 60vw;
        display: grid;
        grid-auto-rows: 4vh;
        grid-template-columns: repeat(3, 1fr);
        gap: 1vh;
        margin-right: 5vw;
        margin-top: 1vh;
        height: 10vh;
    }
    .navlink {
        justify-self: center;
        align-self: center;
        height: 5vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto;
        height: fit-content;
    }
    .navlink a {
        font-size: 1.3rem;
    }
    .img-text {
        visibility: hidden;
    }
    .cert-text-main {
        font-size: 1.7rem;
    }
    .issued, #fcc-logo {
        font-size: 1.2rem;
    }
    #fcc-logo {
        margin-left: 1vw;
        margin-bottom: -0.7vh;
    }
}

@media (min-width: 601px) and (max-width: 700px) {
    html {
        font-size: 14px;
    }
    section {
        padding: 13vw 5vh 5vw 5vh;
    }
    .service {
        width: 65vw;
    }
    .cert {
        width: 65vw;
    }
    .services-container {
        flex-direction: column;
    }
    .project {
        width: 65vw;
    }
    .projects-container {
        flex-direction: column;
    }
    .project-text-main-container {
        font-size: 1.5rem;
    }
    .img-text {
        visibility: hidden;
    }
    .welcome h1 {
        font-size: 2.9rem;
    }
    .welcome p {
        font-size: 2.9rem;
    }
    .nav {
        max-height: 100px;
        min-height: 0   ;
        max-width: 100vw;
        position: fixed;
        top: 1vh;
    }
    .navbar {
        width: 50vw;
        display: grid;
        grid-auto-rows: 4vh;
        grid-template-columns: repeat(3, 1fr);
        gap: 1vh;
        margin-right: 5vw;
        margin-top: 1vh;
        height: 10vh;
    }
    .navlink {
        justify-self: center;
        align-self: center;
        height: 5vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto;
        height: fit-content;
    }
    .navlink a {
        font-size: 1.1rem;
        width: 100%;
    }
    .img-text {
        visibility: hidden;
    }
    .navlink:hover {
        background-color: inherit;
    }
    .navlink a:hover {
        background-color: #aa55ff;
    }
    .cert-text-main {
        font-size: 2rem;
    }
    .issued, #fcc-logo {
        font-size: 1.5rem;
    }
    #fcc-logo {
        margin-left: 1vw;
        margin-bottom: -0.7vh;
    }
}

@media (min-width: 401px) and (max-width: 600px) {
    html {
        font-size: 10px;
    }
    section {
        padding: 13vw 5vh 5vw 5vh;
    }
    .service {
        width: 65vw;
    }
    .cert {
        width: 65vw;
    }
    .services-container {
        flex-direction: column;
    }
    .services-text-container {
        font-size: 1.7rem;
    }
    .project {
        width: 65vw;
    }
    .projects-container {
        flex-direction: column;
    }
    .project-text-main-container {
        font-size: 1.7rem;
    }
    .project-description {
        font-size: 1.2rem;
    }
    .img-text {
        visibility: hidden;
    }
    .welcome h1 {
        font-size: 2.9rem;
    }
    .welcome p {
        font-size: 2.9rem;
    }
    .nav {
        max-height: 100px;
        min-height: 0   ;
        max-width: 100vw;
        position: fixed;
        top: 1vh;
    }
    .navbar {
        width: 60vw;
        display: grid;
        grid-auto-rows: 4vh;
        grid-template-columns: repeat(3, 1fr);
        gap: 1vh;
        margin-right: 5vw;
        margin-top: 1vh;
        height: 10vh;
    }
    .navlink {
        justify-self: center;
        align-self: center;
        height: 5vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto;
        height: fit-content;
    }
    .navlink a {
        font-size: 1.2rem;
        width: 100%;
    }
    .img-text {
        visibility: hidden;
    }
    .navlink:hover {
        background-color: inherit;
    }
    .navlink a:hover {
        background-color: #aa55ff;
    }
    .cert-text-main {
        font-size: 2rem;
    }
    .issued, #fcc-logo {
        font-size: 1.5rem;
    }
    #fcc-logo {
        margin-left: 1vw;
        margin-bottom: -0.7vh;
    }
}

@media (min-width: 301px) and (max-width: 400px) {
    html {
        font-size: 10px;
    }
    section {
        padding: 13vw 5vh 5vw 5vh;
    }
    .welcome h1 {
        font-size: 3rem;
    }
    .welcome p {
        font-size: 3rem;
    }
    .cert {
        width: 70vw;
    }
    .service {
        width: 65vw;
    }
    .services-container {
        flex-direction: column;
    }
    .services-main {
        margin-top: 0;
    }
    .project {
        width: 65vw;
    }
    .projects-container {
        flex-direction: column;
    }
    .projects-main {
        margin-top: 0;
    }
    #logo:hover {
        width: 120px;
        height: 120px;
    }
    .nav {
        max-height: 100px;
        min-height: 0   ;
        max-width: 100vw;
        position: fixed;
        top: 1vh;
    }
    .navbar {
        width: 60vw;
        display: grid;
        grid-auto-rows: 4vh;
        grid-template-columns: repeat(3, 1fr);
        gap: 1vh;
        margin-right: 5vw;
        margin-top: 1vh;
        height: 10vh;
    }
    .navlink {
        justify-self: center;
        align-self: center;
        height: 5vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto;
        height: fit-content;
    }
    .navlink a {
        font-size: 0.9rem;
        width: 100%;
    }
    .navlink:hover {
        background-color: inherit;
    }
    .navlink a:hover {
        background-color: #aa55ff;
    }
    .img-text {
        visibility: hidden;
    }
    .cert-text-main {
        font-size: 1.7rem;
    }
    .issued, #fcc-logo {
        font-size: 1.3rem;
    }
    #fcc-logo {
        margin-left: 1vw;
        margin-bottom: -0.7vh;
    }
}

@media (max-width: 300px) {
    html {
        font-size: 8px;
    }
    .welcome h1 {
        font-size: 2.2rem;
    }
    .welcome p {
        font-size: 2.2rem;
    }
    .cert {
        width: 70vw;
    }
    .service {
        width: 65vw;
    }
    .services-container {
        flex-direction: column;
    }
    .services-main {
        margin-top: 0;
    }
    .project {
        width: 65vw;
    }
    .projects-container {
        flex-direction: column;
    }
    .projects-main {
        margin-top: 0;
    }
    #logo:hover {
        width: 100px;
        height: 100px;
    }
    .nav {
        max-height: 100px;
        min-height: 0   ;
        max-width: 100vw;
        position: fixed;
        top: 1vh;
    }
    .navbar {
        width: 60vw;
        display: grid;
        grid-auto-rows: 4vh;
        grid-template-columns: repeat(3, 1fr);
        gap: 1vh;
        margin-right: 5vw;
        margin-top: 1vh;
        height: 10vh;
    }
    .navlink {
        justify-self: center;
        align-self: center;
        height: 5vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto;
        height: fit-content;
    }
    .navlink a {
        font-size: 0.9rem;
        width: 100%;
    }
    .img-text {
        visibility: hidden;
    }
    .navlink:hover {
        background-color: inherit;
    }
    .navlink a:hover {
        background-color: #aa55ff;
    }
    .img-text {
        visibility: hidden;
    }
    .cert-text-main {
        font-size: 1.5rem;
    }
    .issued, #fcc-logo {
        font-size: 1.2rem;
    }
    #fcc-logo {
        margin-left: 1vw;
        margin-bottom: -0.7vh;
    }
}

@media (min-width: 971px) and (max-width: 1200px) {
    .logo-container.active .logo:hover ~ .img-text {
        transform: translateX(calc(50vw + 2vw + 155px));
        font-size: 1.2rem;
    }

    .img-text {
        left: -50vw;
        font-size: 1.2rem;
    }
}

@media (min-width: 871px) and (max-width: 970px) {
    .logo-container.active .logo:hover ~ .img-text {
        transform: translateX(calc(50vw + 2vw + 155px));
        font-size: 1.2rem;
    }

    .img-text {
        left: -50vw;
        font-size: 1.2rem;
        max-width: 200px;
        text-align: left;
    }
}
