/* ======================================
   Haas Software — Style
   Dark theme, magenta accent (#e00083)
   Mobile-first, modern CSS
   ====================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #08080d;
    --color-bg-elevated: #111118;
    --color-bg-card: #16161f;
    --color-bg-card-hover: #1c1c28;
    --color-accent: #e00083;
    --color-accent-light: #ff2da0;
    --color-accent-glow: rgba(224, 0, 131, 0.15);
    --color-accent-glow-strong: rgba(224, 0, 131, 0.3);
    --color-text: #e8e8ef;
    --color-text-muted: #8888a0;
    --color-text-subtle: #555568;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Reveal animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ======================================
   Navigation
   ====================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.nav--scrolled {
    padding: 12px 0;
    background: rgba(8, 8, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 1001;
}

.nav__logo-img {
    width: 36px;
    height: 36px;
}

.nav__links {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav__links a:hover {
    color: var(--color-text);
}

.nav__links a:hover::after {
    width: 100%;
}

/* Language toggle */
.lang-toggle {
    background: transparent;
    border: 1px solid var(--color-border-hover);
    color: var(--color-text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.lang-toggle:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Hamburger */
.nav__menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav__menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(8, 8, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-menu__links a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    transition: color var(--transition);
}

.mobile-menu__links a:hover {
    color: var(--color-accent);
}

.mobile-menu__links .lang-toggle {
    font-size: 1rem;
    padding: 8px 20px;
}

/* ======================================
   Hero
   ====================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-glow-strong) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.hero__content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero__logo {
    margin-bottom: 32px;
}

.hero__logo-img {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 0 40px rgba(224, 0, 131, 0.4));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero__title--accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.hero__description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    50.01% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--color-accent);
    color: white;
}

.btn--primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(224, 0, 131, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-hover);
}

.btn--ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* ======================================
   Sections
   ====================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

/* ======================================
   Diensten (Services)
   ====================================== */
.diensten {
    background: var(--color-bg);
}

.diensten__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dienst-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dienst-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.dienst-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

.dienst-card:hover::before {
    opacity: 1;
}

.dienst-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.dienst-card__icon svg {
    width: 100%;
    height: 100%;
}

.dienst-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.dienst-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ======================================
   Producten (Products)
   ====================================== */
.producten {
    background: var(--color-bg-elevated);
}

.producten__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

.product-card--featured {
    border-color: rgba(224, 0, 131, 0.2);
    background: linear-gradient(135deg, var(--color-bg-card), rgba(224, 0, 131, 0.05));
}

.product-card--featured:hover {
    border-color: rgba(224, 0, 131, 0.4);
    box-shadow: 0 8px 40px rgba(224, 0, 131, 0.1);
}

.product-card--maatwerk {
    grid-column: 1 / -1;
    border-color: rgba(224, 0, 131, 0.2);
    background: linear-gradient(135deg, var(--color-bg-card), rgba(224, 0, 131, 0.05));
}

.product-card--maatwerk:hover {
    border-color: rgba(224, 0, 131, 0.4);
    box-shadow: 0 8px 40px rgba(224, 0, 131, 0.1);
}

.product-card__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--color-accent-glow);
    color: var(--color-accent-light);
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.product-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card__features span {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

/* ======================================
   Over ons (About)
   ====================================== */
.over {
    background: var(--color-bg);
}

.over__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.over__description {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.over__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat {
    text-align: center;
    padding: 32px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.stat__value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
}

.stat__suffix {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
}

.stat__label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* ======================================
   Tech marquee
   ====================================== */
.tech {
    padding: 40px 0;
    background: var(--color-bg);
    overflow: hidden;
}

.tech__marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.tech__track {
    display: flex;
    gap: 48px;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.tech__track span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-subtle);
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ======================================
   Contact
   ====================================== */
.contact {
    background: var(--color-bg-elevated);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.contact__text p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.contact__link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color var(--transition);
}

.contact__link svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact__link:hover {
    color: var(--color-accent);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    padding-top: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-subtle);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-group textarea ~ label {
    top: 24px;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label {
    top: 8px;
    transform: none;
    font-size: 0.7rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: 8px;
    font-size: 0.7rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ======================================
   Footer
   ====================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.footer__logo {
    width: 28px;
    height: 28px;
}

.footer__copy {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
}

/* ======================================
   Responsive — Tablet (768px+)
   ====================================== */
@media (min-width: 768px) {
    .diensten__grid {
        grid-template-columns: 1fr 1fr;
    }

    .producten__grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-card--featured {
        grid-column: 1 / -1;
    }

    .over__grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .contact__inner {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .hero__logo-img {
        width: 160px;
        height: 160px;
    }
}

/* ======================================
   Responsive — Desktop (1024px+)
   ====================================== */
@media (min-width: 1024px) {
    .nav__links {
        display: flex;
    }

    .nav__menu {
        display: none;
    }

    .diensten__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .section {
        padding: 140px 0;
    }

    .hero__logo-img {
        width: 180px;
        height: 180px;
    }

    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ======================================
   Selection color
   ====================================== */
::selection {
    background: var(--color-accent);
    color: white;
}

/* ======================================
   Scrollbar
   ====================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-text-subtle);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
