/* ===== General Styles ===== */
body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    padding-top: 100px;
}


section {
    scroll-margin-top: 100px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

/* ================= About Section ================= */
.about-section {
    padding: 30px 0;
    background-color: #bee9e8; 
}

/* Container to hold both text and image */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 30px;
  
  }

/* Left Side: Text Section */
.about-text {
    flex: 1; 
    text-align: left;  
    }

/* Style for 'YOUR' */
.highlighted-word {
    color: #0077b6;
}


/* Right Side: Image Section */
.about-image {
    flex: 1;
    text-align: right;
    
}

/* Rotating text styling */
.sentence {
    font-size: 4rem;
  font-family: 'Montserrat', sans-serif; /* Use Montserrat font */
    font-weight: 700; /* Bold font weight */
    margin-left: -70px;
    color: #1b4965;
}

    .romanian-font {
    font-size: 3.8em; 
}

#dynamic-word {
    display: inline-block;
    font-weight: bold;
    color: #0077b6;
    transition: opacity 0.5s ease-in-out;
}

/* Fade-out class for smooth transitions */
.fade-out {
    opacity: 0;
}

/* Fade-in class for smooth transitions */
.fade-in {
    opacity: 1;
}



.about-image img {
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #cae9ff; /* Light border color for the image background */
}


/* Slider Frame */
.slider-frame {
    overflow: hidden;
    width: auto; /* Full width of the container */
    height: auto; /* Set the height of the slider */
    position: relative;
}

/* Slide Images Container */
.slide-images {
    display: flex;
    width: 100%; /* 3 images, so the width should be 300% */
    height: 100%;
    position: relative;
    animation: slide_animation 18s infinite ease-in-out; /* Animation for sliding */
}

