:root {
    --text-color: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #eeeff1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SN Pro', sans-serif;
    background-color: var(--background-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/*navbar*/
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
}

nav .left a {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

nav .right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap; 
}


nav .right a {
    color: var(--text-color);
    margin: 0 10px;
}

nav .right a:last-child {
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a span {
    margin-left: 5px;
}

/*me-section*/
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 100px;
    gap: 40px;
}

.hero-section .text {
    flex: 5;
}

.hero-section .text h2 {
    font-size: 45px;
}

.hero-section .text .links {
    margin-top: 25px;
}

.hero-section .text .links a {
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: .1s;
}

.hero-section .text .links a:hover {
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.hero-section .headshot {
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero-section .headshot img {
    width: 350px;
    border-radius: 50%;
}

/*skills-section*/
.skills-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.skills-section h2 {
    text-align: center;
    font-size: 35px;
}

.skills-section .text {
    text-align: center;
    margin-bottom: 20px;
}

.skills-section .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.skills-section .cells .cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    width: 200px;
    padding: 10px 20px;
    margin: 10px;
    border: 1.5px solid #d3d3d3;
    border-radius: 5px;
}

.skills-section .cells .cell img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 2px;
}

.skills-section .cells .cell span {
    font-size: 18px;
}

/*projects-section*/
.projects-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.projects-section .subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

.projects-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 50px;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #fff;
    border: 1.5px solid #d3d3d3;
    border-radius: 20px;
    padding: 25px;
    max-width: 350px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.project-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-color);
}

.project-description {
    font-family: 'SN Pro', sans-serif;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.project-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline {
    padding: 10px 25px;
    border: 2px solid var(--text-color);
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: #fff;
}

/*contact-section*/
.contact-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.contact-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 15px;
}

.contact-section .description {
    font-family: 'SN Pro', sans-serif;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 18px;
}

.contact-section .group {
    display: flex;
    justify-content: center;
}

.contact-section .group form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.contact-section .group form label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.contact-section .group form input, 
.contact-section .group form textarea { 
    font-family: 'SN Pro', sans-serif;
    font-size: 15px;
    border: 2px solid #d3d3d3;
    background-color: #fff;
    padding: 12px 15px;
    margin-bottom: 25px; 
    outline: none;
    resize: none; 
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-section .group form input:focus, 
.contact-section .group form textarea:focus {
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px rgba(74, 118, 238, 0.1);
}

.contact-section .group form textarea {
    min-height: 150px;
}

.contact-section .group form button {
    font-size: 16px;
    font-weight: 600;
    font-family: 'SN Pro', sans-serif;
    color: #fff;
    background-color: var(--link-color);
    border: none;
    height: 50px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 118, 238, 0.2);
}

.contact-section .group form button:hover {
    background-color: #3a66de;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 118, 238, 0.3);
}

.contact-section .group form button:active {
    transform: translateY(0);
}

/*toast*/
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'SN Pro', sans-serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: #4caf50;
    color: white;
}

.toast.error {
    background-color: #ff4242;
    color: white;
}

.toast i {
    font-size: 18px;
}

 /*language*/
.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.lang-switch span {
    display: inline !important;
}

@media (max-width: 850px) {

    /* HERO */
    .hero-section {
        flex-direction: column-reverse;
    }

    .hero-section .headshot img {
        width: 300px;
    }

    /* PROJECTS*/
    .projects-section {
        padding: 0 20px;
    }

    .projects-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 100%;
    }

    .project-card {
        max-width: 100%;
        width: 100%;
    }

    .project-image {
        height: 200px;
    }
}


@media (max-width: 740px) {
    /*me-section*/
    .hero-section .text h2 {
        font-size: 35px;
    }
}

@media (max-width: 600px) {
    /*navbar*/
    nav {
        padding: 0 20px;
    }

    nav .right a {
        font-size: 22px;
    }

    nav .right a:last-child {
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }

    nav .right a span {
        display: none;
    }

    /*me-section*/
    .hero-section {
        padding: 0 20px;
    }

    .hero-section .text h2 {
        font-size: 30px;
    }

    /*skills-section*/
    .skills-section {
        padding: 0 20px;
    }

    .skills-section .cells {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 10px; 
    }

    .skills-section .cells .cell {
        width: 100%; 
        margin: 0;   
    }

    .skills-section .cells .cell span  {
        font-size: 16px;
    }

     /*projects-section*/
    .projects-section {
        padding: 0 20px;
    }
    
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .project-card {
        padding: 20px;
    }
    
    .project-image {
        height: 180px;
    }

    .project-card h3 {
        font-size: 20px;
    }

    .project-description {
        font-size: 14px;
    }

    .btn-outline {
        font-size: 13px;
        padding: 8px 20px;
    }

    /*toast*/
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        padding: 12px 20px;
        font-size: 14px;
    }

    .toast i {
        font-size: 16px;
    }

    /*languages*/
    .lang-switch .globe-icon {
        display: none; 
    }

    .lang-switch {
        gap: 0; 
    }

    .lang-switch span {
        font-size: 18px;
    }
}