:root {

    --ff-poppins: 'Poppins', sans-serif;

    --background-shadow: 0 0 15px;
    --icon-shadow: 0 0 15px;
    --navbar-shadow: 0 0 15px;


    --transition-1: 0.25s ease;
    --transition-2: 0.5s ease-in-out;


    --primary-color: #18925f;
    --primary-text-color: white;
    --paragraph-color: #d6d6d6;
    --light-gray: #d6d6d6b3;
    --darker-primary-color: #116e48;


    --navbar-background: hsla(240, 1%, 17%, 0.75);
    --primary-background: #1b1b1b;
    --background-color: #202022;
    --icon-background: #222224;
    --light-background: hsla(0, 0%, 84%, 0.7);
    --black-color: rgb(20, 20, 20);

    --separator: rgba(255, 255, 255, 0.144);

    --border-radius-round: 50%;
    --border-radius-20: 20px;
    --border-radius-15: 15px;
    --border-radius-10: 10px;
    --border-radius-8: 8px;
    --border-radius-5: 5px;

}


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: ivory;
}

li {
    list-style: none;
}

img,
ion-icon,
a,
button,
time,
span {
    display: block;
}

button {
    font: inherit;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

input,
textarea {
    display: block;
    width: 100%;
    background: none;
    font: inherit;
}

::selection {
    background: var(--primary-color);
    color: var(--primary-text-color);
}

:focus {
    outline-color: var(--primary-color);
}

html {
    font-family: var(--ff-poppins);
}

body {
    background: var(--primary-background);
}

h1 {
    font-weight: 300;
    color: var(--primary-text-color);
}

h2 {
    font-weight: 600;
    font-size: 30px;
    color: var(--primary-text-color);
}


h3 {
    font-weight: 500;
    color: var(--primary-text-color);
    font-size: 25px;
}

h4 {
    color: var(--primary-text-color);
    font-weight: 400;
    font-size: 20px;
}

h5 {
    color: var(--primary-text-color);
    font-weight: 500;
    font-size: 17px;
}

p {
    color: var(--paragraph-color);
    line-height: 1.6;
    font-weight: 200;
}

main {
    margin: 15px 12px;
    margin-bottom: 75px;
    min-width: 259px;
}

nav {
    display: block;
    unicode-bidi: isolate;
}


data {
    color: var(--light-gray);
}


article {
    display: none;
}

article.active {
    display: block;
    animation: fade 0.5s ease backwards;
}

/* FROM HERE MY CODE */

.main-background {
    background: var(--primary-background);
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--background-shadow);
    margin-bottom: 100px;
}

.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--navbar-background);
    backdrop-filter: blur(10px);
    border: 1px solid var(--jet);
    border-radius: 12px 12px 0 0;
    box-shadow: var(--navbar-shadow);
    z-index: 5;
}

.navbar-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.navbar-link {
    color: var(--light-gray);
    font-size: var(--fs-8);
    padding: 20px 7px;
    transition: color var(--transition-1);
}

.navbar-link:hover,
.navbar-link:focus {
    color: var(--light-gray);
}

.navbar-link.active {
    color: var(--primary-color);
}

/* HEADER FROM HERE */

.header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.header-left {
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
}

.header-left img {
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,0,0,0.2));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow:
        0 8px 20px rgba(0,0,0,0.3),
        inset 0 2px 8px rgba(255,255,255,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.header-left img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.4),
        inset 0 3px 10px rgba(255,255,255,0.25);
}

.job-title {
    padding: 5px 10px;
    background-color: #d6d6d61f;
    border-radius: 5px;
    margin-bottom: 20px;
}

.header-middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.header-title {
    text-align: center;
}

.social-list {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.social-icon img {
    height: 35px;
    transition: all 0.2s ease;
}

.social-icon img:hover {
    cursor: pointer;
    transform: scale(1.1, 1.1);
}

.contact-separator {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;

}

.information-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.information-item {
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-box {
    position: relative;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: all 0.2s ease;
}

.icon-box:hover {
    cursor: pointer;
    transform: scale(1.1, 1.1);
}

.icon-box img {
    height: 30px;
}

.header-separator {
    margin-top: 14px;
    width: 100%;
    height: 1px;
    background-color: var(--separator);
}

/* ABOUT FROM HERE */

.about-title {
    position: relative;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 7px;
}

.about-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 3px;
}

.cv-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.cv-button {
    padding: 5px 10px;
    border-radius: var(--border-radius-15);
    margin: 10px 0;
    color: var(--primary-text-color);
    font-size: 25px;
    text-align: center;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.cv-button:hover {
    transform: scale(1.07, 1.07);
    background: var(--darker-primary-color);
}

/* SERVICES FROM HERE */

.services-title {
    position: relative;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 7px;
}

.services-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 3px;
}

.services {
    margin-top: 10px;
}

.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.services-list-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: var(--icon-background);
    border-radius: var(--border-radius-15);
    box-shadow: var(--icon-shadow);
}

.services-text {
    line-height: 19px;
}

.services-icon {
    border-radius: var(--border-radius-round);
    margin-right: 5px;
}

.services-icon img {
    height: 55px;
}

/* SKILLS FROM HERE */

.skills-title {
    position: relative;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 7px;
}

.skills-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 3px;
}

.skills-list {
    padding: 10px;
    border-radius: var(--border-radius-15);
    background: var(--icon-background);
    box-shadow: var(--background-shadow);
}

.skills-item:not(:last-child) {
    margin-bottom: 15px;
}


.title-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.skills-bar {
    background: var(--black-color);
    width: 100%;
    height: 8px;
    border-radius: 10px;
}

.skills-bar-fill {
    background: var(--primary-color);
    height: 100%;
    border-radius: inherit;
}


