/*
Name: Lizbeth Gonzalez
Date: July 17, 2026
File Name: styles.css
*/

/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* CSS reset */
body,
header,
nav,
main,
footer,
article,
section,
aside,
figure,
figcaption,
form,
fieldset,
legend,
label,
input,
select,
textarea,
button,
table,
caption,
thead,
tbody,
tr,
th,
td,
audio,
h1,
h2,
h3,
p,
ul,
li,
div,
img,
iframe {
    border: 0;
    margin: 0;
    padding: 0;
}

/* Apply border-box sizing to all elements */
* {
    box-sizing: border-box;
}

/* Body styles */
body {
    background-color: #e9eef4;
    color: #222222;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1em;
    line-height: 1.6;
}

/* Responsive image styles */
img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* Responsive map styles */
iframe {
    display: block;
    height: 350px;
    max-width: 100%;
    width: 100%;
}

/* Mobile and larger screen content */
.mobile-only {
    display: block;
}

.tablet-desktop {
    display: none;
}

/* Header styles begin */
.site-header {
    background-color: #1f3a5f;
    color: #ffffff;
    padding: 1.5em 1em;
    text-align: center;
}

.site-header h1 {
    font-size: 2em;
    margin-bottom: 0.75em;
    text-shadow: 2px 2px 4px #000000;
}

.site-header figure {
    margin: 0 auto;
}

.site-header img {
    border-radius: 12px;
    margin: 0 auto;
    max-width: 250px;
    transition: transform 0.3s ease;
}

.site-header figcaption {
    font-size: 1.1em;
    margin-top: 0.75em;
}

.site-header p {
    margin-top: 0.75em;
}
/* Header styles end */

/* Navigation and hamburger menu styles begin */
nav {
    background-color: #14273d;
}

#menu-icon {
    background-color: #14273d;
    color: #ffffff;
    cursor: pointer;
    display: block;
    font-size: 2em;
    padding: 0.45em;
    text-align: center;
    width: 100%;
}

#nav-links {
    display: none;
    list-style-type: none;
    text-align: center;
}

#nav-links.show {
    display: block;
}

nav li {
    border-bottom: 1px solid #ffffff;
}

nav li:last-child {
    border-bottom: none;
}

nav a {
    color: #ffffff;
    display: block;
    font-weight: 700;
    padding: 0.85em;
    text-decoration: none;
}
/* Navigation and hamburger menu styles end */

/* Main styles begin */
main {
    margin: 0 auto;
    padding: 1em;
    width: auto;
}

.content-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    max-width: 100%;
    padding: 1.25em;
}

.content-card h2 {
    color: #1f3a5f;
    font-size: 1.6em;
    margin-bottom: 0.75em;
}

.content-card h3 {
    color: #1f3a5f;
    font-size: 1.2em;
    margin-bottom: 0.5em;
    margin-top: 1em;
}

.content-card p {
    margin-bottom: 1em;
}

.content-card ul {
    margin-left: 1.5em;
}

.content-card li {
    margin-bottom: 0.5em;
}

#home,
#about,
#projects,
#skills,
#contact,
#content {
    overflow-wrap: break-word;
    width: 100%;
}
/* Main styles end */
/* Skills and projects grid styles begin */
.skills-grid,
.projects-grid {
    display: grid;
    gap: 1em;
    grid-template-columns: 1fr;
    margin-top: 1.5em;
}

.skill-box,
.project-box {
    background-color: #e9eef4;
    border-radius: 10px;
    padding: 1em;
    transition: transform 0.3s ease;
}

.skill-box h3,
.project-box h3 {
    margin-top: 0;
}
/* Skills and projects grid styles end */

/* Table styles begin */
.proficiency-section {
    margin-top: 2em;
}

.mobile-table-list {
    display: block;
}

.proficiency-item {
    background-color: #e9eef4;
    border-left: 5px solid #1f3a5f;
    border-radius: 8px;
    margin-bottom: 1em;
    padding: 1em;
}

.proficiency-item h3 {
    margin-top: 0;
}

.proficiency-item p {
    margin-bottom: 0.5em;
}

.table-container {
    display: none;
}

table {
    border-collapse: collapse;
    margin: 1em auto 0;
    width: 100%;
}

caption {
    color: #1f3a5f;
    font-size: 1.1em;
    font-weight: 700;
    padding: 0.75em;
}

th,
td {
    border: 1px solid #1f3a5f;
    padding: 0.75em;
    text-align: left;
}

th {
    background-color: #1f3a5f;
    color: #ffffff;
}

