/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #e9eef2; /* Softer, elegant light background */
    color: #2c3e50; /* Deeper, more professional text color */
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-weight: 600; /* Bolder text */
    overflow-wrap: break-word; 
}

/* Main Container */
.container {
    max-width: 850px; /* Slightly wider for better spacing */
    width: 100%;
    margin: auto;
    padding: 40px; /* More padding */
    background: linear-gradient(145deg, #ffffff, #f0f4f8); /* Subtle gradient */
    border-radius: 20px; /* More rounded corners */
    box-shadow: 10px 10px 30px #c1c9d2, -10px -10px 30px #ffffff; /* Neumorphic shadow */
    animation: fadeIn 1s ease-in-out;

    .contact-link:hover, .contact-link:focus {
    color: #c0392b; /* Highlight color on hover/focus */
    text-decoration: underline;
}

}


/* Front Page Gallery */
.front-page-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.gallery-photo {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 5px 5px 15px #c1c9d2, -5px -5px 15px #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px; /* More space */
    border-bottom: 2px solid #d1d9e6; /* Bolder, softer border */
    padding-bottom: 25px;
}

.header .logo {
    width: 120px; /* Larger logo */
    margin-bottom: 20px;
    border-radius: 50%; /* Circular logo */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.header h1 {
    font-family: 'Anton', sans-serif;
    color: #c0392b; /* Deeper, more elegant red */
    margin: 10px 0 5px;
    font-size: 3.5em; /* Larger font */
    font-weight: 700; /* Bolder */
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.header h2 {
    color: #2980b9; /* Deeper, more elegant blue */
    margin: 0;
    font-size: 1.8em; /* Larger font */
    font-weight: 700; /* Bolder */
}

/* Contact Section */
.contact {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-bottom: 40px;
    background: #e9eef2;
    padding: 25px;
    border-radius: 15px;
    box-shadow: inset 5px 5px 10px #c1c9d2, inset -5px -5px 10px #ffffff; /* Inset shadow */
}

.contact-person {
    transition: transform 0.3s;
}

.contact-person:hover {
    transform: translateY(-5px);
}

.contact-person p {
    margin: 8px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.contact-person strong {
    color: #c0392b;
}

.contact-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600; /* Make contact links bolder */
    transition: color 0.3s ease;
}

.contact-link:hover, .contact-link:focus {
    color: #c0392b; /* Highlight color on hover/focus */
    text-decoration: underline;
}

.gallery-photo:hover {
    transform: scale(1.05);
    box-shadow: 10px 10px 20px #b1b8c0, -10px -10px 20px #ffffff;

    .service-item p {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}
}

/* Footer */
.footer {
    text-align: left;
    margin-top: 60px;
    padding: 40px;
    border-top: 2px solid #d1d9e6;
    background: #e9eef2;
    border-radius: 20px;
    box-shadow: inset 5px 5px 10px #c1c9d2, inset -5px -5px 10px #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-section p {
    margin: 10px 0;
    color: #526c84;
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #d1d9e6;
    color: #526c84;
    font-style: italic;
}

/* Services Section */
.services {
    margin-bottom: 40px;
}

.services h3 {
    color: #2980b9;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 25px;
    font-weight: 700;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.service-item {
    background: linear-gradient(145deg, #f0f4f8, #ffffff);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 5px 5px 15px #c1c9d2, -5px -5px 15px #ffffff;
    border: 2px solid transparent;
    animation: floatIn 0.5s ease-out forwards;
    opacity: 0; /* Start hidden */
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 20px #c1c9d2, -10px -10px 20px #ffffff;
    border-color: #2980b9;
}

.service-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-item p {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #d1d9e6;
    color: #526c84;
    font-style: italic;
    font-weight: 600;
}

/* Service Page Specific Styles */
.service-page {
    padding: 40px 0;
}

.service-page h1 {
    font-family: 'Anton', sans-serif;
    color: #c0392b;
    text-align: center;
    font-size: 3.5em;
    margin-bottom: 40px;
    font-weight: 700;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 10px 10px 20px #c1c9d2, -10px -10px 20px #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer; /* Add pointer cursor to indicate it's clickable */
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 15px 15px 30px #c1c9d2, -15px -15px 30px #ffffff;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(145deg, #3194db, #2980b9);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1.2em;
    font-weight: 700;
    box-shadow: 5px 5px 15px #c1c9d2, -5px -5px 15px #ffffff;
}

.back-link:hover {
    background: linear-gradient(145deg, #2980b9, #3194db);
    transform: translateY(-3px);
    box-shadow: 8px 8px 20px #c1c9d2, -8px -8px 20px #ffffff;
}

/* Add focus styles for accessibility */
.service-item:focus, .nav-button:focus, .back-link:focus, .close-button:focus {
    outline: 2px solid #3194db;
    outline-offset: 3px;
}

/* Keyframes for animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger the animation for each service item */
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }


/* Navbar Styles */
.navbar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.nav-button {
    background: linear-gradient(145deg, #3194db, #2980b9);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 5px 5px 15px #c1c9d2, -5px -5px 15px #ffffff;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: linear-gradient(145deg, #2980b9, #3194db);
    transform: translateY(-3px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s;
}

.modal-content {
    background: #e9eef2;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 10px 10px 30px #c1c9d2, -10px -10px 30px #ffffff;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #c0392b;
    text-decoration: none;
}

.modal-content h3 {
    color: #2980b9;
    font-size: 2em;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.2em;
    margin: 10px 0;
}

.modal-content p a {
    color: #c0392b;
    text-decoration: none;
    font-weight: 600;
}

.modal-content p a:hover {
    text-decoration: underline;
}

/* --- Image Lightbox Modal --- */
#image-modal {
    background-color: rgba(0,0,0,0.85); /* Darker overlay for focus */
}

#image-modal .modal-content {
    background: none;
    box-shadow: none;
    width: auto;
    max-width: 85vw;
    max-height: 90vh;
    padding: 0;
}

#modal-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 15px;
}

#image-modal .close-button {
    color: #fff;
    font-size: 40px;
    top: 15px;
    right: 35px;
    transition: color 0.3s ease;
}

#image-modal .close-button:hover {
    color: #ccc;
}


/* --- Responsive Design --- */

/* For Tablets */
@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin: 20px;
    }

    .header h1 {
        font-size: 2.8em;
    }

    .header h2 {
        font-size: 1.5em;
    }

    .contact {
        flex-direction: column;
        gap: 15px;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* For Mobile Phones */
@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .container {
        padding: 20px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .header .logo {
        width: 100px;
    }

    .header h1 {
        font-size: 2.2em;
    }

    .header h2 {
        font-size: 1.3em;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .footer {
        font-size: 0.9em;
    }

    .navbar {
        top: 15px;
        right: 15px;
    }

    .nav-button {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .modal-content {
        width: 95%;
        padding: 25px;
    }

    .modal-content h3 {
        font-size: 1.5em;
    }

    .modal-content p {
        font-size: 1em;
    }

     .contact {
        flex-direction: column;
        gap: 15px;
    }

    .front-page-gallery {
        grid-template-columns: 1fr; /* Stack gallery images on smaller screens */
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
