/* === BASIC TYPOGRAPHY === */
h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* === SECTION TITLE & INTRO === */
.section-title {
    margin-top: 6rem;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.intro-section {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.intro-section h2 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.intro-text {
    color: var(--light-text);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-top: 1rem;
}

/* === PROJECTS PAGE STYLES === */
.projects-container {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 650px;
}

.project-showcase:nth-child(even) {
    direction: rtl;
}

.project-showcase:nth-child(even) > * {
    direction: ltr;
}

.project-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    background-size: cover;
    background-position: center;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
    transition: all 0.3s ease;
    border-radius: 16px;
}

.project-showcase:hover .project-image::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.project-showcase:hover .project-image {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 7rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    z-index: 2;
    line-height: 1;
    font-family: Arial, sans-serif;
}

/* Video showcase styling - centraal in project-image */
.project-media {
    position: relative;
    width: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin: auto 0;
}

.project-video {
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 350px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

/* Grid container voor tech badges en fullscreen button */
.project-bottom-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    z-index: 5;
    position: relative;
    margin-top: auto;
}

.project-tech-stack {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    z-index: 5;
    position: relative;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #333;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: auto;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 5;
    position: relative;
}

.fullscreen-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    border-color: transparent;
}

.fullscreen-btn svg {
    width: 20px;
    height: 20px;
}

/* Fullscreen mode styling */
.project-video:fullscreen {
    object-fit: contain;
    background: black;
    max-height: 100vh;
}

.project-video:-webkit-full-screen {
    object-fit: contain;
    background: black;
    max-height: 100vh;
}

.project-video:-moz-full-screen {
    object-fit: contain;
    background: black;
    max-height: 100vh;
}

.project-screenshot {
    width: 100%;
    height: auto;
    max-width: 90%;
    max-height: 350px;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    object-fit: cover;
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-showcase:hover .project-video,
.project-showcase:hover .project-screenshot {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.project-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-details {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-details:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
    border-color: var(--navbar-border);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.project-header h3 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.project-links {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.project-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid var(--navbar-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-link:hover:not(.disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.project-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.project-description {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0 0 2rem 0;
}

.project-features h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-features h4::before {
    font-size: 1.3rem;
}

.project-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-features li {
    color: var(--text-color);
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.project-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.project-features li:hover {
    padding-left: 2.5rem;
    color: var(--primary-color);
}

.project-features li:hover::before {
    transform: translateX(5px) scale(1.2);
}

@media (max-width: 1200px) {
    .project-showcase {
        gap: 2rem;
    }
    
    .project-image {
        min-height: 400px;
    }
    
    .project-number {
        font-size: 5rem;
    }

    .project-video {
        max-height: 280px;
    }
}

@media (max-width: 968px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .intro-section h2 {
        font-size: 1.6rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    .projects-container {
        padding: 0 1rem;
        gap: 3rem;
    }
    
    .project-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        min-height: auto;
    }
    
    .project-image {
        min-height: 500px;
        order: 1;
    }
    
    .project-details {
        order: 2;
    }
    
    .project-number {
        font-size: 4rem;
        top: 1rem;
        right: 1rem;
    }
    
    .project-header {
        flex-direction: column;
    }
    
    .project-header h3 {
        font-size: 1.6rem;
    }
    
    .project-links {
        align-self: flex-start;
    }
    
    .project-video {
        max-width:500px
    }

    .project-media {
        margin: 1rem 0;
    }
}

@media (max-width: 768px) {
    .project-showcase {
        padding: 1.5rem;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .project-image {
        min-height: 450px;
        padding: 1.5rem;
    }

    .project-video {
        max-width:400px
    }

    .project-number {
        font-size: 3.5rem;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .fullscreen-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .fullscreen-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .intro-section h2 {
        font-size: 1.5rem;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .project-showcase {
        padding: 1rem;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .project-image {
        min-height: 350px;
        padding: 1rem;
    }

    .project-bottom-section {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .fullscreen-btn {
        width: 20%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .project-video {
        max-width: 250px;
    }

    .project-number {
        font-size: 3rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    .project-tech-stack {
        gap: 0.5rem;
    }

    .tech-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .fullscreen-btn svg {
        height: 16px;
    }
}

@media (max-width: 360px) {
    .project-showcase {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .project-image {
        min-height: 300px;
        padding: 0.75rem;
    }

    .project-video {
        max-width: 175px;
    }

    .project-number {
        font-size: 2.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .tech-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.7rem;
    }

    .fullscreen-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 300px) {
    .intro-section h2 {
        font-size: 1.2rem;
    }

    .intro-text {
        font-size: 0.85rem;
    }

    .project-showcase {
        padding: 0.5rem;
        gap: 0.5rem;
        border-radius: 12px;
    }

    .project-image {
        min-height: 250px;
        padding: 0.5rem;
        border-radius: 12px;
    }

    .project-video {
        max-height: 100px;
        border-radius: 8px;
        border-width: 2px;
    }

    .project-number {
        font-size: 2rem;
        top: 0.25rem;
        right: 0.25rem;
    }

    .project-bottom-section {
        gap: 0.5rem;
    }

    .tech-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
    }

    .fullscreen-btn {
        padding: 7px 10px;
        font-size: 0.7rem;
        border-radius: 8px;
    }

    .fullscreen-btn svg {
        width: 14px;
        height: 14px;
    }
}