tbody tr:nth-child(even) {
    background-color: #e9eef4;
}
/* Table styles end */

/* Form styles begin */
.form-section {
    border-top: 2px solid #e9eef4;
    margin-top: 2em;
    padding-top: 2em;
}

form {
    margin-top: 1em;
}

fieldset {
    border: 2px solid #1f3a5f;
    border-radius: 10px;
    padding: 1em;
}

legend {
    color: #1f3a5f;
    font-size: 1.2em;
    font-weight: 700;
    padding: 0 0.5em;
}

.form-grid {
    display: grid;
    gap: 1em;
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #1f3a5f;
    font-weight: 700;
    margin-bottom: 0.35em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: #ffffff;
    border: 1px solid #777777;
    border-radius: 6px;
    color: #222222;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1em;
    padding: 0.75em;
    width: 100%;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1f3a5f;
    outline: 3px solid #c9d8eb;
}

.submit-button {
    background-color: #1f3a5f;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1em;
    font-weight: 700;
    margin-top: 1em;
    padding: 0.85em 1.5em;
    transition: transform 0.3s ease;
    width: 100%;
}
/* Form styles end */

/* Contact page styles begin */
.contact-link {
    overflow-wrap: anywhere;
}

.location-section {
    border-top: 2px solid #e9eef4;
    margin-top: 2em;
    padding-top: 2em;
}

.map-container {
    border-radius: 12px;
    margin-top: 1em;
    overflow: hidden;
}
/* Contact page styles end */

/* Audio styles begin */
.audio-section {
    border-top: 2px solid #e9eef4;
    margin-top: 2em;
    padding-top: 2em;
}

.audio-section h2 {
    margin-bottom: 0.5em;
}

.audio-section p {
    margin-bottom: 1em;
}

audio {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}
/* Audio styles end */

/* Footer styles begin */
footer {
    background-color: #14273d;
    color: #ffffff;
    padding: 1.25em 1em;
    text-align: center;
}

footer a {
    color: #ffd166;
    overflow-wrap: anywhere;
    text-decoration: none;
}
/* Footer styles end */
/* Social media icon styles begin */
.social-media {
    margin-top: 1em;
}

.social-media a {
    display: inline-block;
}

.social-media img {
    border-radius: 12px;
    height: 45px;
    margin: 0 auto;
    transition: transform 0.3s ease;
    width: 45px;
}
/* Social media icon styles end */
/* Tablet media query begins */
@media screen and (min-width: 600px) {

    .mobile-only {
        display: none;
    }

    .tablet-desktop {
        display: block;
    }

    .site-header {
        padding: 2em;
    }

    .site-header h1 {
        font-size: 2.5em;
    }

    .site-header img {
        max-width: 275px;
    }

    #menu-icon {
        display: none;
    }

    #nav-links,
    #nav-links.show {
        display: flex;
        justify-content: center;
    }

    nav li {
        border-bottom: none;
        border-right: 1px solid #ffffff;
        width: 20%;
    }

    nav li:last-child {
        border-right: none;
    }

    nav a {
        padding: 1em 0.5em;
    }

    main {
        max-width: 900px;
        padding: 2em;
    }

    .content-card {
        padding: 2em;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-table-list {
        display: none;
    }

    .table-container {
        display: block;
        overflow-x: auto;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .full-width {
        grid-column: 1 / -1;
    }

    .submit-button {
        max-width: 220px;
        width: auto;
    }

    iframe {
        height: 400px;
    }
    .social-media img {
    height: 50px;
    width: 50px;
}
}
/* Tablet media query ends */

/* Desktop media query begins */
@media screen and (min-width: 1024px) {

    .site-header {
        padding: 2.5em;
    }

    .site-header h1 {
        font-size: 3em;
    }

    .site-header img {
        max-width: 300px;
    }

    .site-header img:hover {
        transform: scale(1.08);
    }

    nav li {
        width: 180px;
    }

    nav a:hover {
        background-color: #ffd166;
        color: #14273d;
    }

    main {
        max-width: 1100px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .skill-box:hover,
    .project-box:hover {
        transform: translateY(-5px);
    }

    tbody tr:hover {
        background-color: #d6e2f0;
    }

    .submit-button:hover {
        background-color: #ffd166;
        color: #14273d;
        transform: scale(1.03);
    }

    footer a:hover {
        color: #ffffff;
        text-decoration: underline;
    }

    iframe {
        height: 450px;
    }
    .social-media img {
    height: 55px;
    width: 55px;
}

.social-media img:hover {
    transform: scale(1.12);
}
}
/* Desktop media query ends */