@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap);

*{
    padding: 0;
    margin: 0; 
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', sans-serif;
}

nav {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid #e4e4e4;
    position: fixed;
    top: 0;
    background-color: #ffffff;
    z-index: 99;
    font-weight: 600;
}
nav .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    padding: 0 15px;    
    margin: auto;
}
nav .leftSide a {
    text-decoration: none;
    color: #111111;
}
nav .rightSide {
    display: flex;
    gap: 30px;
}
nav .rightSide a {
    text-decoration: none;
    color: #111111;
    font: 400;
}
#hero {
    height: 100vh;
    min-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7%;
}
#hero .container {
    width: 100%;
    max-width: 1140px;
    padding: 0 15px;
    display: flex;
}
.accent {
    color: #3836368b;
}
#hero h1 {
    font-size: 70px;
    letter-spacing: 2px;
    font-weight: 500;
}
/* this will become 100% width mobile in media queries in a little bit - keep watching! ; */
#hero .leftSide {
    width: 60%;
}
#hero button {
    background-color: #3836368b;
    border: 2px solid #1b1b1b8b;
    color: #ffffff;
    font-size: 20px;
    padding: 15px 80px;
    border-radius: 10px;
    margin: 50px 0 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#hero button:hover {
    background-color: #ffffff;
    color: #1b1b1b8b;
}
#hero .social {
    display: flex;
    gap: 15px;
}
#hero .social img {
    width: 50px;
}
#hero .social a {
    text-decoration: none;
    filter: grayscale(1);
    transition: all 0.3s ease;
}
#hero .social a:hover {
    filter: grayscale(0);
}
#hero .rightSide{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 8%;
}
#hero .rightSide .outer  {
    border-radius: 100%;
    width: 350px;
    height: 350px;
    background: linear-gradient( 135deg, #3836368b, #ffffff8b);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: all 1s ease;
}
#hero .rightSide img {
    max-width: 350px;
}
#hero .rightSide .outer:hover {
    transform: rotateY(360deg);
}
#about {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background-color: #cccccc;
    min-height: 900px;
}
#about .container {
    max-width: 1140px;
    padding: 15px;
    text-align: center;
}
#about h2 {
    font-size: 50px;
}
#about .container p {
    max-width: 700px;
    margin: 30px auto;
    font-size: 22px;
}
#porfolio .container h2 {
    margin-bottom: 50px;
    margin-top: 50px;
    font-size: 50px;
    display: flex;
    justify-content: center;

} 
#projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px, 1fr));
    gap: 1.5rem;
}
#projects-item {
    border-radius: 6px;
    overflow: hidden;
    transition: transfrom 0.3s ease;
}
#projects-item:hover {
    transform: translateY(-5px);
}
#projects-image {
    height: 160px;
    overflow: hidden;
}
#projects-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#outer img {
    padding-left: 50px;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);

}
#porfolio .outer img:hover {
    transform: rotateY(360deg);
}
footer {
    border-top: 1px solid #e4e4e4;
    padding: 20px;
    text-align: center;
}
#modalOuter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    z-index: 100;
    display: flex;
    align-items: center;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solidrgba(255, 255, 255, 0.3);
}
#modalOuter .container {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff8b;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}
#modalOuter .container strong {
    margin-right: 5px;
}
#modalOuter .xButton {
    cursor: pointer;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 20px;
    top: 20px;
}
#modalOuter .container span {
    width: 15px;
    height: 2px;
    background-color: #111111;
    display: block;
    border: 1px solid #111111;
    transform: rotate(45deg);
    cursor: pointer;
}
#modalOuter .container span:nth-child(1) {
    transform: rotate(45deg);
}
#modalOuter .container span:nth-child(2) {
    transform: rotate(-45deg);
}
#modalOuter .container span {
    position: absolute;
    top: 8px;
}
#modalOuter.closeModal {
    display: none !important;
}

@media (max-width: 991px) {
    #hero .container {
        flex-direction: column;
    }
    #hero {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        padding-top: 45px;
    }
    #hero .leftSide,
    #hero .rightSide,
    #hero .social {
        width: 100%;
        margin: auto;
        text-align: center;
        justify-content: center;
    }
    #hero .rightSide .outer {
        width: 300px;
        height: 300px;
        align-items: flex-start;
    }
    #hero .social {
        margin-bottom: 40px;
    }
    #hero .leftSide {
        order: 2;
    }
    #hero .rightSide {
        order: 1;
        margin-bottom: 50px;
    }
    #hero h1 {
        font-size: 35px;
        letter-spacing: 0;
    }
    #outer img {
        display: flex;
    }
    #outter img{
        display: flex;
    }
    #about .container {
        padding: 50px;
    }
    #portfolio {
        display: flex;
        gap: 20px;
    }
    #portfolio .projects .outer {
        justify-content: space-around;
    }
    #modalOuter .container{
        max-width: 90%;
    }
}    