@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&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --font: 'Rubik'
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font), sans-serif;
}

body {
    background-color: #333;
    color: #fff;
    line-height: 1.6;
}

header {
    background: #333;
    color: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
}

header h1 {
    margin: 0;
    line-height: 2;
}

nav a {
    color: #fff;
    margin: 0 20px;
    text-decoration: none;
    font-size: 1.7rem;
    line-height: 2;
    cursor: pointer;
    transition: transform 0.4s ease, font-size 0.4s ease;
}

nav a:hover {
    transform: scale(1.1);
}

.menu-toggle {
    cursor: pointer;
    transition: transform 0.4s ease, font-size 0.4s ease;
}

.menu-toggle:hover {
    transform: scale(1.2);
}

section {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
    display: flex;
}

/* ABOUT SECTION */

.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 35px auto;
    padding: 20px;
}

.about-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.about-text a {
    display: inline-block;
    vertical-align: middle;
    background: transparent;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        margin: auto;
        padding: 20px;
    }

    .about-img {
        margin: 0 auto 10px;
        width: 300px;
        height: 300px;
    }

    .about-text {
        text-align: left;
    }
}

/* EXPERIENCE SECTION */

.experience {
    display: flex;
    max-width: 850px;
    gap: 40px;
    margin: 60px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: flex-start;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.experience-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.experience-text {
    text-align: left;
    width: 100%;
}

.experience-img {
    max-width: 100%;
    width: 120px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
    border-radius: 20px 20px 20px 20px;
}

.experience-img-group {
    max-width: 100%;
    width: 700px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
    display: block;
    margin: 10px auto;
    border-radius: 20px 20px 20px 20px;
}

.experience-text {
    flex: 1;
}

#about,
#projects,
#experience {
    margin-bottom: 0px;
}

#projects h2 {
    margin-bottom: 10px
}

#contact {
    display: inline;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding: 2.5rem 0;
}

#contact h1 {
    margin-bottom: 0.5rem;
}

#contact-phone {
    margin-bottom: 0.5rem;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.social-icons {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    vertical-align: middle;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    background: transparent;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-icons svg {
    display: block;
    width: 36px;
    height: 36px;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.social-icons a:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.project {
    background: #333;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.3);
}

.project-img {
    max-width: 100%;
    width: 800px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.125);
    display: block;
    margin: 10px auto;
    border-radius: 20px 20px 20px 20px;
    transition: transform 0.2s ease-in-out;
}

.project-img:hover {
    transform: scale(1.02);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

#mobile-nav,
.menu-toggle,
.overlay {
    display: none;
}

.desktop-nav {
    display: flex;
    gap: 20px;
}

@media (max-width: 1000px) {
    .desktop-nav {
        display: none;
    }

    #mobile-nav {
        position: fixed;
        display: flex;
        top: 100px;
        right: -200px;
        width: 190px;
        height: auto;
        background: rgba(68, 68, 68, 0.75);
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        box-shadow: -2px 0 8px rgba(255, 255, 255, 0.3);
        transition: right 0.7s ease;
        z-index: 999;
        border-radius: 20px 0 0 12px;
    }

    #mobile-nav.show {
        right: 0;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        text-align: right;
        line-height: 2;
        padding: 0;
    }

    .mobile-nav-content {
        text-align: center;
        align-items: center;
    }

    .mobile-nav-content a {
        font-size: 22px;
        text-decoration: none;
        color: white;
        display: block;
        padding: 12px 0;
        transition: transform 0.2s ease, color 0.2s ease;
    }
    
    .mobile-nav-content a:hover {
        transform: scale(1.15);
    }

    .close-btn {
        align-self: flex-end;
        margin-bottom: 2px;
        line-height: .75;
    }
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: 40px;
}

.font-bold {
    font-family: var(--font), sans-serif;
    font-optical-sizing: auto;
    font-weight: 425;
    font-style: normal;
    font-size: 2rem;
}

.font-normal {
    font-family: var(--font), sans-serif;
    font-optical-sizing: auto;
    font-weight: 375;
    font-style: normal;
}

.font-light {
    font-family: var(--font), sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

html,
body {
    overflow-x: hidden;
}