:root {
    --color-background-dark: #121212;
    --color-background-panel: #1A1A1A;
    --color-border: #333333;
    --color-primary-accent: #00AEEF;
    --color-text-primary: #F5F5F5;
    --color-text-secondary: #AAAAAA;
    --font-primary: 'Work Sans', sans-serif;
    --font-secondary: 'Oswald', sans-serif;
    --animation-curve: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { 
    scroll-behavior: smooth; 
    cursor: auto;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background-dark);
    color: var(--color-text-primary);
    overflow-x: hidden;
}

/* Typography & Helpers */
h1, h2, h3 { font-family: var(--font-secondary); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
p { line-height: 1.7; max-width: 650px; margin: 0 auto 1rem auto; color: var(--color-text-secondary); }
p:last-child { margin-bottom: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 8rem 1.5rem; }
.text-accent {
    color: var(--color-primary-accent);
    animation: accent-glow 4s infinite ease-in-out;
}
@keyframes accent-glow {
    0%, 100% { text-shadow: 0 0 5px rgba(0, 174, 239, 0.2), 0 0 10px rgba(0, 174, 239, 0.1); }
    50% { text-shadow: 0 0 20px rgba(0, 174, 239, 0.6), 0 0 40px rgba(0, 174, 239, 0.4); }
}
.section-intro { text-align: center; margin-bottom: 4rem; }
.reveal { opacity: 0; transform: translateY(50px) skewY(3deg); transition: opacity 1.2s var(--animation-curve), transform 1.2s var(--animation-curve); }
.reveal.active { opacity: 1; transform: translateY(0) skewY(0); }

/* Hero Section */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero-video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); opacity: 0.5; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at center, rgba(18,18,18,0.2) 0%, rgba(18,18,18,0.9) 80%, var(--color-background-dark) 100%); z-index: -1; }
.hero-content { z-index: 1; padding: 1rem; }
.hero .logo { width: 120px; margin-bottom: 2rem; }
.hero h1 { text-shadow: 0 2px 20px rgba(0,0,0,0.7); }
.hero p { max-width: 500px; color: var(--color-text-primary); }

/* About Section */
.about-section { display: flex; justify-content: center; text-align: center; }
.about-text { max-width: 800px; }
.about-text h2, .about-text h3 { text-align: center; }
.about-text h3 { margin-top: -0.5rem; margin-bottom: 1.5rem; color: var(--color-text-primary); }

/* Card Styles (Services) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
.service-card { background: var(--color-background-panel); border: 1px solid var(--color-border); border-radius: 8px; padding: 2.5rem; text-align: center; transition: transform 0.4s var(--animation-curve), border-color 0.4s var(--animation-curve), box-shadow 0.4s var(--animation-curve); position: relative; overflow: hidden; }
.service-card:hover { 
    transform: translateY(-10px) perspective(1000px) rotateX(2deg); 
    border-color: var(--color-primary-accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.service-card h3 { margin-bottom: 1rem; color: var(--color-text-primary); }

/* Values Section */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.value-card { text-align: center; }
.value-card h3 { color: var(--color-text-primary); margin-bottom: 0.5rem; }

/* Stats Infographic */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.stat-item { text-align: center; padding: 1rem; }
.stat-item .number { font-size: clamp(3rem, 6vw, 3.5rem); font-family: var(--font-secondary); font-weight: 700; margin-bottom: 0.5rem; color: var(--color-primary-accent); }
.stat-item .label { font-size: 0.9rem; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text-secondary); }

