html {
    background-color: #111827;
    font-family: "Merriweather Sans", serif;
}

h1 {
    color: white;
    text-align: center;
}

p {
    color: white;
    word-spacing: 0.15rem;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: #388bf8;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

#about-section {
    min-height: 80vh;
    flex-direction: column;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

#about-section h1 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#about-section .headshot {
    width: 30%;
    height: 30%;
    max-width: 350px;
    max-height: 350px;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 37px;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#about-section .headshot img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#about-section .headshot img:hover {
    transform: scale(1.2);
}

#about-section .links {
    font-size: 2.5rem;
}

#about-section .links a {
    padding: 0;
    margin: 0.3vw;
    text-decoration: none;
}

#about-section .links a i {
    transition: transform 0.3s, color 0.3s;
}

#about-section .links a:hover i {
    color: #38BDF8;
    transform: scale(1.2);
}

#about-section .links i {
    color: #8fa9cc;
    font-weight: 500;
}

#projects-section {
    width: 100%;
    margin: auto;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding-top: 30px;
}

#projects-section h2 {
    margin-bottom: 1rem;
    font-size: 2.4rem;
    font-weight: 700;
}

#projects-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: underline;
}

.project-info {
    width: 100%;
    margin-bottom: 4rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.card {
    background-color: #1e293b;
    padding: 1.5rem;
    border-radius: 0.75rem;
    width: 23rem;
    text-align: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: scale(1.02);
}

.card-img {
    width: 8rem;
    height: auto;
    margin-bottom: 1rem;
}

.card-img1 {
    width: 12rem;
    height: auto;
    border-radius: 8%;
    margin-bottom: 1rem;
}

.card-img2 {
    width: 15rem;
    display: block;
    margin: 0 auto 1rem auto;
    border-radius: 0.7rem;
    height: auto;
    margin-bottom: 1rem;
}

.card-img3 {
    width: 15rem;
    display: block;
    margin: 0 auto 1rem auto;
    border-radius: 0.7rem;
    height: auto;
    margin-bottom: 1rem;
}

.card-text h3 {
    margin: 0;
    color: #38bdf8;
    font-size: 1.2rem;
}

.card-text p {
    font-size: 0.875rem;
    margin-top: 0;
    color: #cbd5e1;
    line-height: 1.8;
    width: 100%;
    flex-grow: 1;
}

.card-button {
    background-color: #0284c7;
    color: white;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.875rem;
    margin-top: auto;
    align-self: center;

}

.card-button:hover {
    background-color: #0369a1;
}

#skills-section {
    width: 100%;
    margin: auto;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding-top: 30px;
}

#skills-section h2 {
    margin-bottom: 1rem;
    font-size: 2.4rem;
    font-weight: 700;
}

#skills-section .skills-container {
    font-size: 3rem;
}

#skills-section .skills-container i {
    transition: transform 0.3s, color 0.3s;
    padding: 0;
    margin: 0.3vw;
}

#skills-section .skills-container i:hover {
    color: #38BDF8;
    transform: scale(1.2);
}

#skills-section .skills-container i {
    color: #a4bad8;
    font-weight: 500;
}

#resumes-section {
    width: 100%;
    margin: auto;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding-top: 30px;
}

#resumes-section h2 {
    margin-bottom: 1rem;
    font-size: 2.4rem;
    font-weight: 700;
}

#resumes-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #b4ccee;
}

.resumes-container {
    width: 100%;
    margin-bottom: 4rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

#photography-categories {
    padding: 6rem 2rem 4rem;
}

#photography-categories h1 {
    font-size: 3rem;
    margin-bottom: 4rem;
    margin-top: 0;
}

.category-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.category-card {
    background-color: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
    width: 30rem;
    height: 20rem;
    transition: transform 0.3s;
    text-decoration: none;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.category-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.category-card:hover img {
    opacity: 1;
}

.category-card h2 {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:hover {
    transform: scale(1.05);
}

#photography-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    text-align: center;
}

#photography-section h2 {
    font-size: 2.5rem;
    margin-top: 0;
    color: #333;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2.4rem;
}

.gallery-prom {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

.gallery-robotics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

.photo-card {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.photo-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.photo-card:hover img {
    transform: scale(1.05);
}

.buttons {
    display: flex;
    gap: 0.4rem;
}

.back-button {
    background-color: #0284c7;
    color: white;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
}

.buttons{
    justify-content: start;
}

.back-button:hover {
    background-color: #0369a1;
}