/* Fonts */

@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');
@import url('https://fonts.googleapis.com/css?family=Karla:400|Spectral:400');

*,
::after,
::before {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

:root {
    /* Colors */
    --primary-100: #e2cfd5;
    --primary-200: #c5a0ab;
    --primary-300: #a87082;
    --primary-400: #8b4158;
    --primary-500: #6e112e;
    --primary-600: #580e25;
    --primary-700: #420a1c;
    --primary-800: #2c0712;
    --primary-900: #160309;

    --grey-50: #FAFAFA;
    --grey-100: #F4F4F5;
    --grey-200: #E4E4E7;
    --grey-300: #D4D4D8;
    --grey-400: #A1A1AA;
    --grey-500: #71717A;
    --grey-600: #52525B;
    --grey-700: #3F3F46;
    --grey-800: #27272A;
    --grey-900: #18181B;

    --black: #222;
    --white: #fff;

    /* Fonts */
    --headingFont: 'Spectral', serif;
    --bodyFont: 'Karla', sans-serif;
    --smallText: 0.7em;

    /* Rest of the vars */
    --backgroundColor: var(--grey-200);
    --textColor: var(--grey-700);
    --headerColor: var(--grey-800);
    --btnColor: var(--primary-500);
    --btnTxt: var(--white);
    --borderRadius: 0.25rem;
    --letter-spacing: 1px;
    --transition: 0.3s ease-in-out all;
    --max-width: 1120px;
    --fixed-width: 600px;

    /* Box Shadow */
    --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-5: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    background: var(--backgroundColor);
    font-family: var(--bodyFont);
    font-weight: 400;
    line-height: 1.75;
    color: var(--textColor);
}

p {
    margin-bottom: 1.5rem;
    max-width: 40em;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    margin-bottom: 1.38rem;
    font-family: var(--headingFont);
    font-weight: 600;
    line-height: 1.3;
    text-transform: capitalize;
    color: var(--headerColor);
}

h1 {
    margin-top: 0;
    font-size: 3.7rem;
}

h2 {
    font-size: 2.441rem;
}

h3 {
    font-size: 1.953rem;
}

h4 {
    font-size: 1.563rem;
}

h5 {
    font-size: 1.25rem;
}

small,
.text-small {
    font-size: var(--smallText);
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
    padding: 0;
}

ol {
    padding: 0;
}

.container {
    width: 50vw;
    border: 5px solid var(--primary-500);
    border-radius: var(--borderRadius);
    max-width: var(--max-width);
}

.img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Buttons */

.btn {
    cursor: pointer;
    color: var(--btnTxt);
    background: var(--btnColor);
    border: transparent;
    border-radius: var(--borderRadius);
    letter-spacing: var(--letter-spacing);
    padding: 0.375rem 0.75rem;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
    text-transform: capitalize;
    display: inline-block;
}

.btn:hover {
    background: var(--primary-700);
    box-shadow: var(--shadow-3);
}

.btn-hipster {
    color: var(--primary-500);
    background: var(--primary-200);
}


/* Title */

.title {
    text-align: center;
}

.title-underline {
    background: var(--primary-500);
    width: 7rem;
    height: 0.25rem;
    margin: 0 auto;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

/*
=============== 
Navbar
===============
*/

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;

}

.nav-center {
    width: 90vw;
    max-width: var(--max-width);
}

.nav-header {
    height: 134px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-header img {
    width: 200px;
    height: 100%;
}

.nav-btn {
    padding: 0.5rem 0.75rem;
}

.nav-btn i {
    font-size: 1.25rem;
    margin: 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.show-links {
    height: 320px;
}

.nav-link {
    display: block;
    color: var(--textColor);
    text-align: center;
    padding: 1rem 0;
    text-transform: capitalize;
    letter-spacing: var(--letterSpacing);
    transition: var(--transition);
    border-bottom: 2px solid var(--grey-600);
    color: var(--textColor);
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-500);
}

@media screen and (min-width:992px) {
    .nav-btn {
        display: none;
    }

    .navbar {
        height: auto;
    }

    .nav-center {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-header {
        height: auto;
    }

    .nav-links {
        flex-direction: row;
        height: auto;
        /* border: 2px solid var(--grey-500); */
        border-radius: 25px;
    }

    .nav-link {
        padding: 0 1rem;
        border-bottom: none;
        margin: .5rem 0;

    }

    .nav-link:not(.nav-link:nth-last-child(1)) {
        border-right: 1px solid var(--grey-400);
    }


}

/*
=============== 
Page
===============
*/
.page {
    width: 90vw;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    min-height: calc(100vh - 10rem);
    margin-bottom: 4rem;
}

/*
=============== 
Slider
===============
*/

.slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90vw;
    max-width: var(--max-width);
    margin: 2rem auto;
    height: 300px;
    background: url(../assets/slide/1.jpg) center/cover no-repeat;
    border-radius: var(--borderRadius);
}

.next-prev {
    color: var(--white);
    background: var(--grey-900);
    font-size: 1.8rem;
    padding: 0.4rem;
    border-radius: var(--borderRadius);
    opacity: 0.6;
    cursor: pointer;
    transition: var(--transition);
}

.next-prev:hover {
    background: var(--primary-500);
    opacity: .8;
}

.dots {
    align-self: flex-end;
    width: auto;
    height: 1rem;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.dot {
    cursor: pointer;
    display: block;
    background: var(--grey-800);
    opacity: 0.6;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    transition: var(--transition);
}

.dot:hover {
    opacity: 0.9;
}

.active-dot {
    background: var(--primary-500);
    opacity: 1;
}

.next {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.prev {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

@media screen and (min-width:992px) {
    .slider-container {
        height: 600px;
    }
}

/*
=============== 
Header
===============
*/

.page-header {
    width: 90vw;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.header-text {
    font-size: 1.2rem;
}

/*
=============== 
Projects
===============
*/
.projects-container {
    text-align: center;
    margin-bottom: 6rem;
}

.projects-container h3 {
    margin-bottom: 4rem;
}

.projects-list,
.project-gallery {
    display: grid;
    gap: 4rem 1.5rem;
    width: 90vw;
    max-width: var(--max-width);
}

.project,
.photo-container {
    position: relative;
    border-radius: var(--borderRadius);
    height: 320px;

}

.project-img {
    border-radius: var(--borderRadius);
    height: 100%;
}

.card {
    border-radius: var(--borderRadius);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transition: var(--transition);
}

.card h5 {
    color: var(--white);
    transition: var(--transition);
}

.card-btn {
    position: relative;
    padding-right: 1.2rem;
    border: 1px solid var(--white);
    background: transparent;
    color: var(--white);
    border-radius: 25px;
    transition: var(--transition);
}

.card-btn::after {
    content: ">";
    font-family: "Jua";
    font-size: .8rem;
    position: absolute;
    right: 7px;
    bottom: 7px;
    transition: .3s ease-in-out right;
}

.card-btn:hover {
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow-4);
    padding-right: 1.6rem;
}

.card-btn:hover.card-btn::after {
    right: 4px;
}

@media screen and (min-width:572px) {

    .projects-list,
    .project-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .project,
    .photo-container {
        position: relative;
        border-radius: var(--borderRadius);


    }
}

@media screen and (min-width:992px) {

    .projects-list,
    .project-gallery {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .project,
    .photo-container {
        height: 500px;

    }

    .card {
        width: 0;
        right: 100%;
        opacity: 0;
    }

    .project:hover .card {
        width: 100%;
        right: 0;
        opacity: 1;
    }

}

/*
=============== 
Footer
===============
*/

.page-footer {
    height: auto;
    background: var(--black);
}

.footer-container {
    width: 90vw;
    max-width: var(--max-width);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-footer p {
    color: var(--grey-300);
}

.page-footer i {
    font-size: 2rem;
    color: var(--primary-500);
}

.footer-logo {
    width: 200px;
    margin-bottom: 2rem;
}

.contact p a {
    color: inherit;
}

.contact-info p a {
    color: inherit;
}

@media screen and (min-width:992px) {
    .footer-container {
        flex-direction: row;
        gap: 8.5rem;
    }
}

/*
=============== 
About
===============
*/

.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about ul li {
    list-style-type: disc;
    list-style-position: inside;
}

/*
=============== 
Contact
===============
*/

.contact-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 4rem;
}

.contact-page iframe {
    height: 450px;
    width: 500px;
    max-width: 90vw;
}


@media screen and (min-width:992px) {
    .contact-page {
        flex-direction: row;
        justify-content: space-between;
    }
}

/*
=============== 
Projects Page
===============
*/

.tabs {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 4rem;
}

.tabs h4 {
    padding: 1rem 0;
    margin: 0;
    width: 50%;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--black);
}

.tabs h4:nth-child(1) {
    border-right: 1px solid var(--black);
}

.tabs h4:nth-child(2) {
    border-left: 1px solid var(--black);
}

.tabs h4:hover {
    background-color: var(--primary-500);
    color: var(--grey-100);
    border: 2px solid var(--primary-500);
}

.active-title {
    background-color: var(--black);
    color: var(--grey-100);
}

.tab {
    display: none;
    text-transform: uppercase;
}

.active-tab {
    display: grid;
    gap: 3rem 2rem;
}

.project-card h5 {
    text-decoration: underline;
}

.tab a {
    display: inline-block;
    padding: 2rem 1rem;
    box-shadow: var(--shadow-3);
}

.tab a {
    color: inherit;
}

@media screen and (min-width:572px) {
    .active-tab {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width:992px) {
    .active-tab {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/*
=============== 
Project Gallery
===============
*/

.overlay {
    border-radius: var(--borderRadius);
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    opacity: 0;
    justify-content: center;
    align-items: center;
    transition: .3s ease-in-out all;
}

.photo-container:hover .overlay {
    opacity: 1;
}

.icon {
    color: var(--primary-500);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;

}

.modal {
    display: none;
}

.opened-modal {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    overflow: auto;
    align-items: center;
}

.opened-modal i {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
}

.modal-img {
    max-width: 90vw;
    max-height: 90vh;
}