/* GDES306 | MMDD253 - Coding Your Portfolio     */
/* Extra small devices (phones, less than 600px) */
/* No media query since this is the default CSS */
/* Basic page styling */
:root {
    /* These are global variables that you can use in your CSS */
    --black:black;
    --charcoal:#231F20;
    --mid-grey:#666;
    --light-grey:#999;
    --white:white;
    --accent-blue:#25DCF4;
    --accent-pink:#F91FF9;
    --gradient: linear-gradient(
        90deg, 
        var(--accent-blue), 
        var(--accent-pink)
        );
    --headline-font: bruna, sans-serif;
    --body-font: bruna, sans-serif;
    --horizontal-shift:6px;
    --section-padding-top:120px;
   }
* {
    margin: 0;
    padding: 0;
    
    transition: 0.5s;
}
html {
    scroll-behavior: smooth;
}

body { 
    font-family: var(--body-font);
    }
    
    h1, h2, h3, h4, h5, h6 {
     font-family: var(--headline-font);
    }
    h1 {
        font-weight: 800;
     font-size: calc(36px + (72 - 40) * (100vw - 400px) / (1800 - 400));
     margin-bottom: 3rem;
    }
    h2 {
        font-weight: 700;
     font-size: calc(32px + (48 - 32) * (100vw - 400px) / (1800 - 400));
     margin-bottom: 1.5rem;
    }
    h3 {
        font-weight: 700;
     font-size: calc(20px + (28 - 20) * (100vw - 400px) / (1800 - 400));
    }

    h4 {
        font-weight: 300;
        font-size: calc(20px + (28 - 20) * (100vw - 400px) / (1800 - 400));
    }

    p {
        font-weight: 300;
     font-size: calc(16px + (20 - 16) * (100vw - 400px) / (1800 - 400));
     line-height: calc(20px + (20 - 16) * (100vw - 400px) / (1800 - 400));
     color: var(--charcoal);
     margin-bottom: 2rem;
    }

    a {
        font-size: calc(16px + (20 - 16) * (100vw - 400px) / (1800 - 400));
        text-decoration: none;
       }
       a:visited {
        text-decoration: none;
       }


       

      .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        padding: 15px 32px;
        border-radius: 8px;
        text-decoration: none;
        color: white;
        background-color: black;
        font-size: calc(16px + (20 - 16) * (100vw - 400px) / (1800 - 400));
      }

      .btn:hover {
        background: linear-gradient(
            90deg, 
            var(--accent-blue), 
            var(--accent-pink)
            );
      }
       
       


    #title-cycle {
        --bg-size: 400%;
        background: linear-gradient(
            90deg,
            var(--accent-blue),
            var(--accent-pink),
            var(--accent-blue)
            )
            0 0 / var(--bg-size) 100%;
        color: transparent;
        background-clip: text;
        text-transform: uppercase;
        letter-spacing: -1px;
    }

       /* Styling the Navigation */
header {
    background: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
   }

   header img {
    height: 32px;
    width: auto;
    border-radius: 0px;
   }

   #logo {
    padding-left: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--black);
   }

   .name {
    padding-left: .5rem;
   }

   nav.navigation {
    display: none;
    padding-right: 2rem;
   }

   nav.navigation.active {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: black;
   }

   nav.navigation.active a {
    padding: 20px;
    color: white;
    font-size: calc(16px + (20 - 16) * (100vw - 400px) / (1800 - 400));
    text-decoration: none;
   }

   .nav-btn {
    margin: 0 .5rem;
    border-radius: 8px;
   }

img.dots-menu {
    display: flex;
}

img.dots-menu.hide {
    display: none;
}

img.close-menu {
    filter: invert(1);
    display: none;
}

img.close-menu.show {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    overflow-x: hidden;
}


   /* Scale all images to their parent container */
   img {
    width:100%;
    border-radius: 2rem;
   }
   
   /* Styling for the Sections */
