/* Standardized Headings and Paragraphs */
:root {
  --font-primary: "Open Sans", sans-serif;
  --color-primary: #1f2a44;
  --color-secondary: #b2d3d1;
  --color-accent: #e0f1ff;
  --color-background: #1f2a44;
  --color-text: #e0f1ff;

  --fs-xl: clamp(2.5rem, 4vw, 3.5rem);
  --fs-l: clamp(1.7rem, 3vw, 2rem);
  --fs-m: clamp(1.2rem, 2vw, 1.5rem);
  --fs-s: clamp(1rem, 1.5vw, 1.2rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 10px;
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: bold;
  margin-bottom: 10px;
}
h4 {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: bold;
  margin-bottom: 8px;
}
p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  margin-bottom: 15px;
}
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #e0f1ff;
  background-color: #1f2a44;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
/* Header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #b2d3d1;
  height: 100px;
  padding: 0 50px;
}

.logo {
  height: 80px;
}

/* Menu icon styling */
.menu-icon {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-icon div {
  width: 35px;
  height: 4px;
  background-color: #1f2a44;
}

/* Pop-up menu styling */
.popup-menu {
  position: fixed;
  top: 100px; /* Adjust based on header height */
  right: 50px; /* Adjust based on your layout */
  background-color: #b2d3d1;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 8px;
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.popup-menu.show {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.popup-link {
  display: block;
  color: #1f2a44;
  text-decoration: none;
  padding: 10px 0;
}

.popup-link:hover {
  color: #e0f1ff;
}

/* Landing Page Section */
.landing-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  gap: 50px;
  background-color: #1f2a44;
  background-image: url("elements/pictures/Background-lights.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100vw;
}

.image-container img {
  width: 100%;
  max-width: 550px;
  height: auto; /* Ensures the aspect ratio is maintained */
  display: block;
  margin: 0 auto; /* Centers the image */
  border-radius: 5%;
}

.text-container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.text-container h1 {
  font-size: var(--fs-xl);
  color: #ffffff;
}

.text-container p {
  margin-top: 20px;
  font-size: var(--fs-s);
  color: #ffffff;
}

.studio-description {
  margin-top: 20px;
  font-size: var(--fs-m);
  color: #ffffff;
}

.cta-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.2rem;
  background-color: #b2d3d1;
  color: #1f2a44;
  border: none;
  cursor: pointer;
}

/* Photo Gallery Section */
.photo-gallery {
  padding: 2rem 0;
  background-color: #1f2a44;
}

.photo-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for large screens */
  gap: 1rem;
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 50px; /* Matching landing page margins */
}

.photo {
  position: relative; /* Ensures overlay positions correctly */
  overflow: hidden; /* Prevents overflow issues */
}

.photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5%;
}

/* Hover Overlay */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  font-family:
    open sans,
    sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Show overlay on hover */
.photo:hover .hover-overlay {
  opacity: 1;
}

/* Website Section */
.website {
  color: #9cc5d9;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px;
}

/* Shredding Section */
.shredding {
  color: #9cc5d9;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px;
}

/* Main container */
.website-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.shredding-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}
.website-info {
  max-width: 1200px;
  padding: 0 20px;
}
.website-info h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.website-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.website-info p {
  font-size: 1rem;
  margin-bottom: 15px;
}
.shredding-info {
  max-width: 1700px;
  padding: 0 20px;
}
.shredding-info h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.shredding-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.shredding-info p {
  font-size: 1rem;
  margin-bottom: 15px;
}
.shredding-image-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
}
.shredding-image img {
  width: 45%;
  max-width: 500px;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.wimage-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
}

.website-image img {
  width: 30%;
  max-width: 350px;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* What We Do Section */
.view-our-work {
  background-color: #1f2a44;
  color: #add6d8;
  padding: 50px;
  text-align: center;
}

.view-our-work-container {
  max-width: 1200px;
  margin: 0 auto;
}

.view-our-work-container h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.view-our-work-container p {
  font-size: 1rem;
  margin-bottom: 30px;
}

.work-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.work-link {
  display: inline-block;
  padding: 12px 30px;
  background-color: #b2d3d1;
  color: #1f2a44;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.work-link:hover {
  background-color: #9cc5d9;
}

/* What We Do Section */
.what-we-do {
  background-color: #1f2a44;
  color: #add6d8;
  padding: 50px;
  text-align: center;
  align-items: center;
}
.what-we-do h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.what-we-do h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.what-we-do p {
  font-size: 1rem;
  margin-bottom: 15px;
}
/* Main container */
.what-we-do-container {
  display: flex;
  flex-direction: column; /* Stack all content */
  align-items: center;
  max-width: 1700px;
  margin: 0 auto;
  gap: 50px;
}

/* Info section */
.what-we-do-info {
  max-width: 1200px;
  align-items: center;
  justify-content: center;
}

/* Grid layout for service lists */
.services-grid {
  display: grid;
  justify-self: space-between;
  align-items: space-between;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for large screens */
  grid-template-rows: repeat(2, 1fr); /* 2 rows for large screens */
  gap: 30px;
  max-width: 1700px;
  margin: auto;

  text-align: left;
}

/* Service list styling */
/*.services-grid div {
  background-color: #24304b;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
*/
/* Image container */
.doimage-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1400px;
}

