/* Begin Minimized Normalize Stylesheet */
img,legend{border:0}legend,td,th{padding:0}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}table{border-collapse:collapse;border-spacing:0}
/* End Minimized Normalize Stylesheet */
/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: whitesmoke;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

/* nav style */
nav { 
    display: flex;
    padding: 1% 4%;
    justify-content: space-between;
    align-items: center;
}
.navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

a:visited {
    color: black;
}

a:active {
    color: black;
}

.desktop {
    display: block;
}

.menu-bar {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.logo img{
    max-width: 110px;
    margin: 35px 0px 8px 98px;
}
.sidebar {
    position: fixed;
    top: 0;
    right: -250px; /* hidden */
    width: 250px;
    height: 100vh;
    background-color: lightgray;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    transition: right 0.3s ease;
    z-index: 1000;
}

.sidebar a {
    padding: 15px 20px;
    text-decoration: none;
    color: black;
}

.menu-bar{
    display: none;
}


.navigation a:hover{
    background-color:transparent;
    padding: 10px;
    margin: 0;
    border: solid skyblue 1px;
    cursor: pointer;
}
.navigation a {
    position: relative;
    padding: 8px 12px;
}

.navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: skyblue;
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

/* Media queries for responsiveness */

@media (max-width: 800px) {
    .desktop {
        display: none !important;
    }

    .menu-bar {
        display: block !important;
    }
    .text {
        padding: 10px;
    }

    .sidebar a {
        font-size: 20px;
        padding: 15px;
    }

    .sidebar a:hover{
        border: solid skyblue 1px;

    }

.navigation{ 
    width: 100%;
    justify-content: flex-end;
}

}

/* footer */

footer{
    padding: 40px 5%;
    margin: 80px 0px;
    font-size: 18px;
    color: rgb(116, 115, 115);
    border-top: 1px solid #ddd;

}
.footer-links{
    float: right;
}
.footer-links a{
    align-items: center;
    text-decoration: none;
    padding: 10px;
    text-transform: uppercase;
    color: rgb(116, 115, 115);

}
.footer-links a:hover{
    border: solid 1px skyblue;
}

/* separate content */
/* intro */

h1{
    font-size: 80px;
    font-family: cookie;
    color: rgb(116, 115, 115);
}

.name-highlight{
    color:rgb(116, 115, 115);
    text-decoration: underline;
    text-decoration-color: skyblue;
    font-size: 80px;
    font-family: cookie;
}

.span{
    color: skyblue;
}
.intro p{
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20%;
}
.intro{
    margin: 10%;
    width: 73%;
}

/* Projects */

.projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding: 0 20%;
}

.image {
    transition: transform 0.4s ease;
}

.projects > div:hover .image {
    transform: scale(1.05);
}
.projects-1 img, .projects-2 img, .projects-3 img, .projects-4 img, .projects-5 img, .projects-6 img{
    max-width: 500px;
}

.image {
    transition: transform 0.3s ease;

    
  }

.projects img {
    width: 100%;
    height: auto;
}

.projects-1:hover .image, .projects-2:hover .image, .projects-3:hover .image, .projects-4:hover .image, .projects-5:hover .image, .projects-6:hover .image{
    transform: scale(0.8); 
  }


.text{
    text-align: left;
    margin-top: 10px;
    padding: 20px;
    line-height: 1.6;

}
.text h2{
    font-size: 30px;
    font: bold;
    color:black ;
    font-family: Quicksand;
    margin-bottom: 10px;
}


.projects > div {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    width: 100%;

}

.projects > div:nth-child(1) { animation-delay: 0.1s; }
.projects > div:nth-child(2) { animation-delay: 0.2s; }
.projects > div:nth-child(3) { animation-delay: 0.3s; }
.projects > div:nth-child(4) { animation-delay: 0.4s; }
.projects > div:nth-child(5) { animation-delay: 0.5s; }
.projects > div:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text h2 {
    transition: color 0.3s ease;
}

.projects > div:hover .text h2 {
    color: skyblue;
}

