/* Reset some default styles */
body, h1, h2, h3, p, ul, li, form {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #052a31; /* Body text color */
    background-color: #005c8d;
}

.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
    text-align: center;
}

/* Header styling */
header {
    background: linear-gradient(167deg, #219cdf 0%, #005c8d 100%);
    color: white; /* White text color */
    padding: 0.5rem 0; /* Reduced padding */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Padding for smaller screens */
}

.logo-container {
    display: flex;
    align-items: center; /* Center vertically */
}

/* Header Logo Hover Effect */
.logo-container img {
    cursor: pointer; /* Show a pointer when hovering */
}

.logo-container img:hover {
    filter: brightness(1.15); /* Brighten the logo on hover */
}

.logo-link {
    text-decoration: none; /* Remove link underline */
    color: inherit; /* Inherit text color */
    
}

.header-logo {
    height: 2.5rem; /* Adjusted size */
    margin-right: 3px; /* Remove default margin */
    vertical-align: middle; /* Align vertically in line with text */
}

.company-name-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Keep the text color the same */
}

.company-name {
    margin: 0; /* Remove default margin */
    font-size: 1.5rem;
    line-height: 1; /* Adjust line height */
    transition: transform 0.2s ease, color 0.3s ease, text-shadow 0.3s ease; /* Smooth transition */
}


.company-name:hover {
    /* color: #fff; /* Change to white on hover */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Add shadow */
    transform: scale(1.05); /* Slightly enlarge */
}

/* Align navigation items with the company name */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 10px;
    font-size: 1.1rem;
}

nav ul li a {
    color: white; /* White text color */
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    /* color: #fff; /* Change to white on hover */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1); /* Add shadow */
}
.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #005d888f; /* Dark overlay */
    z-index: -1; /* Ensure it is behind the content */
}

.hero-container {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
    height: 90vh;
    display: flex; /* Use Flexbox for layout */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center content horizontally */
    gap: 2rem; /* Space between image and text */
    padding: 3rem 0; /* Padding for spacing */
    background-image: url('images/Ciglje.jpg'); /* Path to your background image */
    background-size: cover; /* Make the image cover the entire section */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent image repetition */
    background-color: #0c5070; /* Fallback color if the image doesn’t load */
}

.hero-image-container {
    flex: 1; /* Image takes 1 part */
    display: flex; /* Center the image */
    justify-content: center; /* Horizontally center */
}

.hero-logo {
    max-width: 100%; /* Make image responsive */
    height: auto; /* Maintain aspect ratio */
}

.hero-text-container {
    flex: 1; /* Text takes 1 part */
    text-align: left; /* Align text to the left */
    color: white;
    text-shadow: 1px 1px 4px black;
}

#hero h2 {
    margin: 1rem 0rem;
    color: #ffffff; /* Secondary color */
    font-size: 2rem;
}

.hero-title-container {
    text-align: center; /* Center the title */
    margin-bottom: 2rem; /* Space below the title */
    flex-basis: 100%; /* Make it full width */
}

.hero-title {
    font-size: 5rem; /* Large font size */
    font-weight: bold; /* Bold text */
    line-height: .9; /* Adjust line height */
    margin: 0; /* Remove default margin */
    padding-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem; /* Larger padding around the button */
    margin: 1rem -0.1rem;
    background: linear-gradient(215deg, rgba(24,228,203,1) 5%, rgba(0,89,255,1) 100%);
    color: #ffffff; /* Secondary color */
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 16px;
}

.cta-button:hover,
.cta-button:focus {
    background: rgba(24,228,203,1); /* Darker shade for hover and focus effect */
    outline: 2px solid rgba(24,228,203,1); /* Outline color for focus */
    outline-offset: 4px; /* Space between the outline and button */
    color: #052a31;
    text-shadow: 0px 0px 0px black;
}

#services {
    text-align: center;
    padding:2rem  0 3rem 0;
    background: linear-gradient(167deg, #0068a0 0%, #004b74 100%);
    color: white;
    text-shadow: 1px 1px 16px black;
}

.services-container {
    padding-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px; /* Set a fixed maximum width */
    margin: 0 auto;    /* Center the container itself */
    gap: 2rem;
}