/* Images */
.what-we-do-image img {
  width: 48%; /* Side-by-side images on large screens */
  max-width: 400px;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 5px;
}

/* About me  */
.about-me {
  background-color: #1f2a44;
  color: #add6d8;
  padding: 50px;
  text-align: center;
}

.about-me-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 5%;
}
.about-me-image img {
  width: 250px;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.about-me-writeup {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.about-me-info {
  max-width: 600px;
}

.about-me-info h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Contact Page */
.contact-page {
  background-color: #1f2a44;
  color: #add6d8;
  padding: 50px;
}

.contact-container {
  display: flex;
  align-items: flex-start; /* Ensures alignment */
  justify-content: center; /* Centers content */
  max-width: 1700px;
  margin: 0 auto;
  gap: 50px;
  flex-wrap: wrap;
}

/* Contact Details Section */
.contact-details {
  flex: 1 1 calc(50% - 25px);
  max-width: 500px;
  text-align: center;
}
.contact-details i {
  color: #b2d3d1; /* Match your theme */
  font-size: 2vw;
  margin-right: 10px;
}

.contact-details h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-details p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.contact-details a {
  color: #add6d8;
  text-decoration: none;
  font-weight: bold;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Contact Form Section */
.contact-form {
  flex: 1 1 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #e0f1ff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form textarea {
  height: 120px;
}
.phone-icon {
  width: 30px; /* Adjust width as needed */
  height: auto; /* Maintain aspect ratio */
  margin-right: 10px; /* Add spacing between the icon and text */
  vertical-align: middle; /* Align with text */
}
.contact-form button {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1.2rem;
  background-color: #b2d3d1;
  color: #1f2a44;
  border: none;
  cursor: pointer;
  width: 100%;
  border-radius: 5px;
}

.contact-form button:hover {
  background-color: #9cc5d9;
}

/* Footer */
.footer {
  background-color: #add6d8;
  color: #1f2a44;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px; /* replace large side margins to avoid viewport overflow on small screens */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 80px;
  width: 100%;
  box-sizing: border-box;
}

.footer p {
  font-size: 1rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  white-space: normal; /* allow long links to wrap on very narrow screens */
  word-break: break-word;
}

.footer-links a {
  color: #1f2a44;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 800px) {
  .header-container {
    padding: 0 20px;
  }

  .landing-page {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .image-container img {
    max-width: 385px;
  }

  .text-container h1 {
    font-size: 5vw;
  }

  .text-container p {
    font-size: 1rem;
  }

  .studio-description {
    font-size: 1rem;
  }

  .cta-button {
    padding: 10px 15px;
    font-size: 1rem;
  }

  .text-container {
    max-width: 400px;
  }

  .photo-container {
    grid-template-columns: repeat(1, 1fr); /* 1 columns for vertical screens */
    padding: 0 47px; /* Adjusted margins for phones */
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns, 3 rows */
  }

  .website-image img {
    width: 90%; /* Make images larger */
    max-width: 500px;
  }

  .shredding {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .shredding-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .shredding-image-container {
    flex-direction: column;
  }

  .shredding-image img {
    width: 90%; /* Make images larger */
    max-width: 500px;
  }

  .website-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .wimage-container {
    flex-direction: column;
  }

  .website-image img {
    width: 90%; /* Make images larger */
    max-width: 500px;
  }

  /* About me  */

  .about-me-image img {
    width: 180px;
  }

  .about-me-info h1 {
    font-size: 2rem;
  }

  .about-me-writeup {
    font-size: 1rem;
  }

  .about-me-container {
    text-align: center;
    flex-direction: column;
  }

  /* Contact Page */

  .contact-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact-details,
  .contact-form {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .contact-form {
    margin-top: 20px;
  }
  .phone-icon {
    width: 25px; /* Smaller size on mobile */
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    height: 100px;
  }

  .view-our-work {
    padding: 30px 20px;
  }

  .work-links {
    flex-direction: column;
    gap: 15px;
  }

  .work-link {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}
