@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&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    align-items: center;
}

main {
    padding: 4.5rem 15rem 0 15rem;
    
}

footer {
    background: hsl(225, 8%, 15%);
    padding: 3rem 0 1.5rem;
    text-align: center;
}

a {
  color: inherit;
  font-weight: 500;
  text-decoration: none; /* Optional: Removes the default underline */
}

h1, h2, h3, h4 {
    color: hsl(225, 8%, 15%);
    font-weight: 600;
}

p{
    padding: 1rem 0;
}

ul {
    list-style-type: none;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.header {
    position: fixed;
    width: 100%;
    height: 4.5rem;
    box-sizing: border-box;
    padding: 0 15rem;
    background: white;
    color: hsl(225, 8%, 15%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.nav {
    max-width: 968px;
    justify-content: space-between;
    display: flex;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    padding: 0 1rem;
}

.nav_logo {
    padding: 4px;
}

.nav_list {
    display: flex;
    flex-direction: row;
    column-gap: .5rem;
}

.nav_list_grid {
    display: grid;
    grid-template-columns: auto auto;
    
    align-items: center;
}   

.nav_items {
    margin: 0 5px;
    padding: 4px;
}

.nav_link {
    text-decoration: none;
    font-size: .875rem;
}

.nav_btns {
    padding: 4px;
}

.change-theme {
    border: 1px solid gray;
    padding: 5px 7px;
    border-radius: 30%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: .3s;
}

.home {
    display: block;
    height: 80vh;
    align-items: center;
}

.section {
    padding: 6rem 0 4rem 0;
    text-align: center;
}

.section_title {
    font-size: 2rem;
    color: hsl(225, 8%, 15%);
}

.section_subtitle {
    display: block;
    font-size: .875rem;
    margin-bottom: 2rem;
    color: hsl(225, 8%, 45%);
}

.hero {
    height: 80vh;
    display: grid;
    grid-template-columns: max-content 1fr 1fr;
    align-items: center;
    padding: 6rem 4rem 0 4rem;
}

.social-links {
    display: grid;
    grid-template-columns: max-content;
    row-gap: 1rem;
    padding-right: 5rem;
}

.home__social-icon {
    font-size: 1.2rem;
    color: hsl(225, 8%, 15%);
}

.details {
    display: block;
    grid-template-columns: max-content 1fr 1fr;
    padding-left: 2rem;
}

.person_image {
    display: flex;
    height: 250px;
    justify-content: center;
    border-radius: 10px;
}

.scroll {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.btn {
    padding: 12px 20px;
    border: 2px solid turquoise;
    border-radius: 12px;
    background: turquoise;
    color: white;
    text-shadow: 1px 1px 5px rgb(65, 64, 64);
    font-weight: 600;
    font-family: inherit;
}
.btn:hover {
    background: transparent;
    cursor: pointer;
    border: 2px solid turquoise;
    color: black;
    transition: .5s;
    text-shadow: none;
}

.about_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 5rem;
    padding: 0 4rem;
}

.about_image {
    margin-top: 2cap;
    width: 350px;
    justify-self: center;
    align-self: center;
    border-radius: 10px;
}

.img {
    width: 100%;
    border-radius: 10px;
}

.about_description {
    text-align: left;
    padding-bottom: 2.5rem;
    color: hsl(225, 8%, 45%);
}

.about_numbers {
    display: flex;
    justify-content: space-evenly;
}

.about_info_title, .about_info_name {
    display: block;
    text-align: center;
}

.about_info_title {
    font-size: 1.5rem;
    color: hsl(225, 8%, 15%);
    font-weight: 600;
}

.about_info_name {
    font-size: .813rem;
    color: hsl(225, 8%, 45%);
}

.about_button {
    display: flex;
    justify-content: center;
    align-items: space-between;
    margin-top: 4rem;
}

.skills_container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skills_header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

.skills_icon, .skills_arrow {
    margin-right: .75rem;
    font-size: 2rem;
    color: turquoise;
}

.skills_arrow {
    margin-left: auto;
}

.skill_title {
    font-size: 1.25rem;
    color: hsl(225, 8%, 15%);
}

.skill_subtitle {
    font-size: .875rem;
    color: hsl(225, 8%, 45%);
}

.skills_open .skills_arrow,
.skill_open .skills_arrow {
    transform: rotate(-180deg);
    transition: .3s;
}

.skill_close .skills_arrow {
    transform: rotate(0deg);
    transition: .3s;
}

.skills_open .skills_list,
.skill_open .skills_list {
    height: auto;
    margin-bottom: 2.5rem;
}

.skills_close .skills_list,
.skill_close .skills_list {
    height: 0;
    overflow: hidden;
}

.skills_titles {
    display: flex;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.skills_name {
    font-size: 1rem;
    font-weight: 500;
}

.skills_bar, .skills_percentage {
    height: 5px;
    background: hsl(180, 2%, 79%);
    border-radius: .25rem;
}

.skills_html {
    width: 90%;
}

.skills_css {
    width: 85%;
}
.skills_js{
    width: 70%;
}
.skills_react {
    width: 35%;
}
.skills_php {
    width: 85%;
}
.skills_go {
    width: 85%;
}
.skills_percentage {
    display: block;
    height: 100%;
    background: turquoise;
    border-radius: .25rem;
}

.certificate_data {
    display: flex;
    justify-content: center;
    padding-top: 4rem;
}

.certificate_item {
    padding: 0 4rem;
}

.service_container {
    grid-template-columns: repeat(3, 1fr);
}

.services_content {
    padding: 4rem 0;
    position: relative;
    background-color: #fff;
    border: .25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.services_icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: turquoise;
}

.services_title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.btn--flex {
    display: inline-flex;
    align-items: center;
}
.btn--link {
    padding: 0;
    background: transparent;
    color: turquoise;
}
.btn--small {
    padding: .75rem 1rem;
}
.btn_icon {
    font-size: 1.25rem;
    margin-left: .5rem;
    transition: .3s;
}
.services_btn{
    cursor: pointer;
    font-size: .875rem;
}
.services_modal{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.services_modal.active-modal {
    opacity: 1;
    visibility: visible;
}

.services_modal h4 {
    color: hsl(225, 8%, 15%);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.services_modal ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.services_modal ul li {
    margin-bottom: .5rem;
    color: hsl(225, 8%, 45%);
}

.services_modal-content {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: left;
}

.services_modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: turquoise;
}

.services_modal-close:hover {
    color: hsl(174, 72%, 30%);
}

.portfolio_container {
    overflow: initial;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 0;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 2rem;
    border-radius: 3%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    gap: 2rem;
}

.swiper-wrapper img {
    width: 50px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.swiper-wrapper div {
    text-align: left;
    flex: 1;
}

.swiper-wrapper p {
    color: hsl(225, 8%, 45%);
    margin-bottom: 1rem;
}

.swiper-wrapper button {
    padding: 5px 10px;
    background: turquoise;
    color: white;
    border: 2px solid turquoise;
    border-radius: 5px;  
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.swiper-wrapper button:hover {
    background: transparent;
    color: turquoise;
}

.portfolio_container > div:first-child {
    margin-bottom: 3rem;
}

.portfolio_container > div:nth-child(2),
.portfolio_container > div:nth-child(3) {
    display: inline-block;
    margin: 0 1rem;
}

.portfolio_container > div:nth-child(2) button,
.portfolio_container > div:nth-child(3) button {
    padding: 8px 16px;
    width: 6rem;
    background: turquoise;
    color: white;
    border: 2px solid turquoise;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.portfolio_container > div:nth-child(2) button:hover,
.portfolio_container > div:nth-child(3) button:hover {
    background: transparent;
    color: turquoise;
}

.portfolio_container > div:nth-child(4) {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* Swiper pagination dots */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: hsl(225, 8%, 45%);
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: turquoise;
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

/* Responsive design for portfolio */
@media screen and (max-width: 768px) {
    .swiper-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .swiper-wrapper img {
        width: 100%;
        max-width: 280px;
    }
    
    .swiper-wrapper div {
        text-align: center;
    }
}

.portfolio_content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

/* ===== PROJECT IN MIND ===== */
.project_in_mind {
    background: linear-gradient(135deg, hsl(174, 72%, 40%), hsl(174, 72%, 56%));
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    text-align: center;
}

.project_in_mind-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.project_btn {
    background: #fff;
    color: hsl(174, 72%, 40%);
    border-color: #fff;
    text-shadow: none;
}
.project_btn:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* ===== CONTACT ===== */
.contact_container {
    grid-template-columns: 1fr 1.5fr;
    column-gap: 3rem;
    padding: 0 4rem;
    text-align: left;
}

.contact_info {
    display: grid;
    row-gap: 1rem;
}

.contact_card {
    background: #fff;
    border-radius: .5rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact_card-icon {
    font-size: 2rem;
    color: turquoise;
    margin-bottom: .25rem;
}

.contact_card-title {
    font-size: 1rem;
    font-weight: 500;
}

.contact_card-data {
    display: block;
    font-size: .813rem;
    color: hsl(225, 8%, 45%);
}

.contact_form {
    display: grid;
    row-gap: 1rem;
}

.contact_form-group {
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
}

.contact_form-div {
    margin-bottom: .5rem;
}

.contact_form-label {
    display: block;
    font-size: .875rem;
    margin-bottom: .25rem;
    font-weight: 500;
    color: hsl(225, 8%, 15%);
}

.contact_form-input {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid hsl(225, 8%, 85%);
    border-radius: .5rem;
    font-family: inherit;
    font-size: .875rem;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.contact_form-input:focus {
    border-color: turquoise;
}

textarea.contact_form-input {
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer_container {
    max-width: 968px;
    margin: 0 auto;
}

.footer_title {
    font-size: 1.5rem;
    margin-bottom: .25rem;
    color: #fff;
}

.footer_subtitle {
    display: block;
    font-size: .875rem;
    color: hsl(225, 8%, 75%);
    margin-bottom: 1.5rem;
}

.footer_links {
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer_link {
    color: #fff;
    font-size: .875rem;
    transition: color 0.3s;
}
.footer_link:hover {
    color: turquoise;
}

.footer_socials {
    display: flex;
    justify-content: center;
    column-gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer_social-icon {
    font-size: 1.25rem;
    color: #fff;
    background: hsl(225, 8%, 25%);
    padding: .4rem;
    border-radius: .25rem;
    transition: background 0.3s;
}
.footer_social-icon:hover {
    background: turquoise;
}

.footer_copy {
    font-size: .75rem;
    color: hsl(225, 8%, 55%);
    text-align: center;
    padding: 1rem 0 0;
    border-top: 1px solid hsl(225, 8%, 25%);
    margin: 0 15rem;
}

/* ===== SCROLL UP ===== */
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    background: turquoise;
    opacity: .8;
    padding: 0 .3rem;
    border-radius: .4rem;
    z-index: 10;
    transition: .4s;
    display: inline-flex;
}

.scrollup:hover {
    background: hsl(174, 72%, 40%);
    opacity: 1;
}

.scrollup_icon {
    font-size: 1.5rem;
    color: #fff;
}

.show-scroll {
    bottom: 3rem;
}

/* ===== NAV TOGGLE ===== */
.nav_toggle {
    display: none;
    font-size: 1.25rem;
    cursor: pointer;
    align-self: center;
}

/* ===== ACTIVE LINK ===== */
.nav_link.active-link {
    color: turquoise;
    font-weight: 600;
}

/* ===== SCROLL HEADER ===== */
.scroll-header {
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
}

/* ===== DARK THEME ===== */
body.dark-theme {
    background-color: hsl(225, 8%, 10%);
    color: hsl(225, 8%, 75%);
}

.dark-theme .header {
    background: hsl(225, 8%, 12%);
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4 {
    color: hsl(225, 8%, 90%);
}

.dark-theme .section_title {
    color: hsl(225, 8%, 90%);
}

.dark-theme .nav_logo,
.dark-theme .nav_link,
.dark-theme .home__social-icon {
    color: hsl(225, 8%, 90%);
}

.dark-theme .services_content,
.dark-theme .contact_card {
    background: hsl(225, 8%, 15%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-theme .swiper-wrapper {
    background: hsl(225, 8%, 15%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark-theme .skills_bar {
    background: hsl(225, 8%, 25%);
}

.dark-theme .contact_form-input {
    background: hsl(225, 8%, 15%);
    border-color: hsl(225, 8%, 25%);
    color: hsl(225, 8%, 90%);
}

.dark-theme .change-theme {
    border-color: hsl(225, 8%, 55%);
    color: hsl(225, 8%, 90%);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    main {
        padding: 4.5rem 4rem 0 4rem;
    }
    .header {
        padding: 0 4rem;
    }
    .footer_copy {
        margin: 0 4rem;
    }
    .hero {
        padding: 4rem 2rem 0 2rem;
    }
    .about_container {
        padding: 0 2rem;
    }
    .contact_container {
        padding: 0 2rem;
    }
}

@media screen and (max-width: 768px) {
    main {
        padding: 4.5rem 1.5rem 0 1.5rem;
    }
    .header {
        padding: 0 1.5rem;
    }
    .footer_copy {
        margin: 0 1.5rem;
    }
    .nav_toggle {
        display: block;
    }
    .nav_menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 2rem 1.5rem 4rem;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 1.5rem 1.5rem;
        transition: .3s;
        z-index: 1100;
    }
    .dark-theme .nav_menu {
        background: hsl(225, 8%, 12%);
    }
    .show-menu {
        top: 0;
    }
    .nav_toggle {
        z-index: 1200;
    }
    .nav_list_grid {
        grid-template-columns: 1fr;
    }
    .nav_list {
        flex-direction: column;
        row-gap: 1rem;
        text-align: center;
    }
    .nav_btns {
        text-align: center;
        margin-top: 1rem;
    }
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 1rem 0 1rem;
        height: auto;
    }
    .home {
        height: auto;
    }
    .social-links {
        grid-template-columns: repeat(3, max-content);
        justify-content: center;
        padding-right: 0;
        margin-bottom: 1rem;
        order: 2;
    }
    .details {
        padding-left: 0;
        order: 1;
    }
    .person_image {
        order: 3;
    }
    .about_container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .about_image {
        width: 250px;
    }
    .about_numbers {
        flex-direction: row;
        justify-content: space-evenly;
    }
    .service_container {
        grid-template-columns: 1fr;
    }
    .certificate_data {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .certificate_item {
        padding: 0 1rem;
    }
    .contact_container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .contact_form-group {
        grid-template-columns: 1fr;
    }
    .portfolio_content {
        flex-direction: column;
    }
}