* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0071e3;
    --secondary-color: #1d1d1f;
    --text-color: #1d1d1f;
    --light-text: #6e6e73;
    --bg-color: #ffffff;
    --card-bg: #f5f5f7;
    --accent: #06c;
    --shadow: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --navbar-border: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #0a84ff;
    --secondary-color: #f5f5f7;
    --text-color: #f5f5f7;
    --light-text: #a1a1a6;
    --bg-color: #000000;
    --card-bg: #1c1c1e;
    --accent: #0a84ff;
    --shadow: rgba(255, 255, 255, 0.1);
    --navbar-bg: rgba(0, 0, 0, 0.8);
    --navbar-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--navbar-border);
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--navbar-border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-weight: 500;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(20deg);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Profile Image */
.profile-image-container {
    margin-top: 6rem;
    margin-bottom: 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--bg-color);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

[data-theme="dark"] .footer {
    background: var(--card-bg);
    color: var(--text-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        height: 100vh; /* Volledige hoogte */
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-bottom: 2rem;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        margin:1rem;
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .theme-toggle {
        width: 100px;
        height: 50px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-menu {
        margin-top: 25px; /* Aangepast voor kleinere navbar */
        height: 100vh;
        padding-bottom: 1.5rem;
    }

    .nav-link {
        font-size: 1rem;
        margin: 0.8rem 0;
        padding: 0.4rem 0.8rem;
    }

    .theme-toggle {
        width: 100px;
        height: 50px;
    }

    .hamburger {
        gap: 3px;
    }

    .hamburger span {
        width: 25px;
        height: 4px;
    }

    .hero {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 0.7rem 0.8rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .hamburger {
        gap: 3px;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -5px);
    }

    .nav-menu {
        margin-top: 12.5px; /* Aangepast voor kleinere navbar */
        height: 100vh;
        padding-bottom: 1.25rem;
    }

    .nav-link {
        font-size: 0.95rem;
        margin: 0.7rem 0;
        padding: 0.35rem 0.7rem;
    }

    .theme-toggle {
        width: 100px;
        height: 50px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 180px;
    }
}

@media (max-width: 300px) {
    .navbar {
        padding: 0.5rem 0.6rem;
    }

    .logo {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .hamburger {
        gap: 2.5px;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(3.5px, 3.5px);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -4.5px);
    }

    .nav-menu {
        margin-top: 0; /* Aangepast voor kleinste navbar */
        height: 100vh;
        padding-bottom: 1rem;
        left: -100%;
        width: 100%;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-link {
        font-size: 0.85rem;
        margin: 0.5rem 0;
        padding: 0.4rem 0.5rem;
        display: block;
        width: 100%;
        transition: all 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(102, 126, 234, 0.1);
        color: var(--primary-color);
    }

    .theme-toggle {
        width: 100px;
        height: 50px;
    }

    /* Verbeterde scroll binnen menu */
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }

    .hero {
        padding: 0.5rem;
        min-height: calc(100vh - 50px);
    }

    .hero h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        width: 150px;
    }

    .hero-buttons {
        gap: 0.6rem;
    }

    .footer {
        padding: 1rem 0.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .footer p {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}

/* Overlay voor mobile menu */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
    }
}