/* <!-- ================= GOOGLE FONT ================= --> */
@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* <!-- ================= VARIABLES CSS ================= --> */
:root {
    --header-height: 3.5rem;

    /* <!-- ======== Colors ======== --> */
    /* Color mode HSL (Hue, Saturation, Lightness) */
    /* --body-color: hsl(169, 85%, 81%);
    --head-color: hsl(169, 85%, 81%);
    --text-color: hsl(277, 38%, 19%);
    --black-color: hsl(0, 0, 0);
    --white-color: hsl(0, 0%, 100%);
    --text-bg-color: hsl(169, 39%, 61%);
    --home-text-color: hsl(277, 38%, 19%);
    --text-color-light: hsl(0, 0%, 81%);
    --container-color: hsl(169, 65%, 73%);
    --footer-color: hsl(169, 85%, 81%);
    --first-color: hsl(0, 0, 0);
    --first-color: hsl(0, 0%, 87%); */

    /* <!-- ======== Colors ======== --> */
    /* Color mode HSL (Hue, Saturation, Lightness) */
    --body-color: hsl(204, 100%, 84%);
    --head-color: hsl(193, 100%, 91%);
    --text-color: hsl(208, 100%, 18%);
    --black-color: hsl(0, 0, 0);
    --white-color: hsl(0, 0%, 100%);
    --text-bg-color: hsl(200, 62%, 51%);
    --home-text-color: hsl(277, 38%, 19%);
    --text-color-light: hsl(0, 0%, 81%);
    --container-color: hsl(193, 100%, 91%);
    /* --container-color: hsl(204, 100%, 84%); */
    --footer-color: hsl(193, 100%, 91%);
    --first-color: hsl(0, 0, 0);
    --first-color: hsl(0, 0%, 87%);
    --scrollup-color: hsl(200, 62%, 51%);
    --scrollup2-color: hsl(208, 100%, 18%);
    --navcolor-light: hsl(0, 0%, 69%);

    /* <!-- ======== Font & Typography ======== --> */
    /* 5rem = 8px | 1rem = 16px */
    --body-font: "Montserrat", sans-serif;
    --biggest-font-size: 2rem;
    --h1-font-size: 1.75rem;
    --hd-font-size: 1.50rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;



    /* <!-- ======== Font weight ======== --> */
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* <!-- ======== z index ======== --> */
    --z-tooltip: 10;
    --z-fixed: 100;

}

/* <!-- ================= RESPONSIVE TYPOGRAPHY ================= --> */
@media screen and (min-width: 4.5rem) {
    :root {
        --biggest-font-size: 2.5rem;
        --h1-font-size: 2rem;
        --hd-font-size: 1.75rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;

    }
}

/* <!-- ================= BASE ================= --> */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    transition: background-color .4s;
    /* For dark mode */
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-weight: var(--font-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* <!-- ================= THEME ================= --> */
.nav__buttons {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    margin-top: 50px;
}

.change-theme {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
    transition: color .3s;
}

/* <!-- ================= VARIABLES DARK THEME ================= --> */
body.dark-theme {
    --body-color: hsl(277, 38%, 19%);
    --head-color: hsl(277, 38%, 19%);
    --text-color: hsl(0, 0%, 100%);
    --black-color: hsl(0, 0%, 0%);
    --white-color: hsl(0, 0%, 100%);
    --text-bg-color: hsl(170, 38%, 73%);
    --home-text-color: hsl(277, 38%, 19%);
    --text-color-light: hsl(0, 12%, 24%);
    --container-color: hsl(277, 42%, 12%);
    --footer-color: hsl(277, 38%, 19%);
    --first-color: hsl(0, 5%, 88%);
    --first-color: hsl(0, 0%, 87%);
    --scrollup-color: hsl(170, 38%, 73%);
    --scrollup2-color: hsl(277, 38%, 19%);
}

/* <!-- ================= Color changes in some parts of the website, in dark theme ================= --> */

.dark-theme .nav__logo {
    content: url(/img/Logo/pd\ Logo.png);
}

.dark-theme .shadow-header {
    box-shadow: 0 1px 12px hsla(0, 0%, 0%, .6);
}

.dark-theme .section__title-1::after .dark-theme .section__title-2::after {
    background-color: hsla(14, 70%, 50%, .2);
}

.dark-theme :is(.home__arrow, .home__line, .about__line) {
    filter: none;
}

.dark-theme .home__description b {
    background: linear-gradient(90deg hsla(14, 80%, 50%, .3) hsla(14, 80%, 50%, 0));
}

.dark-theme :is(.button__ghost, .services__icon i) {
    color: var(--text-color);
}

.dark-theme .projects__card:hover {
    background-color: var(--container-color);
}

.dark-theme .contact__label {
    background-color: var(--text-bg-color);
}

.dark-theme :is(.contact__mail, .contact__input) {
    background-color: var(--text-bg-color);
}

.dark-theme .footer {
    background-color: var(--footer-color)
}

.dark-theme::-webkit-scrollbar {
    background-color: var(--container-color);
}

.dark-theme::-webkit-scrollbar-thumb {
    background-color: var(--body-color);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
    background-color: var(--body-color);
}

.dark-theme :is(.contact__social-description-1, .contact__social-description-2) {
    color: var(--text-color);
}

/* <!-- ================= REUSABLE CSS CLASSES ================= --> */
.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 4rem 2rem;
}

