/* ------------------------------------------
    About Me, Contact, and Disclaimer Section Styling
    (Home Page, After Hero)
------------------------------------------ */

.aboutme {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: #000;
    padding: var(--space-md) var(--space-sm);
    gap: var(--space-md);
}

.about-child {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
}

.about {
    flex: 1 1 330px;
    background: linear-gradient(120deg, var(--background-color) 75%, var(--primary-color) 105%);
    color: var(--font-color-secondary);
    padding: calc(var(--space-md) * 2) calc(var(--space-sm) * 2);
    border-radius: var(--radius-lg);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 3px 22px 0 rgba(64, 88, 158, 0.10);
    position: relative;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: var(--space-md);
}

.about:hover {
    background: var(--primary-color);
    box-shadow: 0 0px 25px 0 var(--accent-color);
    border-bottom: 2px solid var(--border-color-hover);
}

.about-heading {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.5rem;
    align-self: self-start;
    color: var(--off-white);
}

.about-heading h2 {
    font-size: 1.3rem;
}

.about ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    grid-gap: 1.5em;
    flex-direction: column;
    gap: 1.18em;
}

.about ul li {
    align-items: flex-start;
    gap: 0;
    font-size: 1.05em;
    color: var(--font-color-secondary);
    line-height: 1.7;
}

.about ul li i {
    font-size: 1.2em;
    color: var(--accent-color);
    min-width: 1.4em;
    opacity: .85;
}

.about ul li strong {
    color: var(--off-white);
    font-weight: 500;
}

/* Contact Section */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    gap: var(--space-md);
}

.contact-details {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: calc(var(--space-md) * 2);
    text-align: left;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1em;
    background-color: var(--primary-color);
    padding: 1.5em;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.contact-form p {
    color: var(--off-white);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--off-white);
}

/* Inputs/Selects/Textareas/Buttons */
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form button {
    width: 100%;
    padding: 1.5em;
    border-radius: var(--radius-md);
    border: solid 1px var(--secondary-color);
    margin: var(--space-xxs) 0 var(--space-md) 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.61);
    background-color: var(--background-color);
    color: var(--font-color-secondary);
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

/* Focus Outline – Accessibility */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.contact-form button:focus {
    outline: 2px solid var(--accent-color-secondary);
    outline-offset: 2px;
}

.contact-form button {
    background: var(--accent-color);
    color: #f9f9f9;
    cursor: pointer;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: none;
}

.contact-form button:hover {
    background: var(--accent-color-secondary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.info-item {
    width: fit-content;
    display: flex;
    gap: 10px;
    align-items: center;
}

.info-item .icon {
    background: var(--accent-color);
    color: var(--off-white);
    font-size: 20px;
    border-radius: 50%;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.info-item:hover .icon {
    background: var(--accent-color-secondary);
}

.info-item h4 {
    font-size: 16px;
    margin: 0;
    color: var(--font-color-secondary);
}

.info-item p {
    font-size: 14px;
    color: var(--off-white);
}

/* Responsive Desktop Layout */
@media screen and (min-width: 1024px) {
    .aboutme {
        padding: calc(var(--space-md) * 2);
        gap: calc(var(--space-md) * 2);
    }
    .about:hover {
        transform: scale(1.03);
    }

    .about-child {
        flex-direction: row;
        gap: calc(var(--space-md) * 2);
    }

    .about ul {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }

    .contact {
        padding: calc(var(--space-md) * 2);
    }

    .contact-details {
        flex-direction: row;
    }

    .contact-form {
        max-width: calc(50% - var(--space-md));
    }
}