@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

:root {
  --base-background: #024b39;
  --base-text: #024b39;
  --gradient-background: linear-gradient(90deg, #ffc157, #fff99e, #ffd557);
}

.dark-mode {
    --base-background: #002e22;
    --base-text: #002e22;
    --gradient-background: linear-gradient(90deg, #cc9a3f, #d6c075, #f49f3e);
}

body {
  font-family: 'Playfair Display', serif;
  background-color: var(--base-background);
  color: var(--base-text);
  transition: background-color 0.5s ease, color 0.5s ease;
}

.navbar {
  z-index: 10000;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-bottom: 1px solid #121411;
  margin: 0 auto;
}

.navbar.scrolled {
  background: rgba(236, 227, 215, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.nav-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.nav-item a,
.nav-item-logo a {
  color: var(--base-text);
  font-size: 15px;
  cursor: pointer;
  padding: 5px 0;
  position: relative;
  display: flex;
  align-items: center;
  transition: color 0.4s ease;
}

.nav-item-logo a {
  font-size: 24px;
  font-weight: lighter;
  font-style: italic;
  padding: 5px 50px;
}

.nav-item a:hover::after,
.nav-item-logo a:hover::after {
  width: 100%;
}

.nav-item a::after,
.nav-item-logo a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  height: 0.5px;
  width: 0;
  background-color: var(--base-text);
  transition: width 0.4s ease;
}

.line {
  width: 1px;
  background-color: var(--base-text);
  align-self: stretch;
}

.theme-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  cursor: pointer;
  padding: 0 15px;
  color: var(--base-text);
}

.hamburger-menu {
  display: none;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.hamburger-menu .bar {
  width: 20px;
  height: 1.5px;
  background-color: var(--base-text);
  margin: 5px 0;
  transition: 0.4s;
}

@media (max-width: 1200px) {
  .nav-items .nav-item {
    display: none;
  }

  .nav-item-logo a {
    border-right: solid 1px black;
    border-left: solid 1px black;
  }

  .hamburger-menu {
    display: block;
  }

  .line {
    display: none;
  }

  .theme-toggle {
    left: 10px;
    right: auto;
  }
}

















.overlay {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  }
  
  

  .sidebar {
    border: solid 1.5px rgb(0, 0, 0);
    height: 100%;
    width: 260px;
    position: fixed;
    top: 0;
    right: -260px;
    background-color: #fff7a4;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distributes navbar and social media */
    gap: 20px;
    padding: 20px 0;
    transition: right 0.5s ease;
    z-index: 1000;
    overflow: hidden;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex-grow: 1; /* Ensures it occupies the center space */
    justify-content: center; /* Centers the navbar vertically */
}

.sidebar-socials {
  display: flex;
    justify-content: center;
    gap: 25px;
}


.sidebar-socials img {
  border-radius: 50%;
    width: 25px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sidebar-socials img:hover{
transform:scale(1.1);
}


.e5 {
  display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.e5 a {
  color: inherit; /* Use the same color as the parent */
  text-decoration: none; /* Remove underline */
}

.e5 a:hover {
  text-decoration: underline; /* Add underline on hover */
}
  
  .sidebar.active {
    right: 0;
  }
  

  .sidebar-item {
    border-bottom: solid 1px rgb(0, 0, 0);
    color: #03624d;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 10px 20px;
  }
  
  .sidebar-item:hover {
    background: linear-gradient(135deg, #03624d, #037a61);
    color: white;
    transform: scale(1.05);
  }
  
  .overlay.active {
    opacity: 1;
    visibility: visible;
    display: flex; /* Display overlay when active */
    justify-content: center;
    align-items: center;
  }


  #s-logo {
    padding: 5px 30px;
    font-style: italic;
    font-size: 30px;

  }
  
  #s-logo:hover {
    background-color: #252525;
  }
  
  











  .shape-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    padding-top: 100px;
    background: var(--gradient-background);
    background-size: 200% 200%;
    animation: gradient-shift 5s ease-in-out infinite;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);

    overflow: hidden;
  }
  
  @keyframes gradient-shift {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  .shape-section::before {
    content: "";
    position: absolute;
    top: -70px;
    left: -70px;
    width: 300px;
    height: 300px;
    background: rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    filter: blur(200px);
    animation: glow-drift 2s ease-in-out infinite;
    z-index: 0;
  }
  
  @keyframes glow-drift {
    0% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(60px, 60px);
    }
    100% {
      transform: translate(0, 0);
    }
  }
  
  .content-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    max-width: 1400px;
  }
  
  .shape-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  
  .custom-shape {
    border: 1px solid black;
    overflow: hidden;
    min-width: 280px;
    height: 400px;
    width: 100%;
    background-color: var(--base-text);
    border-radius: 200px 200px 0 0;
    position: relative;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }
  
  .custom-shape img {
    position: absolute;
    bottom: -5px;
    left: 52%;
    transform: translateX(-50%);
    max-width: 100%;
    height: auto;
    z-index: 1;
    width: 330px;
    height: auto;
  }
  
  img.top-left-image {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100px;
    height: 100px;
    animation: rotate-img 10s linear infinite;
    z-index: 2;
  }
  
  img.top-left-image:hover {
    animation-play-state: paused;
  }
  
  @keyframes rotate-img {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  





  .phrase-container {
    text-align: center;
    
  overflow: hidden;
}

.phrase-container p {
    display: flex;
    font-family: 'Playfair Display', serif;
    font-size: 90px;
    color: var(--base-background);
    margin: 0;
    line-height: 1.4;
    opacity: 0; /* Hidden by default */
    transform: translateX(-100px); /* Move left */
}

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

.fade-in-left {
  animation: fadeInLeft 1s ease forwards; /* Ensures the final state is retained */
  opacity: 1; /* Ensure visibility after animation */
  transform: translateX(0); /* Reset position after animation */
}







.hero-text {
  overflow: hidden;
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  color: #FFFFFF;
}

@media (max-width: 1440px) {
  .phrase-container p {
    font-size: 80px;
  }
  .hero-text {
    font-size: 50px;
  }
}

@media (max-width: 1200px) {
  .phrase-container p {
    font-size: 70px;
  }
  .hero-text {
    font-size: 40px;
  }
}

@media (max-width: 1024px) {
  .phrase-container p {
    font-size: 60px;
  }
  .content-container {
    flex-direction: column;
  }
}

@media (max-width: 920px) {
  .hero-text {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .phrase-container p {
    font-size: 50px;
  }

}

@media (max-width: 480px) {
  .phrase-container p {
    font-size: 35px;
  }
  .custom-shape {
    min-width: 270px;
    height: 400px;
  }
  .sidebar {
    width: 200px;
  }
  .overlay {
    height: 100%;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
}

.hero-section {
  border-bottom: solid white 1px;
  background-color:var(--base-background);
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-container {
  max-width: 900px;
  text-align: center;
}

.h1 {
  font-weight: 500;
  font-style: italic;
  color: #fed3a6;
  transition: opacity 1s ease;
}








/* Section Container */
.split-section {
  height: 500px; /* Fixed height of the section */
  width: 100%; /* Full width */
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: solid 1px white;
}
/* Text Container */
.text-container {
  padding: 0px 30px;
  padding-right: 0px;
  overflow: hidden;
  display: flex;
  gap: 100px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  height: 100%; /* Matches the height of the parent section */
}

/* Text Content */
.text-container p {
  font-size: 30px;
  color: white;
  width: 75%; /* Take 75% of the text-container width */
  min-width: 200px; /* Ensure the paragraph doesn't shrink too much */
  word-wrap: break-word; /* Wrap long words to avoid overflow */
  text-align: left; /* Default alignment for paragraph text */
}

/* Image Styling */
.img3 {

  content: url("img33.jpg");
  width: auto; /* Keeps width responsive */
  height: 140%; /* Matches the height of the text-container */
  object-fit: cover; /* Ensures the image fills its container without distortion */
}

/* Additional Styling */
.abt {
  opacity: 1; /* Hidden by default */
  transition: opacity 1s ease; 
  width: 100%; 
}

.fade-in-opacity {
  opacity: 1; /* Fully visible after animation */
}

/* Specific Styling for .t3 */
.t3 { 
  
  font-weight: 500;
  font-style: italic;
  color: #fed3a6;
  font-size: 60px;
}


@media (max-width: 1024px) {
  .text-container {
    padding:30px 0px;
      flex-direction: column-reverse;
      gap: 30px; /* Reduce gap between items */
  }

  /* Text Content */
  .text-container p {
      overflow: hidden;
      width: 90%;
      min-width: 200px; /* Maintain minimum readable size */
  }

 .t3 {
display:block;
text-align: center; /* Center-align the text */
overflow: hidden;
  }

  .split-section {
      height: auto; /* Allow height to adjust based on content */
  }

  .img3 {
      box-shadow: #121411;
      border-radius: 10px;
      width: 240px; /* Make image responsive */
      height: auto;
      object-fit: cover;
      content: url("img3.png");
      transform-origin: top center; /* Pivot at the top */
      animation: physics-swing 4s infinite cubic-bezier(0.42, 0, 0.58, 1);
  }

}







@media (max-width: 768px) {

  .img3 {
      box-shadow: #121411;
      border-radius: 10px;
      width: 220px; /* Make image responsive */
      height: auto;
      object-fit: cover;
      content: url("img3.png");
  }

}
.img3:hover {
  animation-play-state: paused; /* Pauses the swing */
}


@keyframes physics-swing {
  0% {
    transform: rotate(-7deg); /* Swing left */
  }
  50% {
    transform: rotate(7deg); /* Swing right */
  }
  100% {
    transform: rotate(-7deg); /* Back to left */
  }
}







  /* Customize the scrollbar */
::-webkit-scrollbar {
    width: 8px; /* Adjust the width of the scrollbar */
  }
  
  ::-webkit-scrollbar-track {
    background:var(--base-text);
  }
  
  ::-webkit-scrollbar-thumb {
    
    background:var(--gradient-background); /* Track color */
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #555; /* Thumb color when hovered */
  }
  

























  .section {
    border-bottom: solid 1px white;
    display: flex;
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    height: 50vh; /* Full viewport height */
    width: 100%;
    max-width: 1400px; /* Maximum width constraint */
    margin: 0 auto; /* Centers the section itself within its container */
}


.split {
  cursor: pointer;
    flex: 1; /* Ensures equal width for each split */
    position: relative;
    overflow: hidden; /* Ensures no overflow from the image */
    display: flex; /* Enable flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100%; /* Takes the full height of the section */
    transition: box-shadow 0.5s ease-in-out;
}


.split img {
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split:hover img {
  filter: grayscale(0%); 
  transform: scale(1.1) rotate(3deg);
}

.split::before {
    content: "";
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s ease-in-out;
    z-index: 89;
}

.split:hover::before {
    bottom: 0;
}

.split .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  z-index: 1;
  transition: filter 0.3s ease, opacity 0.3s ease;
}


.split:hover ~ .split .title {
  filter: blur(5px);
  opacity: 0.5;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .section {
        flex-direction: column;
    }

    .split {
        height: 33.3333vh;
        width: 100%;
    }
}


.split.blur {
  filter: blur(3px); 
  transition: filter 0.3s ease; 
}



.bw {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}


.bw:hover {
  filter: grayscale(0%); /* Removes the black-and-white effect on hover */
}




















/* For specific elements */
*::selection {
  background-color:rgb(255, 244, 176); /* Different background for specific elements */
  color: #000000; /* Custom text color */

}
































































































































/***** CONTACT SECTION BASE STYLES *****/
.contact-section {
  border-top: solid 1px white;
  font-family: 'Playfair Display', serif;
  position: relative;
  background-image: url('rug.png'); /* Replace with your background image if desired */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

/***** CONTACT OVERLAY - SIMPLE, ELEGANT *****/
.contact-overlay {
  border: solid 1px white;
  /* Static subtle gradient or solid color — your choice */
  background:var(--base-background);
  
  padding: 2rem;
  width: 100%;
  max-width: 600px;
}

/***** CONTACT FORM CONTAINER *****/
.contact-form-container h2 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-form-container p {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-form-container form {
  font-family: 'Playfair Display', serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/***** INPUT & TEXTAREA *****/
.contact-form-container input,
.contact-form-container textarea {
  font-family: 'Playfair Display', serif;
  background-color: #276957;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
}

.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
  color: #d8d8d8;
}

.contact-form-container textarea {
  overflow-x: hidden;
  resize: none;
}

/* Slight shadow on focus (no movement) */
.contact-form-container input:focus,
.contact-form-container textarea:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

/***** BUTTON *****/
.contact-form-container button {
  font-family: 'Playfair Display', serif;
  background-color: #ffda61;
  color: var(--base-text);
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

/* Simple hover color change, no movement */
.contact-form-container button:hover {
  background-color: #ebca5f;
}













































































.section-title {
  font-style: italic;
  display: inline-block;
  padding: 10px 20px;
  text-align: center;
  font-size: 40px;
  margin: 0 auto 30px auto;
  color: #ffe58f;
  font-weight: bold;
  margin-left: 50%;
  transform: translate(-50%);
}

.edu-section, .cert-section {
  border-bottom: solid 1px white;
  padding: 50px 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.edu-timeline {
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  scroll-behavior: smooth;
  white-space: nowrap;
}

.edu-item {
  flex: 0 0 300px;
  background: rgba(255, 226, 158, 0.9); /* Semi-transparent white */
  backdrop-filter: blur(10px); /* Applies the blur effect */
  -webkit-backdrop-filter: blur(10px); /* Ensures compatibility with Safari */  
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: inline-block;
}
.edu-timeline::-webkit-scrollbar {
  height: 8px;
}

.edu-timeline::-webkit-scrollbar-thumb {
  background-color: #888;
}

.edu-timeline::-webkit-scrollbar-track {
  background-color:#008165;
}
.edu-item h3 {
  margin-top: 0;
  color: #342b2b;
  font-size: 1.5rem;
}

.edu-item p {
  margin: 10px 0 0;
  font-size: 1rem;
  color: #1d1919;
}

.cert-gallery {
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  scroll-behavior: smooth;
  white-space: nowrap;
}

.cert-gallery::-webkit-scrollbar {
  height: 8px;
}

.cert-gallery::-webkit-scrollbar-thumb {
  background-color: #888;
}

.cert-gallery::-webkit-scrollbar-track {
  background-color:#008165;
}

.cert-item {
  flex: 0 0 300px;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s ease-in-out, background 0.2s;
  display: inline-block;
}

.cert-item:hover {
  transform: scale(1.05);
}

.cert-item img {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.cert-item h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
}

.cert-item p {
  font-size: 1rem;
  color: #cacaca;
}

@media (max-width: 768px) {
  .edu-timeline {
    gap: 15px;
  }

  .cert-gallery {
    gap: 15px;
  }
}















































































/***** FOOTER CONTAINER *****/
.footer-container {
  position: relative;
  border-top: 1px solid white;
  background-image: url("rug.png"); /* Replace with your image URL if needed */
  background-size: cover;
  background-position: center;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.footer-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Black overlay */
  z-index: 0;
}

.footer-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  z-index: 1;
}

/***** FOOTER TOP (SOCIAL ICONS + EMAIL) *****/
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0px; /* Increased spacing between .footer-top & .footer-bottom */
}

.footer-socials {
  display: flex;
  gap: 15px; /* Space between social icons */
  margin-bottom: 10px; /* Space if socials wrap under .footer-email on mobile */
}

.footer-socials a {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-socials img {
  width: 25px;
  height: 25px;
}

.footer-socials a:hover img {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.footer-email {
  color: #ffffff;
  margin-bottom: 10px; /* If it wraps, provides spacing below the email */
}

.footer-email a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-email a:hover {
  color: #f0c040; /* Warm golden yellow on hover */
}

/***** FOOTER BOTTOM (NAVIGATION + COPYRIGHT) *****/
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allows nav & copyright to stack on smaller screens */
  gap: 10px;       /* Horizontal gap between child elements */
}

.footer-navigation {
  display: flex;
  gap: 15px;        /* Added space between navigation links */
  flex-wrap: wrap;
  justify-content: center; 
}

.footer-navigation a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-navigation a:hover {
  color: #f0c040;
}

.footer-navigation a:focus {
  outline: none;
  color: #f0c040;
}

/* Smaller text for copyright */
.footer-bottom p {
  font-size: 12px;
  color: #aaaaaa;
  margin-top: 10px;
}

/***** RESPONSIVE BREAKPOINT *****/
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-navigation {
    justify-content: flex-start;
    gap: 10px; /* Optional: Adjust gap for smaller screens */
  }
}























/* Base style for inputs & textarea */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  border: 1px solid transparent; /* Start with transparent */
  padding: 6px 10px;
  color: #ffffff; /* or your preferred text color */
  transition: border 0.3s ease;
}

/* On focus: animate to a 1px white border */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: none;
  border: 1px solid #ffffff;
}



















/* Basic overlay styling */
.overlayy {
  display: none; /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}




/* Gallery grid styling */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr); /* Always 3 images per row */
  padding: 1rem;
  box-sizing: border-box; /* Ensures padding is included in the total size */
}

.gallery-grid img {
  width: 100%; /* Makes images responsive within their grid cells */
  height: auto; /* Maintains aspect ratio */
  border: 2px solid white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive styles */
@media (max-width: 768px) {
  .gallery-grid {
    gap: 0.5rem; /* Reduce the gap between images for smaller screens */
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 0.25rem; /* Further reduce the gap for very small screens */
  }

  .gallery-grid img {
    border: 1px solid white; /* Reduce border size for smaller screens */
  }
}







/* Close button styling */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

/* Transition for overlay */
.overlayy.show {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.overlayy.hide {
  animation: fadeOut 0.3s ease-in-out;
  display: none !important; /* Ensures it gets hidden after animation */
}




