/* General styles */
body {
    background: radial-gradient(circle at top left, #0b0c10, #1c1c3c, #3c1c1c, #0b0c10);
    background-size: 150% 150%;
    animation: subtleGradientAnimation 30s ease infinite;
    color: #ccc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    font-family: 'Nunito Sans', sans-serif;
}

h1 {
    font-family: 'Carter One', cursive;
    font-weight: 400;
    font-size: 8rem;
    line-height: 1;
    margin-top: 0;
    padding: 0;
}

.code {
    font-family: monospace;
    font-size: 1rem;
}

/* Main container */
.container {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header styles */
header {
    text-align: left;
    margin-top: 5em;
}

footer {
    text-transform: uppercase;
    text-align: left;
    font-size: 0.8rem;
    margin: 3em 0 3em 0;
    letter-spacing: 0.2rem;
    font-weight: 800;
    color: #a0c4ff;
}

.welcome {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 2rem;
    color: #b8e3ff;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.1rem;
    padding-left: 0.1em;
}

.octo {
    color: #a0c4ff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.dad {
    color: #6a98e3;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.dot {
    color: #85aef1;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.header-compact {
    letter-spacing: -0.2rem;
}

.overview-content {
    display: flex;
    justify-content: space-between;
}

.overview-column {
    flex: 1;
    margin: 0 2em 0 0;
    font-size: 1.2rem;
}

.overview-column p {
    padding: 0;
    margin: 0 0 1em 0;
}

.overview-column b {
    font-weight: 800;
    color: #fff;
}

.overview-column a {
    font-weight: 800;
    color: #6a98e3;
    text-decoration: none;   
}

/* Updated styles for the image column */
.overview-column:first-child {
    flex: 0 0 150px;
    padding: 0;
    background: none;
}

/* Updated styles for the second and third columns */
.overview-column:nth-child(2) {
    flex: 1;
}

.headshot-container {
    width: 100%;
}

.headshot-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Visual frame styles */
.frame {
    position: fixed;
    background-color: #345fa4;
}

.frame.top-left-vertical {
    width: 1px;
    height: 50px;
    top: 10px;
    left: 10px;
}

.frame.top-left-horizontal {
    width: 30px;
    height: 1px;
    top: 10px;
    left: 10px;
}

.frame.bottom-right-vertical {
    width: 1px;
    height: 50px;
    bottom: 10px;
    right: 10px;
}

.frame.bottom-right-horizontal {
    width: 30px;
    height: 1px;
    bottom: 10px;
    right: 10px;
}

h2 {
    text-transform: uppercase;
    text-align: left;
    font-size: 0.8rem;
    margin: 3em 0 1em 0;
    letter-spacing: 0.2rem;
    font-weight: 800;
    color: #a0c4ff
}

.career-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 0.8em;
}

.career-point {
    background-color: rgba(106, 152, 227, 0.1);
    border-radius: 10px;
    padding: 1em;
    margin-bottom: 1em;
    border: 1px solid #345fa4;
}

.career-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1em;
    align-items: start;
}

.career-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.career-details h3 {
    margin: 0 0 0.5em 0;
    font-size: 0.8em;
    text-transform: uppercase;
    color: #eee;
    font-weight: 800;
}

.career-date {
    color: #a0c4ff;
    font-weight: normal;
    font-size: 0.8em;
}

.career-details p {
    margin: 0;
    font-size: 0.7em;
}

/* Changes for mobile devices */
@media (max-width: 1100px) {
    .career-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .career-container {
        grid-template-columns: 1fr;
    }

    header {
        text-align: center;
        margin-top: 3em;
        margin-bottom: 1em;
    }

    h1 {
        font-size: 3rem;
    }

    .headshot-container {
        max-width: 150px;
        margin: 1em auto;
    }

    .overview-content {
        flex-direction: column;
    }

    .overview-column {
        flex: 1;
        margin: 0;
        font-size: 1.2rem;
    }

    .overview-column:first-child {
        flex: 0 0 auto;
    }

    h2 {
        padding-top: 2em;
    }

    .welcome {
        display: none;
    }
}

/* Background animation stuff */
@keyframes subtleGradientAnimation {
    0% { background-position: 0% 0%; }
    50% { background-position: 25% 25%; }
    100% { background-position: 0% 0%; }
}
#email-address {
    transition: opacity 0.5s;
}

#email-address.fade-out {
    opacity: 0;
}

#email-address.fade-in {
    opacity: 1;
}

footer p {
    text-align: center;
    margin-bottom: 4em;
}

.footnote {
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    margin-bottom: 1em;
}