html {
  background: #f4f7f5;
  color: black;
}

/* Reset and base styles */
body,
ul,
li,
a {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

.navbar {
  position: fixed; /* Makes the navbar fixed */
  top: 0;
  width: 97%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f3f7f4;
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Logo and text container */
.logo-text-container {
  display: flex;
  align-items: center;
}

/* Logo styling */
.logo-container {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.logo {
  width: 60px;
  height: 60px;
}

/* Text next to the logo */
.brand-name {
  font-size: 24px;
  font-weight: bold;
  color: #0c492b;
}

/* Nav list styling */
.nav-list {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
}

.nav-list li {
  margin: 0 15px;
}

.nav-list a {
  display: block;
  padding: 10px 20px;
  color: #0c492b;
  font-size: 16px;
  font-weight: bold;
  position: relative;
}

/* Underline effect on hover */
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: orange;
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

/* Hide nav list on smaller screens */
@media (max-width: 899px) {
  .nav-list {
    display: none; /* Hide the nav links initially on smaller screens */
    flex-direction: column;
    background-color: #f3f7f4;
    position: absolute;
    top: 60px;
    right: 10px;
    width: 200px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    text-align: center;
  }

  /* Show nav list when toggle is active */
  .nav-list.active {
    display: flex;
  }

  /* Hamburger menu button */
  .menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    color: #0c492b;
    cursor: pointer;
    margin-right: 30px;
  }
}

/* Hide the hamburger button on larger screens */
@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

/* Gallery heading container styling */
.gallery-heading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  padding: 20px;
}

/* Gallery heading styling */
.gallery-heading {
  font-size: 48px;
  font-weight: bold;
  color: #0c492b;
  letter-spacing: 2px;
  position: relative;
  opacity: 0;
  transform: translateX(-50px); /* Initial position for animation */
  animation: slideIn 1s ease-out forwards, glowEffect 2s infinite alternate;
}

/* Slide-in animation */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Glow effect animation */
@keyframes glowEffect {
  from {
    text-shadow: 0 0 10px #0c492b, 0 0 20px #0c492b, 0 0 30px #0c492b;
  }
  to {
    text-shadow: 0 0 15px #ff9900, 0 0 30px #ff9900, 0 0 45px #ff9900;
  }
}
/* Frame with 4 inches height */
.frame {
  margin: 10% auto;
  margin-top: 0%;
  width: 60%;
  height: 4in;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  position: relative;
  transform: translateY(-10px);
  overflow: hidden;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  grid-gap: 2px;
  grid-auto-rows: 80px;
  grid-auto-flow: dense;
}

.card {
  min-height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  overflow: hidden;
}

.span-1 {
  grid-column-end: span 1;
  grid-row-end: span 1;
}

.span-2 {
  grid-column-end: span 2;
  grid-row-end: span 2;
  min-height: 160px;
}

.span-3 {
  grid-column-end: span 3;
  grid-row-end: span 3;
  min-height: 320px;
}

.c-1 {
  background-color: #1a535c;
  color: #ddd;
}

.c-2 {
  background-color: #4ecdc4;
}

.c-3 {
  background-color: #bfd7ea;
}

.c-4 {
  background-color: #ff6b6b;
}

.c-5 {
  background-color: #ffe66d;
}

/* Parallax sections with improved spacing and best practices */
.parallax {
  position: relative;
  min-height: 60vh;
  margin: 0;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url("../assets/images/bg_1.jpg");
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallex {
  position: relative;
  min-height: 50vh;
  margin: 0;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url("../images/galleryim2.jpg");
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallex2 {
  position: relative;
  min-height: 40vh;
  margin: 0;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url("../images/galleryim2.jpg");
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallex3 {
  position: relative;
  min-height: 35vh;
  margin: 0;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url("../images/galleryim2.jpg");
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback for mobile devices where background-attachment: fixed doesn't work well */
@media (max-width: 768px) {
  .parallax,
  .parallex,
  .parallex2,
  .parallex3 {
    background-attachment: scroll;
    min-height: 40vh;
  }
}

/* Content overlay for parallax sections */
.parallax-content {
  text-align: center;
  color: white;
  z-index: 2;
  padding: 40px 20px;
}

.parallax-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.parallax-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* gallery */
.container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
}

section.my-work .section-heading {
  text-align: center;
  padding: 50px 15px;
}

.section-heading h2 {
  font-size: 36px;
  color: #0c492b;
}

.section-heading .line-dec {
  width: 50px;
  height: 3px;
  background-color: #ff7e00;
  margin: 10px auto;
}

.isotope-toolbar {
  text-align: center;
  margin: 20px 0;
}

.isotope-toolbar label {
  margin: 0 1px;
  cursor: pointer;
}

.isotope-toolbar input[type="radio"] {
  display: none;
}

.isotope-toolbar span {
  text-transform: capitalize;
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  color: #0c492b;
  border-bottom: 2px solid transparent;
  transform: ease-in-out 0.5s;
}

.isotope-toolbar input[type="radio"]:checked + span {
  color: #0c492b;
  border-bottom: 2px solid #ff7e00;
}

.isotope-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  justify-content: center;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.isotope-item {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 280px;
  background: #fff;
  justify-self: center;
}

.isotope-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.isotope-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* .isotope-item img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 10px;
            transition: transform 0.3s ease;
        } */
.isotope-item:hover img {
  transform: scale(1.3);
}
.isotope-toolbar label span {
  position: relative;
  overflow: hidden;
}
.isotope-toolbar label span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 128, 0, 0.3);
  transition: transform 0.5s;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
}
.isotope-toolbar label span:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

figure.snip1321 {
  position: relative;
  overflow: hidden;
  margin: 0;
  text-align: center;
  cursor: pointer;
}

figure.snip1321:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

figure.snip1321:hover:after {
  opacity: 1;
}

figure.snip1321 figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

figure.snip1321:hover figcaption {
  opacity: 1;
}

figure.snip1321 h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

figure.snip1321 span {
  font-size: 14px;
  font-style: italic;
}

.zoom-icon {
  font-size: 30px;
  margin-bottom: 10px;
  background-color: #ff7e00;
  color: white;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s;
}

.zoom-icon:hover {
  transform: scale(1.1);
}
@media (max-width: 600px) {
  .isotope-item {
    width: 90%;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Footer Section Styling */
.footer {
  background-color: #0c492b;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  width: 50px;
  height: 50px;
}

.footer-brand-name {
  font-size: 24px;
  font-weight: bold;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ff7e00;
}

.footer-social a {
  color: #fff;
  font-size: 18px;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #ff7e00;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 14px;
  color: #bbb;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: white;
  padding: 1rem;
  border-radius: 10px;
  overflow: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.popup-content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

.close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff4c4c;
  border: none;
  color: white;
  font-size: 24px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
}

/* Responsive design improvements */
@media (max-width: 1200px) {
  .isotope-box {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 15px;
  }

  .isotope-item {
    max-width: 350px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .isotope-box {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 10px;
  }

  .isotope-item {
    max-width: 320px;
    height: 220px;
  }
}

@media (max-width: 600px) {
  .isotope-box {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 10px;
  }

  .isotope-item {
    max-width: 320px;
    height: 200px;
  }
}
