/* ===========================================
   PRO REKENAARDIENSTE
   STYLE.CSS
=========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:#333;
    line-height:1.6;
}

/* ==========================
   CONTAINER
========================== */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ==========================
   HEADER
========================== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#0b3d91;
    z-index:999;
    box-shadow:0 3px 10px rgba(0,0,0,.2);
}

header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 0;
}

.logo img{
    height:70px;
}

/* ==========================
   NAVIGATION
========================== */

nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    margin-left:25px;
}

nav ul li a{
    color:#fff;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

nav ul li a:hover{
    color:#25D366;
}

/* ==========================
   WHATSAPP BUTTON
========================== */

.whatsapp-btn{
    background:#25D366;
    color:#fff;
    padding:12px 20px;
    border-radius:40px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.whatsapp-btn:hover{
    background:#1ca851;
}

/* ==========================
   HERO
========================== */

.hero{

    margin-top:95px;

    min-height:90vh;

    background:linear-gradient(
        rgba(11,61,145,.85),
        rgba(11,61,145,.85)),
        url("images/hero.jpg");

    background-size:cover;

    background-position:center;

    display:flex;

    align-items:center;

}

.hero-content{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:50px;

    align-items:center;

}

.hero-text h1{

    color:#fff;

    font-size:52px;

    margin-bottom:20px;

    font-weight:700;

}

.hero-text p{

    color:#fff;

    font-size:20px;

    margin-bottom:30px;

}

.hero-buttons{

    display:flex;

    gap:20px;

}

.hero-image img{

    width:100%;

    animation:float 4s ease-in-out infinite;
    .hero-image{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
}

.hero-img{
    width:100%;
    max-width:700px;
    height:auto;
    display:block;
    object-fit:contain;
}

}

/* ==========================
   BUTTONS
========================== */

.btn{

    display:inline-block;

    padding:14px 28px;

    border-radius:40px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.btn-primary{

    background:#25D366;

    color:white;

}

.btn-primary:hover{

    background:#1ba94d;

}

.btn-secondary{

    border:2px solid white;

    color:white;

}

.btn-secondary:hover{

    background:white;

    color:#0b3d91;

}
/* ===========================================
   DIENSTE
=========================================== */

.services{
    padding:100px 0;
    background:#ffffff;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:42px;
    color:#0b3d91;
    margin-bottom:15px;
}

.section-title p{
    color:#666;
    font-size:18px;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.service-card{
    background:#fff;
    border-radius:15px;
    padding:35px 25px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.service-card:hover{
    transform:translateY(-10px);
    box-shadow:0 18px 35px rgba(0,0,0,.15);
}

.service-card i{
    font-size:48px;
    color:#0b3d91;
    margin-bottom:20px;
}

.service-card h3{
    margin-bottom:15px;
    color:#0b3d91;
}

.service-card p{
    color:#666;
}

/* ===========================================
   HOEKOM ONS
=========================================== */

.why-us{
    background:#eef5ff;
    padding:100px 0;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:30px;
}

.why-card{
    background:white;
    text-align:center;
    padding:30px;
    border-radius:15px;
    transition:.3s;
}

.why-card:hover{
    transform:scale(1.05);
}

.why-card i{
    font-size:45px;
    color:#25D366;
    margin-bottom:20px;
}

.why-card h3{
    color:#0b3d91;
    margin-bottom:10px;
}

/* ===========================================
   OOR ONS
=========================================== */

.about{
    padding:100px 0;
    background:#fff;
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.about-image img{
    width:100%;
    border-radius:15px;
    box-shadow:0 12px 30px rgba(0,0,0,.15);
}

.about-text h2{
    color:#0b3d91;
    font-size:40px;
    margin-bottom:20px;
}

.about-text p{
    margin-bottom:20px;
    color:#555;
}

.about-list{
    list-style:none;
}

.about-list li{
    margin-bottom:15px;
    font-size:18px;
}

.about-list i{
    color:#25D366;
    margin-right:10px;
}

/* ===========================================
   KONTAK
=========================================== */

.contact-home{
    background:#eef5ff;
    padding:100px 0;
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
}

.contact-info{
    background:white;
    padding:35px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.contact-info h3{
    color:#0b3d91;
    margin-bottom:20px;
}

.contact-info p{
    margin-bottom:18px;
}

.contact-info i{
    color:#25D366;
    width:28px;
}

.contact-map iframe{
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

/* ===========================================
   FOOTER
=========================================== */

footer{
    background:#0b3d91;
    color:white;
    padding:60px 0 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;
}

.footer-logo{
    width:160px;
    margin-bottom:20px;
}

footer h4{
    margin-bottom:20px;
}

footer ul{
    list-style:none;
}

footer li{
    margin-bottom:10px;
}

footer p{
    margin-bottom:12px;
}

.copyright{
    border-top:1px solid rgba(255,255,255,.2);
    text-align:center;
    padding-top:20px;
    margin-top:40px;
    font-size:14px;
}

/* ===========================================
   ANIMASIES
=========================================== */

@keyframes float{

    0%{transform:translateY(0);}

    50%{transform:translateY(-15px);}

    100%{transform:translateY(0);}

}

/* ===========================================
   RESPONSIEF
=========================================== */

@media(max-width:992px){

.hero-content,
.about-grid,
.contact-grid{

    grid-template-columns:1fr;

}

.footer-grid{

    grid-template-columns:1fr;

    text-align:center;

}

nav{

    display:none;

}

.hero-text h1{

    font-size:38px;

}

.hero-buttons{

    flex-direction:column;

}

}

@media(max-width:768px){

.section-title h2{

    font-size:32px;

}

.hero{

    text-align:center;

}

.hero-text p{

    font-size:18px;

}

.logo img{

    height:55px;

}

.whatsapp-btn{

    display:none;

}

.service-card,
.why-card{

    padding:25px;

}

}
/* ==========================================
   PRO REKENAARDIENSTE
   script.js
========================================== */

document.addEventListener("DOMContentLoaded", () => {

    /* =====================================
       Smooth scrolling
    ===================================== */

    document.querySelectorAll('a[href^="#"]').forEach(anchor => {

        anchor.addEventListener("click", function (e) {

            const target = document.querySelector(this.getAttribute("href"));

            if (!target) return;

            e.preventDefault();

            target.scrollIntoView({
                behavior: "smooth",
                block: "start"
            });

        });

    });

    /* =====================================
       Sticky Header
    ===================================== */

    const header = document.querySelector("header");

    window.addEventListener("scroll", () => {

        if (window.scrollY > 60) {

            header.style.background = "#082d6d";
            header.style.boxShadow = "0 6px 18px rgba(0,0,0,.25)";

        } else {

            header.style.background = "#0b3d91";
            header.style.boxShadow = "0 3px 10px rgba(0,0,0,.2)";

        }

    });

    /* =====================================
       Fade-in Animation
    ===================================== */

    const animatedSections = document.querySelectorAll(
        ".service-card, .why-card, .about, .contact-home"
    );

    const observer = new IntersectionObserver((entries) => {

        entries.forEach(entry => {

            if (entry.isIntersecting) {

                entry.target.classList.add("show");

            }

        });

    }, {
        threshold: 0.15
    });

    animatedSections.forEach(section => {

        section.classList.add("hidden");

        observer.observe(section);

    });

    /* =====================================
       Active Navigation
    ===================================== */

    const sections = document.querySelectorAll("section");
    const navLinks = document.querySelectorAll("nav a");

    window.addEventListener("scroll", () => {

        let current = "";

        sections.forEach(section => {

            const sectionTop = section.offsetTop - 120;

            if (window.scrollY >= sectionTop) {

                current = section.getAttribute("id");

            }

        });

        navLinks.forEach(link => {

            link.classList.remove("active");

            if (link.getAttribute("href") === "#" + current) {

                link.classList.add("active");

            }

        });

    });

});

/* ==========================================
   Back To Top Button
========================================== */

const topButton = document.createElement("button");

topButton.innerHTML = "↑";

topButton.id = "topButton";

document.body.appendChild(topButton);

window.addEventListener("scroll", () => {

    if (window.scrollY > 400) {

        topButton.classList.add("visible");

    } else {

        topButton.classList.remove("visible");

    }

});

topButton.addEventListener("click", () => {

    window.scrollTo({

        top: 0,

        behavior: "smooth"

    });

});

/* ==========================================
   Card Hover Effect
========================================== */

document.querySelectorAll(".service-card").forEach(card => {

    card.addEventListener("mouseenter", () => {

        card.style.transform = "translateY(-12px)";

    });

    card.addEventListener("mouseleave", () => {

        card.style.transform = "";

    });

});