/* "Ons Werk" Gallery */
.work-gallery-wrapper {
    position: relative;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-accent) var(--color-border);
}
.work-gallery-wrapper::-webkit-scrollbar { height: 8px; }
.work-gallery-wrapper::-webkit-scrollbar-track { background: var(--color-border); border-radius: 4px; }
.work-gallery-wrapper::-webkit-scrollbar-thumb { background-color: var(--color-primary-accent); border-radius: 4px; }
.work-gallery-wrapper:hover .work-gallery {
    animation-play-state: paused;
}
@keyframes autoscroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.work-gallery { 
    display: flex; 
    gap: 1.5rem; 
    padding-bottom: 1.5rem;
    width: fit-content;
    animation: autoscroll 150s linear infinite;
}
.work-item { 
    flex: 0 0 clamp(280px, 40vw, 400px); 
    border-radius: 8px; 
    overflow: hidden; 
    transition: transform 0.4s var(--animation-curve); 
    border: 1px solid var(--color-border); 
    position: relative; 
}
.work-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--animation-curve); }
.work-item:hover { transform: scale(1.03); z-index: 10; }
.work-item:hover img { transform: scale(1.05); }


/* Welding Sparkle Effect */
@keyframes sparkle-anim {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; box-shadow: 0 0 8px 3px rgba(255, 223, 186, 0.7), 0 0 10px 4px var(--color-primary-accent); }
    90% { opacity: 0; transform: scale(1.2); }
}
@keyframes sparks-fly {
    0%, 49%, 60%, 100% { box-shadow: none; opacity: 0; }
    50% { opacity: 1; box-shadow: 2px -5px 0 0px #FFD700, -3px 4px 0 0px #FFA500, 5px 6px 0 0px #FFD700; }
    55% { opacity: 0; box-shadow: 15px -25px 0 0px #FFD700, -20px 20px 0 0px #FFA500, 25px 30px 0 0px #FFD700; }
}
.service-card::after, .work-item::after {
    content: ''; position: absolute; width: 5px; height: 5px; background: #fff;
    border-radius: 50%; opacity: 0;
    animation: sparkle-anim 5s infinite, sparks-fly 5s infinite;
    animation-timing-function: ease-in-out;
}
.service-card:nth-of-type(1)::after, .work-item:nth-of-type(1)::after, .work-item:nth-of-type(4)::after { animation-delay: 0.5s; top: 20%; left: 98%; }
.service-card:nth-of-type(2)::after, .work-item:nth-of-type(2)::after, .work-item:nth-of-type(5)::after { animation-delay: 1.5s; top: 80%; left: 2%; }
.service-card:nth-of-type(3)::after, .work-item:nth-of-type(3)::after, .work-item:nth-of-type(6)::after { animation-delay: 2.8s; top: 5%; left: 40%; }
.service-card:nth-of-type(4)::after, .work-item:nth-of-type(7)::after { animation-delay: 4s; top: 90%; left: 75%; }


/* Footer CTA */
.footer-cta { text-align: center; padding: 6rem 1.5rem; background-color: var(--color-background-panel); }
.footer-cta h2 { margin-bottom: 1.5rem; }
.contact-btn { display: inline-block; background: var(--color-primary-accent); color: white; text-decoration: none; padding: 14px 32px; border-radius: 50px; font-weight: 500; margin-top: 1rem; transition: transform 0.3s var(--animation-curve), box-shadow 0.3s var(--animation-curve); position: relative; overflow: hidden; font-family: var(--font-secondary); letter-spacing: 1px; text-transform: uppercase; }
.contact-btn:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0, 174, 239, 0.2); }
.footer-cta .brand-line { margin-top: 3rem; font-size: 0.9rem; }

/* Floating Bar */
.floating-bar {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 40px); max-width: 500px;
    background-color: rgba(30, 30, 30, 0.8); backdrop-filter: blur(10px);
    border: 1px solid var(--color-border); border-radius: 12px;
    display: flex; justify-content: space-around; padding: 0; z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.floating-bar a {
    flex: 1; padding: 1rem; text-align: center; color: var(--color-text-primary);
    text-decoration: none; font-family: var(--font-secondary); font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}
.floating-bar a:first-child { border-right: 1px solid var(--color-border); border-radius: 12px 0 0 12px; }
.floating-bar a:last-child { border-radius: 0 12px 12px 0; }
.floating-bar a:hover { background-color: var(--color-primary-accent); color: white; }

