@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Tilt+Warp&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --text-color-1: #000042;
    --text-color-2: #495871;
    --text-color-3: #1976D2;
    --text-color-4: #2D3036;

    --container-bg-color: #D1E4F6;
    --title-line: #23308A;
    
    --padding: clamp(16px, calc(2.667px + 2.778vw), 24px);
}

body{
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    height: 100dvh;
}

header{
    width: 100%;
    height: 72px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    background: linear-gradient(to left, #172061, #090D24);
}

header nav{
    width: 100%;
    height: 100%;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    & .logo-container{
        height: 100%;
        position: relative;
        text-decoration: none;
    }
    & .logo-container img{
        position: absolute;
        left: 0;
        top: 14px;
    }

    & .logo-container .logo-title{
        height: 100%;
        margin-left: 79px;
        display: flex;
        align-items: center;
    }
    & .logo-container .logo-title p{
        font-size: clamp(16px, calc(9.333px + 1.389vw), 20px);
        font-weight: 700;
        color: white;
    }

    & .nav-links-container{
        display: none;
        gap: 16px;
        align-items: center;
    }

    & .nav-links-container .nav-link{
        text-decoration: none;
        color: white;
        transition: 0.1s ease-out;
    }
    & .nav-links-container .nav-link:hover{
        color:#1976D2;
    }
}

header nav .sidebar-btn{
    border-radius: 7px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;

    & svg{
        color: white;
    }
}
header nav .sidebar-btn:active{
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebar{
    inset-inline-start: unset;
    inset-inline-end: unset;
    border: transparent;
    margin: 0;
    max-height: 100dvh;
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: 70%;
    transform: translateX(100%);
    transition: transform 500ms ease-out,
                display 500ms allow-discrete,
                overlay 500ms allow-discrete;
}

#sidebar[open]{
    transform: translateX(0);

    @starting-style{
        transform: translateX(100%);
    }
}
#sidebar::backdrop{
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 500ms ease-out,
                display 500ms ease-out,
                overlay 500ms ease-out;
}

#sidebar[open]::backdrop{
    opacity: 1;

    @starting-style{
        opacity: 0;
    }
}

#sidebar .sidebar-container{
    height: 100%;
    width: 100%;
    padding: 16px;
}
#sidebar .sidebar-container .sidebar-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid #E6E6E6;
    margin-bottom: 20px;

    & p{
        font-size: 16px;
        font-weight: 700;
        color: var(--text-color-1);
    }

    & button{
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
        background-color: var(--container-bg-color);
        border: none;
    }
    & button svg{
        color: #000042;
    }
}

#sidebar .sidebar-container .sidebar-content{
    display: flex;
    flex-direction: column;

    & .sidebar-links{
        text-decoration: none;
        color: var(--text-color-1);
        font-size: 20px;
        padding: 16px 0;
    }
}
#sidebar .sidebar-container .sidebar-content a:not(:last-child){
    border-bottom: 1px solid #E6E6E6;
}

main{
    margin-top: 71px;
    width: 100%;
}

main #title-section .background-container{
    width: 100%;
    height: 170px;
    background-image: url('./Assets/mobile\ background.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 40px var(--padding) 24px var(--padding);

    & h1{
        font-size: clamp(24px, calc(-10.909px + 7.273vw), 40px);
        color: white;
        margin-bottom: 8px;
    }

    & p{
        font-size: clamp(14px, calc(9.636px + 0.909vw), 16px);
        color: white;
    }
}

main #photo-covers{
    padding: 24px var(--padding) 56px var(--padding);
}
main #photo-covers .path-link{
    margin-bottom: 48px;
    color: var(--text-color-2);
    & a{
        text-decoration: none;
        color: var(--text-color-2);
    }
    & a:hover{
        color: #1976D2;
    }
}

main #photo-covers .section-title{
    color: var(--text-color-1);
    font-size: 20px;
    font-weight: 600;
    position: relative;
    width: fit-content;
    margin-bottom: 40px;
}

