:root {
    --background-color: #ffffff;
    --text-color: #111111;
    --secondary-text: #575757;
    --accent-color: #666666;
    --border-color: #333333;
    --section-spacing: 4rem;
    --modal-background: #ffffff;
}

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

body {
    font-family: 'Abel', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Economica', sans-serif;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem;
}

header {
    padding: 2rem 0 0;
    text-align: center;
}

.logo svg {
    max-width: 175px;
    height: auto;
    width: 100%;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--secondary-text);
}

section {
    margin-bottom: var(--section-spacing);
}

.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 0;
}

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    margin: 0 auto 1.5rem;
    max-width: 500px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--accent-color);
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-align: center;
}

.experience-item {
    margin-bottom: 2rem;
}

.job-header {
    margin-bottom: 1rem;
}

.company {
    font-weight: 600;
    font-size: 1.1rem;
}

.position {
    font-weight: 500;
}

.date {
    color: var(--accent-color);
    font-size: 0.9rem;
}

ul {
    list-style-type: none;
    padding-left: 1rem;
}

li {
    margin-bottom: 0.5rem;
    position: relative;
}

.experience-item li::before {
    content: "›";
    content: ">" / "";
    position: absolute;
    left: -1rem;
}

.contact-section {
    text-align: center;
    padding: 2rem 0;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-links a {
    color: var(--text-color);
    text-decoration: none;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #eee;
}

.footer-text {
    color: var(--secondary-text);
}

.footer-logo {
    max-width: 15px;
}

.footer-dot {
    font-size: 0.8em;
    margin: 0 0.3em;
}

.footer-button {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-background);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: var(--modal-background);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 4px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.5rem;
}

.prompt-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.prompt-list li {
    margin-bottom: 1rem;
}

.logo svg path {
    /* Set initial fill to ensure animation has a starting point */
    fill: var(--text-color);
}

/* Ensure animation properties are being inherited */
.rainbow-wave path {
    animation: rainbowFill 8s ease infinite;
}

.rainbow-wave:hover path {
    animation-play-state: paused;
}

/* Update the delays to target path elements specifically */
.rainbow-wave path:nth-child(4n+1) { animation-delay: 1.2s; }
.rainbow-wave path:nth-child(4n+2) { animation-delay: 1.8s; }
.rainbow-wave path:nth-child(4n+3) { animation-delay: 2.7s; }
.rainbow-wave path:nth-child(4n+4) { animation-delay: 3.5s; }
.rainbow-wave path:nth-child(4n+5) { animation-delay: 4.8s; }

@keyframes rainbowFill {
    0% {
        fill: #3a3a3a;
    }
    20% {
        fill: #434343;
    }
    40% {
        fill: #808080;
    }
    60% {
        fill: #575757;
    }
    80% {
        fill: #909090;
    }
    100% {
        fill: #000000;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 2rem;
    }

    h2 {
        text-align: inherit;
    }

    nav {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }


    .hero {
        padding: 4rem 10rem;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-links {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    :root {
        --section-spacing: 8rem;
    }
}

.job-header {
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}

.experience-item:not(.education) .job-header::after {
    content: '+';
    content: '+' / '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.experience-item:not(.education).active .job-header::after {
    content: '−';
    content: "-" / "";
}

.experience-item ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    opacity: 0;
}

.experience-item ul[aria-expanded=true] {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}