/*Font*/
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

/*variable*/
:root{
    --first-hue: 230;
    --second-hue: 216;
    --first-color: hsl(var(--first-hue), 91%, 64%);
    --first-color-dark: hsl(var(--first-hue), 62%, 20%);
    --title-color: hsl(var(--second-hue), 8%, 85%);
    --text-color: hsl(var(--second-hue), 8%, 75%);
    --body-color: hsl(var(--second-hue), 28%, 12%);
    --container-color: hsl(var(--second-hue), 28%, 15%);
    --white-color: hsl(var(--second-hue), 8%, 100%);

    --first-gradient: linear-gradient(
        150deg, 
        var(--first-color) 0%, 
        var(--white-color) 100%
    );
    
    --second-gradient: linear-gradient(
        260deg, 
        var(--first-color-dark) 0%, 
        var(--first-color) 100%
    );

    /*font desc*/

    --body-font: "Space Grotesk", sans-serif;

    --big-font-size: 8rem;
    --h1-font-size: 3.75rem;
    --h2-font-size: 3rem;
    --h3-font-size: 1.5rem;
    --larger-font-size: 1.25rem;
    --large-font-size: 1.125rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
}


/*Responsive typogrsphy*/
@media screen and (max-width: 1208px) {
    :root {
    --big-font-size: 6.25rem;
    --h1-font-size: 2.75rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.25rem;
    --larger-font-size: 1.25rem;
    --large-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    }
}

/*Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
button,
input,
textarea {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body {
    background-color: var(--body-color);
    color: var(--text-color);
}

h1,
h2,
h3 {
    color: var(--title-color);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

p {
    line-height: 1.75;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button,
input,
textarea {
    border: none;
    outline: none;
    background-color: transparent;
}

img { 
    display: block;
    max-width: 100%;
}

/*reusable*/

.section {
    padding-block: 4rem 4rem;
}


.button {
    display: inline-flex;
    background: var(--second-gradient);
    font-size: 1.25rem;
    color: var(--white-color);
    padding: 0.7rem 4rem;
    margin-top: 0.875rem;
    border-radius: 0.5rem;
    font-weight: var(--font-semi-bold);
    transition: background-color 0.3s;
}

.button:hover {
    background: linear-gradient(
        260deg, 
        var(--first-color) 0%, 
        var(--first-color-dark) 100%
    );
}

/**/


.container {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.grid {
    display: grid;
}

/*header*/

.header {
    background-color: transparent;
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
}

.nav,
.nav-list,
.nav-btns {
    display: flex;
}

.nav {
    align-items: center;
    justify-content: space-between;
    column-gap: 3rem;
    height: 4.5rem;
}

.nav-logo,
.nav-link,
.change-theme {
    color: var(--title-color);
}

.nav-logo {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
}

.nav-menu {
    margin-left: auto;
}

.nav-list {
    column-gap: 2.75rem;
}

.nav-link {
    font-weight: var(--font-medium);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--first-color);
}

.change-theme {
    font-size: 1.25rem;
}

.nav-btns {
    align-items: center;
    column-gap: 1rem;
}

.nav-close,
.nav-toggle {
    display: none;
}

/* active link */
.active-link {
    color: var(--first-color);
}

/* change background header */
.scroll-header {
    background-color: var(--body-color);
    box-shadow: 0 4px 4px hsl(var(--first-hue), 0%, 4%, 0.2);
}

/*home*/

.home-container {
    grid-template-columns: 1fr repeat(2, max-content);
    align-items: center;
    column-gap: 3rem;
    padding-top: 6rem;
    margin-bottom: 5rem;
}

.home-title {
    font-size: 2rem;
    line-height: 1;
}

.home-job {
    font-size: 5rem;
    font-weight: bolder;
}

.home-description {
    font-size: 1rem;
    margin-right: 2rem;
    margin-block: 0.5rem 3rem;
}

.home-img-wrapper {
    width: clamp(8rem, -2.8247rem + 30.4845vw, 38rem);
    background: var(--second-gradient);
    border-radius: 53% 47% 77% 23% / 61% 48% 52% 39%;
    overflow: hidden;
}

.home-social {
    row-gap: 1rem;
}

.home-social-link {
    color: var(--title-color);
    font-size: var(--large-font-size);
    transition: color 0.3s;
}

.home-social-link:hover {
    color: var(--first-color);
}



/*About------------------------*/

