/* <!-- Basic CSS Reset and header styles --> */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Default font size */
    line-height: 1.333;
}

body {
    font-family: sans-serif;
}

main {
    padding: 0 20px;
}

h2 {
    font-size: 2rem;
}

hr {
    visibility: hidden;
}

header {
    background-color: #13b67a;
    padding: 10px; /* 10px / 16px */
    width: 100%;
    height: 80px; /* 80px / 16px */
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

header img {
    width: 50px; /* 50px / 16px */
    padding: 10px; /* 10px / 16px */
}

/* Hamburger menu icon, hidden by default (for mobile) */
.menu-icon {
    font-size: 1.875rem; /* 30px / 16px */
    color: white;
    cursor: pointer;
    display: none;
}

.logo {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
}

/* Style for the logo text */
.logo a {
    text-decoration: none;
    font-family: 'Reality Hyper', sans-serif;
}

.logo p {
    color: #022b42;
    font-size: 1.25rem; /* 20px / 16px */
    letter-spacing: 2px;
}

.logo span {
    text-transform: uppercase;
    font-size: 30px;
}

/* More settings for the hamburger menu icon */
.menu-icon.active i.fa-bars {
    display: none;
}

.menu-icon.active i.fa-times {
    display: block;
}

.active a {
    background-color: #000000;
    border-radius: 5px;
    color: #13b67a;
    font-weight: bold;
}
/* Navigation menu styles */
nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-left: 20px; /* 20px / 16px */
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px; /* 10px / 16px */
    display: block;
    font-size: 1.25rem; /* 20px / 16px */
}

/* Hover effect for nav links */
nav ul li a:hover {
    background-color: #000000;
    border-radius: 5px;
}

/* Herro section  styles */
#hero {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    text-align: center;
    background-position: center;
    background-size: cover; /* Only one declaration */
    background-repeat: no-repeat;
    
    /* Transition only opacity (Safari hates background-image transitions) */
    transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
    
    /* GPU Acceleration */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: opacity; /* Only declare what's transitioning */
    
    /* Anti-flicker */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

#hero.hidden {
    opacity: 0 !important;
    /* Remove visibility: hidden if present */
}

.hero-heading {
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Hidden class for hiding elements */
#hero .hidden {
    opacity: 0;
}

#contacts {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    gap: 20px;
    margin: 0 auto;
}

.contacts {
    display: flex;
    gap: 20px;
    padding: 20px;
}

#contacts .contacts-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    background-color: #13b67a;
    height: 250px;
    width: 400px;
    min-width: 300px;
    margin-top: -100px;
    border-radius: 20px;
    overflow-x: 1;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

#contacts .contacts-cover {
    background-color: #13b67a;
    margin-top: 100px;
    width: 90%;
    min-width: 230px;
    min-height: 150px;
    box-shadow: 0 -10px 6px rgba(0, 0, 0, 0.344);
    z-index: 2;
}

#contacts .contacts-block-white h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

#contacts .contacts-block-white p {
    font-size: 1.25rem;
}

#contacts .contact-mobile-one,
#contacts .contact-mobile-two {
    display: none;
}

.contacts-block-white {
    display: flex;
    flex-direction: column;
    justify-content: start;
    text-align: center;
    background-color: #e4e4e4;
    height: 200px;
    width: 80%;
    min-width: 200px;
    margin-top: -50px;
    margin-bottom: -150px;
    border-radius: 20px;
    padding: 20px;
    transform: translateY(100px);
    transition: transform 1s ease, opacity 1s ease;
    position: relative;
    z-index: 1;
}

.contacts-block-white.show {
    transform: translateY(0);
    opacity: 1;
}

/* Align the container and image side by side */
.text-block {
    display: flex;
    max-width: 1160px;
    height: 300px;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin: 0 auto;
}

.text-block .text-block-continer {
    font-size: 1.25rem;
    line-height: 1.5;
    background-size: cover;
    background-color: #e4e4e4;
    padding: 20px;
    height: 300px;
    max-width: 100%;
    line-height: 1.6;
}

.text-block .text-block-img {
    min-width: 50%;
    height: 300px;
    border-radius: 0 20px 20px 0;
}

.text-block .text-block-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.submit {
    background-color: #000000;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 30px;
    font-size: 1.25rem;
}
.submit:hover {
    background-color: #333333;
}

.submit:active {
    background-color: #555555;
    transform: scale(0.98);
}

#catalog {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 50px 0 50px 0;
    background-color: #e4e4e4;
    margin: 0 -20px;
    overflow: hidden;
}

.back-holl {
    width: 400px;
    height: 600px;
    background-color: #36b67a;
    margin-left: 100px;
    border-radius: 0 20px 20px 0;
}

