/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    margin: 0 auto;
    

}

body {
    
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}


section {
    max-width: 1200px; 
    
}
section .hero {
    width: var(--fixed-width);

}

/* Header and Navigation */
header {

    padding: 0 1rem;
    background-color: #343a40;
    width: 100%;
    text-align:center;
    height: 70px;


}
#navigation-container {
    width: 1200px;
    margin: 0 auto;

  }
  
.navigation-bar {
    background-color: #343a40;
    width: 100%;
    height: 70px;
    text-align:center;
  }

.navigation-bar image {
    float: left;
}
.big-logo {
    padding-top: 5%;
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    align-self: center;

}

.logo {
    display: block;
    float: left;
    margin: auto;  
    max-height: 80px;
    width: auto;
    
}
.navigation-bar img{
    float:left;
    }
    .navigation-bar ul {
      padding: 0px;
      margin: 0px;
      text-align: center;
      display:inline-block;
      vertical-align:top;
    }
    
    .navigation-bar li {
      list-style-type: none;
      padding: 0px;
      height: 24px;
      margin-top: 4px;
      margin-bottom: 4px;
      display: inline;
    }
    
    .navigation-bar li a {
      color: rgb(255, 255, 255);
      font-size: 18px;
      font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
      text-decoration: none;
      line-height: 70px;
      padding: 5px 15px;
      opacity: 0.8;
    }
    .navigation-bar ul li a:hover {
        color: #e63946;
    }
    #menu {
      float: right;
    }



/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none; 
    
}

.language-switcher-rtl {
    left: 10px;
    right: auto;
}

.language-switcher a {
    margin: 0 0.5rem;
    color: #fff;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    text-decoration: none;    font-weight: bold;
}

.language-switcher a:hover {
    color: #e63946;
}

/* Hero Section */
.hero {
    color: #1b1717;
    height: auto;
    width: 90%;
    position:relative;
    top: 10%;

}

.hero-content h1 {
    font-size: 8rex;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    position:relative;
    top: 10%;
    
}

.hero-content p {
    margin: 1.5rem 0;
    font-size: 5rex;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position:relative;
    top: 2px;
}

.hero-content p1 {
    margin: 1.5rem 0;
    font-size: 3rex;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position:relative;
    top: 2px;
}
.cta-button {
    position:relative;
    top: 25px;
    padding: 1rem 1.5rem;
    background: #e63946;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #d62828;
}

/* Sections */
section {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #343a40;
}
section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #343a40;
}


/* Gallery Styles */
.gallery-container {
    column-count: 3;
    column-gap: 1rem;
    margin-bottom: 2rem;
}


.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
}

.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* max-height: 600px; Ensure images do not exceed 500 pixels in height */
    object-fit: cover; /* Maintain aspect ratio */
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(52, 58, 64, 0.8);
    color: #f1f1f1;
    text-align: center;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    transition: opacity 0.5s;
    opacity: 0;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay .text {
    font-size: calc(1vw + 0.5em);
    white-space: normal;
    word-break: break-word;
}
:root {
    --badge-top: -15px;
    --badge-right: 10px;
    --text-top: -7px;
    --text-right: 10px;
    --fixed-width: auto;
    --fixed-height: auto;

}
.badge {
    position: absolute;
    top: var(--badge-top); /* Use custom property for positioning */
    right: var(--badge-right); /* Use custom property for positioning */
    background: rgba(60, 58, 58, 0.5);
    color: #f1f1f100;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2; /* Ensure it stays on top */
    pointer-events: none; /* Ensure it doesn't interfere with hover effects */
}
.dynamic-text {
    position: absolute;
    top: var(--text-top); /* Use custom property for positioning */
    right: var(--text-right); /* Use custom property for positioning */
    background: rgba(52, 58, 64, 0);
    color: #f1f1f1;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 3; /* Ensure it stays on top */
    pointer-events: none; /* Ensure it doesn't interfere with hover effects */
}




/* Client Section Styles */
.clients-container {
    column-count: 3;
    column-gap: 1rem;
    margin-top: 2rem;
}

.clients-container img {
    margin: 0 0 1rem;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.clients-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form label {
    margin: 0.5rem 0;
    font-weight: bold;
    color: #343a40;
}

form input,
form textarea {
    padding: 0.75rem;
    margin-bottom: 1rem;
    width: 80%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 0.75rem 2rem;
    background: #343a40;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

form button:hover {
    background: #555;
}
h3 {
    margin-bottom: 1.5rem;
}
/* Footer */
footer {
    background: #343a40;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    position: relative;
    width: 100%;
}

/* Service Item Styles */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.service-item {
    width: 200px; /* Fixed width for each service item */
    margin: 1rem;
    text-align: center;
}

.service-icon {
    font-size: 40px; /* Fixed size for icons */
    margin-bottom: 1rem;
    color: #343a40; /* Icon color */
}

.service-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: #343a40;
}

.service-item p {
    font-size: 1rem;
    color: #6c757d;
}


.overlay .text {
    font-size: calc(1vw + 0.5em); /* Dynamically adjust font size based on viewport width */
    white-space: normal; /* Allow text to wrap */
    overflow: hidden;
    padding: 0.5rem;
    word-break: break-word; /* Break words if necessary */
}



@media (max-width: 1024px) {
    header {
        height: 140px;
    }
    .nav-manu {
        display: none; /* Hide menu by default */
        flex-direction: column;
        background-color: #343a40;
        position: absolute;
         top: 70px;
        right: 0;
        width: 100%;
        text-align: center;
        /* z-index: 1;  */
    }

    .nav-manu.active {
        display: flex; /* Show menu when active */
    }
    .gallery-container{
        columns: 2;
    }
    .hamburger {
        display: none;
    }
    .hero-content h1 {
        font-size: 7rex;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    }
    
    .hero-content p {
        font-size: 4rex;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }
    .hero-content p1 {
        font-size: 3rex;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }
    .cta-button{
        padding: 0.8rem 1.6rem;
        background: #e63946;
        color: #fff;
        border: none;
        cursor: pointer;
        text-decoration: none;
        font-size: 80%;
        border-radius: 5px;
        transition: background 0.3s;

    }
    section h1 {
        font-size: 3rem;
        margin-bottom: 2rem;
        color: #343a40;
    }
    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        color: #343a40;
    }
}

@media (max-width: 768px) {


    header {
        height: 210px;
    }
 
    .nav-manu {
        display: none; /* Hide menu by default */
        flex-direction: column;
        background-color: #343a40;
        position: absolute;
         top: 70px;
        right: 0;
        width: 100%;
        text-align: center;
        /* z-index: 1;  */
    }

    .nav-manu.active {
        display: flex; /* Show menu when active */
    }

    .hamburger {
        display: none;
    }
    .big-logo{
        max-width: 50%;
    }
    section h1 {
        font-size: 3rem;
        margin-bottom: 2rem;
        color: #343a40;
    }
    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        color: #343a40;
    }

    .hero {
        height: 4;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #1b1717;
        text-align: center;
        margin:auto 0 0 ;
    }
    .hero-content h1 {
        font-size: 5rex;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    }
    
    .hero-content p {
        font-size: 3rex;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }
    .hero-content p1 {
        font-size: 2rex;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }
    .cta-button{
        padding: 0.7rem 1.4rem;
        background: #e63946;
        color: #fff;
        border: none;
        cursor: pointer;
        text-decoration: none;
        font-size: 80%;
        border-radius: 5px;
        transition: background 0.3s;

    }    .gallery-container{
        columns: 1;
    }
}
