html {
  scroll-behavior: smooth;
}
/*Africa scroll animation */
svg {
  position: fixed;
  top: 50%;
  right: 1%;
  margin-top: -50px;
  margin-left: -50px;

  animation: rotate 1s linear infinite;
  animation-play-state: paused;
  animation-delay: calc(var(--scroll) * -1s);

  animation-iteration-count: 1;
  animation-fill-mode: both;
  z-index: 10;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

body{ 
    background-color: #f2eee9;
    
}

/* Image styling */
.highlight_cover {
    position:relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    z-index: 1;
    box-shadow: 0px 0px 30px rgba(150, 150, 150, 0.4);
    transition: 
        filter 0.4s ease,
        transform 0.4s ease,
        opacity 0.4s ease;
}

/* Hover effects */
.highlight_item:hover .highlight_cover {
    filter: blur(0px) brightness(0.9);
    transform: scale(1.05);
}

.highlights_container{
    display:flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2px;
    justify-content: center;
    align-items: stretch;
    margin:auto;
}
.highlight_item{
    display:flex;
    flex-direction: column;
    flex: 1;
    padding: 5px;
    aspect-ratio: 7/5;
}
.highlights_container a {
    display: flex;
    flex: 1 1 3000px;
    max-width: 33%;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 7/5;
}
.highlight_cover:hover{ 
    animation: pulse 2s infinite;
    cursor: url('../media/images/cursor.svg'), auto;

}
@keyframes pulse {
    0%,100% {transform: scale(1);}
    50% {transform: scale(1.05);}

}


.project_blurb{
    text-align: left;
    font-size: 1.6em;
}

/*Navigation section */
.navigation{
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width:95%;
    padding:10px 20px;
    border-radius: 10px;
    margin:3% auto;
}

.navbar{
    display:none;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    position: absolute;
    top: 80px;
    right: 5px;
    width: 150px;
    text-align: right;
    border-radius:10px;
}
.navbar.active{
    display:flex;
    max-height: 300px;
}
.navbar ul{
    list-style-type: none;
    display:flex;
    flex-direction: column;
    gap:20px;
}
.navbar ul li a{
    text-decoration: none;
}
.navbar ul li a:hover{
    color:#7D0B16;
    font-size: 1.02rem;
}
.navbar ul li a:active{
    color:#7D0B16;
}
.menu_icon_image{
    height: 25px;
    transition: animation 0.1s ease;
}
.menu_icon_image:hover{
    cursor: url('../media/images/cursor.svg'), auto;
    animation: pulse 2s infinite;
}
/*main page layout */
.content_container{
    display:flex;
    flex-direction: column;
    align-items: center;
    width:80%;
    margin:auto;
}
footer{
    display:flex;
    flex-direction: column;
    align-items: center;
    margin:auto;
    padding: 20px;
    width:60%;
}
@media (max-width: 768px) {
    .highlights_container a {
        max-width: 45%;
    }
    .navbar ul{
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .navbar{
        right:10px;
        margin: 10px;
        width:100px;
        padding: 5px;
    }
    .content_container{
        width:95%;
    }
    svg{
        width: 80px;
    }
}
@media (max-width: 600px) {
    .navbar{
        background-color: #f2eee9;
    }
}

/*----------------*/
a{
    text-decoration: none;
    color:#000;
}
.top_logo{
    max-height: 30px;
    transition: animation 0.2s ease;
}
.top_logo:hover{
    animation: pulse 2s infinite;
    cursor:url('../media/images/cursor.svg'), auto;
}
.big_logo{
    width:30%;
}
@media (max-width: 768px) {
    .big_logo{
        width:60%;
    }
}


/*About section */
.portrait{
    background-color:  rgba(255, 255, 255, 0.033);
    max-width:100%;
    border-radius: 10px;
    margin:auto;
    max-height: 70vh;
}
#kimalu{
    aspect-ratio: 9/16;
}
.bio{
    width:80%;
}
.bio .red{
    font-size:1.6rem;
}
.social_link {
    display: flex;
    align-items: center; 
    gap: 10px; 
    text-decoration: none;
    color: inherit;
    font-family: Urbanist, sans-serif;
    font-size: 1.1rem;

}
.social_icon{
    width:30px;
    margin: 10px 0px;
    transition: animation 0.2s ease;
}
.social_icon:hover{
    animation: pulse 2s infinite;
    cursor: url('images/cursor.svg'), auto;
}
.social_link:hover{
    color:#7D0B16;
}


.about_container{
    display:flex;
    flex-direction: column;
    align-items: center;
    width:100%;
    margin:auto;
    transition: 0.8s ease;
}

.intro{
    display:grid;
    grid-template-columns: 50% 50%;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-height: 70vh;
    margin-bottom: 50px;
    z-index: 5;
}

#black{
    background-color: #2d2d2d;
    margin:10px 0px 10px 0px;
    height: fit-content;
    padding: 5% 0% 0% 15%;
    margin: auto;
}
#black .intro div{
    width: 110%;
}
.intro h3{
    font-size: 3rem;
    font-family: 'Playfair Display SC', sans-serif;
    line-height: 1;
}
.intro h5{
    font-size: 1.2rem;
    font-family: Urbanist, sans-serif;
    font-weight: lighter;
    opacity: 0.5;
    line-height: 1;
}
.intro h4{
    font-size: 2rem;
    font-family: Urbanist, sans-serif;
    line-height: 1.2;
}
@media (max-width: 990px) {

    .intro{
        display: flex;
        flex-direction: column;
        width: 90%;
        max-height: none;
        gap: 30px;
        margin-bottom: 40px;
        padding-left: 5%;
    }

    .portrait{
        max-width: 100%;
        max-height: 95vh;
        object-fit: contain;
    }

    #kimalu{
        width: 100%;
        background-color: #2d2d2d;
    }

    .bio{
        width: 100%;
        font-size: 1rem;
        line-height: 1.6;
    }

    .intro h3{
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .intro h4{
        font-size: 1.5rem;
    }

    .intro h5{
        font-size: 1rem;
        line-height: 1.4;
    }

    .social_link{
        font-size: 1rem;
        gap: 12px;
    }

    .social_icon{
        width: 24px;
    }

    #black{
        padding-left: 10px;
    }

    #black .intro div{
        width: 100%;
    }

    .content_container{
        width: 100%;
    }
}

