* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

:root {
    --primary: #ff4b2b;
    --secondary: #ff416c;
    --accent: #3d3d3d;
    --bg: #f7f7f7;
    --white: #fff;
    --text: #222;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary);
}

.logo img {
    width: 2.5em;
    height: 2.5em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.6rem;
    font-weight: bold;
    padding: 0.5rem 1.2rem;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
    background: var(--primary);
    color: var(--white);
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 2em;
    height: 2em;
    flex-direction: column;
    justify-content: center;
}

.nav-toggle-label span,
.nav-toggle-label span:before,
.nav-toggle-label span:after {
    display: block;
    background: var(--primary);
    height: 0.25em;
    width: 100%;
    border-radius: 0.125em;
    position: relative;
    transition: all 0.3s;
}

.nav-toggle-label span:before,
.nav-toggle-label span:after {
    content: '';
    position: absolute;
}

.nav-toggle-label span:before {
    top: -0.625em;
}

.nav-toggle-label span:after {
    top: 0.625em;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 75%;
    margin: 4rem auto 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.hero-content {
    flex: 1 1 32rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content h2 {
    font-size: 2.4rem;
    color: var(--secondary);
    margin: 0;
}

.hero-content h1 {
    font-size: 4rem;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
}

.hero-content p {
    font-size: 1.8rem;
    color: var(--accent);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.6rem;
    border-radius: 0.7rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    display: inline-block;
}

.btn.primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
}

.btn.secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn.primary:hover,
.btn.secondary:hover {
    background: var(--secondary);
    color: var(--white);
}

.hero-image {
    flex: 0 1 26rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 11.25em;
    height: 11.25em;
    border-radius: 50%;
    box-shadow: 0 0.5em 2em rgba(255, 75, 43, 0.08);
    background: var(--bg);
    object-fit: contain;
}

/* About Section */
.about {
    max-width: 75%;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-align: center;
}

.about-grid {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}

.about-icons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: flex-start;
    font-size: 10rem;
    color: var(--secondary);
    margin: 1rem;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1 1 32rem;
}

.about-card {
    background: var(--bg);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-card h3 {
    font-size: 2rem;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-card p {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0;
}

/* Projects Section */

.my--skills {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.img--container--lang {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.img--container--lang h1 {
    text-align: center;
}

.img--container--lang i {
    font-size: 5rem;
    color: var(--primary);
}

.img--container--lang div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 10rem;
}

.my--projects--section {
    max-width: 75%;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.my--projects {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.projects-title {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 4rem;
    text-align: center;
}

.projects--card {
    background: var(--bg);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 25rem;
    height: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    box-shadow: 0 1rem 0.5rem rgba(0, 0, 0, 0.1);
}

.projects--card img {
    height: 90%;
    width: 100%;
    padding: 0.5rem;
    object-fit: cover;
    border-radius: 0.7em;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.projects--card:hover {
    background: rgba(255, 65, 109, 0.193);
    transform: scale(1.04);
    box-shadow: 0 6px 1.5rem rgba(255, 65, 108, 0.10);
}

.text--container--projects {
    text-align: center;
    width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    height: 20%;
}

/* Contact Section */
.contact-section {
    max-width: 50rem;
    margin: 4rem auto;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section h2 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form label {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border-radius: 0.7rem;
    border: 1px solid #ddd;
    font-size: 1.3rem;
    font-family: inherit;
    background: var(--bg);
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--primary);
    border-color: var(--primary);
}

.contact-form button {
    align-self: flex-end;
}

.contact-social {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
}

.contact-social a {
    color: var(--primary);
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.contact-social a:hover {
    color: var(--secondary);
}

/* Overlay for project details */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    background: var(--white);
    border-radius: 1.2em;
    padding: 2.5em 2em 2em 2em;
    width: 50%;
    height: 60%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    animation: popIn 0.2s;
}

@keyframes popIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.overlay-content img {
    width: 100%;
    max-width: 60%;
    border-radius: 0.7em;
    margin-bottom: 1em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.overlay-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5em;
}

.overlay-content p {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 1em;
}

.overlay-content a {
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    padding: 0.7em 1.5em;
    border-radius: 0.5em;
    font-size: 1.2rem;
    margin: 0.5em 0.5em 0 0;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.overlay-content a:hover {
    background: var(--primary);
    color: var(--white);
}

.close-button {
    position: absolute;
    top: 1em;
    right: 1em;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 2em;
    height: 2em;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    background: var(--primary);
}

/* Footer */
footer {
    background: var(--white);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.4rem;
    color: var(--accent);
    gap: 1rem;
}

.footer-links a {
    color: var(--primary);
    margin-left: 0.94em;
    font-size: 1.25em;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--secondary);
}

/* Responsive Styles */
@media (max-width: 900px) {

    .hero,
    .about {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .about-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .about-icons {
        display: none;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 55%;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        background: var(--white);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 1rem 0;
        display: none;
    }

    .nav-toggle:checked+.nav-toggle-label+.nav-links {
        display: flex;
    }

    .nav-toggle-label {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 1.2rem;
    }
}