.about-container {
    grid-template-columns: 4fr 1fr;
    align-items: center;
    column-gap: 4rem;
    padding-top: 0;
    height: 55vh;
    margin-block: 1rem;
    margin-bottom: 5rem;
}

.about-experience {
    width: 200px;
    height: 420px;
    background: var(--second-gradient);
    border-radius: 1rem;
    display: grid;
    place-content: center;
}

.about-no,
.about-title {
    color: var(--white-color);
}

.about-no {
    font-size: 7.5rem;
    font-weight: var(--font-bold);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.about-title {
    font-size: var(--large-font-size);
    text-align: center;
}

.about-description {
    font-size: 26px;
    margin-bottom: 2rem;
    line-height: 2.5rem;
}

.text-gradient {
    -webkit-text-fill-color: hsl(var(--second-hue), 8%, 85%, 0.2);
    background: var(--first-gradient);
    background-clip: text;
    background-size: 0% 100%;
    background-repeat: no-repeat;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
}

.about-data {
    row-gap: 2rem;
    margin-left: 6.5rem;
}

.about-item-no {
    font-size: var(--h2-font-size);
    margin-bottom: 0.125rem;
}

/*Skills*/

.skills-container {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 10rem;
    margin-bottom: 5rem;
}

.section-title {
    text-align: center;
    font-size: var(--h2-font-size);
    margin-bottom: 3rem;
}

.skills-title {
    text-align: center;
    font-size: var(--h3-font-size);
    margin-bottom: 3rem;
}

.skills-items{
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.skills-data {
    text-align: center;
}

.skills-blob {
    width: 90px;
    height: 110px;
    background-color: var(--container-color);
    border-radius: 3rem;
    display: grid;
    place-items: center;
    margin-inline: auto;
}

.skills-img {
    width: 60px;
}

.skills-name {
    font-size: var(--large-font-size);
    margin-block: 1rem 0.25rem;
}

.skills-level {
    font-size: var(--small-font-size);
}

/* Education/Resume */

.resume-container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    row-gap: 3rem;
    margin-bottom: 15rem;
}

.resume-item {
    grid-template-columns: repeat(2,1fr);
    column-gap: 4rem;
}

.resume-right {
    order: 2;
}

.resume-left {
    text-align: right;
}

.resume-icon {
    color: var(--title-color);
    font-size: 2.75rem;
}

.resume-title {
    font-size: var(--larger-font-size);
    margin-block: 0.75rem;
}

.resume-duration {
    font-size: var(--small-font-size);
}

.resume-container,
.resume-item {
    position: relative;
}

.resume-container::after,
.resume-item::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--title-color);
}

.resume-container::after {
    width: 2px;
    height: 100%;
}

.resume-item::after {
    width: 16px;
    height: 4px;
}

/*Portfolio*/

.work-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2.5rem;
    margin-bottom: 3.5rem;
}

.work-item {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    cursor: pointer;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.3s;
}

.work-item:hover,
.active-work {
    color: var(--first-color);
}

.work-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--first-color);
    transition: width 0.3s;
}

.active-work::before {
    width: 60%;
}

.work-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.work-card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
}

.work-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: inherit;
    margin-bottom: 1.5rem;
}