.section__title-1,
.section__title-2 {
    position: relative;
    font-size: var(--h2-font-size);
    width: max-content;
    margin: .75rem auto 2rem;
}

.section__title-1 span,
.section__title-2 span {
    z-index: 5;
    position: relative;
}

.section__title-1::after,
.section__title-2::after {
    content: "";
    width: 40px;
    height: 28px;
    /* background-color: bisque; */
    position: absolute;
    top: -4px;
    right: -8px;
}

.section__title-2::after {
    top: initial;
    bottom: -4px;
}

.geometric-box {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--first-color);
    rotate: -30deg;
}

.geometric-box::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid var(--black-color);
    left: -5px;
    top: -5px
}

.main {
    overflow: hidden;
    /* For animation ScrollReveal */
}

/* <!-- ================= HEADER & NAV ================= --> */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--head-color);
    padding-bottom: 3rem;
    z-index: var(--z-fixed);
    transition: box-shadow .4s, background-color .4s;
}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.nav__logo {
    margin-top: 50px;
    width: 80px;
    display: flex;
    column-gap: .5rem;
    align-items: center;
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
    cursor: pointer;
}

/* .nav__logo, */
.nav__toggle {
    /* margin-top: 50px; */
    width: 32px;
    height: 32px;
    /* background-color: var(--white-color); */
    color: var();
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: var(--font-medium);
    font-weight: var(--font-semi-bold);
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
    .nav__menu {
        position: fixed;
        top: -110%;
        left: 0;
        background-color: hsla(0, 0%, 0%, .55);
        width: 100%;
        padding-block: 1.8rem 5rem;
        text-align: center;
        backdrop-filter: blur(8px);
        transition: top .4s;
    }
}

.nav__title,
.nav__name,
.nav__close {
    color: var(--white-color);
}

.nav__title,
.nav__name,
.nav__close {
    margin-top: 25px;
    display: block;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 3.5rem;
}

.nav__name {
    position: relative;
    width: max-content;
    margin: 0 auto 3rem;
    font-size: var(--h2-font-size);
}

.nav__name::after,
.nav__name::before {
    content: "";
    width: 40px;
    height: 1px;
    background-color: var(--text-color-light);
    position: absolute;
    top: 50%;
    left: -4rem;
}

.nav__name::before {
    left: initial;
    right: -4rem;
}

.nav__list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem
}

.nav__link {
    position: relative;
    color: var(--navcolor-light);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    transition: color .3s;
}

.nav__link::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--white-color);
    position: absolute;
    left: 0;
    bottom: -.5rem;
    transition: width .3s;
}

.nav__link:hover {
    color: var(--white-color);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__close {
    position: absolute;
    font-size: 1.5rem;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
}

/* Show menu */
.show-menu {
    top: 0;
}

/* Add shadow header */
.shadow-header {
    box-shadow: 0 1px 16px hsla(0, 0%, 0%, 25%);
}

/* Active Link */
.active-link {
    color: var(--white-color);
}

.active-link::after {
    width: 0%;
}

/* Animation Scroll Icon */
@keyframes scroll-down {
    0% {
        transform: translateY(-1rem);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(.6rem);
        opacity: 0;
    }
}

/* <!-- ================= BUTTONS ================= --> */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .7rem;
}

.button {
    background-color: var(--text-bg-color);
    padding: 0.9rem 1.5rem;
    color: var(--home-text-color);
    border-radius: 10rem;
    font-weight: var(--font-medium);
    transition: background-color .4s;
}

.button i {
    font-size: 1.25rem;
}

.button:hover {
    background-color: var(--white-color);
}

.pbuttons {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .7rem;
}