.holl {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 400px;
    height: 600px;
    background-color: #13b67a;
    padding: 50px;
    font-size: 1.25rem;
    line-height: 1.5;
    z-index: 10;
    position: absolute;
    left: 0;
    overflow: hidden;
    color: white;
    z-index: 2;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.holl h2 {
    font-size: 3rem;
}

.holl p {
    margin: 0 auto;
}

.caroucel-wrap {
    display: flex;
    position: relative;
    transition: transform 0.5s ease-in-out;
    left: -100px;
    width: 700px;
    height: 400px;
    z-index: 1;
}

.caroucel-item {
    background-size: cover;
    background-position: center;
    width: 350px;
    height: 400px;
    margin: 0 15px;
    border-radius: 20px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.item-one {
    background-image: url('../img/jpeg/kitchen-one.jpg');
}

.item-two {
    background-image: url('../img/jpeg/kitchen-two.jpg');
}

.item-three {
    background-image: url('../img/jpeg/kitchen-three.jpg');
}

.item-four {
    background-image: url('../img/jpeg/kitchen-four.jpg');
}

.item-five {
    background-image: url('../img/jpeg/kitchen-five.jpg');
}

.item-six {
    background-image: url('../img/jpeg/kitchen-six.jpg');
}

.item-seven {
    background-image: url('../img/jpeg/kitchen-seven.jpg');
}

.item-eigth {
    background-image: url('../img/jpeg/kitchen-eight.jpg');
}

.item-nine {
    background-image: url('../img/jpeg/kitchen-nine.jpg');
}

.item-ten {
    background-image: url('../img/jpeg/kitchen-ten.jpg');
}

.item-eleven {
    background-image: url('../img/jpeg/kitchen-eleven.jpg');
}

.item-twelve {
    background-image: url('../img/jpeg/kitchen-twelve.jpg');
}

.item-terteen {
    background-image: url('../img/jpeg/kitchen-terteen.jpg');
}

.item-forteen {
    background-image: url('../img/jpeg/kitchen-fourteen.jpg');
}

.item-fifteen {
    background-image: url('../img/jpeg/kitchen-fifteen.jpg');
}

.item-sixteen {
    background-image: url('../img/jpeg/kitchen-sixteen.jpg');
}

/* Zoom button styling */
.zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Fullscreen modal container (hidden by default) */
.fullscreen-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Fullscreen content area */
.fullscreen-content {
    background-size: cover;
    background-position: center;
    width: 80vw;
    height: 80vh;
    border-radius: 20px;
}

/* Close button in fullscreen */
.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
}

.close-fullscreen:hover {
    background: rgba(0, 0, 0, 0.9);
}

.btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: 50px;
    font-size: 30px;
    cursor: pointer;
    background-color: #13b67a;
    border: none;
}

.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.buttons {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 500px;
    left: 50vw;
    transform: translateX(-50%);
}

.btn:hover {
    color: white;
}

.btn:active {
    transform: scale(1.05);
}

/* Services section styles */

#services .services-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #13b67a;
    padding: 50px 20px;
    margin: 50px -20px;
    gap: 20px;
}

#services .service-continer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#services .services-container .service {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e4e4e4;
    color: #333;
    border-radius: 20px;
    height: 300px;
    width: 25vw;
    padding: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

#work {
    margin: 50px 0 30px 0;
}

#service {
    margin: 30px 0 50px 0;
}

#aboutus {
    margin: 50px 0 50px 0;
}

#contactus {
    margin: 50px 0 50px 0;
}

/* Style for the elements before they are visible */
h2,
p,
.service {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Style when elements become visible */
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About section styles */

#about {
    display: flex;
    justify-content: start;
    background-color: #e4e4e4;
    align-items: center;
    padding: 100px 0;
    margin: 0 0 0 0;
}

#about h2 {
    font-size: 2.5em;
    color: #333;
}

#about p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
}

.map {
    margin-top: 0;
    width: 100%;
    margin-left: -20px;
    margin-right: -20px;
    height: auto;
    border-right: 10px solid #13b67a;
}

.about-container {
    display: flex;
    flex-direction: column;
    max-width: 50%;
    margin-bottom: 10px;
    padding: 0 150px 0 50px;
}

.address-phone-email {
    font-size: 1.2em;
    color: #333;
    margin: 10px 0;
}

.green-block {
    position: absolute;
    background-color: #13b67a;
    width: 100px;
    height: 604px;
    right: 0;
}

#contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 50px;
    margin-bottom: 50px;
}

.contact-form {
    background-color: #e4e4e4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 50%;
}

.contact-form h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #13b67a;
    border-radius: 4px;
    font-size: 16px;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #218838;
}

.message {
    display: none;
    margin-top: 15px;
    padding: 10px;
    color: #333;
    border-radius: 4px;
    text-align: center;
}

.button-message {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
/* Footer styling */
footer {
    background-color: #333;
    padding: 10px;
    text-align: center;
    color: white;
}

footer p {
    opacity: 1;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 14px;
    transform: translateY(0);
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.social-links li {
    margin: 0 10px;
}

.social-links img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
    color: #fff;
}

.social-links a:hover img {
    transform: scale(1.1);
}

#gallery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    padding: 150px 20px 20px;
    text-align: center;
    opacity: 1;
}

#gallery h1 {
    text-align: center;
    opacity: 1;
    font-size: 40px;
    margin-bottom: 30px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: #13b67a solid 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(80%);
}

/* Fullscreen Image Overlay */
.fullscreen-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen-container img {
    max-width: 90%;
    max-height: 80%;
    object-fit: cover;
    border: 5px solid #13b67a;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

.close-btn:hover {
    color: red;
}