section {
    display: grid;
    min-height: calc(60vh - var(--section-padding-top));
    padding-top: var(--section-padding-top);
    grid-template-columns: 5% 1fr 5%;
    align-content: start;
   }
   section > * {
    grid-column: 2;
   }

   .two-columns {
    display: grid;
    grid-template-columns:1fr;
    grid-gap:2rem;
    margin-bottom:2rem;
   }

   .two-columns-fixed {
    display: grid;
    grid-template-columns:1fr 1fr;
    grid-gap:2rem;
    margin-bottom:2rem;
   }

   .three-columns {
    display: grid;
    grid-template-columns:1fr 1fr;
    grid-gap:2rem;
    margin-bottom:2rem;
    }

    .auto-height {
        min-height: auto; 
        }

   /* Styling for the Introduction */
#introduction {
    align-content: center;
    height: 1vh;
    width: 100%;
   }

/* Styling for the Portfolio Section */


#portfolio a {
    text-decoration: none;
    color: black;
}

#portfolio a:hover h3, 
#portfolio a:hover p {
 padding-left:var(--horizontal-shift);
}



/* Styling for the About */
#about ul {
    list-style: none;
}   

#about .intro-paragraph {
    font-size: calc(20px + (28 - 20) * (100vw - 400px) / (1800 - 400));
    grid-column: 1/-1;
   }
   
/* Styling the Hero section */


/* Styling the Showcase section */

.showcase-text p {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: -1;
}

/* Styling the Contact section */
#contact {
    min-height:auto;
   }

   #contact p {
    color: white;
   }

   #contact ul {
    display: flex;
    list-style-type: none;
    margin-bottom:1rem;
    margin-top:1rem;
    overflow: hidden;
   }
   #contact ul li a {
    text-decoration: none;
    color: var(--accent-colour);
    margin: 0 20px 0 0;
    font-size: 32px;
   }
   #contact ul li a:hover {
    text-decoration: none;
    color: var(--mid-grey);
   }
/* Styling to invert the colour scheme. Add this class to a section */ 


.inverted-colours {
    background:var(--black);
    color:var(--white);
   }
   .inverted-colours a {
    color:var(--white);
   }
   .inverted-colours a:visited {
    color:var(--white);
   }
   .inverted-colours .btn {
    color:var(--black);
    background:var(--white);
   }
   .inverted-colours .btn:hover {
    color:var(--white);
    background: linear-gradient(
        90deg,
        var(--accent-blue),
        var(--accent-pink),
        var(--accent-blue)
        );
   }
      
   
   
   
/* Small devices (i.e. tablets in portrait) */
@media (min-width: 600px) {
    

        section {
            grid-template-columns: 15% 1fr 15%;
            }
        .two-columns {
            grid-template-columns:1fr 1fr;
            }
            .three-columns {
                grid-template-columns:1fr 1fr 1fr;
            }
        .featured {
            grid-column: 1/-1; /*This Class can be used to stretch an item the entire width of the parent grid */
           }
        
.auto-height {
min-height: auto; 
}
            
           
           
}

/* Medium devices (i.e. tablets in landscape */
@media (min-width: 900px) {
    header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        width: 100%;
        overflow-x: hidden;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav.navigation {
        display: flex;
       }
    
    nav.navigation a {
        background-color: var(--black);
        border: none;
        color: var(--white);
        padding: 15px 32px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: calc(16px + (20 - 16) * (100vw - 400px) / (1800 - 400));
        width: fit-content; 
        }
    
    nav.navigation a:hover {
        background: linear-gradient(
            90deg, 
            var(--accent-blue), 
            var(--accent-pink)
            );
        color: var(--white);
        }

    div.nav-toggleBox {
        display: none;
    }

}

/* Large devices (i.e. desktop) */

@media (min-width: 1200px) {


}

/* X-Large devices (i.e. big desktop) */

@media (min-width: 1800px) {

    
}

@media (prefers-reduced-motion: no-preference) {
    .title-change {
      animation: move-bg 8s linear infinite;
    }
    @keyframes move-bg {
      to {
        background-position: var(--bg-size) 0;
      }
    }
  }