a {
    transition: all 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

@media (max-width: 900px) {
    .projects{
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .projects-1, .projects-2, .projects-3, .projects-4, .projects-5, .projects-6 {
        border: solid skyblue 2px;

    }
}

@media (max-width: 800px) {
    .projects {
        gap: 25px;
    }
}

    
/* about */

.quote{
    margin-top: 80px;
    margin-left: 180PX;
}

.quote p, .quote span{
    font-family: Quicksand;

}

.quote span{
    color: skyblue;
}

.about{
    display: flex;
    flex-direction: row;

}
.photo img{
    max-width: 300px;
    border: 2px solid skyblue;
    margin-left: 180px; 
    margin-top: 100px;
}

.intro {
    margin-top: 30px;
    font-family: cookie;
    font-size: 20px;
    margin-bottom: 30px;
}

.skills {
    margin-top: 50px;
    margin-bottom: 15%;
    line-height: 1.8;
    display: flex;
    gap: 80px; 
    justify-content: center;    
    text-align: center;

}

.skills h3 {
    color: skyblue;
    font-family: Quicksand;
    font-size: 28px;
}

.skills p {
    font-size: 18px;

}

@media (max-width: 1100px) {
    .about {
        flex-direction: column;
        align-items: center;
    }

    .photo img {
        width: 70%;
        margin-top: 20px;
        margin-left: 20px;
    }

    .intro {
        max-width: 90%;
        text-align: center;
        font-size: 18px;
    }

    .skills {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 800px){
    .quote{
        margin-left: 10%
    }

    .intro h1{
        font-size: 60px;
    }
    .name-highlight{
        font-size: 60px;
    }

}

@media (max-width: 500px) {

    .quote p {
        font-size: 1.1rem;
        margin-left: 5px;
    }

    .intro h1, .name-highlight {
        font-size: 2.0rem;
    }

    .intro p {
        font-size: 0.95rem;
    }

    .skills h3 {
        font-size: 1.2rem;
    }

    .skills p {
        font-size: 0.9rem;
    }
}

/* Contact */

.contact{
    align-items: center;
    justify-content: center;
    margin: auto;
    padding: 1em;
    width: 80%;
}

.text-form {
    font-family: cookie;

}

form{
    display: flex;
    flex-direction: column;
    margin: 3% auto;
    width: 70%;
    
}

.input-group > input {
    width: 100%;
}

.input-group #fname{
    margin-right: 20px;
}

label{
    margin: 20px 10px 10px 10px;
    font-size: 18px;
}
input, textarea{
    padding: 15px;
    border: solid 1px skyblue;

}
.contact-form{
    margin-top: 5%;
}

.required{
    color: gray;
    margin-left: 5px;
    font-size: 14px;
}
button{
    padding: 15px;
    width: 20%;
    border: 2px solid skyblue;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    margin: 10px 80%;
    text-transform: uppercase;
    font-family: Quicksand;

}

button:hover{
    background-color: skyblue;

}

#thank-you-message {
  display: none;
}

#thank-you-message.show {
  display: block;
}
@media (max-width: 1080px){
    button{
        font-size: 15px;
    }

}

@media (max-width: 900px){
    button{
        width: 50px;
        font-size: 15px;
        padding: 10px;
    }

}

@media (max-width: 800px){
    button{
        padding: 5px;
        font-size: 10px;
        
    }

}

/* project pages */
/*project 1*/

.title-project{
    margin-left: 10%;
}
.title-project p{
    margin-top: -40px;
    text-transform: uppercase;
    font-family: Quicksand;
}
.poster{
    width: fit-content;
    justify-content: center;
    align-items: c;
    margin: auto;
}
.poster img{
    max-width: 1000px;
    margin-top: 5%;
}

.overview, .background{
    margin-left: 10%;
    margin-top: 20px;
    width: 60%;
}
h2{
    color: skyblue;
    margin-bottom: 5px;
    font-family: Quicksand;
    
}

.meta-row {
    display: flex;
    gap: 4px;               
    align-items: flex-start; 
    margin-bottom: 8px;      
  }
  
  .overview-title {
    width: 55px;           
    color: skyblue;
    font-weight: 600;
    margin: 0;
  }
  
  .response {
    margin: 0;
    line-height: 1.8;
  }
  

.page{
    margin-left: 0;
    margin-top: 20px;
    color: black;
    background-color: transparent;
    border: solid 2px skyblue;
    width: 20%;
    padding: 10px;
}
.page:hover{
    background-color: skyblue;
}

.research{
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
}

.right{
    width: 50%;
    margin-left: 40%;
    align-items: end;
    justify-content: end;
    text-align:right;
    margin-right: 10%;
}

.left{
    width: 50%;
    margin-left: 10%;

}

.left h2, .right h2{
    margin-bottom: 20px;
}

img{
    max-width: 80%;
}

.wireframes h2{
    margin-left: 50%;
    margin-top: 2.5%;
}
.wireframe img{
    margin-left: 20%;
    max-width: 60%;
    margin-bottom: 2.5%;
}


@media (max-width: 1024px) {
    .overview, .background {
        max-width: 90%;
    }

}

@media (max-width: 768px) {
    .overview, .background {
        max-width: 90%;
        margin: 10px auto;
    }

    .poster img {
        max-width: 100%;
        margin-top: 10px;
    }

    .left, .right, .wireframe {
        margin: 20px auto;
        text-align: center;
                width: 90%;
            }
        
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .title-project h1, .research h1 {
        font-size: 2.5rem;
    }

    .title-project p {
        font-size: 0.9rem;
    }

    .page {
        padding: 8px;
        font-size: 0.9rem;
    }

    .left img, .right img{
        width: 90%;
    }
}

#back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 200px;
    left: 0.2px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    background-color: whitesmoke;
    border: 2px solid skyblue;
    border-radius: 50%;
    cursor: pointer;
   
}

#back-to-top-btn:hover {
    background-color: skyblue;
    transform: scale(1.1);
}