/* Individual Image Container */
.img-container {
  
    width: 100%; /* Each image takes up 100% of the slider frame width */
    height: 100%;
    position: relative;
    flex-shrink: 0; /* Prevent images from shrinking */
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Keyframes for smooth sliding with backward transition */
@keyframes slide_animation {
    /* Forward transition (first to third image) */
    0% { transform: translateX(0); }        /* First image */
    20% { transform: translateX(0); }       /* Hold first image */
    25% { transform: translateX(-100%); }   /* Move to second image */
    45% { transform: translateX(-100%); }   /* Hold second image */
    50% { transform: translateX(-200%); }   /* Move to third image */
    70% { transform: translateX(-200%); }   /* Hold third image */

    /* Backward transition (third to first image) */
    75% { transform: translateX(-100%); }   /* Move back to second image */
    90% { transform: translateX(-100%); }   /* Hold second image */
    95% { transform: translateX(0); }       /* Move back to first image */
    100% { transform: translateX(0); }      /* Hold first image */
}



/* ===== Button Styles ===== */
.button {
    background-color: #62b6cb; /* Accent color for buttons */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #5fa8d3; /* Lighter accent for hover effect */
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Header Section ===== */
header {
    padding: 20px 0; /* Adjust the top and bottom padding to control height */
    background-color: #fff; /* White background for the header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for effect */
}

/* ===== Container Styles ===== */
.container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== Logo Styles ===== */
.logo {
    width: 350px; /* Adjust the size of the logo */
    height: auto;
    margin-left: 20px; /* Move the logo further to the left */
}

/* ===== Navbar Styles ===== */
nav {
    text-align: center;
    margin-top: 10px; /* Reduce top margin */
    margin-right: -100px; /* Keep margin-right as specified */
}

.nav-links {
    list-style: none;
    padding: 12px 30px; /* Reduced padding to decrease the size of the background */
    display: flex;
    justify-content: center; /* Center the items horizontally */
    align-items: center;
    gap: 20px; /* Adjust gap between the links */
    background-color: #1b4965; /* Darker color from the palette for the shape */
    border-radius: 50px; /* Rounded corners for the background shape */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* More prominent shadow for depth */
}

.nav-links li {
    margin: 0 10px; /* Adds margin between items */
}

.nav-links a {
    font-size: 1.2rem;
    color: white; /* Keep white text for contrast */
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* ===== Hover Animations for Navbar Links ===== */
.nav-links a:hover {
    color: #bee9e8; /* Light background color on hover */
    background-color: #5fa8d3; /* Lighter color on hover for the link */
    transform: scale(1.1); /* Slight zoom effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add a shadow for depth */
}

/* ===== Font Styling for Navbar Links ===== */
.nav-links a {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}







/* Latest News Section */
.latest-news {
    padding: 20px 0;
    background-color: #ffffff;
}

.news-container {
    text-align: center; /* Ensures everything inside this container is centered */
}

.news-title {
    text-align: center;
    color: #1b4965;
    font-size: 3rem;
    margin-bottom: 60px;
}

/* Grid for News Boxes */
.news-grid {
    display: flex;
    justify-content: center; /* Centers the grid */
    gap: 40px;
}

/* Individual News Boxes */
.news-box {
    flex: 1;
    max-width: 25%; /* Ensures the news boxes stay within the middle of the page */
    background-color: #CAE9FF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease, height 0.5s ease;
    text-align: justify;
    overflow: hidden;
    height: 400px; /* Fixed height for uniform box size */
   display: flex;
    flex-direction: column;
    
  
}

/* Ensure images fit the box without being distorted */
.news-box img {
    width: 100%;
    height: 250px; /* Set a fixed height to maintain uniformity */
    object-fit: cover; /* Ensures the image covers the box while maintaining its aspect ratio */
    margin-bottom: 15px; /* Adds space between the image and text */
    border-radius: 8px;
  display: block;
  
}


/* Center the titles inside the news boxes */
.news-box h3 {
    color: #1b4965;
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.news-box p {
    font-size: 1rem;
    color: #1b4965;
    line-height: 1.5;
    opacity: 0;
    bottom: 0; /* Text will be placed at the bottom */
    width: 90%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    padding: 10px;
    text-align: justify; /* Ensures the text is justified */
    margin: 0 auto; /* Centers the text within the container */
}


/* Hover Effect */
.news-box:hover {
    transform: translateY(-50px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    height: 500px;
    
}

/* Reveal paragraph on hover */
.news-box:hover p {
    opacity: 1;
    max-height: 200px;
    
}

/* Products Section */
.products-section {
    padding: 100px 50px;
    background-color: #5FA8D3;
    color: white;
    position: relative;
}

/* Title Styling */
.products-section h2 {
    font-size: 3rem; /* Font size for "Products |" */
    margin: 0;
    position: absolute;
    top: 40px;
    left: 50px;
}


/* Catalog Grid */
.catalog-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* General Catalog Box Styling */
.catalog-box {
    background-color: white;
    color: #5FA8D3;
    width: 650px;
    height: 400px;
    border-radius: 50px;
    margin: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Catalog Text Styling */
.catalog-text {
    flex: 1;
    text-align: center;
    font-size: 1.8rem;
    color: #1B4965;
}

/* Ensuring that h4 and p are centered */
.catalog-text h4 {
    font-size: 1.7rem;
    margin-top: 10px;
}

.catalog-text p {
    font-size: 1rem;
    color: #1B4965;
    margin-top: 15px;
}

/* Catalog Image Styling */
.catalog-image {
    width: 250px;
    height: auto;
    margin-right: 30px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    display: block;
}

/* GLS Logo Styling */
.logo-image {
    position: absolute;
    bottom: 50px;
    right: 400px;
    width: auto;
    height: 60px;
    opacity: 0;
    transition: opacity 1s ease;
}

/* AIJIREN Logo Styling */
.logo-image-aij {
    position: absolute;
    bottom: 50px;
    right: 375px;
    width: auto;
    height: 35px;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Hover effect to make the Aijiren logo appear */
.catalog-box:hover .logo-image-aij {
    opacity: 1; /* Logo appears on hover */
}

/* Hover Effects */
.catalog-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.catalog-box:hover .logo-image {
    opacity: 1;
}


/* Keyframes for bounce effect */
@keyframes bounce {
    0% {
        transform: translateY(0); /* Starting position */
    }
    50% {
        transform: translateY(-10px); /* Hover position */
    }
    100% {
        transform: translateY(0); /* Return to original position */
    }
}

/* Hover Effect for catalog box with bounce effect */
.catalog-box:hover {
    animation: bounce 0.8s ease-in-out infinite; /* Adds the bounce effect */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Box shadow on hover */
}





/* ----------------------------Careers--------------------- */
/* ===== Careers Section ===== */
.careers-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #cae9ff 50%, #bee9e8 50%);
    position: relative;
    overflow: hidden;
}

/* Blue Circles and Gradient Background for Careers Section Only */
.careers-section .container::before, 
.careers-section .container::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 119, 182, 0.2);
    border-radius: 50%;
    z-index: 0;
}

.careers-section .container::before {
    top: -50px;
    left: -50px;
}

.careers-section .container::after {
    bottom: -50px;
    right: -50px;
}

.careers-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.careers-content h2 {
    font-size: 3rem;
    color: #1b4965;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background-image: linear-gradient(45deg, #0077b6, #62b6cb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.careers-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #1b4965;
    font-family: 'Montserrat', sans-serif;
    z-index: 1;
    position: relative;
}

.email-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 1.6rem;
    color: #0077b6;
    text-decoration: none;
    font-weight: bold;
    background-color: #62b6cb;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.email-link:hover {
    background-color: #0077b6;
    color: white;
}

.email-note {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 10px;
}




/* ----------------------------Contact Section--------------------- */
.contact-section {
  background-color: #5FA8D3;
  color: white;
  padding: 40px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.contact-section h2 {
  font-size: 3rem;
  font-weight: bold; 
  margin-bottom: 70px;
  margin-top: 10px; /* Added margin to create space between the previous section */
}

/* Contact Container */
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 150px; /* Space between company-info and form */
}

/* Company Info Styling */
.company-info {
  max-width: 100%;
  text-align: left;
  margin-left: 100px;
  margin-top: 0px;
  font-size: 1.5rem;
  line-height: 2rem;
}

/* Rectangle box */
.info-box {
  background-color: #CAE9FF;
  text-align: right;
  height: 420px;
  width: 100%;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden; /* Ensures the content doesn't overflow outside the box */
}

iframe {
  height: 100%; /* Set iframe height to fill the parent container */
  width: 100%;  /* Set iframe width to fill the parent container */
  border: 0;
}

/* Form Box Styling */
.form-box {
  background-color: #CAE9FF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  
}

.form-box h3 {
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 40px;
    margin-top: 0px; /* Reduced margin-top for less space above the title */
    text-align: center;
    color: #1B4965; /* Optional: Change color if needed */
}


/* Form Styling */
.vertical-form {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  width: 100%; /* Make form take full width of form-box */
  background-color: #CAE9FF;
  padding: 0; /* Remove padding as it's handled by .form-box */
  border-radius: 10px;
  box-shadow: none; /* Remove shadow from form */
  color: #333;
  
}

/* Name Group (First and Last Name on the same line) */
.name-group {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  
}

/* Individual input group for First and Last Name */
.input-group {
  display: flex;
  flex-direction: column;
  width: 50%; /* Each input takes half the width */
}

/* Label and Input Styling */
.vertical-form label {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.1rem;
  color: #1B4965;
  text-align: left;
  margin-left:5px;  
}

.vertical-form input,
.vertical-form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.5rem; /* Consistent space below each input */
    width: 98%;
}

.vertical-form textarea {
  resize: none;
}

/* Submit Button Styling */
.vertical-form button {
  background-color: #1B4965;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1.5rem;
}


.vertical-form button:hover {
  background-color: #90a955;
}


/* ===== Footer Styles ===== */
footer {
    background-color: #1b4965; /* Darker color from the palette */
    color: #ffffff; /* White text for contrast */
    padding: 20px 0;
    text-align: center; /* Center text horizontally */
    position: relative; /* Position the footer relative to the page */
    height: 10px; /* Set the height of the footer */
}

footer p {
    position: absolute;
    bottom: 15px; /* Position the text 10px from the bottom */
    left: 50%;
    transform: translateX(-50%); /* Center the text horizontally */
    margin: 0;
    font-size: 1rem;
}




/* Language Switcher Styling */
.lang-switcher {
    display: flex;
    justify-content: flex-end; /* Align to the right, you can change it as needed */
    align-items: center;
    gap: 10px; /* Space between the language tabs */
    margin-left: auto; /* Push the language switcher to the right */
    margin-right: 50px; /* Adjust as needed */
}

.lang-tab {
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #1b4965; /* Background color similar to the nav links */
    transition: background-color 0.3s ease;
}

.lang-tab.active {
        background-color: #90a955; /* Active language highlight */
    }

    .lang-tab:hover {
        background-color: #0077b6; /* Hover color for language buttons */
    }





/* ===== SCALING de aici incepe nebunia===== */



@media (max-width: 768px) {
  
  header {
        position: static; 
        box-shadow: none;
    }

    body {
        padding-top: 0; /
    }
  
  
   .container {
        flex-direction: column;
        align-items: center;
           }
  
   /* Adjust the logo size for mobile screens */
    .logo {
        width: 300px; 
        height: auto;
        }
    
       nav {
        display: flex;
        justify-content: center;
        width: 100%; /* Make the nav take full width */
        margin: 0 auto; /* Center horizontally */
   }

   .nav-links {
        display: flex;
        flex-direction: column;
        gap: 20px; /* Navigation will be vertical */
        align-items: center;
        text-align: center;
        width: 100%; /* Ensure full width for centering */
        max-width: 150px; /* Limit max width to ensure it stays centered */
   }

   .nav-links li {
        list-style: none;
        width: 100%;
        text-align: center;
   }
  
  
.lang-switcher {
   margin: 0 auto;
}

.lang-tab {
    font-size: 1rem;
  
}
  
   
 
   /* Align text and images in the center */
    .about-text, .about-image {
        text-align: center;
        margin: 0 auto;
    }
  



    /* Scale down the sentence text size */
    .sentence {
        font-size: 2rem; /* Adjust the text size for mobile */
        margin: 0 auto;
        padding: 0 15px; /* Add padding to avoid text touching screen edges */
    }

    /* Reduce the size of the dynamic word */
    #dynamic-word {
        font-size: 2rem; /* Reduce size slightly to fit well on mobile */
    }

    /* Adjust image container and image size for better mobile fit */
    .about-image img {
        width: 80%; /* Adjust the image size to 80% of the container */
        height: auto;
    }

    /* Container Flexbox Adjustment */
    .container {
        flex-direction: column; 
        align-items: center; 
        gap: 20px; 
    }

   

     .news-title {
        font-size: 2rem; /* Reduce the size for mobile */
        text-align: center; /* Ensure the title is centered */
    }
  
.news-grid {
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers the boxes */
}

/* Ensure that each news box takes up 80% of the screen width */
.news-box {
    width: 80%; /* Adjust width for smaller screens */
    max-width: 100%; /* Ensure it doesn't exceed full width */
    margin-bottom: 10px; /* Keep space between the boxes */
    height: auto;
    text-align: center; /* Centers the content inside the box */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
}

.products-section h2 {
     font-size: 2rem; /* Reduce the size for mobile */
        text-align: center;
}

  

    .catalog-grid {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center the entire grid horizontally */
        justify-content: center; /* Ensure content stays centered */
        width: 100%; /* Take full width of the screen */
        margin: 0 auto; /* Center grid within the parent */
    }
    

      /* Catalog Box Adjustments */
    .catalog-box {
        width: 90%; /* Make sure the catalog box is responsive */
        max-width: 500px; /* Set a maximum width to prevent it from stretching too much */
       height: auto;
        margin: 20px auto; /* Ensure there is some space around the box */
        padding: 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Adjust the catalog images */
    .catalog-image {
        width: 80%; /* Reduce image size further to fit the white box */
        height: auto;
        object-fit: cover; /* Ensure the image stays within its container */
        margin: 0 auto; /* Center the image within the box */
      
    }
  
  
    /* Adjust Text for Catalog */
    .catalog-text h4 {
        font-size: 1.2rem; /* Reduce the title size */
        margin-top: 10px; 
        text-align: center;
    }

    .catalog-text p {
        font-size: 1rem; /* Reduce the subtitle size */
        text-align: center;
        margin-top: 5px;
    }
  
  
      .careers-section {
        padding: 30px 0;
    }

    .careers-content {
        padding: 20px;
        max-width: 90%; /* Reduce max-width for smaller screens */
    }

    .careers-content h2 {
        font-size: 2rem; /* Reduce font size */
    }

    .careers-content p {
        font-size: 1rem; /* Reduce text size */
        line-height: 1.6;
    }

    .email-link {
        font-size: 1.2rem; /* Smaller button text */
        padding: 8px 15px;
    }

    .email-note {
        font-size: 0.9rem;
    }

    .careers-section .container::before, 
    .careers-section .container::after {
        width: 150px;
        height: 150px;
    }

  /* Reduce padding for mobile */
  .contact-section {
    padding: 20px;
  }

  .contact-section h2 {
    font-size: 2rem; /* Smaller title size */
  }

  .contact-section h3 {
    font-size: 1.5rem; /* Smaller subtitle */
    margin-left: 0;
  }

  
  
  /* Stack company info and map vertically for phones */
.contact-container {
    flex-direction: column;
    gap: 15px; /* Reduce gap between items */
    align-items: center;
    justify-content: center;
}

.company-info {
    max-width: 90%; /* Make it take up more space on mobile */
    text-align: center; /* Center text for mobile */
    margin-left: 0;
    font-size: 1.2rem; /* Reduce font size */
    line-height: 1.8rem; /* Adjust line-height for readability */
}

.info-box {
    height: auto; /* Remove fixed height for better scaling */
    width: 90%; /* Adjust width for mobile */
    text-align: center; /* Center the map */
}

iframe {
    height: 200px; /* Adjust iframe height for smaller screens */
    width: 100%;
}

/* Hide the form for phone experience */
  .form-box {
    display: none; /* Hide the form on mobile */
  }

  /* Adjust the contact section and its content */
  .contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .contact-section h2 {
    font-size: 2rem; /* Adjust the title font-size */
    margin-bottom: 30px; /* Add some margin below the title */
  }

  /* Stack company info and map vertically */
  .contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Add some gap between the sections */
    align-items: center;
    width: 100%;
  }

  /* Adjust the company info for mobile */
  .company-info {
    max-width: 90%; /* Full width for mobile */
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8rem;
  }

   .info-box {
        display: flex;
        justify-content: center; /* Horizontally center the iframe */
        align-items: center; /* Vertically center the iframe if needed */
        width: 100%; /* Ensure the container takes full width */
        margin: 0 auto; /* Center the container itself */
        padding: 10px 0; /* Optional: Add some padding for spacing */
    }
    
    iframe {
        height: 200px; /* Adjust iframe height for smaller screens */
        width: 100%; /* Full width for mobile */
    }
  
  
  
  
  
   footer {
        padding: 10px 0; /* Reduce padding for mobile */
    }
  
    footer p {
        font-size: 0.5rem; /* Reduce text size for mobile */
        bottom: 5px; /* Adjust bottom space */
        text-align: center; /* Keep text centered */
    }
}



@media (min-width: 769px) and (max-width: 1024px) {
  
  header {
        position: static; 
        box-shadow: none;
    }

    body {
        padding-top: 0; /
    }
  
.container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Center the slideshow */
    .slider-frame {
        display: flex;
        justify-content: center;
        width: 100%;
    }

  
      nav {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0 auto;
        
        
    }
  

    .nav-links {
          flex-direction: row;
        justify-content: center; 
        gap: 0px;
        width: 100%; 
        margin: 0 auto;
        max-width: 950px;
      
    }
  
     .nav-links li {
        list-style: none;
        width: 100%;
        text-align: center;
       
   }
  
  .nav-links a {
    font-size: 1rem;
  }
  
  

  .lang-switcher {
   margin: 0 auto;
}

.lang-tab {
    font-size: 1rem;
  
}
  
 .about-text, .about-image {
        text-align: center;
        margin: 0 auto;
    }

    /* Scale down the sentence text size */
    .sentence {
        font-size: 2rem; /* Adjust the text size for mobile */
        margin: 0 auto;
        padding: 0 15px; /* Add padding to avoid text touching screen edges */
    }
  
  .products-section h2 {
     font-size: 3rem; /* Reduce the size for mobile */
     text-align: center;
}
  
  
  /* Reduce padding for mobile */
  .contact-section {
    padding: 20px;
  }

  .contact-section h2 {
    font-size: 2rem; /* Smaller title size */
  }

  .contact-section h3 {
    font-size: 1.5rem; /* Smaller subtitle */
    margin-left: 0;
  }

  
  
  /* Stack company info and map vertically for phones */
.contact-container {
    flex-direction: column;
    gap: 15px; /* Reduce gap between items */
    align-items: center;
    justify-content: center;
}

.company-info {
    max-width: 90%; /* Make it take up more space on mobile */
    text-align: center; /* Center text for mobile */
    margin-left: 0;
    font-size: 1.2rem; /* Reduce font size */
    line-height: 1.8rem; /* Adjust line-height for readability */
}

.info-box {
    height: auto; /* Remove fixed height for better scaling */
    width: 90%; /* Adjust width for mobile */
    text-align: center; /* Center the map */
}

iframe {
    height: 200px; /* Adjust iframe height for smaller screens */
    width: 100%;
}

/* Hide the form for phone experience */
  .form-box {
    display: none; /* Hide the form on mobile */
  }

  /* Adjust the contact section and its content */
  .contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .contact-section h2 {
    font-size: 2rem; /* Adjust the title font-size */
    margin-bottom: 30px; /* Add some margin below the title */
  }

  /* Stack company info and map vertically */
  .contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Add some gap between the sections */
    align-items: center;
    width: 100%;
  }

  /* Adjust the company info for mobile */
  .company-info {
    max-width: 90%; /* Full width for mobile */
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8rem;
  }

   .info-box {
        display: flex;
        justify-content: center; /* Horizontally center the iframe */
        align-items: center; /* Vertically center the iframe if needed */
        width: 100%; /* Ensure the container takes full width */
        margin: 0 auto; /* Center the container itself */
        padding: 10px 0; /* Optional: Add some padding for spacing */
    }
    
    iframe {
        height: 200px; /* Adjust iframe height for smaller screens */
        width: 100%; /* Full width for mobile */
    }
  

  
}





