@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

:root {
    --bg-main: #FFFFFF;
    --bg-secondary: #f6f6f6;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --text-on-accent: #FFFFFF;
    --accent: #70AFF6;
    --border-color: #E1E2DF;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}


.site-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.site-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.page-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Jumbotron Styles */
.jumbotron {
    position: relative;
    height: 600px;
    background-image: url('/images/elise-mudde-header.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.jumbotron-text {
    position: relative;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.jumbotron-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.jumbotron-text p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .jumbotron-text h1 {
        font-size: 2rem;
    }

    .jumbotron-text p {
        font-size: 1.2rem;
    }
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1150px;
    margin: 0 auto;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-text {
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin-bottom: 2rem;
    }
}

/* Work Experience Section */
.work-experience-section {
    background-color: var(--bg-secondary);
}

.work-experience-section h2 {
    font-size: 2.5rem;
    font-weight: 500;
}

.experience-item {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    align-items: start;
}

.experience-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
}

.experience-details p {
    line-height: 1.8;
}

.experience-details ul {
    list-style: none;
    padding: 0;
    line-height: 1.8;
}

.experience-cta {
    text-align: right;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.button:hover {
    background-color: var(--text-primary);
    color: var(--bg-main);
}

@media (max-width: 992px) {
    .experience-item {
        grid-template-columns: 1fr;
    }

    .experience-cta {
        text-align: center;
        margin-top: 2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-6 {
    margin-top: 1.5rem;
}
.mt-12 {
    margin-top: 3rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--bg-main);
}

.portfolio-section h2 {
    font-size: 2.5rem;
    font-weight: 500;
}

.portfolio-item {
    width: 31%; /* Adjust for 3 columns with gaps */
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .portfolio-item {
        width: 48%; /* 2 columns */
    }
}

@media (max-width: 768px) {
    .portfolio-item {
        width: 100%; /* 1 column */
    }
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.flipbook-wrapper {
    overflow: hidden;
}


/* Skills Section */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.skills-section {
    background: linear-gradient(to right, #2E4045, #6B7478);
    color: var(--text-on-accent);
    position: relative;
    overflow: hidden;
}

.skills-section::before,
.skills-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
}

.skills-section::before {
    left: 0;
    background: linear-gradient(to right, #2E4045, transparent);
}

.skills-section::after {
    right: 0;
    background: linear-gradient(to left, #2E4045, transparent);
}

.skills-section h2 {
    color: var(--text-on-accent);
}

/* On larger screens, center the original items */
.skills-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

/* On mobile, use the scrolling animation */
@media (max-width: 1024px) {
    .skills-grid {
        width: calc(200px * 18); /* item-width * number-of-items */
        justify-content: flex-start;
        animation: scroll 40s linear infinite;
    }
}

/* Hide duplicates on larger screens */
.skill-item:nth-child(n+10) {
    display: none;
}

.skill-item {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Show duplicates for the animation on mobile */
@media (max-width: 1024px) {
    .skill-item:nth-child(n+10) {
        display: flex;
    }
}

.skill-item img {
    max-height: 50px;
    max-width: 100%;
    filter: grayscale(100%);
}

/* CV Section */
.cv-section {
    background-color: var(--bg-main);
}

.cv-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.cv-category h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.cv-item {
    margin-bottom: 2.5rem;
}

.cv-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.cv-item p {
    margin: 0;
    line-height: 1.8;
}

.cv-item ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }
}

/* Quote Section */
.quote-section {
    background-color: var(--bg-secondary);
}

blockquote {
    margin: 0 auto 2rem;
    max-width: 800px;
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
}

cite {
    font-style: normal;
    line-height: 1.6;
}

cite small {
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(to right, #2E4045, #6B7478);
    color: var(--text-on-accent);
}

.contact-section h2 {
    color: var(--text-on-accent);
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.social-links a {
    display: inline-block;
    margin: 0 1rem;
    color: var(--text-on-accent);
}

.social-icon {
    width: 32px;
    height: 32px;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.8;
}
