/* Global styles for all pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Default: prevent scrolling on ALL pages except about.html and projects.html */
body:not(.about-page):not(.projects-page) {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    height: 100vh;
    width: 100%;
    overflow: hidden !important;
    position: fixed !important;
}

/* Base styles for all pages */
body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Special styles for scrollable pages */
body.about-page,
body.projects-page {
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    overflow-x: hidden !important;
}

/* Base styles for html */
html {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Ensure projects page cannot scroll */
body.projects-page {
    height: 100vh !important;
    overflow: hidden !important;
    position: fixed !important;
}

a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Base responsive container */
.container {
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
}

/* Layout structure */
main {
    flex: 1;
}

/* Custom scrollbar for the whole site */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Global responsive typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    letter-spacing: 1px;
}

p {
    line-height: 1.6;
    margin-bottom: 1em;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

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

.hidden {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Basic responsive grid system */
.grid {
    display: grid;
    gap: 20px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

/* Global responsive breakpoints */
@media (max-width: 1500px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .nav-buttons {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
        margin-left: auto;
    }
    
    .mobile-menu {
        display: flex;
    }
}

@media (max-width: 900px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .container { padding: 0 15px; }
}

@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    .container { padding: 0 10px; }
}

/* Height-based responsive adjustments */
@media (max-height: 800px) {
    .container { padding-top: 10px; padding-bottom: 10px; }
}

@media (max-height: 600px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .container { padding-top: 5px; padding-bottom: 5px; }
}

.hero {
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.name {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-buttons {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.contact-btn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced styling for buttons in navigation */
.nav-buttons a:last-child {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-buttons a:last-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.8s;
}

.nav-buttons a:last-child:hover::before {
    left: 100%;
}

.nav-buttons a:last-child:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Styling for non-CONTACT buttons */
.nav-buttons a:not(:last-child) {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.nav-buttons a:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.8s;
}

.nav-buttons a:not(:last-child):hover::before {
    left: 100%;
}

.nav-buttons a:not(:last-child):hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.hero-content {
    position: relative;
    padding: 20px;
    margin-bottom: 100px;
}

.pause-indicator {
    margin-bottom: 20px;
}

.projects {
    padding: 20px;
    position: relative;
    z-index: 2;
    margin-bottom: 100px;
}

.project-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 0 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.project-item {
    flex: 0 0 auto;
    width: calc(25% - 15px);
    height: 180px;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-item:hover img {
    transform: scale(1.07);
}

/* Improved scrollbar styling */
.project-grid::-webkit-scrollbar {
    height: 4px;
    display: block;
    background: rgba(255, 255, 255, 0.05);
}

.project-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.project-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.project-grid {
    -ms-overflow-style: none;
    scrollbar-width: thin;
    padding-bottom: 15px;
}

footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.location {
    font-size: 14px;
    opacity: 0.8;
}

.social-icon {
    color: #fff;
    font-size: 24px;
    opacity: 0.8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-links a {
    text-decoration: none;
}

/* Voeg een gradient toe aan de onderkant van de hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.9));
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1000;
    margin-left: 20px;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger-open .hamburger-icon span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-open .hamburger-icon span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 250px;
    background-color: #000000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 9999;
}

.mobile-menu-item {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 5px 0;
}

.mobile-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.mobile-menu-item:hover {
    transform: translateX(10px);
}

.mobile-menu-item:hover::after {
    width: 100%;
}

.language-switch {
    background: transparent !important;
    border: 1px solid #fff !important;
    color: #fff !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    margin-left: 15px !important;
    font-family: Arial, sans-serif !important;
}

.language-switch:hover {
    background: #fff !important;
    color: #000 !important;
}

/* Extra specifieke regels voor online versie */
button.language-switch:hover {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

.nav-buttons .language-switch:hover {
    background: #fff !important;
    color: #000 !important;
    transform: none !important;
}

.language-switch.mobile {
    margin: 20px 0 0 0;
    display: block;
    width: fit-content;
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.language-switch.mobile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Extra specifieke regels voor mobile online versie */
button.language-switch.mobile:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
}

.mobile-menu-content .language-switch.mobile:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .language-switch:not(.mobile) {
        display: none;
    }
}

