:root {
    --primary: #4F46E5;
    --secondary: #6366F1;
    --dark: #1E1B4B;
    --light: #F5F3FF;
    --accent: #8B5CF6;
    --text-light: #F8FAFC;
    --text-dark: #1E293B;
    --gradient: linear-gradient(135deg, #4F46E5, #8B5CF6);
    --bg-light: #F8F7FF;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* Modern Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    background: rgba(30, 27, 75, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    transition: var(--transition);
    margin-right: auto;  /* Duwt logo naar links */
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.navbar ul {
    margin-left: 4rem;  /* Ruimte tussen logo en menu */
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar a {
    color: var(--text-light);
    position: relative;
    padding: 0.5rem 1rem;
    text-decoration: none; /* Verwijder de standaard text-decoration */
}

/* Verwijder onderstreping effect */
.navbar a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

/* Streepje blijft zichtbaar voor actieve pagina */
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.contact-btn {
    background: var(--gradient);
    border-radius: 50px;
    color: var(--text-light) !important;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0;
    background: var(--primary);
    color: white;
}

.hero-image {
    background: url('../images/hero-bg.jpg') center/cover;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,23,42,0.9), transparent);
}

.hero-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.lead-text {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.cta-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

/* Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    transform: translateY(100%);
    transition: var(--transition);
}

.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition);
}

/* Page Headers */
.page-header {
    min-height: 45vh;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    background: var(--gradient);
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Split Hero Section */
.hero.split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    background: var(--dark);
    align-items: center;
    gap: 0;
}

.hero-content {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-highlight {
    color: var(--primary);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0 80px;
    max-height: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-primary, .cta-secondary {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.cta-primary {
    background: var(--primary);
    color: var(--light);
}

.cta-primary:hover {
    background: var(--gradient);
    color: var(--light);
}

.cta-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-secondary:hover {
    background: var(--primary);
    color: var(--light);
}

/* Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    transform: translateY(100%);
    transition: var(--transition);
}

.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition);
}

/* Page Headers */
.page-header {
    min-height: 45vh;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    background: var(--gradient);
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Split Hero Section */
.hero.split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    background: var(--dark);
    align-items: center;
    gap: 0;
}

.hero-content {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-highlight {
    color: var(--primary);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0 80px;
    max-height: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-primary, .cta-secondary {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.cta-primary {
    background: var(--primary);
    color: var(--light);
}

.cta-primary:hover {
    background: var(--gradient);
    color: var(--light);
}

.cta-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-secondary:hover {
    background: var(--primary);
    color: var(--light);
}

/* Section Headers */
.section-header {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 4rem;
}

/* Section Updates */
.section-container {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-top: -4rem;
    position: relative;
    z-index: 3;
    border-radius: 24px 24px 0 0;
}

/* Project Grid Styling */
.projects-container {
    padding: 8rem 2rem;
    background: var(--light);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-item {
    display: flex;
    flex-direction: column;
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transition: var(--transition);
    position: relative;
}

.project-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--secondary);
}

/* Project Item Updates */
.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--dark);
    color: var(--text-light);
}

.project-category {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
}

.project-description {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.9;
}

.project-tech {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tech span {
    background: var(--secondary);
    color: var(--light);
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Project Links */
.project-link {
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.project-link:hover {
    color: var(--light);
    transform: translateX(5px);
}

/* Card Styling */
.card {
    background: var(--dark);
    color: var(--text-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Active state voor navigatie */
.navbar a.active {
    color: var(--accent);
    font-weight: 600;
}

.navbar a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Pointer Cursor */
.pointerCursor {
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Page Styling */
.about-section .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.bio-card, .tech-stack {
    margin-bottom: 2rem;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tech-item {
    background: var(--secondary);
    color: var(--accent);
    border-radius: 8px;
    padding: 0.3rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.profile-image {
    width: 100%;
    max-width: 320px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    margin: 0 auto;
    display: block;
}

/* Contact Page */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info {
    background: var(--dark);
    color: var(--text-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.contact-details {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--accent);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--dark);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--secondary);
    background: var(--secondary);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.cta-primary[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* Footer Styling */
.footer-content {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    background: var(--secondary);
    margin-top: 4rem;
}

.footer-content .social-links {
    justify-content: center;
    margin-bottom: 1rem;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .about-section .about-grid,
    .contact-grid,
    .hero.split-hero {
        grid-template-columns: 1fr;
    }
    .hero-image img {
        border-radius: 0 0 32px 32px;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        justify-content: space-between; /* Terugzetten naar standaard op mobiel */
    }
    
    .navbar ul {
        margin-left: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 1rem;
        justify-content: space-around;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    }
    
    .navbar a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .contact-btn {
        padding: 0.4rem 1rem;
    }

    .page-header {
        margin-top: 60px;
        min-height: 30vh;
    }

    .hero.split-hero {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-container {
        margin-top: -2rem;
        padding: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-primary, 
    .cta-secondary {
        width: 100%;
        text-align: center;
    }

    .project-item {
        margin: 0 1rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .tech-grid {
        gap: 0.5rem;
    }

    .tech-item {
        font-size: 0.9rem;
        padding: 0.2rem 0.8rem;
    }
}
