* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    width: 150px;
    height: auto;
    animation: logoFade 1.5s ease-in-out infinite;
}

@keyframes logoFade {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #c40000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    letter-spacing: 2px;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: #111;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    height: 50px;
    width: auto;
    display: block;
}

.logo span {
    color: #c40000;
}

/* HEADER CONTACT */
.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-link {
    text-decoration: none;
    color: #c40000;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 4px;
    transition: 0.3s ease;
    white-space: nowrap;
}

.phone-link:hover {
    background: #c40000;
    color: white;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
    margin: 0;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #111;
    transition: 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* NAVIGATION */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #111;
    font-size: 16px;
    transition: color 0.3s;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    color: #c40000;
    border-bottom-color: #c40000;
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    min-height: 300px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(28px, 8vw, 56px);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero p {
    color: #444;
    margin-bottom: 30px;
    font-size: clamp(16px, 4vw, 20px);
}

.btn {
    background: #c40000;
    color: #fff;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: 0.3s ease;
    font-weight: 600;
    border: 2px solid #c40000;
    cursor: pointer;
}

.btn:hover {
    background: #000;
    border-color: #000;
}

.btn-secondary {
    background: transparent;
    color: #c40000;
    border-color: #c40000;
}

.btn-secondary:hover {
    background: #c40000;
    color: #fff;
}

/* HERO BUTTONS LAYOUT */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .header-contact {
        display: none;
    }
}

/* ABOUT INTRO */
.about-intro {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 60px);
    background: #f7f7f7;
}

.about-intro-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    justify-items: center;
}

.about-text {
    text-align: left;
}

.about-text h1 {
    font-size: clamp(28px, 6vw, 42px);
    margin-bottom: 20px;
    color: #111;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(196, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(196, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .about-intro-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text {
        text-align: center;
    }
}

/* SECTIONS */
.section {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 60px);
    text-align: center;
}

.section h2 {
    font-size: clamp(28px, 6vw, 36px);
    margin-bottom: 40px;
}

.section h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #c40000;
    display: block;
    margin: 15px auto;
}

.light-gray {
    background: #f7f7f7;
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ABOUT */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    border: 1px solid #eee;
    padding: 30px 20px;
    transition: 0.3s ease;
}

.card h3 {
    font-size: clamp(18px, 4vw, 20px);
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #666;
}

.card:hover {
    border-color: #c40000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* PROJECTEN */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
    display: block;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: 0.4s ease;
}

.project-overlay h3 {
    font-size: clamp(18px, 4vw, 20px);
    margin-bottom: 5px;
}

.project-overlay p {
    font-size: 14px;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* PARTNERS */
.partners-text {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #444;
    padding: 0 20px;
    font-size: clamp(14px, 3vw, 16px);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: 0.3s ease;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
}

.partner-logo:hover {
    border-color: #c40000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* FORM */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

input, textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    min-height: 44px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #c40000;
    box-shadow: 0 0 0 3px rgba(196, 0, 0, 0.1);
}

button {
    background: #c40000;
    color: #fff;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    min-height: 44px;
    transition: 0.3s ease;
}

button:hover {
    background: #000;
}

.footer-contact {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.footer-contact a:hover {
    color: #c40000;
    border-bottom-color: #c40000;
}

button {
    background: #c40000;
    color: #fff;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    min-height: 44px;
    transition: 0.3s ease;
}

button:hover {
    background: #000;
}

/* FOOTER */
footer {
    background: #000;
    color: #fff;
    padding: 40px 20px;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 0;
}

.footer-menu {
    display: flex;
    gap: 30px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.footer-menu a:hover {
    color: #c40000;
    border-bottom-color: #c40000;
}

@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }
}

/* RESPONSIVE - TABLET (768px and up) */
@media (min-width: 768px) {
    .navbar {
        padding: 20px 40px;
    }

    .logo {
        font-size: 26px;
    }
}

/* RESPONSIVE - DESKTOP (1024px and up) */
@media (min-width: 1024px) {
    .navbar {
        padding: 20px 60px;
    }

    .logo {
        font-size: 28px;
    }
}

/* MOBILE (max-width: 767px) */
@media (max-width: 767px) {
    .navbar {
        padding: 15px 20px;
    }

    .hamburger {
        display: flex;
        padding: 8px 5px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-bottom: 1px solid #eee;
        z-index: 100;
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 15px 0;
    }

    .nav-menu a {
        padding: 15px 20px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        min-height: 50px;
        display: flex;
        align-items: center;
        font-size: 16px;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 200px;
    }

    .section {
        padding: 40px 20px;
    }

    .section h2 {
        margin-bottom: 30px;
    }

    .card {
        padding: 20px 15px;
    }
}

/* CHATBOT WIDGET */
#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    box-shadow: none;
    z-index: 999;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

#chat-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

#chat-toggle:hover {
    transform: scale(1.1);
}

#chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 40px rgba(0,0,0,0.2);
    flex-direction: column;
    z-index: 1000;
    display: none;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#chat-widget.active {
    display: flex;
}

#chat-header {
    background: #c40000;
    color: white;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.chat-logo {
    height: 30px;
    width: auto;
    max-width: 40px;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 8px 12px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    padding: 12px 14px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    animation: slideInChat 0.3s ease;
}

@keyframes slideInChat {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg strong {
    font-weight: 600;
}

.chat-msg br {
    content: '';
}

.chat-msg.user {
    background: #c40000;
    color: white;
    align-self: flex-end;
    border-radius: 18px 18px 4px 18px;
}

.chat-msg.bot {
    background: #f0f0f0;
    color: #111;
    align-self: flex-start;
    border-radius: 18px 18px 18px 4px;
}

/* CHAT BUTTONS */
#chat-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid #eee;
    background: white;
}

.chat-option-btn {
    background: linear-gradient(135deg, #c40000, #a00000);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: left;
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(196, 0, 0, 0.2);
}

.chat-option-btn:hover {
    background: linear-gradient(135deg, #a00000, #800000);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(196, 0, 0, 0.35);
}

.chat-option-btn:active {
    transform: translateX(2px);
}

@media (max-width: 480px) {
    #chat-widget {
        width: calc(100vw - 20px);
        height: 400px;
        bottom: 160px;
        right: 10px;
    }
    
    #chat-toggle {
        bottom: 100px;
        right: 10px;
    }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 9998;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
}

.cookie-text p {
    font-size: 14px;
    color: #ddd;
    line-height: 1.6;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    white-space: nowrap;
}

.cookie-accept {
    background: #c40000;
    color: white;
}

.cookie-accept:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 0, 0, 0.4);
}

.cookie-decline {
    background: transparent;
    color: white;
    border: 2px solid #666;
}

.cookie-decline:hover {
    border-color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-text h4 {
        font-size: 16px;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
}


