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

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

.navigation-container {
 /*   position: fixed; /* Fixes the navigation bar to the top */
    top: 0; /* Positions it at the very top */
    left: 0; /* Aligns it to the left edge */
    width: 100%; /* Makes it span the full width of the screen */
    background-color: darkslategrey; /* Keeps the background color */
    color: white; /* Text color */
    display: flex; /* Keeps the layout as a flexbox */
    justify-content: space-between; /* Space out logo and links */
    align-items: center; /* Vertically center the items */
    padding: 1rem 2rem; /* Adds some padding */
    z-index: 1000; /* Ensures the nav bar stays on top of other elements */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.nav-links a:hover {
    color: #ffd900;
}


nav img {
    height: 5rem;
}

section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap:50px;
    flex-wrap: wrap;
}

.hero-container {
    background: url("../Photos/keewalk-with-guard-rail-1.webp") no-repeat center center/cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: left;
    padding: 0 2rem;
}


.hero-text h1 {
    font-size: 2.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    display: inline-block;
    padding: 10px 20px;
}

.hero-text p {
    margin: 1rem 10rem 1rem 0rem;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem;

}

.hero-text a {
    display: inline-block;
    background-color: #ffd900;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.hero-text a:hover {
    background-color: darkslategray;
    color: white;
}


.Kontaktai-container {
    text-align: center;
    padding: 2rem 1rem;
}

.Section-container {
    text-align: center; /* Centers the text horizontally */
    padding: 2rem 1rem; /* Adds some spacing inside the container */
    color: darkslategrey; /* Ensures the text color matches your theme */
    position: relative; /* Keeps the position stable for alignment */
}

.Section-container h1, 
.Section-container h2 {
    display: inline-block; /* Keeps the border limited to the text's width */
    border-top: 3px solid #ffd900; /* Yellow border at the top */
    border-bottom: 3px solid #ffd900; /* Yellow border at the bottom */
    padding: 10px 0; /* Adds spacing between the text and borders */
    margin: 0 auto; /* Centers the text block horizontally */
}


.paslaugos-container .paslaugos-card {
    width: 400px;
    height: 500px;
    color: darkslategrey;
}

.paslaugos-card img {
    width: 400px;
}


.Serivce-card {
    width: 400px;
    height: 700px;
    color: darkslategrey;
}

.Serivce-card img{
    width: 400px;
    height: 600px;
}

.Kontaktai-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.kontaktai-card {
    display: flex; /* Enables layout for the card's content */
    flex-direction: column; /* Ensures content stacks vertically */
    justify-content: center; /* Centers content vertically within the card */
    align-items: center; /* Centers content horizontally within the card */
    width: 300px; /* Sets a consistent width for each card */
    padding: 20px; /* Adds padding for spacing inside the card */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Adds a shadow for better visibility */
    /* border: 1px solid #ccc; /* Optional: Adds a subtle border */
    /*border-radius: 8px; /* Optional: Adds rounded corners */
}

.kontaktai-card {
    width: 300px;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}


.footer-container {
    background-color: darkslategray;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-container img {
    width: 30px;
    height: 30px;
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navigation-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin: 1rem 5rem 1rem 0rem;
        background-color: rgba(0, 0, 0, 0.6);
        padding: 1rem;
        
    }

    .hero-container {
        height: 60vh;
    }
    
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin: 1rem 1rem 1rem 0rem;
        background-color: rgba(0, 0, 0, 0.6);
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    h3 {
        margin: 1rem;
    }

    p {
        margin: 1rem;
    }
}
