#projects {
    background: linear-gradient(
        135deg,
        var(--color-purple-light) 0%,
        var(--color-purple-gradient-1) 25%,
        var(--color-purple-light) 50%,
        var(--color-purple-gradient-2) 75%,
        var(--color-purple-light) 85%,
        var(--color-pink-light) 100%
    );
    position: relative;
    overflow: hidden;
    --section-color: #FFCCEA;
    padding-bottom: 70px;
    padding-top: 100px;
    margin-top: -20px;
}

#projects .container {
    padding-top: 60px;
}

.project-pixel {
    position: absolute;
    background-color: var(--color-primary); 
    width: 15px;
    height: 15px;
}

.project-pixel-1 {
    top: 80px;
    right: 120px;
}

.project-pixel-2 {
    bottom: 140px;
    left: 180px;
}

.project-pixel-3 {
    top: 200px;
    left: 100px;
}

.project-pixel-4 {
    bottom: 100px;
    right: 200px;
}

.projects-tabs {
    display: none;
}



.tab-content {
    position: relative;
    z-index: 1;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--color-white-transparent);
    backdrop-filter: blur(5px);
    padding: 30px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary), 0 0 0 4px var(--color-blue-highlight-shadow);
    position: relative;
    animation: scanlines 2s linear infinite;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.project-icon {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
}

.project-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: var(--color-primary); 
    margin: 0 0 25px 0;
    line-height: 1.4;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
    min-height: 2.8em;
    display: flex;
    align-items: center;
}

.project-card p {
    color: var(--color-primary);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
    font-weight: 500;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    min-height: 25px;
}

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

.view-live-btn,
.view-project-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
}

.view-live-btn:hover,
.view-project-btn:hover {
    background: var(--color-blue-light);
    color: var(--color-primary);
}

.tab-pane p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
}

/* Pixel stars styling for projects section */
.project-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Larger stars */
.project-star-large {
    position: absolute;
    width: 7px;
    height: 7px;
}

/* Special star classes that create a + shape using :before and :after */
.project-star-large::before,
.project-star-large::after {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Horizontal line */
.project-star-large::before {
    width: 7px;
    height: 3px;
    top: 2px;
    left: 0;
}

/* Vertical line */
.project-star-large::after {
    width: 3px;
    height: 7px;
    top: 0;
    left: 2px;
}

/* Positions of the stars */
.project-star-1 { top: 70px; left: 90px; }
.project-star-2 { top: 130px; right: 170px; }
.project-star-3 { top: 210px; left: 70px; }
.project-star-4 { bottom: 170px; right: 110px; }
.project-star-5 { bottom: 210px; left: 210px; }
.project-star-6 { top: 100px; right: 210px; }
.project-star-7 { top: 170px; right: 270px; }
.project-star-8 { bottom: 110px; left: 140px; }

/* Larger stars position */
.project-star-large-1 { top: 110px; left: 210px; }
.project-star-large-2 { bottom: 130px; right: 190px; }
.project-star-large-3 { top: 170px; right: 130px; }

/* Add twinkling animation for stars */
@keyframes project-twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Different animation durations for different stars */
.project-star-1, .project-star-5, .project-star-8 {
    animation: project-twinkle 2.5s infinite ease-in-out;
}

.project-star-3, .project-star-6 {
    animation: project-twinkle 3.5s infinite ease-in-out;
}

.project-star-2, .project-star-7 {
    animation: project-twinkle 4.5s infinite ease-in-out;
}

.project-star-large-1 {
    animation: project-twinkle 3.9s infinite ease-in-out;
}

.project-star-large-3 {
    animation: project-twinkle 4.9s infinite ease-in-out;
}

/* Animatie voor project plus decoraties */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.project-plus {
    position: absolute;
    color: var(--color-primary);
    font-size: 30px;
    font-weight: bold;
    font-family: monospace;
    animation: blink 2s ease-in-out infinite;
}

.project-plus-1 {
    top: 140px;
    right: 230px;
}

.project-plus-2 {
    bottom: 150px;
    left: 190px;
}

#projects h2 {
    color: var(--color-primary); 
    margin-bottom: 20px;
    font-size: 2.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Project details modal/popup styling */
.project-details-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 58, 112, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.project-details {
    background: var(--color-white);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    margin: 5vh auto;
    position: relative;
    overflow-y: auto;
    padding: 30px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary), 0 0 0 4px var(--color-blue-highlight-shadow);
    animation: scanlines 2s linear infinite;
}

.project-details-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: 'Press Start 2P', cursive;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-primary);
    cursor: pointer;
}

.project-details-close:hover {
    color: var(--color-blue-light);
}

.project-details-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-blue-light);
}

.project-details-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 10px;
}

.project-details-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-blue-light);
}

.project-details-tab {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    color: var(--color-primary);
    font-size: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.project-details-tab:hover {
    color: var(--color-blue-light);
}

.project-details-tab.active {
    color: var(--color-primary);
    font-weight: 700;
}

.project-details-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-blue-light);
}

.project-details-content {
    padding: 20px 0;
}

.project-details-pane {
    display: none;
}

.project-details-pane.active {
    display: block;
}

.project-details-pane h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.project-details-pane h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--color-primary);
    margin: 25px 0 15px;
    opacity: 0.9;
}

.project-details-pane h5 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--color-primary);
    margin: 20px 0 10px;
}

.project-details-pane p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 500;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.project-details-pane ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.project-details-pane li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.project-details-pane li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* Geneste lijsten styling */
.project-details-pane li ul {
    margin: 10px 0 5px 5px;
}

.project-details-pane li li {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Referentie link styling */
.reference-link {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-primary);
    transition: all 0.2s ease;
    font-weight: 600;
}

.reference-link:hover {
    color: var(--color-blue-light);
    border-bottom-color: var(--color-blue-light);
}

@media screen and (max-width: 768px) {
    .project-details {
        width: 95%;
        padding: 20px;
    }
    
    .project-details-tabs {
        gap: 15px;
    }
    
    .project-details-tab {
        padding: 8px 15px;
        font-size: 0.7rem;
    }
}

.coming-soon-message {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--color-primary);
    text-align: center;
    margin: 40px 0;
    line-height: 1.8;
}

@media screen and (max-width: 768px) {
    .coming-soon-message {
        font-size: 0.8rem;
        margin: 30px 0;
    }
}

/* PDF Viewer Styling */
.pdf-viewer-content {
    height: calc(100vh - 150px);
    overflow: hidden;
    padding: 20px;
    background: var(--color-white);
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--color-white);
}

