:root {
    --primary-color: #0a2939;
    --accent-color: #32886e;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --footer-muted: #a6c3d2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gabarito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Gabarito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-break: anywhere;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

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

/* Text Auto */
.text-auto {
    text-transform: none !important;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(0px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled,
.navbar.bg-fill,
body.nav-expanded .navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-logo {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.navbar-logo.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

body.nav-expanded::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    opacity: 0.5;
    z-index: 1000;
    pointer-events: none;
}

/* Enlarge nav-link font-size on mobile resolutions only */
@media (max-width: 575.98px) {
    .nav-link {
        font-size: 1.25rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3d52 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-logo {
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    max-width: 350px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bgpattern2.svg') repeat;
    background-size: 150px 150px;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

/* Buttons */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-accent:hover {
    background-color: #2a7058;
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(50, 136, 110, 0.4);
}

.btn-outline-primary {
    border-color: var(--accent-color);
    color: var(--accent-color);
    border-width: 2px;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}

/* Services Section */
#diensten {
    padding: 100px 0;
}

.service-card {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #2a7058);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: var(--primary-color);
    font-weight: 700;
}

/* About Section */
#over-ons {
    padding: 100px 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-dark);
    font-weight: 500;
}

/* Feature Items (System Edström) */
.feature-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature-icon img {
    max-width: 80px;
    height: auto;
}

.feature-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Portfolio Section */
#portfolio {
    padding: 100px 0;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 41, 57, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay i {
    font-size: 3rem;
    color: var(--accent-color);
}

/* Contact Section */
#contact {
    padding: 100px 0;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(50, 136, 110, 0.25);
}

.contact-info {
    padding: 2rem;
}

.contact-info i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color) !important;
    padding: 60px 0 30px;
    color: var(--text-light);
}

.footer h5 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer a {
    transition: color 0.3s ease;
    color: var(--footer-muted);
}

.footer a:hover {
    color: var(--accent-color) !important;
}

.footer .text-muted {
    color: var(--footer-muted) !important;
}

.footer .text-muted a {
    color: var(--footer-muted) !important;
}

.footer .text-muted a:hover {
    color: var(--accent-color) !important;
}

.footer .footer-bottom {
    font-size: 0.8rem;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--accent-color) !important;
}

/* Section Titles */
.display-4,
.display-5 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Configurator */
.configurator {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.configurator iframe {
    width: 100%;
    height: 100%;
    min-height: 750px;
    border: none;
    z-index: 3;
    position: relative;
}

.configurator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    z-index: 2;
    transform: translate(-50%, -50%);
    border: 5px solid #e0e0e0;
    border-top: 5px solid var(--accent-color, #764ba2);
    border-radius: 50%;
    animation: configurator-spin 1s linear infinite;
    background: transparent;
    transition: opacity 0.3s;
    opacity: 1;
    pointer-events: none;
}

.configurator.loading::before {
    opacity: 1;
    pointer-events: none;
}

.configurator.loaded::before {
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

@keyframes configurator-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


@media (max-width: 768px) {
    .configurator iframe {
        min-height: 500px;
    }
}