/* General Reset and Base Styles */
*, *:before, *:after {
    box-sizing: border-box;
}
html {
    
    font-size: 16px;
    scroll-behavior: smooth;
}
main{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.headtext{
    margin: 12% auto 0 auto;
    height: auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
    padding-right: 1rem;

}
.headtext p a{
    padding:0.5rem;
    border-right: 1px solid #f4f4f4;
    padding-right:0.5rem;
    background-color: transparent;
    color: #f4f4f4;
    font-size: 1.5rem;
}

p{
    color: #f4f4f4;
}
.slider-buttons{

    display: flex;
    gap: 1rem;
}

#prev, #next{
    width: 40px;
    height: 40px;
    background-color: #e6a8ff;
    border-radius: 50%;    
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #3f125b;
    padding-bottom: 0.5rem;
    border: #e6a8ff 0.5px solid;
    transition: all 0.3s ease;

}

#prev:hover, #next:hover{
    border: 1px solid #f4f4f4;
    background-color: transparent;
    color: #f4f4f4;
    cursor: pointer;
}

.project-info{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f4f4f4;
    padding: 0 4%;

}
.info-wrap{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 2rem;
    gap: 3rem;

}

.proj-client h1{
    font-weight: 400;
    font-size: 4rem;
    text-align: left;
    padding: 1rem;
}

.proj-client,.tools-used {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

#skills{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero {
    opacity: 0.5;
    margin: auto;
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #f4f4f4;

}
.hero::after {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background:  #e6a8ff;
    color: #3f125b;  
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
.hero:hover::after {
    opacity: 1;
}
.skill-item {
    width: 50px;
    height: 50px;
}
.skill-item {

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
}

.skill-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}

.skill-item:hover img {
    transform: scale(1.1);
}

.skill-item:hover {
    z-index: 1;
}

.skill-item.dim {
    opacity: 0.3;
}


.project{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: left;
    margin-bottom: 8rem;
}

.book{
    width: 100%;
    height: auto;
}

.overview,  .goals, .challenges, .deliverable{
    margin: auto;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.brand-identity{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
span{
    color: #e6a8ff;
    font-style: italic;
}
.project h2{
    color: #f4f4f4;
    font-family: pf-marlet-display, sans-serif;
    text-align: left;
    font-size: 2rem;
}
p{
    text-align: left;
    font-size: 1.4rem;
    line-height: 2rem;

}
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.work-images {
    display: flex;
    width: 400%; 
    transition: transform 0.5s ease-in-out;
}

.work-items {
    flex: 0 0 100%;
    height: 800px; 
    background-size: cover;
    background-position: center;
}

#prevBtn, #nextBtn {
    position: absolute;
    bottom: 2%;
    transform: translateY(-50%);
    background-color: #e6a8ff;
    border-radius: 50%;    
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem;
    color: #3f125b;
    padding-bottom: 0.5rem;
    border: #e6a8ff 0.5px solid;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;


}

#prevBtn:hover, #nextBtn:hover{
    border: 1px solid #e6a8ff;
    background-color: transparent;
    color: #e6a8ff;
    cursor: pointer;
}

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }


h5{
    margin-right: 2rem;
    font-family: "freight-neo-pro";
}

.colors:hover{
    transform: scale(1.2);
    cursor: pointer;
}
.colors {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 2px;
    cursor: pointer;
    transform: scale(1);
    transition: all 0.5 ease-in-out;
}

/* Tooltip styling */
.colors::after {
    content: attr(data-title);
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #e6a8ff;
    color: #3f125b;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.colors:hover::after {
    opacity: 1;
}

.deliverable ul {
    font-size: 1.4rem;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 50px 10px; 
    list-style-type: none;
    padding: 0;
    margin-bottom: 2rem;
  }
  
.deliverable ul li {
    display: contents; 
    line-height: 2rem;
}

.deliverable-header {
    font-weight: bold;
}

.deliverable ul li span.deliverable-header {
    display: inline-block;
    width: 100%; 
}
.deliverable-images{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
    position: relative;

}
.deliverable-images img{
    width: 100%;
    cursor: pointer;
}
.brand-info{
    width: 100%;
    display: flex;
    gap: 0.5rem;
    
}
  
