/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
}

header nav ul li {
    display: flex;
}

header nav ul li a {
    color: rgb(250, 246, 246);
    text-decoration: none;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    background: url("Images/15.jpg") no-repeat center center/cover;
    color: rgb(255, 255, 255);
    padding: 5rem 0;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* This is the semi-transparent black overlay */
    z-index: 1;
}


.hero .hero-text {
    position: relative;
    z-index: 2; /* Ensures the text is above the overlay */
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

/* Services Section */
#services {
    padding: 2rem;
    background-color: white;
}

#services .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.service-list {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.service-item {
    color: white;
    padding: 2rem;
    width: 30%;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    height: 250px; /* Adjust height */
}

/* Service 1 Background */
.service-item:nth-child(1) {
    background: url('https://felujitasom.hu/wp-content/uploads/2023/08/shutterstock_2124249455-scaled.jpg') no-repeat center center/cover;
}

/* Service 2 Background */
.service-item:nth-child(2) {
    background: url('https://file.zakanyszerszamhaz.hu/images/800x600/resize/gletteles_75f7i3i3.jpg?v=2') no-repeat center center/cover;
}

/* Service 3 Background */
.service-item:nth-child(3) {
    background: url('https://szobafesto-mester.hu/temp/302/image_hd.jpg') no-repeat center center/cover;
}

/* Service 4 Background */
.service-item:nth-child(4) {
    background: url('https://orosz-general.hu/assets/images/melegburkolas-640x480.jpg') no-repeat center center/cover;
}

/* Service 5 Background */
.service-item:nth-child(5) {
    background: url('https://www.daibau.hu/images/backgrounds/258-2-m.jpg') no-repeat center center/cover;
}

/* Dark Tint Overlay */
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark tint with 50% opacity */
    z-index: 1;
}

.service-item h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-item p {
    position: relative;
    z-index: 2;
    font-size: 1rem;
}

#about {
    min-height: 40vh; /* Less height so it's not taking the full screen */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e2e2e2;
    padding: 0,2rem; /* Reduced padding around the section */
    box-sizing: border-box;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-box {
    background-color: #fff;
    padding: 2rem 2rem; /* Tighter padding inside the box */
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    width: 100%;
    text-align: center;
}

#gallery {
    padding: 4rem 2rem;
    background-color: #f1f1f1;
}

#gallery .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05); /* Image zoom effect on hover */
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}


/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}