body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #f7f7f7;
    background-color: #f4f4f4;
    background-image: url(kuvat/tausta.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

header {
    background: url(kuvat/header.jpeg);
    background-size: cover;
    color: white;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-size: 24px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 1rem;
}

header h1 {
    margin: 0;
    font-size: inherit;
}

#headeri{
    text-align: center;
    padding-bottom: 2rem;

}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 1.8rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1c1d20;
}

#hero {
    background: url('path/to/your/hero-image.jpg') no-repeat center center/cover;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

#hero h2 {
    font-size: 2.5rem;
    margin: 0;
}

#hero p {
    font-size: 1.25rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h2 {
    color: #f3f3f3;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.service-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-card {
    background: radial-gradient(rgba(8, 8, 8, 0.5), rgba(8, 8, 8, 0.5)) ;
    border-radius: 8px;
    box-shadow: 0 5px 9px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    flex: 1 1 calc(33.333% - 1rem);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    margin-top: 0;
}

.photo-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.photo {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.photo img {
    width: 90%;
    height: auto;
    display: block;
    border-radius: 8px;
}

footer {
    background: url(kuvat/header.jpeg);
    background-size: cover;
    color: white;
    text-align: center;
    padding: 1rem;
}

footer p {
    margin: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 5px;
    width: 35px;
    background: white;
    margin: 5px;
    border-radius: 2px;
}
.logo {
    width: 25rem;
    filter:invert(1)
}
.logo1 {
    width: 23rem;
    height: 11rem;
}

/* Media Queries for Mobile Support */
@media (max-width: 1300px) {
    body{
        background-repeat: no-repeat;
        background-size:  cover;
        background-position: center;
        font-size: 1em;
    }
    header{
        background: url(kuvat/header.jpeg);
        padding: 0.2rem;
        background-size: cover;
    }
    footer{
        background: url(kuvat/header.jpeg);
        background-size: cover;
        font-size: 1em;
    }
    header .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 0.5rem
    }

    #headeri{
        text-align: center;
        padding-bottom: 2rem;
        font-size: 1.5em;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: rgba(51, 51, 51, 0.7);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: flex;
        max-width: 70%;
    }

    nav ul li {
        margin: 1rem 0;
    }

    #hero {
        padding: 3rem 1rem;
    }

    #hero h2 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .service-cards {
        flex-direction: column;
    }

    .service-card {
        flex: 1 1 100%;
        margin-bottom: 1em;
        font-size: 1em;
    }

    .photo-gallery {
        grid-template-columns: 3fr;
    }

    .logo{
        width: 15rem;
    }
    .logo1{
        width: 15rem;
        height: 7rem;
    }
    .photo:hover {
        transform: scale(1.00);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

/* styles.css */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%; /* Set maximum width to fill the screen */
    max-height: 90%; /* Set maximum height to fill the screen */
}

.modal-content img {
    width: auto; /* Set width to auto to maintain aspect ratio */
    height: auto; /* Set height to auto to maintain aspect ratio */
    max-width: 100%; /* Ensure the image doesn't exceed the container width */
    max-height: 100%; /* Ensure the image doesn't exceed the container height */
}

#caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close, .prev, .next {
    position: absolute;
    top: 50%;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.close {
    right: 35px;
    top: 15px;
    font-size: 40px;
}

.prev {
    left: 15px;
    font-size: 60px;
    margin-top: -50px;
}

.next {
    right: 15px;
    font-size: 60px;
    margin-top: -50px;
}

.close:hover, .close:focus,
.prev:hover, .prev:focus,
.next:hover, .next:focus {
    color: #bbb;
    text-decoration: none;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.photo img {
    cursor: pointer;
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover; /* Ensures images fill the frame */
}

/* Sticky footer styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1;
}

footer {
    background-color: #f1f1f1;
    padding: 10px 0;
    text-align: center;
}

.container {
    width: 80%;
    margin: auto;
}