.pbuttons {
    background-color: var(--text-bg-color);
    padding: 0.9rem 1.5rem;
    color: var(--home-text-color);
    /* border-bottom-left-radius: 3rem; */
    /* border-bottom-right-radius: 3rem; */
    font-weight: var(--font-bold);
    transition: background-color .4s;
}

.pbuttons:hover {
    background-color: var(--white-color);
}

/* -- */
.cbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .7rem;
}

.cbutton {
    background-color: var(--home-text-color);
    padding: 0.9rem 1.5rem;
    color: var(--text-bg-color);
    border-radius: 10rem;
    font-weight: var(--font-medium);
    transition: background-color .4s;
}

.cbutton i {
    font-size: 1.25rem;
}

.cbutton:hover {
    color: var(--home-text-color);
    background-color: var(--white-color);
}


/* Main Projection Section */
.intro {
    /* background: #e9ecef; */
    padding-top: 45px;
    text-align: center;
}
.intro h2 {
    margin: 0 0 20px;
    font-size: 21px;
    color: var(--text-color);
}

.intro .description {
    font-size: 13px;
    color: var(--text-color);
}

/* Gallery Section */
.gallery {
    padding: 20px 0;
    text-align: center;
    margin-bottom: 2rem;
}

.gallery h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, center, minmax(450px, 1fr));
    gap: 40px;
}

.gallery-grid img {
    width: 100%;
  }

/* Details Section */
/* .details {
background: #f1f1f1;
padding: 40px 0;
} */

.details h3 {
    text-align: center;
    font-size: 17px;
    margin-bottom: 18px;
}

.details ul {
    list-style: none;
    padding: 0;
    font-size: 18px;
}

.details ul li {
    text-align: center;
    font-size: 17px;
    margin: 40px 0;
}

.details ul li strong {
    color: var(--text-color);

}

.subtitle {
    text-align: center;
    font-size: 17px;
    margin-top: 20px;
    margin-bottom: -20px;
}


/* <!-- ================= PROJECTS ================= --> */
.projects {
    background-color: var(--container-color);
}

.projects__title-2 {
    margin-top: 2rem;
    font-size: large;
    text-align: center;
}

.projects__container {
    row-gap: 2rem;
}

.projects__card {
    padding: 1rem 1rem 2rem;
    transition: background-color .4s;
}

.projects__image {
    position: relative;
    margin-top: .75rem;
}

.projects__button {
    position: absolute;
    right: 1rem;
    bottom: -1.5rem;
    padding: 1rem;
}

.projects__content {
    text-align: center;
    margin-bottom: 1.25rem;
}

.projects__subtitle {
    position: relative;
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    margin-bottom: .25rem;
    padding-left: 1.75rem;
}

.projects__subtitle::after {
    content: '';
    width: 20px;
    height: 1px;
    background-color: var(--text-bg-color);
    position: absolute;
    top: 50%;
    left: 0;
}

.projects__title {
    font-size: var(--h3-font-size);
    margin-bottom: .25rem;
}

/* .projects__buttons{
    display: flex;
    align-items: center;
    column-gap: 5rem;
} */

.projects__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: .5rem;
    color: var(--text-bg-color);
    margin: 3rem;
}

.projects__card:hover {
    background-color: var(--container-color);
}

/* <!-- ================= FOOTER ================= --> */
.footer {

    margin-top: 1rem;
    /* background-color: var(--body-color); */
}

.footer__container {
    /* background-color: var(--container-color); */
    padding-block: 3rem 4rem;
    row-gap: 2.5rem;
}

.footer__links {
    display: flex;
    justify-content: center;
    column-gap: 2rem;
}

.footer__link {
    color: var(--text-color);
    transition: color .4s;
}

.footer__link:hover {
    color: var(--white-color);
}

.footer__copy {
    color: var(--text-color);
    font-size: var(--small-font-size);
    text-align: center;
}

.footer__copy a {
    color: var(--text-color);
    font-weight: var(--font-bold);
}


/* <!-- ================= SCROLL BAR ================= --> */
::-webkit-scrollbar {
    width: .6rem;
    border-radius: .5em;
    background-color: hsl(276, 25%, 25%);
}

::-webkit-scrollbar-thumb {
    border-radius: .5em;
    background-color: hsl(276, 34%, 17%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(269, 42%, 13%);
}

/* <!-- ================= SCROLL UP ================= --> */
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: var(--scrollup-color);
    display: inline-flex;
    padding: 8px;
    font-size: 1.25rem;
    color: var(--scrollup2-color);
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s, background-color .4s;
}

.scrollup:hover {
    transform: translateY(-.5rem);
}

/* SHOW SCROLL UP */
.show-scroll {
    bottom: 3rem;
}