@media (min-width: 1025px) and (max-width: 1440px) {
  
  section {
        scroll-margin-top: 50px; 
    }
  
    
    .logo {
        width: 250px;  /* Adjust logo size */
        height: auto;
        position: relative; /* Align the same way as the larger screen section */
        top: 0;
        left: 0;
        margin-right: auto;
    }

nav {
        text-align: right;
        margin-top: 5px;
        margin-right: 0;
  
    }

    .nav-links {
    list-style: none;
    padding: 10px 30px; /* Reduce padding to make the box smaller */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px; /* Reduce gap between text items */
    background-color: #1b4965;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: auto;
    margin: 0 auto;
}

.nav-links a {
    font-size: 0.7rem; 
    color: white;
    text-decoration: none;
    padding: 8px 5px; 
    border-radius: 5px;
    transition: all 0.3s ease;
}


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

    
 .lang-switcher {
  display: flex;
        justify-content: flex-end; 
        align-items: center;
        height: 100%; 
        margin-left: 20px; 
        gap: 10px;
   
}

.lang-tab {
    font-size: 0.5rem;
  
}
  
  
   .container {
    width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}
        
    .about-section {
        padding: 60px 0;
    }

    .sentence {
        font-size: 2.8rem;
        text-align: left;    
    }
  
  .romanian-font {
    font-size: 2.2rem; 
}


    .about-text {
        flex: 1;
        margin-left: 70px;
    }

    .about-image img {
        width: 100%;
        height: auto;
    }


    .slider-frame {
        height: 100%;
    }

    .img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
  
    .catalog-box {
        width: 550px;
        height: 400px;
        padding: 10px;
    }
  
    /* Catalog Text Styling */
.catalog-text {
    flex: 1;
    text-align: center;
    font-size: 2rem; /* Increased font size */
    color: #1B4965;
    margin-top: -100px;
}

/* Ensuring that h4 and p are centered */
.catalog-text h4 {
    font-size: 1.4rem; /* Increased title size */
    margin-top: 10px; /* Moved the title a little more up */
  margin-right: 10px;
  margin-left: 10px;
}

.catalog-text p {
    font-size: 1rem; /* Slightly increased paragraph font size */
    color: #1B4965;
    margin-top: 10px; /* Reduced top margin to move it up slightly */
  margin-right: 10px;
  margin-left: 10px;
}

/* GLS Logo Styling */ 
.logo-image {
    position: absolute;
    bottom: 80px; /* Positioned at the bottom */
    left: 50px;   /* Moved to the bottom left corner */
    width: auto;
    height: 60px;
    opacity: 0;
    transition: opacity 1s ease;
}

/* AIJIREN Logo Styling */
.logo-image-aij {
    position: absolute;
    bottom: 80px; /* Positioned at the bottom */
    left: 50px;   /* Moved to the bottom left corner */
    width: auto;
    height: 30px;
    opacity: 0;
    transition: opacity 1s ease;
}

}
  

