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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

a {
    text-decoration: none;
    color: #333;
}

article {
    width: 768px;
    margin: 70px auto;
    padding: 40px 80px;
    background-color: #fffffb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.profile-card-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
}

ul {
    list-style: none;
}

section li {
    width: 120px;
    padding: 4px 0;
    margin: 8px;
    border-radius: 5px;
    cursor: pointer;
}

figure {
    width: 220px;
}

figcaption {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

body.profile-card {
    background: linear-gradient(to bottom right, #80A3C3, #4585c0);
}

.avatar-section {
    display: flex;
    flex-direction: row;
    gap: 70px;
}

.about-user {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-user h2 {
    font-size: 28px;
}

.about-user p {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
}

.social-links {
    display: flex;
    gap: 15px;

}

.user-icons {
    margin-top: 5px;
    font-size: 35px;
    color: #3b6185;
}

.user-icons:hover {
    color: #0e51ad;
}

.sections {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

section h3 {
    margin-bottom: 10px;
}

.l-one {
    background: #CBDCEB;
}

.l-one:hover {
    background: #93c5f1;
}

.l-two {
    background: #F7CAC9;
}

.l-two:hover {
    background: #faa2a0;
}

.l-three {
    background: #BADFDB;
}

.l-three:hover {
    background: #7dd3b9;
}

.l-four {
    background: #D9E9CF;
}

.l-four:hover {
    background: #a3d977;
}

.l-five {
    background: #EBD6FB;
}

.l-five:hover {
    background: #d8b4fe;
}

.l-six {
    background: #FFD6BA;
}

.l-six:hover {
    background: #ffb997;
}

.divider {
    border-bottom: 4px dotted #3b6185;
    margin: 35px 0;
}

.fun-fact {
    text-align: center;
}

.fun-fact-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 20px;
}

.fun-fact-icon {
    color: #FFC400;
    text-shadow:
        0 0 3px #fff176,
        0 0 6px #ffee58,
        0 0 9px #ffeb3b;
}

@media (max-width: 768px) {
    article {
        width: 70%;
        padding: 30px 50px;
    }

    .avatar-section {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .about-user {
        margin-top: 15px;
        width: 80%;
        align-items: center;
        text-align: center;
    }

    .divider {
        margin: 25px 0;
    }

    .sections {
        flex-direction: column;
        gap: 20px;
    }

    section ul {
        width: fit-content;
        margin: 0 auto;
    }
}

@media (max-width: 425px) {
    article {
        width: 90%;
        padding: 20px 30px;
        margin: 30px auto;
    }

    .about-user {
        width: 100%;

    }

}

@media (max-width: 375px) {
    article {
        width: 100%;
        margin: 20px auto;
        border-radius: 0;
        box-shadow: none;
    }

    body {
        background: #fffffb;
    }
}

body.contact {
    z-index: -1;
    inset: 0;
    background: url(img/blob-bg.png) center/cover no-repeat;
}

form {
    width: 400px;
    min-width: 300px;
    margin: 70px auto;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

form h2 {
    text-align: center;
    color: #3b6185;
    margin: 10px;
}

form button {
    background-color: #4585c0;
    width: 40%;
    display: block;
    margin: 10px auto;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
}

form button:hover {
    background-color: #3b6185;
}

fieldset {
    outline: none;
    border: none;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

input,
textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.input-control input:focus,
.input-control textarea:focus {
    outline: none;
}

.input-control.success input,
.input-control.success textarea {
    border-color: #4CAF50;
}

.input-control.error input,
.input-control.error textarea {
    border-color: #F44336;
}

.input-control .error {
    color: #F44336;
    font-size: 12px;
    height: 12px;
}

.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.4s ease;
}

.modal-content h2 {
    color: #3b6185;
    margin-bottom: 10px;
}

.modal-content p {
    margin-bottom: 20px;
    color: #333;
}

.modal-content button {
    background-color: #F44336;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content button:hover {
    background-color: #d32f2f;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 425px) {
    form {
        width: 85%;
    }

    body.contact {
        background-position: left;
        background-size: contain
    }

    .modal-content {
        width: 80%;
        padding: 20px;
    }
}

.about-page {
    width: 100%;
    height: fit-content;
    overflow-x: hidden;
}

.col {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 90px;
}

header {
    width: 100%;
    padding: 40px 60px;
    height: 90vh;
    z-index: -1;
    inset: 0;
    background: url(img/blob-bg2.png) center/cover no-repeat;
}

.image-container {
    width: 350px;
    position: relative;

}

.image-container img {
    width: 100%;
    position: absolute;
    bottom: -40px;
}

.about-title {
    font-size: 45px;
    color: #3b6185;
    margin-bottom: 20px;
    text-align: left;
}

.about-p {
    font-size: 28px;
    color: #3b6185;
    font-weight: 500;
}

.about-header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-container {
    position: relative;
    padding: 0 120px;
    overflow: hidden;
}

.section-container h3 {
    font-size: 28px;
    color: #3b6185;
    text-align: center;
    margin: 30px 0;
}

.section-container p {
    font-size: 18px;
    text-align: justify;
    line-height: 1.5;
    color: #000;
}

.bio {
    margin-top: 60px;
}

ul.about-goals {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-goals li {
    flex: 1 1 calc(33.333% - 20px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-goals li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

li i {
    font-size: 40px;
    margin-bottom: 10px;

}

li.li-1 {
    background-color: #CBDCEB;
    display: flex;
    flex-direction: column;
}

li.li-1:hover {
    background-color: #93c5f1;
}

li.li-2 {
    background-color: #BADFDB;
    display: flex;
    flex-direction: column;
}

li.li-2:hover {
    background-color: #7dd3b9;
}

li.li-3 {
    background-color: #F7CAC9;
    display: flex;
    flex-direction: column;
}

li.li-3:hover {
    background-color: #faa2a0;
}

.section-blob {
    z-index: -1;
    position: absolute;
    top: 2%;
    left: -25%;
    width: 60%;
}

.section-blob2 {
    z-index: -1;
    position: absolute;
    bottom: -35%;
    right: -20%;
    width: 60%;
}

p.quote {
    display: block;
    margin: 0 auto 70px auto;
    text-align: center;

}

@media (max-width: 768px) {
    .section-blob2 {
        z-index: -1;
        position: absolute;
        bottom: -5%;
        right: -25%;
        width: 60%;
    }
}

@media (max-width: 425px) {
    .row {
        flex-direction: column-reverse;
    }

    .image-container img {
        width: 50%;
        position: absolute;
        bottom: -100px;
        right: 0;
    }

    .section-container {
        padding: 0 40px;
    }

    ul.about-goals {
        gap: 10px;
    }

    .about-goals li {
        padding: 25px;
    }

    .section-container p {
        line-height: 1.3;
        font-size: 16px;
    }

    .section-container h3 {
        margin: 15px 0;
        font-size: 24px;
    }

}

@media (max-width: 320px) {
    .image-container img {
        bottom: -100px;
        right: 40px;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    width: 50%;
    transform: translateX(-50%);
    background: rgba(203, 226, 247, 0.2);
    border-radius: 6px;
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.nav-links {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

ul.nav-links {
    width: 100%;
}

.nav-links li a {
    text-decoration: none;
    color: #0e51ad;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #4dabf7;
}

@media (max-width: 425px) {
    .navbar {
        width: 100%;
        border-radius: 0;
    }
}