/* <!-- ================= BREAKPOINTS ================= --> */
/* For small devices */
@media screen and (max-width: 340px) {
        .container {
        margin-inline: auto;
    }
    
    .nav{
        padding: 20px;
    }
}

/* For medium devices */
@media screen and (min-width: 576px) {

    .projects__container {
        justify-content: center;
    }

    /* Intro Section */

     .intro {
        padding-top: 3rem;
        padding-bottom: 0.1rem;
        text-align: center;
    }

    .intro h2 {
        /* margin: 0 0 20px; */
        font-size: 28px;
        color: var(--text-color);
    }

    .intro .description {
        font-size: 15px;
        color: var(--text-color);
    }

    /* Gallery Section */
  .gallery {
        padding: 20px 0;
        padding-top: 0;
        text-align: center;
    }


    .gallery h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
        gap: 50px;
    }

    .gallery-grid img {
        width: 100%;
        /* border-radius: 13px; */
        /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    }

    /* Details Section */
    /* .details {
    background: #f1f1f1;
    padding: 40px 0;
} */

    .details h3 {
        text-align: center;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .details ul {
        list-style: none;
        padding: 0;
        font-size: 18px;
    }

    .details ul li {
        margin: 10px 0;
    }

    .details ul li strong {
        color: var(--text-color);

    }

    .subtitle {
        text-align: center;
        font-size: 17px;
        margin-top: 50px;
        margin-bottom: -2rem;
    }
}

/* For large devices */
@media screen and (min-width: 1150px) {
    .container {
        margin-inline: auto;
    }

        nav.container{
        padding-left: 20px;
        padding-right: 20px;
    }

    .section {
        padding-block: 7rem 2rem;
    }

    .section__title-1::after,
    .section__title-2::after {
        width: 70px;
        height: 48px;
    }

    .geometric-box {
        transform: scale(1.2)
    }

    .nav {
        height: calc(var(--header-height) + 0.5rem);
        column-gap: 4rem;
    }

    .nav__close,
    .nav__toggle,
    .nav__title,
    .nav__name {
        display: none;
        padding: auto;
    }

    .nav__list {
        flex-direction: row;
        column-gap: 4rem;
    }

    .nav__menu {
        margin-left: auto;
    }

    .nav__link {
        color: var(--text-color);
        font-size: var(--normal-font-size);
        font-weight: normal;
    }

    .nav__link:hover {
        color: var(--text-bg-color);
    }

    .nav__link::after {
        background-color: var(--text-bg-color);
    }

    .active-link {
        color: var(--title-color);
    }

    .change-theme {
        color: var(--text-color);
    }

    .change-theme:hover {
        color: var(--text-color);
    }

    .button__ghost {
        padding: .75rem;
    }

    .button__ghost i {
        font-size: 1.5rem;
    }

    .section__title-1 {
        margin-top: -2rem;
        margin-bottom: -1rem;
    }

    .projects__container {
        /* background-color: var(--container-color); */
        padding: 25rem;
        grid-template-columns: repeat(1, 1200px);
        padding-block: 2rem 1rem;

    }

    .projects__card {
        padding: 1.25rem 3.25rem 2.5rem;
    }

    .projects__image {
        margin-bottom: 1rem;
    }

    .projects__content {
        margin-bottom: 2rem;
    }

    .projects__button {
        right: 1.25rem;
    }

    .footer__container {
        padding-block: 5.5rem;
        grid-template-columns: repeat(2, max-content);
        justify-content: space-between;
    }

    .footer__links {
        column-gap: 3rem;
        order: 1;
    }



    /* Intro Section */
    .intro {
        padding: 0px 0;
        text-align: left;
    }


    .intro h2 {
        margin: 0 0 20px;
        font-size: 28px;
        color: var(--text-color);
    }

    .intro .description {
        font-size: 15px;
        color: var(--text-color);
    }

    /* Gallery Section */
    .gallery {
        padding: 20px 0;
        text-align: center;
    }

    .gallery h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
        gap: 50px;
    }

    .gallery-grid img {
        width: 100%;
   }

    /* Details Section */
    /* .details {
    background: #f1f1f1;
    padding: 40px 0;
} */

    .details h3 {
        text-align: center;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .details ul {
        list-style: none;
        padding: 0;
        font-size: 18px;
    }

    .details ul li {
        margin: 10px 0;
    }

    .details ul li strong {
        color: var(--text-color);

    }

    .subtitle {
        text-align: center;
        font-size: 21px;
        margin-top: 20px;
        margin-bottom: -20px;
    }
}