main #photo-covers .section-title::after{
    position: absolute;
    content: "";
    left: 0;
    bottom: -4px;
    background-color: var(--title-line);
    width: 100%;
    height: 2px;
    border-radius: 40px;
}

main #photo-covers .covers-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid #E6E6E6;

    & a{
        text-decoration: none;
    }
}

main #photo-covers .covers-container .cover-card{
    box-shadow: 0 0 8px 0 #23318a60;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: 0.1s ease-out;
}
main #photo-covers .covers-container .cover-card:hover{
    scale: 1.01;
}

main #photo-covers .covers-container .cover-card .image-container{
    border-radius: 4px 4px 0 0;
    width: 100%;
    height: 300px;
    overflow: hidden;
    
    & img{
        width: 100%;
        height: 100%;
    }   
}

main #photo-covers .covers-container .cover-card .card-info h3{
    color: var(--text-color-1);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

main #photo-covers .covers-container .cover-card .card-info .date-container{
    display: flex;
    align-items: center;
    gap: 12px;

    & .icon-container{
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background-color: var(--container-bg-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1976D2;
    }

    & .date-info p{
        color: var(--text-color-2);
        font-size: 16px;
    }
}

footer{
    background: linear-gradient(to left, #172061, #090D24);
    padding: 40px var(--padding) 24px var(--padding);
    color: white;
}

footer .footer-info{
    border-bottom: 1px solid #1976D2;
    padding-bottom: 40px;
}

footer .footer-info .footer-logo{
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 56px;
}
footer .footer-info .footer-logo .footer-logo-title{

    & h5{
        font-size: clamp(20px, calc(26.667px + -1.389vw), 16px);
    }

    & p{
        font-size: clamp(16px, calc(22.667px + -1.389vw), 12px);
    }
}

footer .footer-info .footer-slogan{
    display: flex;
    align-items: center;
    justify-content: center;
    
    & h2{
        font-style: italic;
        font-weight: 200;
        text-align: center;
        font-size: 32px;
    }

}

footer .footer-info .footer-contact{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 56px;

    & p{
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }
}

footer .footer-rights{
    display: flex;
    flex-direction: column;
}

footer .footer-rights .footer-socials{
    padding: 24px var(--padding);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    & a .social-container{
        border: 1px solid white;
        border-radius: 60px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    & a .social-container:hover{
        background-color: rgba(255, 255, 255, 0.1);
    }
}

footer .footer-rights .rights p{
    font-size: 16px;
    text-align: center;
}

@media screen and (width > 480px){
    #sidebar{
        width: 50%;
    }
}

@media screen and (width > 770px) {
    header nav .nav-links-container{
        display: flex;
    }

    header nav .sidebar-btn{
        display: none;
    }

    
    main #title-section .background-container{
        background-image: url('./Assets/desktop-background.svg');
    }

    footer .footer-info{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    footer .footer-info .footer-contact p{
        justify-content: flex-start;
    }

    footer .footer-info .footer-slogan{
        justify-content: flex-start;
    }

    footer .footer-info .footer-slogan h2{
        width: 60%;
    }

    footer .footer-rights{
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
    }
}

@media screen and (width > 1024px){
    header nav{
        width: 1024px;
        margin: auto;
    }

    main #title-section .background-container{
        height: 200px;
    }

    main #title-section .background-container .title-container{
        width: 1024px;
        margin: auto;
        padding: 0 96px;
    }

    main #photo-covers{
        width: 1024px;
        margin: auto;

    }

    footer .footer-info, footer .footer-rights{
        width: 1024px;
        margin: auto;
    }

    footer .footer-info{
        flex-wrap: nowrap;
        align-items: center;
        padding-bottom: 16px;
    }

    footer .footer-info .footer-logo{
        order: 1;
        margin: 0;
    }
    footer .footer-info .footer-contact{
        margin: 0;
        order: 3;
    }
    footer .footer-info .footer-slogan{
        order: 2;
        justify-content: center;
    }
}