/*Paragraph styles*/
p,h4,li{
    font-family: Urbanist, sans-serif;
    font-weight: lighter;
    line-height: 1.5;
    color: #2d2d2d;
}
h1, h2, h3{
    font-family: 'Playfair Display SC', serif;
    color: #2d2d2d;
    font-weight: 400;
}
h3{
    font-size: 2.5em;
}
h4{
    font-size: 1.2em;
}
p{
    font-size: 1.1em;
}

.red{
    color:#7D0B16;
}


/*Individual project page */
.project_image{
    width:80%;
    height:auto;
    border-radius: 10px;
    max-height:90vh;
    object-fit: contain;
    /*box-shadow: 0px 0px 10px rgba(150, 150, 150, 0.2);*/
}
.process_section_container{
    display:flex;
    flex-direction: column;
    align-items: center;
    width:80%;
    margin:auto;
}
.process_details, .project_description{
    width:70%;
}
.process_section_head{
    text-align:center;
    margin:auto;
    margin-top: 10px;
}
.project_section_title{
    font-size: 1.5rem;
}
.slogans{
    text-align:center;
}
.process_image{
    width:100%;
    max-width: 800px;
    height:auto;
    border-radius: 10px;
    /*box-shadow: 0px 0px 5px rgba(150, 150, 150, 0.3);*/
    margin:auto;
    margin-bottom: 5px;
    max-height:90vh;
    object-fit: contain;
}

.flex_gallery {
    display: flex;
    flex-direction:row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.cols-1 > * { flex: 0 0 100%; }
.cols-2 > * { flex: 0 0 45%; }
.cols-3 > * { flex: 0 0 30%; }
.cols-4 > * { flex: 0 0 24%; }
.cols-5 > * { flex: 0 0 18%; }

.final_highlight_images{
    display:grid;
    grid-template-columns: 48% 48%;
    gap:5px;
    justify-content: center;
    width:100%;
}
.final_highlight_spreads{
    display:grid;
    grid-template-columns: 100%;
    gap:5px;
    justify-content: center;
    width:100%;
}

.process_image_sketch{
    width:80%;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(150, 150, 150, 0.4);
    margin:auto;
}
/*Page*/
body {
    background-color: #f2eee9;
    margin: 0;
    overflow-x: hidden;
}

.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
}

@keyframes bg-animation {
    0% { transform: translate(0,0) }
    10% { transform: translate(-5%,-5%) }
    20% { transform: translate(-10%,5%) }
    30% { transform: translate(5%,-10%) }
    40% { transform: translate(-5%,15%) }
    50% { transform: translate(-10%,5%) }
    60% { transform: translate(15%,0) }
    70% { transform: translate(0,10%) }
    80% { transform: translate(-15%,0) }
    90% { transform: translate(10%,5%) }
    100% { transform: translate(5%,0) }
}

/*TO TOP Button*/
#myBtn {
  display: none; /* Hidden by default */
  position: fixed; 
  width:50px;
  height: 50px;
  bottom: 20px;
  right: 30px; 
  z-index: 10; 
  border: none; 
  outline: none; 
  background-color: #7D0B16;
  padding: 10px; 
  border-radius: 50%; 
}
#myBtn img{
    width: 100%;
}

#myBtn:hover {
  background-color: #2d2d2d; 
  cursor: url('../media/images/cursor.svg'), auto;
}
/*background pattern*/
.pattern-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;

    background-image: url('../media/images/mtume_pattern_brown.svg');
    background-repeat: repeat;
    background-size: 250px; 
    opacity: 0.05; 
    animation: driftDiagonal 60s linear infinite;
}
@keyframes driftDiagonal {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 600px 600px;
    }
}
