/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

/* Navigation Styles */
.navbar {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(173, 216, 230, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5282;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #add8e6;
    color: #2c5282;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 50px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.cta-button {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button.primary {
    background-color: #add8e6;
    color: #2c5282;
}

.cta-button.primary:hover {
    background-color: #87ceeb;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: #2c5282;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: #2c5282;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Home Section */
.home-section {
    background-color: #f8f9fa;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.content-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.content-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 1.5rem;
    color: #2c5282;
    margin-bottom: 15px;
}

.content-card p {
    color: #666;
    line-height: 1.7;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #add8e6;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
}

/* About Section */
.about-section {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #2c5282;
    margin-bottom: 15px;
    margin-top: 30px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    margin: 20px 0;
}

.service-list li {
    color: #666;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #add8e6;
    font-weight: bold;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    border-radius: 8px;
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
}

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

.contact-info h3 {
    font-size: 1.8rem;
    color: #2c5282;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-details h4 {
    font-size: 1.2rem;
    color: #2c5282;
    margin-bottom: 5px;
}

.contact-details p {
    color: #666;
    line-height: 1.6;
}

/* Contact Form */
.contact-form-container h3 {
    font-size: 1.8rem;
    color: #2c5282;
    margin-bottom: 30px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #add8e6;
}

.submit-button {
    background-color: #add8e6;
    color: #2c5282;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-button:hover {
    background-color: #87ceeb;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #2c5282;
    color: white;
    padding: 50px 0 20px;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
}

.gallery-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 50vh;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.item {
    flex: 1;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: flex 0.8s ease;
    cursor: pointer;
    position: relative;
}

.item:hover {
    flex: 7;
}

/* Add a subtle overlay for better text visibility if needed */
.item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item:hover::before {
    opacity: 0.3;
}

/* Row 1 Images */
.item-1 { 
    background-image: url('gallery/1.jpg');
}

.item-2 { 
    background-image: url('gallery/2.jpg');
}

.item-3 { 
    background-image: url('gallery/3.jpg');
}

.item-4 { 
    background-image: url('gallery/4.jpg');
}

.item-5 { 
    background-image: url('gallery/5.jpg');
}

.item-6 { 
    background-image: url('gallery/6.jpg');
}

.item-7 { 
    background-image: url('gallery/7.jpg');
}

.item-8 { 
    background-image: url('gallery/8.jpg');
}

.item-9 { 
    background-image: url('gallery/9.jpg');
}

/* Row 2 Images */
.item-10 { 
    background-image: url('gallery/10.jpg');
}

.item-11 { 
    background-image: url('gallery/11.jpg');
}

.item-12 { 
    background-image: url('gallery/12.jpg');
}

.item-13 { 
    background-image: url('gallery/13.jpg');
}

.item-14 { 
    background-image: url('gallery/14.jpg');
}

.item-15 { 
    background-image: url('gallery/15.jpg');
}

.item-16 { 
    background-image: url('gallery/16.jpg');
}

.item-17 { 
    background-image: url('gallery/17.jpg');
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    font-weight: bold;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ff6b6b;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

#lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-wrap {
        height: 30vh;
        margin-bottom: 15px;
    }
    
    .item:hover {
        flex: 5;
    }
    
    .lightbox img {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .lightbox-nav {
        font-size: 20px;
        padding: 10px 15px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-wrap {
        height: 25vh;
        flex-direction: column;
    }
    
    .item {
        flex: none;
        height: 20%;
    }
    
    .item:hover {
        flex: none;
        height: 60%;
    }
}

@media screen and (max-width: 480px) {
    .clipped-border {
        width: 80px;
        height: 80px;
    }
    
    .hex-gallery {
        height: 200px;
    }
    
    .clipped-border:nth-child(2) {
        top: 60px;
        left: calc(50% - 60px);
    }
    
    .clipped-border:nth-child(4) {
        top: 60px;
        left: calc(50% + 0px);
    }
    
    .clipped-border:nth-child(5) {
        top: 0;
        left: calc(50% - 60px);
    }
    
    .gallery-grid-extra {
        grid-template-columns: 1fr;
    }
}

/* Footer */

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-company-name {
    font-size: 1.3rem;
    font-weight: bold;
}

.footer-description {
    color: #b3c6e7;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #add8e6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b3c6e7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #add8e6;
}

.footer-section p {
    color: #b3c6e7;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #3a5f94;
    color: #b3c6e7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-button {
        width: 140px;
        text-align: center;
        padding: 10px 12px;
        font-size: 0.85rem;
        letter-spacing: 0.2px;
    }

    /* Change main button text on mobile */
    .cta-button.primary {
        font-size: 0;
    }

    .cta-button.primary::after {
        content: "Pallet Handel";
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Gallery Responsive */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .lightbox-nav-btn {
        font-size: 20px;
        padding: 12px 16px;
    }

    #lightbox-image {
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    /* Make header much smaller on mobile */
    .header {
        height: 50vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 30px 15px;
    }

    .section {
        padding: 60px 0;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-close {
        font-size: 30px;
        top: -35px;
    }

    .lightbox-nav-btn {
        font-size: 18px;
        padding: 10px 12px;
    }

    .lightbox-caption {
        font-size: 1rem;
        margin-top: 10px;
    }
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active .nav-link {
        padding: 15px 0;
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-menu.active .nav-link:last-child {
        border-bottom: none;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Floating 3D Popup */
.floating-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 380px;
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0px);
    animation: floatIn 1s ease-out;
}

.floating-popup:hover {
    transform: translateY(-5px) scale(1.05);
}

.floating-popup.hidden {
    transform: translateY(150px);
    opacity: 0;
    visibility: hidden;
}

.floating-popup img {
    width: 320px;
    height: 320px;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.floating-popup p {
    text-align: center;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #575e75;
    line-height: 1.4;
    font-family: 'Arial', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(87, 94, 117, 0.3);
}

@keyframes floatIn {
    0% {
        transform: translateY(150px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* Mobile responsive for popup */
@media (max-width: 768px) {
    .floating-popup {
        width: 280px;
        padding: 15px;
        bottom: 15px;
        left: 15px;
    }
    
    .floating-popup img {
        width: 240px;
        height: 240px;
    }
    
    .floating-popup p {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Pointing Guy Hover Effect */
.content-card::after,
.stat::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background-image: url('joostwijstlinks.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center left;
    opacity: 0;
    transform: translateX(0);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 999;
}

.content-card:hover::after,
.stat:hover::after {
    opacity: 1;
    transform: translateX(80px);
}

/* Ensure hovered card has higher z-index than siblings */
.content-card:hover,
.stat:hover {
    z-index: 100;
    position: relative;
}

/* Make Joost twice as big for the top 3 service cards */
.content-card::after {
    width: 240px;
}

.content-card:hover::after {
    transform: translateX(160px);
}

/* Make Joost 150% bigger for the bottom 4 stat cards */
.stat::after {
    width: 180px;
}

.stat:hover::after {
    transform: translateX(120px);
}

/* Mobile adjustments for pointing guy */
@media (max-width: 768px) {
    .content-card::after {
        width: 200px;
    }
    
    .stat::after {
        width: 150px;
    }
    
    .content-card:hover::after {
        transform: translateX(120px);
    }
    
    .stat:hover::after {
        transform: translateX(90px);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Make header even smaller on very small phones */
    .header {
        height: 40vh;
        min-height: 350px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        padding: 20px 10px;
    }

    /* Make buttons even smaller for very small phones */
    .hero-cta {
        gap: 8px;
    }

    .cta-button {
        width: 110px;
        padding: 8px 10px;
        font-size: 0.75rem;
        letter-spacing: 0.1px;
    }

    /* Adjust button text for very small phones */
    .cta-button.primary::after {
        font-size: 0.75rem;
    }
}