.brandCard{
    border: 5px solid #a586b3;
    width: 100%;
    padding: 0.1rem;
    display: flex;
    gap: 1rem;
    background-color: #fff;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    justify-content: space-around;
    
}

.brandCard.dim {
    opacity: 0.5;
}

.brandCard.active {
    opacity: 1;
}
.brand-font p{
    font-size: 1rem;
    font-size: 2rem;
    color: #3f125b;
}

.brand-color, .brand-font{
    width: 100%;
    text-align: left;
    padding: 0.5rem;
    display: flex;
    gap: 1rem;
    color: #3f125b;
    align-items: center;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
}
.brand-color h5, .brand-font h5{
    text-align: left;
}
.colors{
    width: 4rem;
    height: 4rem;
}

@media screen and (max-width: 599px) {

    .headtext {
        padding: 0;
        margin: 45% auto 0 auto;
        align-items: center;
        justify-content: center;

    }
    .headtext p a{
        width: auto;
        font-size: 0.99rem;
       
    }

    #prev, #next{
        width: 35px;
        height: 35px;
    }

    .info-wrap{
        width: 100%;
        align-items: center;
        justify-content: center;

    }
    .proj-client,.tools-used {
        align-items: center;
        gap: 1rem;
    }
    h1{
        font-size: 1.5rem;

    }
    .proj-client h1 {
        font-size: 1.5rem;
    }
    .skill-item {
        width: 40px;
        height: 40px;
    }

    .hero {
        height: 40vh;
        background-size: cover;
    }
    .project{

        gap: 1.5rem;

    }
    .project-info{
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 1rem;
    }
    .tools-used{
        flex-direction: column;
    }

    .proj-client h2,.tools-used h2{
        font-size: 1.2rem;
    }
    .proj-client p{
        font-size: 1.5rem;
    }
    .brand-info{
        flex-direction: column;
        gap: 0.5rem;
    }
    .brandCard{
        flex-direction: column;
        align-items: center;

    }
    .colors{
        width: 1.5rem;
        height: 1.5rem;
    }
    .brand-font p{
        line-height: 1rem;
        font-size: 1rem;
    }

    .brand-color, .brand-font{
        justify-content: flex-start;
        width: 100%;
        font-size: 1rem;
        align-items: flex-start;
    }

    .overview, .goals, .challenges, .deliverable{
        flex-direction: column;
        text-align: center;
    }

    h2{        
        font-size: 1.5rem;
    }
    .deliverable-images{
        flex-direction: column;
    }
    .deliverable ul {
        grid-template-columns: 1fr;
        gap: 10px; 
    
      }
    .deliverable ul li {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    #prevBtn, #nextBtn{
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    p{
        font-size: 1rem;
        line-height: 1.5rem;

    }
}

@media screen and (min-width: 600px) and (max-width: 768px) {
    .hero {

        height: 80vh;
    
    }
    .proj-client h1 {
        font-size: 2.5rem;
    }
    .headtext {
        padding-right: 1rem;
        margin: 18% auto 0 auto;

    }

    
    .deliverable ul li {
        line-height: 1.5rem;
    }
    .deliverable ul {
        grid-template-columns: 1fr;
        gap: 10px; 
    
      }
    h1{
        font-size: 2rem;

    }
    .project-info{
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }
    .overview, .goals, .challenges, .deliverable{
        flex-direction: column;
        text-align: center;
    }
    .brandCard{
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

    }
    
    .colors{
        width: 1.5rem;
        height: 1.5rem;
    }
    .brand-font p{
        line-height: 1rem;
        font-size: 1rem;
    }
    .brand-color, .brand-font{
        width: 100%;
        font-size: 1rem;
        align-items: flex-start;
    }
    .deliverable-images{
        flex-direction: column;
    }

    
}
/* For mobile screens */
@media screen and (min-width: 769px) and (max-width:1024px){
    .hero {

        height: 80vh;
    
    }
    .headtext {
        margin: 18% auto 0 auto;

    }
    .proj-client h1 {
        font-size: 2.5rem;
    }
    h1{
        font-size: 2.5rem;

    }

    .colors{
        width: 1.5rem;
        height: 1.5rem;
    }
    .brand-font p{
        line-height: 1rem;
        font-size: 1rem;
    }
    .brand-color, .brand-font{
        width: 100%;
        font-size: 1rem;
        align-items: flex-start;
    }
}