/* General Styles */
body {
  margin: 0;
  color: #333;
  background-color: #f8f8f8;
  background-image: url('imgs/dubai.webp');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  font-family: 'Fira Code', monospace;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensures the body takes full viewport height */
  /* Prevent content overflow when zooming */
  overflow-x: hidden;  /* Prevent horizontal scrolling */

}

pre, code {
  font-family: 'Fira Code', monospace;
  font-weight: 400; /* You can adjust the weight as needed */
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(70, 126, 163, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 10px;
  }
}



/* All Recycle Logo - placed at the top center */
.all-recycle-logo {
  position: absolute;
  top: 10px; /* Adjust to your liking */
  left: 50%;
  transform: translateX(-50%); /* Centers the logo */
  font-size: 2em;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 1000; /* Ensure it's above the header */
}

@media (max-width: 400px) {
  .all-recycle-logo {
    display: none;  }


  .modal p {
    font-size: 1em; /* Adjust modal text size for mobile */
  }
}

/* Wrapper for header content */
.header-content {
  display: flex;
  justify-content: space-between; /* Positions the items to the left and right */
  align-items: center;            /* Vertically centers the items */
  width: 100%;                    /* Ensures it stretches the full width */
  text-align: center;             /* Centers the text horizontally */
}

/* If you want to target specific items to be centered */
.header-content .center-text {
  text-align: center;
  flex-grow: 1; /* This ensures that the text takes up available space */
}

.header-content img {
  max-width: 100%; /* Ensures images are responsive */
  height: auto;    /* Maintains the aspect ratio */
}
.lang-toggle {
  display: flex;
  gap: 10px; /* Space between the language buttons */
}

.lang-toggle button {
  background: none;
  color: #ff6347;
  padding: 2px 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.lang-toggle button:hover {
  background-color: #ff6347;
  color: white;
}

.lang-toggle button img {
  width:50px;
  height: auto;
}



.logo {
  font-size: 1.8em;
  color: #ff6347;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Navigation Styles */
nav {
  display: flex;
  gap: 20px;
  justify-content: flex-end; /* Align navigation items to the right */
  align-items: center;
}

nav a {
  background: none;
  color: #ff6347;
  padding: 2px 5px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #ff6347;
  color: white;
}

nav a img {
  width: 50px; /* Control size of images */
  height: auto;
}

/* Remove black outline and border from buttons and links */
.lang-toggle button,
.lang-toggle a {
  border: none;
  outline: none;
}

/* Hero Section */
.hero {
  height: 20vh;
  display: flex;
  justify-content: center;
  padding: 5px 10px;
}

.hero h1 {
  font-size: 1.5em;
  color: black;
  text-shadow: 0 0 15px rgba(255, 99, 71, 0.6);
}

.hero_2 {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero_2 p {
  padding: 10px 50px;
  background: rgba(255, 239, 213, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-size: 1em;
  color: #ff6347;
  font-weight: bold;
}


.info-icon img {
  cursor: pointer;
  padding: 75px 50px;
  transition: transform 0.2s ease;
}

.info-icon img:hover {
  transform: scale(1.2);
}

/* Modal (Image Pop-up) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  border-radius: 10px;
  display: block;
  object-fit: contain; /* Ensures images don't stretch */
}


.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2em;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
}

.modal-close:hover {
  opacity: 1;
}

.modal p {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  margin: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 239, 213, 0.9));
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  color: #333;
  font-weight: 500;
  line-height: 1.5;
  max-width: 600px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Mobile specific styles */
@media (max-width: 768px) {
  /* For mobile screens */
  .modal img {
    width: 100%; /* Adjust the image size to be smaller on mobile */
  }

  .modal p {
    font-size: 0.em;  /* Smaller font size for better readability on mobile */
    padding: 15px;
    margin: 10px;
    max-width: 90%;  /* Make sure the text box is not too wide */
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Modal for Info (Info Modal) */
.info-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Prevents the modal from overflowing the screen */
}


.info-modal p {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  margin: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 239, 213, 0.9));
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  color: #333;
  font-weight: 500;
  line-height: 1.5;
  max-width: 600px;
  animation: fadeIn 0.3s ease-in-out;
  width: 90%; /* Ensures modal content scales well on smaller screens */
}

/* Mobile Responsive Styles */
@media (max-width: 600px) {
  .info-modal p {
    font-size: 0.9em; /* Adjust font size for smaller screens */
    padding: 10px;
    margin: 10px;
    max-width: 90%; /* Ensure it fits within the screen */
  }

  .info-modal-img {
    max-width: 30%; /* Ensure image doesn't overflow */
  }
}


/* Header */
footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(70, 126, 163, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
  color:white;
}
@media (max-width: 768px) {
  footer- {
    flex-direction: column;
    padding: 10px;
  }
}

/* Contact Form Styles */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: auto;
}

form {
  flex: 1 1 100%; /* Full width on mobile */
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  font-size: 1em;
  font-weight: bold;
  color: #333;
}

form input, form textarea, form button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

form button {
  background-color: #ff6347;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #e0523b;
}

.contact-info {
  flex: 1 1 100%;
  font-size: 1em;
  color: #333;
}

.contact-info p {
  margin: 5px 0;
}

.page-container {
  flex: 1; /* Ensures the container takes up available space */
  display: flex;
  flex-direction: column;
}

/* General container and title */
.gallery-container {
    padding: 20px;
    text-align: center;
    max-width: 1200px;
    margin: 20px auto;
    background-color: rgba(70, 126, 163, 0.2); /* Slightly transparent white background */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-title {
    margin-bottom: 40px;
    word-wrap: break-word;  /* Ensure text doesn't overflow */
	text-align: center;
    font-size: 2.5em;
    color: white;
}

/* The gallery grid itself */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* Default to 4 columns */
    overflow: hidden;  /* Prevent overflow */
    gap: 20px;
    padding: 0 20px;
}


/* Video styling */
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile and tablet responsiveness */
@media screen and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);  /* 3 columns for tablets */
    }
}

@media screen and (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns for larger mobile screens */
    }
}

@media screen and (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;  /* 1 column for small mobile screens */
    }

    .gallery-item {
        padding: 5px;  /* Add some padding to prevent videos from touching edges */
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


html {
    font-size: 100%;  /* Base font size for better scaling */
}

/* Optional: Handle long text or titles in gallery items */
.gallery-item video {
    object-fit: cover;  /* Make sure videos fit without stretching */
}

/* Ensure proper zoom behavior */
@media (max-width: 480px) {
    html, body {
        overflow-x: hidden; /* Prevent horizontal scrolling */
        width: 100%;  /* Prevent the body from overflowing */
    }
}


/* Info Icon Glow Effect */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 5px rgba(255, 99, 71, 0.7), 0 0 10px rgba(255, 99, 71, 0.5); /* Smaller glow */
  }
  50% {
    box-shadow: 0 0 10px rgba(255, 99, 71, 1), 0 0 15px rgba(255, 99, 71, 0.7); /* Slightly larger glow */
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 99, 71, 0.7), 0 0 10px rgba(255, 99, 71, 0.5); /* Smaller glow */
  }
}

.info-icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Remove padding from here */
}

.info-icon img {
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 0 5px rgba(255, 99, 71, 0.7), 0 0 10px rgba(255, 99, 71, 0.5); /* Apply glow directly to the image */
  animation: pulseGlow 2s infinite; /* Apply the glowing effect */
}

.info-icon img:hover {
  transform: scale(1.2);
}