.service {
    width: 300px;
    height: 350px;
    background: linear-gradient(11deg, #0052cc 0%, rgba(24,228,203,1)  100%);
    color: white;
    text-shadow: 1px 1px 4px black;
    border-radius: 20px;
    box-shadow: 0 0px 24px rgba(0,0,0,0.4);
    overflow: hidden;
    position: relative;
    transition: transform 1s ease;
    
    
}

.service:hover {
    transform: scale(1.05);
}

.service-image {
    width: 100%;
    height: 50%;
    background-size: cover;
    background-position: center;
    transition: opacity 2s ease, height 1s ease;
}

.service-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 1s ease;
}

.service-info h3 {
    margin: 0;
    font-size: 1.4rem;
}

.service-info .price {
    display: none;
    margin-top: 10px;
    font-size: 1.2rem;
    color: #ffd63d;
}

.service:hover .service-image {
    height: 0; /* Hide image */
}

.service:hover .service-info {
    height: 100%; /* Take full space */
}

.service:hover .price {
    display: block; /* Show price */
}

/* Optional hover effect for icons */
.service-icon:hover {
    transform: scale(1.1); /* Slightly enlarge the icon on hover */
}
/* Service Icons */
.service-icon {
    width: 50px; /* Set the size of the icons */
    height: 50px;
    margin-bottom: 1rem; /* Space between the icon and heading */
    display: block; /* Ensure it behaves like a block element */
    margin-left: auto; /* Center the icon horizontally */
    margin-right: auto;
    transition: transform 0.3s ease; /* Add a smooth hover effect */
}

#about {
    padding: 4rem 0; /* Increased padding for a larger section */
    display: flex;
    justify-content: center;
    background-color: #ebf8fe ;
}

#about h2 {
    color: #052a31; /* Secondary color */
    text-align: center;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 60vw;
}

#about p {
    color: #052a31; /* Secondary color */
    display: flex;
    text-align: center;
}


/* Contact section styling */
#contact {
    padding: 3rem 0; /* More padding around the section */
    background: linear-gradient(11deg, #052a31 0%, #005c8d 100%); 
    color: #ffffff;
}

#contact h2 {
    margin-bottom: 1.5rem; /* Added margin below heading */
}

form {
    display: grid;
    gap: 1rem; /* More space between form fields */
    max-width: 600px;
    margin: 0 auto;
    margin-top: 2rem; /* Added margin above form */
}

form label {
    font-weight: bold;
}

form input,
form textarea {
    padding: 0.8rem; /* More padding for better input size */
    border: 2px solid #052a31;
    border-radius: 16px;
    font-size: 1rem;

}

form button {
    padding: 1rem 2rem; /* More padding for better button size */
    margin: 1rem 5rem;
    background: linear-gradient(215deg, rgba(24,228,203,1) 5%, rgba(0,89,255,1) 100%);
    color: #ffffff; /* Secondary color */
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    text-shadow: 1px 1px 4px black;
}

form button:hover,
form button:focus {
    background: rgba(24,228,203,1); /* Darker shade for hover and focus effect */
    outline: 2px solid rgba(24,228,203,1); /* Outline color for focus */
    outline-offset: 4px; /* Space between the outline and button */
    color: #052a31;
    text-shadow: 0px 0px 0px rgb(255, 255, 255);
}



/* Footer styling */
footer {
    background: #052a31;
    color: #ffffff;
    text-align: center;
    padding: 1rem 0;
}

footer p {
    margin: 0;
}
/* Social Media Section */
.social-media-section {
    padding: 4rem 0; /* Add padding to the top and bottom for more space */
    text-align: center; /* Center the heading */
    background-color: #ebf8fe; /* Light background for contrast */
}

/* Heading for Social Media Section */
.social-media-section h3 {
    margin-bottom: 2rem; /* Add space below the heading */
    font-size: 1.5rem; /* Slightly larger font size */
    color: #052a31; /* Secondary color */
}

/* Social Icons Section */
.social-icons {
    display: flex; /* Flexbox for better layout control */
    justify-content: center; /* Center the icons horizontally */
    gap: 20px; /* Space between icon containers */
    flex-wrap: wrap; /* Wrap icons to new lines if needed */
    text-align: center; /* Center the text */
    margin-top: 2rem; /* Add some margin at the top */
}

/* Container for Each Social Icon */
.social-icon-container {
    width: 100px; /* Fixed width for uniform containers */
    height: 100px; /* Fixed height for uniform containers */
    display: flex; /* Flexbox to center content */
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    background-color: #ffffff00; /* Background color for visual consistency */
    border-radius: 10px; /* Rounded corners */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Smooth transitions */
}

