/* Author: Max Day*/
:root {
    --primary-color: #6366f1;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-color: #e2e8f0;
    --background-color: #0f172a;
    --dark-background: #1e293b;
    --card-color: rgba(30, 41, 59, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-color: #4f46e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 100px 0 50px;
    text-align: center;
    position: relative;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    margin-bottom: 20px;
    box-shadow: 0 10px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    text-shadow: 2px 2px 4px var(--shadow-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.3s forwards;
}

.title {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.5s forwards;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.7s forwards;
}

.contact-info a {
    text-decoration: none;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

nav {
    background-color: var(--dark-background);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--secondary-color);
}

section {
    padding: 40px 0;
    min-height: 5vh;
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
}

.card {
    background-color: var(--card-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-color);
    margin-bottom: 30px;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card.visible {
    transform: translateY(0);
    opacity: 1;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.date {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.skill {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill:hover {
    transform: scale(1.05);
    background-color: var(--secondary-color);
}

.project {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project img:hover {
    transform: scale(1.02);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.project-links a:hover {
    background-color: var(--secondary-color);
}

.testimonial {
    font-style: italic;
    position: relative;
    padding: 20px;
}

.testimonial::before, .testimonial::after {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    position: absolute;
    opacity: 0.5;
}

.testimonial::before {
    top: -10px;
    left: -10px;
}

.testimonial::after {
    bottom: -30px;
    right: -10px;
}

.author {
    text-align: right;
    font-weight: bold;
    margin-top: 20px;
    color: var(--accent-color);
}

footer {
    background-color: var(--dark-background);
    color: var(--text-color);
    text-align: center;
    padding: 30px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #2d3748;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: width 1s ease;
}

.animated-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    margin-top: 0px;
    position: relative;
    overflow: hidden;
}
.animated-button.disabled {
    background: linear-gradient(45deg, #64748b, #94a3b8);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.animated-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.animated-button.disabled:hover::after {
    animation: none;
}

.animated-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.6);
}

.animated-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.animated-button:hover::after {
    animation: ripple 1s ease-out;
}

.location {
    font-style: italic;
    color: #94a3b8;
    text-align: right;
    margin-top: 10px;
}

.card ul {
    margin-top: 5px;
    padding-left: 20px;
}

.card li {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 0.95em;
}

.position-type {
    font-size: 0.8em; 
    color: var(--accent-color);
}

.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.pdf-modal-header {
    padding: 15px;
    background-color: var(--dark-background);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.pdf-modal-download {
    margin: 10px;
    align-self: flex-end;
}

.pdf-modal-content {
    width: 100%;
    height: calc(100% - 70px);
    border: none;
}

/* These look rly cool */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 2rem;
    }
}