@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&display=swap');

:root {
    --mainTextColor: #000;
    --secondaryTextColor: rgb(51, 51, 51);
    --mainLinkColor: #0da2b8;
    --mainBorderColor: rgb(218, 218, 218);
    --mainBgColor: rgb(249, 250, 251);
}

[data-theme="dark"] {
    --mainTextColor: #fff;
    --secondaryTextColor: #adb0b1;
    --mainLinkColor: rgb(30, 190, 214);
    --mainBorderColor: #2b3031;
    --mainBgColor: #131415;
}



* {
    font-family: 'Readex Pro';
    line-height: 1.5em;
    box-sizing: border-box;
    color: var(--mainTextColor);

}

body {
    background-color: var(--mainBgColor);
}

p,
span,
li {
    color: var(--secondaryTextColor);
    font-size: 1em;
    text-align: justify;
}

a {
    text-decoration: none;
    color: var(--mainLinkColor);
    font-weight: 500;
}

a.no-link-style {
    text-decoration: none;
    color: inherit;
    font-weight: normal;
}

li {
    line-height: 1.9em;
}

#container--main {
    max-width: 700px;
    margin: 0 auto;
    padding: 1em;
}

.section--page {
    padding-top: 1em;
    padding-bottom: 1em;
}

#wrapper--hero {
    display: flex;
    align-items: center;
    gap: 2em;
}

#bio,
a {
    font-weight: 300;
}

#user-name {
    font-size: 48px;
    line-height: 1em;
}

#profile-pic {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    /* Rounded square */
}

#email {
    color: var(--mainTextColor);
}

#socials--list {
    display: flex;
    justify-content: space-between;
    column-gap: 1em;
    flex-wrap: wrap;
}

#socials--list a {
    font-weight: 300;
    color: var(--secondaryTextColor);
    font-size: 0.9em;
    transition: 0.3s;
}

#socials--list a:hover {
    font-weight: 100;
    color: var(--mainLinkColor);
    font-size: 0.9em;
}

#qualifications--list {
    list-style: none;
}

#wrapper--techstack__items {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    font-size: 0.9em;
    justify-content: space-between; /* or space-evenly / space-around */
}

.card--techstack {
    border: 1px solid var(--mainBorderColor);
    border-radius: 5px;
    padding: 0.5em 1em;
    align-items: center;
}

.card--project {
    padding-top: 1em;
    padding-bottom: 1em;
    border-top: 1px solid var(--mainBorderColor);
}

.card--project a {
    color: var(--mainTextColor);

    transition: 0.3s;
}

.card--project a:hover {
    color: rgb(30, 190, 214);

}

.card--work-history {
    margin-top: 3em;
    margin-bottom: 3em;
    padding-left: 2em;
}

.line-break {
    background-color: var(--mainBorderColor);
    height: 1px;
}

@media(max-width:600px) {

    .section--page {
        padding-top: 1em;
        padding-bottom: 1em;
        margin-top: 3em;
    }

    #wrapper--hero {
        display: flex;
        align-items: center;
        gap: 1em;
    }

    #profile-pic {
        width: 200px;
        height: 200px;
    }

    #wrapper--hero {
        flex-direction: column;
    }

    .card--work-history {
        border-left: none;
        padding-left: 0;
    }
}

/* ===== Contact Form Modal ===== */
/* Modal overlay */

.no-scroll {
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    transition: background-color 0.3s ease;
}

/* Light theme overlay */
body[data-theme="light"] .modal {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Modal content */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--mainBgColor);
    color: var(--mainTextColor);
    margin: 2rem auto 0 auto;
    /* Top margin only */
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--mainBorderColor);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: 'Readex Pro', sans-serif;
}

.modal-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

/* Close button */
.modal .close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 24px;
    font-weight: 600;
    color: var(--mainTextColor);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal .close:hover {
    color: var(--mainLinkColor);
}

/* Form labels */
.modal form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: var(--mainTextColor);
}

/* Inputs and textarea */
.modal form input[type="text"],
.modal form input[type="email"],
.modal form textarea {
    width: 100%;
    padding: 0.8em;
    margin-bottom: 1rem;
    border: 1px solid var(--mainBorderColor);
    border-radius: 5px;
    background-color: var(--mainBgColor);
    color: var(--mainTextColor);
    font-size: 1em;
    resize: vertical;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.modal form input[type="text"]:focus,
.modal form input[type="email"]:focus,
.modal form textarea:focus {
    outline: none;
    border-color: var(--mainLinkColor);
    box-shadow: 0 0 4px var(--mainLinkColor);
}

/* Submit button */
.modal form button[type="submit"] {
    background-color: var(--mainLinkColor);
    color: #fff;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal form button[type="submit"]:hover {
    background-color: #0b8ca0;
}

/* End of Contact Form Modal */