/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* General Scaling Variable */
:root {
    --scale: 1.5; /* Change to 1.0 for 100% scale */
}

/* General Styling */
body {
    color: #333;
    font-size: calc(1rem * var(--scale));
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(20px * var(--scale));
    background-color: #2a8fbd;
    color: #fff;
}

header h1 {
    font-size: calc(1.5rem * var(--scale));
}

header nav a {
    margin-left: calc(15px * var(--scale));
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    background: url('./images/protections/image-1.jpeg') center/cover no-repeat;
    text-align: center;
    color: #fff;
    padding: calc(60px * var(--scale)) calc(20px * var(--scale));
}

.hero h2 {
    font-size: calc(2rem * var(--scale));
    margin-bottom: calc(10px * var(--scale));
}

.hero p {
    margin-bottom: calc(20px * var(--scale));
}

.hero button {
    padding: calc(10px * var(--scale)) calc(20px * var(--scale));
    background-color: #2a8fbd;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: calc(1rem * var(--scale));
}

.service-section {
    padding: calc(40px * var(--scale)) calc(20px * var(--scale));
    text-align: center;
}

.service-section h3 {
    font-size: calc(1.8rem * var(--scale));
    margin-bottom: calc(10px * var(--scale));
    color: #2a8fbd;
}

.service-section p {
    margin-bottom: calc(20px * var(--scale));
    color: #666;
}

.service-section button {
    padding: calc(10px * var(--scale)) calc(20px * var(--scale));
    background-color: #2a8fbd;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: calc(1rem * var(--scale));
}

.contact-section {
    padding: calc(40px * var(--scale)) calc(20px * var(--scale));
    background-color: #f5f5f5;
    text-align: center;
}

.contact-section h3 {
    font-size: calc(1.8rem * var(--scale));
    color: #2a8fbd;
    margin-bottom: calc(20px * var(--scale));
}

.contact-section form {
    max-width: calc(400px * var(--scale));
    margin: 0 auto;
}

.contact-section label {
    display: block;
    margin-bottom: calc(5px * var(--scale));
    font-weight: bold;
}

.contact-section input, .contact-section textarea {
    width: 100%;
    padding: calc(10px * var(--scale));
    margin-bottom: calc(15px * var(--scale));
    border: 1px solid #ccc;
    border-radius: calc(5px * var(--scale));
}

.contact-section button {
    padding: calc(10px * var(--scale)) calc(20px * var(--scale));
    background-color: #2a8fbd;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: calc(1rem * var(--scale));
}

footer {
    padding: calc(20px * var(--scale));
    text-align: center;
    background-color: #2a8fbd;
    color: #fff;
    font-size: calc(0.9rem * var(--scale));
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc(150px * var(--scale)), 1fr));
    gap: calc(10px * var(--scale));
    margin: calc(20px * var(--scale)) 0;
}

.image-gallery img {
    width: calc(100px * var(--scale));
    height: calc(100px * var(--scale));
    object-fit: cover;
    border-radius: calc(5px * var(--scale));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(calc(1.05 * var(--scale)));
}

/* Modal for Enlarged Image */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    display: block;
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.close {
    position: absolute;
    top: calc(20px * var(--scale));
    right: calc(30px * var(--scale));
    color: white;
    font-size: calc(2rem * var(--scale));
    font-weight: bold;
    cursor: pointer;
}

/* Navigation Arrows */
.arrow {
    position: absolute;
    top: 50%;
    font-size: calc(2rem * var(--scale));
    color: white;
    font-weight: bold;
    cursor: pointer;
    padding: calc(10px * var(--scale));
    user-select: none;
}

.left-arrow {
    left: calc(10% * var(--scale));
    transform: translateY(-50%);
}

.right-arrow {
    right: calc(10% * var(--scale));
    transform: translateY(-50%);
}

.button {
    display: inline-block;
    padding: calc(10px * var(--scale)) calc(20px * var(--scale));
    background-color: #25d366; /* WhatsApp green */
    color: #fff;
    text-decoration: none;
    border-radius: calc(5px * var(--scale));
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #1ebe57; /* Darker green on hover */
}

.whatsapp-button {
    position: fixed;
    bottom: calc(20px * var(--scale));
    right: calc(20px * var(--scale));
    width: calc(45px * var(--scale));
    height: calc(45px * var(--scale));
    background-color: #25d366; /* WhatsApp green */
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-button img {
    width: calc(30px * var(--scale));
    height: calc(30px * var(--scale));
    color: white;
}

.whatsapp-button:hover {
    transform: scale(calc(1.1 * var(--scale)));
}



/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {

    /* Header adjustments */
    header {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    header nav a {
        margin-left: 0;
        margin-top: 5px;
        font-size: 1rem;
    }

    /* Hero section adjustments */
    .hero {
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .hero .button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    /* Service section adjustments */
    .service-section {
        padding: 20px 15px;
    }

    .service-section h3 {
        font-size: 1.5rem;
    }

    .service-section p {
        font-size: 0.9rem;
    }

    .service-section .button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    /* Image gallery adjustments */
    .image-gallery {
        display: flex;
        overflow-x: auto;
        gap: 8px;
    }

    .image-gallery img {
        width: 80px;
        height: 80px;
    }

    /* Modal adjustments */
    .modal-content {
        max-width: 90%;
        max-height: 90%;
    }

    .arrow {
        font-size: 1.5rem;
    }

    /* Footer adjustments */
    footer {
        font-size: 0.8rem;
    }
}