.work-category {
    color: var(--first-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.work-title {
    font-size: var(--h3-font-size);
    margin-block: 0.75rem 1.75rem;
}

.work-description {
    min-height: 125px;
    margin-block: 2rem;
}

.work-link {
    display: inline-flex;
    align-items: center;
    column-gap: 0.75rem;
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.work-icon {
    color: var(--first-color);
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.work-link:hover .work-icon {
    transform: translateX(0.25rem);
}

/* COntact */

.contact {
    padding-bottom: 8rem;
}

.contact-container {
    grid-template-columns: 5.5fr 6.5fr;
    column-gap: 2rem;
}

.contact-section-title {
    text-align: left;
    font-size: 65px;
}

.contact-data {
    row-gap: 2rem;
}

.contact-item {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    column-gap: 1.5rem;
}

.contact-icons {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-icons a {
    font-size: 6rem;
    color: var(--white-color);
    transition: transform 0.3s, color 0.3s;
}

.contact-icons a:hover {
    transform: scale(1.2);
    color: var(--first-color);
}


.contact-title {
    font-size: var(--larger-font-size);
    margin-bottom: 0.25rem;
}

.contact-form {
    row-gap: 3rem;
    margin-top: 1rem;
    position: relative;
}

.contact-form-div {
    display: grid;
    row-gap: 0.75rem;
}

.contact-label {
    color: var(--title-color);
    font-size: var(--large-font-size);
    font-weight: var(--font-semi-bold);
}

.contact-input {
    color: var(--title-color);
    border: 3px solid var(--title-color);
    border-radius: 10px;
    padding-inline: 0.25rem;
    height: 50px;
}

.contact-area {
    resize: none;
    height: 200px;
}

.contact-button {
    justify-self: start;
    margin-top: 1rem;
}

.contact-message {
    position: absolute;
    bottom: 5.5rem;
    left: 0;
    color: var(--title-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

/* footer */
.footer {
    background-color: var(--container-color);
    padding-block: 2rem;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-social {
    display: flex;
    column-gap: 1rem;
}

.footer-link {
    color: var(--title-color);
    font-size: var(--large-font-size);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--first-color);
}

.footer-copyright {
    font-weight: var(--font-semi-bold);
}

.footer-copyright span {
    color: var(--first-color);
}

/*breakpoints*/
/*large device*/
@media screen and (max-width: 1208px) {
    .home-social-link {
        font-size: var(--large-font-size);
    }

    .about-container {
        column-gap: 3rem;
    }

    .about-experience {
        width: 260px;
        height: 400px;
    }

    .about-no {
        font-size: 6.5rem;
    }

    .work-container {
        gap: 1.5rem;
    }

    .skills-container {
        column-gap: 6rem;
    }

    .skills-items {
        gap: 2.75rem 3rem;
    }

    .resume-container {
        grid-template-columns: .8fr;
    }

    .contact-icon {
        width: 58px;
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 1024px) {
    .nav {
        height: 3.7rem;
    }

    .nav-toggle,
    .nav-close {
        display: inline-flex;
        color: var(--title-color);
        font-size: 1.25rem;
        cursor: pointer;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: hsl(var(--first-hue), 0%, 4%, 0.1);
        width: 55%;
        height: 100%;
        padding: 5rem 0 0 3rem;
        backdrop-filter: blur(24px);
        transition: right 0.3s;
    }

    .show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        row-gap: 3rem;
    }

    .nav-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem; 
    }

    .section {
        padding-block: 5rem 2rem;
    }

    .home-container {
        grid-template-columns: max-content 1fr;
        gap: 2rem 4rem;
        padding-top: 2rem;
    }

    .home-img-wrapper {
        order: 2;
    }

    .home-data {
        order: 3;
        grid-column: 1/3;
    }

    .home-title {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .home-job {
        font-size: 1.75rem;
    }

    .home-description {
        font-size: var(--large-font-size);
    }

    .about-container,
    .resume-container {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .work-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-container {
        grid-template-columns: initial;
        row-gap: 3.5rem;
    }

    .skills-items {
        row-gap: 2.5rem;
    }

    .resume-item {
        column-gap: 3rem;
    }

    .contact {
        padding-bottom: 5rem;
    }

    .contact-container {
        grid-template-columns: 62px;
        justify-content: center;
        row-gap: 2rem;
    }

    .contact-section-title {
        text-align: center;
    }

    .contact-form {
        margin-top: 0;
    }

    .footer-container {
        flex-direction: column;
        row-gap: 0.75rem;
    }
}

/*medium device*/
@media screen and (max-width: 768px) {
    .nav-menu {
        width: 75%;
    }

    .home-container {
        column-gap: 3rem;
    }

    .section-title {
        margin-bottom: 3.5rem;
    }

    .work-container {
        grid-template-columns: 405px;
        justify-content: center;
    }

    .skills-blob {
        width: 80px;
        height: 100px;
    }

    .resume-container::after,
    .resume-item::after {
        all: unset
    }

    .resume-item,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .resume-item {
        row-gap: 0.25rem;
    }

    .resume-right {
        order: initial;
    }

    .resume-left {
        text-align: left;
    }
}

@media screen and (max-width: 576px) {
    .home-container {
        column-gap: 1.75rem;
    }
}

/*small device*/
@media screen and (max-width: 460px) {
    .container {
        padding-inline: 1rem;
    }

    .work-container {
        grid-template-columns: 1fr;
    }

    .work-card {
        padding: 1.75rem;
    }

    .skills-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.6); /* blur effect */
    backdrop-filter: blur(6px);           /* smooth blur */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--container-color);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    border-radius: 1rem;
    position: relative;
    color: var(--text-color);
    animation: fadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--white-color);
    cursor: pointer;
}

@keyframes fadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