@media (min-width: 1441px) and (max-width: 2500px){
  
section {
        scroll-margin-top: 100px; 
    }

    body {
        padding-top: 0; 
    }
  
    
  .logo {
        width: 350px; 
        height: auto; 
        position: relative; /* Make sure it's not fixed */
        top: 0; /* Keep it at the top */
        left: 0; /* Align to the left */
        margin-right: auto;
    margin-left: 200px;
    }

nav {
  
    margin-right: 0; /* Remove auto margin */
    margin-left: 0; /* Remove left margin */
  
}

.nav-links {
    list-style: none;
    padding: 15px 30px; /* Padding inside the nav bar */
    display: flex;
    justify-content: flex-end; /* Align nav links to the right */
    align-items: center;
    gap: 20px; /* Space between each nav link */
    background-color: #1b4965;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: auto;
    margin-right: 0; /* Align the nav fully to the right */
}

.nav-links li {
    margin: 0 10px; /* Adjust margin between list items */
}

.nav-links a {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    padding: 10px 20px; /* Adjust padding for the text */
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lang-switcher {
    display: flex;
    justify-content: flex-end; /* Align to the far right */
    align-items: center;
    height: 100%; /* Ensure full height of the container */
    margin-left: 20px; /* Adds space between nav links and language switcher */
    gap: 10px; /* Space between EN and RO buttons */
}

.lang-tab {
    font-size: 0.8rem;
    color: white;
    padding: 10px 20px;
    background-color: #1b4965;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.lang-tab.active {
    background-color: #90a955; /* Active language highlight */
}

.lang-tab:hover {
    background-color: #0077b6; /* Hover color for language buttons */
}

/* Adjust container to use more screen space */
.container {
    width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end; /* Align the entire content to the right */
    align-items: center;
    gap: 30px; /* Adds space between the logo, nav, and language switcher */
}

  
  
    /* Adjust About Section */
    .about-section {
        padding: 60px 0;
      padding-top: 200px;
    }

    .sentence {
        font-size: 3.8rem;
        text-align: left; 
        margin-left: 20px;
    }
  
    .romanian-font {
    font-size: 2.8rem; 
}

    /* About Text and Image Adjustments */
    .about-text {
        flex: 1;
        margin-left: 50px;
    }

    .about-image img {
        width: 100%;
        height: auto;
    }

    /* Slider Frame and Images */
    .slider-frame {
        height: 100%;
    }

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

  
    /* Adjust Products Section */
    .products-section {
        padding: 150px 70px;
    }

    .catalog-box {
        width: 40%; /* Increase catalog box width */
        height: auto; /* Increase height */
        padding: 30px;
    }
  
  /* Catalog Text Styling */
.catalog-text {
    flex: 1;
    text-align: center;
    font-size: 1.8rem; /* Increased font size */
    color: #1B4965;
}

/* Ensuring that h4 and p are centered */
.catalog-text h4 {
    font-size: 1.8rem; /* Increased title size */
    margin-top: -70px; /* Moved the title a little more up */
  padding: 15px;
}

.catalog-text p {
    font-size: 1.2rem; /* Slightly increased paragraph font size */
    color: #1B4965;
    margin-top: -20px; /* Reduced top margin to move it up slightly */
   padding: 15px;
}

/* GLS Logo Styling */ 
.logo-image {
    position: absolute;
    bottom: 60px; /* Positioned at the bottom */
    left: 70px;   /* Moved to the bottom left corner */
    width: auto;
    height: 60px;
    opacity: 0;
    transition: opacity 1s ease;
}

/* AIJIREN Logo Styling */
.logo-image-aij {
    position: absolute;
    bottom: 60px; /* Positioned at the bottom */
    left: 60px;   /* Moved to the bottom left corner */
    width: auto;
    height: 35px;
    opacity: 0;
    transition: opacity 1s ease;
}

    /* Adjust Careers Section */
    .careers-section {
        padding: 100px 0;
    }

    .careers-content h2 {
        font-size: 3.5rem; /* Increase heading font size */
    }

    .careers-content p {
        font-size: 1.5rem; /* Increase paragraph font size */
    }
  
  

    /* Adjust Contact Section */
    .contact-container {
        gap: 20px; /* Increase space between form and company info */
          display: flex;
    justify-content: space-between;
    align-items: flex-start;
    }

   .company-info {
    font-size: 1.5rem; /* Decrease text size */
    line-height: 2rem;
    margin-left: 0; /* Reduce left margin */
}

   .vertical-form {
    width: 97%; /* Set form width to 50% of the screen */
    
    margin-right: 0; /* Remove right margin */
}

    .vertical-form input, .vertical-form textarea {
        font-size: 1rem;
    }
  
  /* Contact Section */
    .contact-section {
        padding: 70px; /* Increase padding for larger screens */
    }

    /* Contact Title Styling */
    .contact-section h2 {
        font-size: 3.5rem; /* Increase the font size for larger screens */
        margin-bottom: 100px; /* Add more space below the title */
        margin-top: 30px; /* More space above the title */
    }

    /* Contact Container Styling */
    .contact-container {
        gap: 150px; /* Increase gap between the form and company info */
    }

    /* Company Info Styling */
    .company-info {
        font-size: 1.7rem; /* Increase font size */
        line-height: 2.5rem; /* Adjust line height for readability */
        margin-left: 100px; /* Increase margin for larger screen */
    }

   .info-box {
    height: 450px; /* Adjust height to match the form height */
    flex: 1; /* Make it grow based on available space */
}
  
  
    iframe {
        height: 100%; 
        width: 100%; 
        border: 0;
    }

    /* Form Box Styling */
    .form-box {
        padding: 50px; /* Increase padding for form box */
        max-width: 700px; /* Increase the max-width of the form box */
    }

    /* Form Title Styling */
    .form-box h3 {
        font-size: 1.7rem; /* Increase the font size of the form title */
        margin-bottom: 50px; /* Add more space below the form title */
    }

}

 @media (min-width: 2501px) and (max-width: 2560px) {

.sentence {
        font-size: 4.2rem;
        text-align: left; 
        margin-left: 20px;
    }
  
    .romanian-font {
    font-size: 4rem; 
}
   
   .logo {
        width: 350px; 
        height: auto; 
        position: relative; /* Make sure it's not fixed */
        top: 0; /* Keep it at the top */
        left: 0; /* Align to the left */
        margin-right: auto;
    margin-left: 150px;
    }

nav {
  
    margin-right: 0; /* Remove auto margin */
    margin-left: 0; /* Remove left margin */
  
}

.nav-links {
    list-style: none;
    padding: 15px 30px; /* Padding inside the nav bar */
    display: flex;
    justify-content: flex-end; /* Align nav links to the right */
    align-items: center;
    gap: 20px; /* Space between each nav link */
    background-color: #1b4965;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: auto;
    margin-right: 0; /* Align the nav fully to the right */
}

.nav-links li {
    margin: 0 10px; /* Adjust margin between list items */
}

.nav-links a {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    padding: 10px 20px; /* Adjust padding for the text */
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lang-switcher {
    display: flex;
    justify-content: flex-end; /* Align to the far right */
    align-items: center;
    height: 100%; /* Ensure full height of the container */
    margin-left: 20px; /* Adds space between nav links and language switcher */
    gap: 10px; /* Space between EN and RO buttons */
}

.lang-tab {
    font-size: 0.8rem;
    color: white;
    padding: 10px 20px;
    background-color: #1b4965;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.lang-tab.active {
    background-color: #90a955; /* Active language highlight */
}

.lang-tab:hover {
    background-color: #0077b6; /* Hover color for language buttons */
}
   
   .about-section{
     padding-top: 50px;
   }
   
}

@media (min-width: 2561px) and (max-width: 3840px) {

    .container {
        width: 95%;
        margin: 0 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
    }
  
    nav {
    margin-left: 400px;
    margin-top: 5px;
      
}

  
    .nav-links {
        padding: 20px 50px; 
        gap: 30px;
        font-size: 1.8rem;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: auto;
    }

    .nav-links a {
        padding: 15px 35px;
        font-size: 1.8rem; /* Increase font size */
    }

    /* Logo Adjustment */
    .logo {
        width: 500px; /* Adjust the size of the logo for larger screens */
        height: auto;
    }
  
 .lang-switcher {
        display: flex;
        justify-content: flex-end; /* Align to the far right */
        align-items: center;
        height: 100%; /* Ensure full height of the container */
        margin-left: auto;
        gap: 20px;
    }

    .lang-tab {
        font-size: 1.8rem;
        color: white;
        padding: 10px 20px;
        background-color: #1b4965;
        border-radius: 10px;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    /* About Section */
    .sentence {
        font-size: 6rem;
    }
  
      .romanian-font {
    font-size: 5.4rem; 
}

  .about-section {
    padding-top: 100px
  }
  
    .about-text {
        margin-left: 150px; /* Increase left margin */
    }

    .about-image img {
        height: auto;
        width: 100%;
    }

    /* News Section */
    .news-title {
        font-size: 4rem; /* Increase font size for 4K */
    }

  .news-grid {
    display: flex;
    
    gap: 100px; /* Increase the gap between news boxes */
    max-width: 90%; /* Ensure the grid doesn't take the full width of the screen */
    margin: 0 auto; /* Center the news grid */
}

  /* Individual News Boxes */
.news-box {
    max-width: 30%; /* Thinner news boxes */
    padding: 20px;
    height: 480px;
   }
  
  
  
  /* Images inside the news boxes */
.news-box img {
    width: auto;
    height: 350px; /* Ensure consistent image height */
    margin: 0 auto;
    display: block; /* Center the images */
}

/* News Box Text */
.news-box h3 {
    font-size: 2.2rem; /* Adjust the font size for better readability */
    text-align: center;
    margin-top: 20px;
}

.news-box p {
    font-size: 1.5rem;
    text-align: justifiy;
    margin-top: 10px;
    color: #333;
}
  
  
  /* Hover Effect */
.news-box:hover {
    transform: translateY(-50px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    height: 650px;
    
}
  
  
    /* Products Section */
.catalog-box {
        width: 40%; /* Increase catalog box width */
        height: auto; /* Increase height */
        padding: 30px;
    }
  
  
  /* Catalog Text Styling */
.catalog-text {
    flex: 1;
    text-align: center;
    font-size: 2.2rem; /* Increased font size */
    color: #1B4965;
}

/* Ensuring that h4 and p are centered */
.catalog-text h4 {
    font-size: 2.2rem; /* Increased title size */
    margin-top: -70px; /* Moved the title a little more up */
  padding: 15px;
}

.catalog-text p {
    font-size: 1.6rem; /* Slightly increased paragraph font size */
    color: #1B4965;
    margin-top: -20px; /* Reduced top margin to move it up slightly */
   padding: 15px;
}

/* GLS Logo Styling */ 
.logo-image {
    position: absolute;
    bottom: 60px; /* Positioned at the bottom */
    left: 300px;   /* Moved to the bottom left corner */
    width: auto;
    height: 80px;
    opacity: 0;
    transition: opacity 1s ease;
}

/* AIJIREN Logo Styling */
.logo-image-aij {
    position: absolute;
    bottom: 60px; /* Positioned at the bottom */
    left: 300px;   /* Moved to the bottom left corner */
    width: auto;
    height: 45px;
    opacity: 0;
    transition: opacity 1s ease;
}
  
  
  
   /* Career Section Styling */
  .careers-content {
      padding: 60px;
      max-width: 900px; /* Increase the width */
      margin: 0 auto;
      background-color: #ffffff;
      border-radius: 15px; /* Softer corners */
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow for a polished look */
  }

  .careers-content h2 {
      font-size: 4rem; /* Increase the heading size */
      margin-bottom: 30px;
      color: #1b4965;
  }

  .careers-content p {
      font-size: 1.5rem; /* Increase the body text size */
      line-height: 2rem; /* Better readability */
      margin-bottom: 20px;
  }

  .email-link {
      font-size: 2rem; /* Make the email link stand out more */
      padding: 15px 30px; /* Increase padding */
      background-color: #0077b6;
      color: white;
      border-radius: 10px; /* More rounded edges */
      text-decoration: none;
      transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .email-link:hover {
      background-color: #005f8a;
      transform: scale(1.05); /* Subtle hover effect */
  }

  .email-note {
      font-size: 1.2rem;
      color: #6c757d;
      margin-top: 15px;
  }

  
  
   /* Contact Section */
  
    /* Adjust Contact Section */
    .contact-container {
       
            display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 350px; /* Gap between company info and form */
    max-width: 2500px;
    margin: 0 auto;
    }

   .company-info {
    font-size: 1.5rem; /* Decrease text size */
    line-height: 2rem;
    margin-left: 0; /* Reduce left margin */
}

   .vertical-form {
    width: 97%; /* Set form width to 50% of the screen */
    
    margin-right: 0; /* Remove right margin */
}

    .vertical-form input, .vertical-form textarea {
        font-size: 1rem;
    }
  
  /* Contact Section */
    .contact-section {
        padding: 70px; /* Increase padding for larger screens */
    }

    /* Contact Title Styling */
    .contact-section h2 {
        font-size: 3.5rem; /* Increase the font size for larger screens */
        margin-bottom: 100px; /* Add more space below the title */
        margin-top: 30px; /* More space above the title */
    }

    /* Contact Container Styling */
    .contact-container {
        gap: 150px; /* Increase gap between the form and company info */
    }

    /* Company Info Styling */
    .company-info {
        font-size: 1.7rem; /* Increase font size */
        line-height: 2.5rem; /* Adjust line height for readability */
        margin-left: 100px; /* Increase margin for larger screen */
    }

   .info-box {
    height: 450px; /* Adjust height to match the form height */
    flex: 1; /* Make it grow based on available space */
}
  
  
    iframe {
        height: 100%; 
        width: 100%; 
        border: 0;
    }

    /* Form Box Styling */
    .form-box {
        padding: 50px; /* Increase padding for form box */
        max-width: 700px; /* Increase the max-width of the form box */
    }

    /* Form Title Styling */
    .form-box h3 {
        font-size: 1.7rem; /* Increase the font size of the form title */
        margin-bottom: 50px; /* Add more space below the form title */
    }

}


  
  