/* Hover Effects for Container */
.social-icon-container:hover {
    background-color: #ffd63d; /* Change background color on hover */
    transform: scale(1.05); /* Slightly enlarge the container on hover */
}

/* Social Icons and Text Styles */
.social-icons a {
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    text-decoration: none; /* Remove underline */
    color: #052a31; /* Primary color */
    font-size: 1rem; /* Font size for text */
    text-align: center; /* Center the text */
    height: 100%; /* Make link fill the container */
    width: 100%; /* Make link fill the container */
}

/* Style for Icons */
.social-icon-img {
    width: 40px; /* Icon width */
    height: 40px; /* Icon height */
    margin-bottom: 0.5rem; /* Space between icon and text */
    transition: transform 0.3s ease; /* Smooth hover effect */
}



/* Additional Content Section Styling */
#additional-content {
    padding: 3rem 0; /* Padding for spacing */
    background: linear-gradient(0deg, #052a31 0%, #005c8d 100%); 
    text-align: center; /* Center text */
}

/* Additional Content Section - Two Columns on PC Viewport */
#additional-content .container {
    display: flex; /* Flexbox layout */
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: space-between; /* Space out content */
    gap: 2rem; /* Space between columns */
}

/* Individual Content Block */
#additional-content .content-block {
    flex: 1 1 45%; /* Take up 45% of the width on larger screens */
    margin: 0.5rem 0rem; /* Space below each block */
    
}

#additional-content h3 {
    color: #ffffff; /* Secondary color */

}

#additional-content p {
    color: #ffffff; /* Darker text color */
}

/* Hero Section - Mobile Viewport */
@media (max-width: 768px) {
    #hero {
        height: 100vh; /* Full-screen height */
        display: flex; /* Flexbox for centering */
        align-items: center; /* Center vertically */
        justify-content: center; /* Center horizontally */
        text-align: center; /* Center text */
        font-size: 1rem;
    }

    #hero h2{
        font-size: 1.5rem;
        line-height: 0.9rem;
    }
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-container {
        flex-direction: column; /* Stack content vertically */
        gap: 1.5rem; /* Space between image and text */
        padding: 1.5rem; /* Reduced padding */
    }

    .hero-text-container {
        text-align: center; /* Center text on mobile */
    }

    .hero-logo {
        width: 60vw;
        
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {


    .company-name {
        display: none; /* Hide company name on narrow screens */
    }

    .header-logo {
        height: 2rem; /* Smaller logo for mobile viewport */
    }

    .services-container {
        flex-direction: column; /* Stack services in one column on narrow screens */
    }

    .service {
        margin: 1rem 0; /* Margin around service items */
    }

    #additional-content .container {
        flex-direction: column; /* Stack in one column on mobile */
    }

    #additional-content .content-block {
        flex: 1 1 100%; /* Full width on smaller screens */
    }

    .about-container {
        width: 90vw;
    }
}

@media (min-width: 768px) {
    .container {
        width: 80%;
    }

    #hero h2{
        font-size: 2.2rem;
        line-height: 2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    #hero p{
        font-size: 1.2rem;
    }
}

@media (min-width: 992px) {
    .container {
        width: 61%; /* Increased margins on sides for readability */
    }

    p {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}





/* Full-screen section for monuments service */
#monuments-service {
    height: 80vh; /* Full screen height */
    display: flex; /* Flexbox for layout */
    flex-direction: column; /* Stack image and description */
    justify-content: center; /* Vertically center content */
    align-items: center; /* Horizontally center content */
    background-color: #fff; /* Light background color */
    padding: 2rem;
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-image {
    max-width: 100%; /* Make sure the image is responsive */
    height: auto;
    margin-bottom: 1rem; /* Space below the image */
}

.service-description {
    max-width: 800px; /* Limit the text width */
    font-size: 1.2rem;
    color: #333; /* Darker text for contrast */
}

.price-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: left;
}

td {
    padding: 15px;
    font-size: 1.2rem;
}

.price {
    text-align: right;
    font-weight: bold;
    color: #052a31;
}

.discounted {
    text-align: right;
    color: #052a31;
}

.discounted .original {
    text-decoration: line-through;
    color: #777;
    margin-right: 10px;
}

.discounted .final {
    background-color: #ffd63d;
    color: #052a31;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
}

.highlight {
    background-color: #0066ff;
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
}

/* Add spacing between table rows */
tr {
    border-bottom: 2px solid #052a31;
}

tr:last-child {
    border-bottom: none;
}