/* CERTIFICATES FROM HERE */

.certificates-title {
    position: relative;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 7px;
}

.certificates-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 3px;
}

.certificates-item {
    background: var(--background-color);
    box-shadow: var(--icon-shadow);
    border-radius: var(--border-radius-15);
    margin-bottom: 15px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cerfticates-image {
    margin-bottom: 5px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cerfticates-image img {
    filter: brightness(95%);
    border-radius: var(--border-radius-10);
    width: 80%;
    height: 180px;
    object-fit: cover;
}

/* PORTFOLIO FROM HERE */

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    background: var(--icon-background);
    border-radius: var(--border-radius-15);
    box-shadow: var(--background-shadow);
    overflow: hidden;
    padding: 16px;
    align-items: flex-start;
}

.portfolio-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius-10);
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.portfolio-item-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.portfolio-description {
    color: var(--paragraph-color);
    margin-bottom: 10px;
}

.portfolio-tags {
    margin-bottom: 10px;
}

.portfolio-tag {
    display: inline-block;
    background: var(--paragraph-color);
    color: var(--primary-background);
    border-radius: var(--border-radius-5);
    padding: 3px 10px;
    font-size: 13px;
    margin-right: 6px;
    margin-bottom: 4px;
}

.portfolio-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--primary-text-color);
    border-radius: var(--border-radius-8);
    padding: 8px 18px;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
    margin-top: 8px;
    align-self: flex-end;
}

/* BLOG FROM HERE */

.blog-item-title {
    font-size: 22px;
    color: var(--primary-text-color);
    margin-bottom: 8px;
}

.blog-date {
    color: var(--light-gray);
    font-size: 14px;
    margin-bottom: 6px;
}

.blog-description {
    color: var(--paragraph-color);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* CONTACT FROM HERE */

.contact-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.contact-intro {
    margin-bottom: 18px;
    color: var(--paragraph-color);
    font-size: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.contact-form-row {
    width: 100%;
}

.contact-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--border-radius-8);
    border: 1px solid var(--jet);
    font-size: 15px;
    background: var(--background-color);
    color: var(--primary-text-color);
    margin-bottom: 4px;
    transition: border 0.2s;
}

.contact-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-button {
    width: 100%;
    margin-top: 8px;
}

#form-message {
    color: #18925f;
}

.contact-details {
    margin-top: 18px;
}

.contact-info-boxes {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.contact-info-box {
    background: var(--background-color);
    color: var(--primary-color);
    border-radius: var(--border-radius-15);
    box-shadow: 0 2px 16px rgba(20, 20, 20, 0.09);
    width: 170px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 14px;
    text-decoration: none;
    transition: box-shadow 0.2s, background 0.2s, color 0.2s;
    cursor: pointer;
}

.contact-info-box:hover,
.contact-info-box:focus {
    background: var(--darker-primary-color);
    color: var(--primary-text-color);
    box-shadow: 0 6px 24px rgba(24, 146, 95, .15);
}

.contact-info-icon {
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.contact-info-icon img {
    height: 40px;
}

.contact-info-label {
    font-size: 1.13rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-info-value {
    font-size: 1.03rem;
    color: var(--paragraph-color);
    font-family: var(--ff-poppins);
    text-align: center;
}


@media (min-width: 481px) {
    main {
        margin: 20px 30px;
    }

    .navbar-list {
        justify-content: center;
        gap: 15px;
    }

    .navbar-link {
        font-size: 18px;
    }
}

@media (min-width: 641px) {
    .main-background {
        background: var(--primary-background);
    }

    main {
        margin: 25px 50px;
    }

    .main-background {
        width: 550px;
        margin: 0 auto;
        max-width: 90vw;
    }

    .navbar-list {
        gap: 20px;
    }

    .navbar-link {
        font-size: 19px;
    }

    .certificates-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .certificates-item {
        margin-bottom: 0;
    }

    .contact-form {
        max-width: 500px;
    }

    .contact-button {
        width: auto;
        min-width: 140px;
        align-self: flex-end;
    }

    #form-message {
        font-size: 16px;
        min-height: 22px;
    }

}

@media (min-width: 769px) {
    .main-background {
        width: 700px;
    }

    .contact-separator {
        display: block;
        height: 98%;
        width: 1px;
        background-color: var(--separator);
        margin: 0px;
        align-items: center;
    }

    .header {
        grid-template-columns: 22% 26% 0% auto;
    }

    .services-list {
        grid-template-columns: 1fr 1fr;
    }

    .skills-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .skills-item:not(:last-child) {
        margin-bottom: 8px;
    }
}


@media (min-width: 1024px) {
    .main-background {
        position: relative;
        width: 900px;
        margin: auto;
        background: var(--primary-background);
    }

    main {
        margin: 10px 50px;
    }

    .navbar {
        position: absolute;
        bottom: auto;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 20px;
        box-shadow: var(--navbar-shadow);
    }

    .navbar-list {
        gap: 30px;
        padding: 0 20px;
    }

    .navbar-link {
        font-weight: var(--fw-500);
    }

    .header {
        margin-top: 70px;
        grid-template-columns: auto auto auto 1fr;
    }

    .header-separator {
        margin-top: 5px;
    }

    .contact-separator {
        height: 90%;
        margin: 16px;
    }

    .cerfticates-image img {
        height: 240px;
    }

    .portfolio-item {
        padding: 32px;
    }

    .portfolio-image {
        height: 250px;
        margin-right: 32px;
    }

    .portfolio-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1350px) {
    .main-background {
        width: 1000px;
    }

    .header {
        margin-left: 30px;
        grid-template-columns: auto 1fr 3% auto;
    }

    .header-right {
        margin-right: 30px;
    }

}