/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Montserrat:wght@300&display=swap');

/* Global Reset and Base Styles */
* {
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  color: #eee;
  overflow-x: hidden;
}


/* Common Button Styles - Consistent across all sections */
.button-54 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  color: #173e1b;
  cursor: pointer;
  border: 3px solid;
  padding: 0.25em 0.5em;
  box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  z-index: 1;
  /* width: 7.5vw; */
  height: 3vw;
  text-align: center;
  background-color: #ffffff;
}
.button-54:hover {
  color: rgb(202, 202, 202);
  background: #1c4a21;
  transform: translateY(-2px);
  transition: all 0.25s ease-in;
}
.button-54:active {
  box-shadow: 0px 0px 0px 0px;
  top: 5px;
  left: 5px;
}


/* Section 1: Hero Section Styles */
.hero-section {
  height: 100vh;
  position: relative;
  background-image: url('img/bac\ 4.png');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(transparent 50%, rgb(0, 0, 0));
  z-index: 0;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  position: absolute;
  top: 10px;
  left: 2%;
  animation: zoomOut 1.2s ease-out forwards;
}

.logo img {
  height: 2.5vw;
  min-height: 30px;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 5%;
  background-color: rgba(255, 255, 255, 0.2);
  height: 45px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: topIn 1.2s ease-out forwards;
}

nav a {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgb(53, 53, 53);
  width: 110px;
  text-align: center;
  padding: 15px 0;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

nav a:hover {
  background-color: #16423c;
  color: white;
}

nav:hover > a:not(:hover) {
  background-color: transparent;
  color: rgb(53, 53, 53);
}

.nav-right {
  display: flex;
  align-items: center;
  position: absolute;
  right: 3.5%;
  top: 20%;
  gap: 20px;
}

.nav-right .button-54 {
  width: 7.5vw;
  height: 3vw;
  min-width: 80px;
  min-height: 40px;
  font-size: 16px;
  position: relative;
  right: 40px;
}

.nav-right i {
  font-size: 3.3rem;
  color: #16423c;
  cursor: pointer;
  animation: zoomOut 1.2s ease-out forwards;
  
}
.user-icon{
  position: relative;
  right: 23px;
}
.nav-right i:hover {
  color:  #e4b676;
  transform: scale(1.2);
  transition: all 0.2s;
  cursor: pointer;
}

/* Hero Content Styles */
.content {
  position: relative;
  height: 100vh;
  z-index: 1;
}

.content img {
  position: absolute;
  bottom: -12%;
}

.title {
  position: absolute;
  top: 40%;
  right: 50%;
  transform: translate(50%, -50%);

}

.title h3 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 15px;
  color: white;
  text-align: center;
  animation: bottomInText 1s ease-out forwards;
}

.title h1 {
  font-size: 20rem;
  font-weight: 800;
  letter-spacing: 50px;
  text-transform: uppercase;
  color: white;
  text-align: center;
  margin: -20px 0;
  animation: bottomInText 1.2s ease-out forwards;
}

.info-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 18%;
  z-index: 1;
}

.info-wrap p {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  width: 70%;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  animation: bottomInText 1.2s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.quote {
  position: absolute;
  bottom: 8%;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 1;
  animation: bottomInText 1s ease-out forwards;
  color: #a49f9f;
  transition: all 0.3s, transform 0.3s;
}
.quote:hover, .info-wrap p:hover {
  color: rgb(255, 255, 255);
  transform: scale(1.1);
}
@keyframes bottomIn {
  from {
    transform: translateY(200px);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes bottomInText {
  from {
    transform: translateY(500px);
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

h3 {
  animation: bottomInText 1s ease-out forwards;
}

h1 {
  animation: bottomInText 1.2s ease-out forwards;
}

p {
  animation: bottomInText 1.2s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

button {
  animation: bottomInText 1.2s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes backgroundImage {
  from {
    background-position: top;
  }
  to {
    background-position: 50% 14%;
  }
}

body {
  animation: backgroundImage 1.6s ease-out forwards;
}

@keyframes topIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

nav {
  animation: topIn 1.2s ease-out forwards;
}

@keyframes zoomOut{
  from {
    transform: scale(3.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Background Image Animations */
.back-1 {
  animation: bottomIn 1s ease-out forwards;
}

.back-2 {
  animation: bottomIn 1.3s ease-out forwards;
}

.back-3 {
  animation: bottomIn 1.5s ease-out forwards;
}

/* Section 2: Explore Section Styles */
.explore-section {
  height: 105vh;
  position: relative;
  background: url('sec2-bg.png') no-repeat center center/cover;
  background-blend-mode: darken;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease-out forwards;
}

.fog-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  color: white;
  user-select: none;
  width: 100%;
  z-index: 1;
}

.container h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  font-size: 4rem;
  letter-spacing: 0.03em;
  max-width: 1250px;
  text-transform: uppercase;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  line-height: 1.2;
 color: rgb(144, 141, 141);
  z-index: 3;
}

.container h1:hover,p:hover {
  text-shadow: 4px 4px 15px rgba(0,0,0,0.9);
  color: #ffffff;
  transition: all 0.3s ease;
}

.container p {
  max-width: 1250px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 100;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  margin: 10px auto;
  line-height: 1.6;
  color: rgb(144, 141, 141);
  z-index: 3;
  max-width: 90%;
}

.container p:hover {
  text-shadow: 2px 2px 8px rgba(0,0,0,1);
  color: #f0f0f0;
}

/* Section 3: Gallery/Slider Section Styles */
.gallery-section {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.2s ease-out forwards;
  height: 100vh;
}

.slider{
    height: 100vh;
    margin-top:0;
    width: 100vw;
    overflow: hidden;
    position: relative;
}
.slider .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider .list .item .content {
    position: absolute;
    top: 50px;              /* Stick to the top */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1140px;
    padding: 0;          /* Remove padding */
    margin: 0;           /* Remove margin */
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
    pointer-events: none;  /* Disable pointer events on content */
}

/* Re-enable pointer events for interactive elements */
.slider .list .item .content .button,
.slider .list .item .content .button .button-54 {
    pointer-events: auto !important;
}


.slider .list .item .content .title {
  font-weight: bold;
  line-height: 1.1em;
  font-family: 'Poppins', sans-serif;
  color: white;
  margin: 0 0 60px 0;   /* Add bottom margin */
  font-size: 4.3rem;
  position: relative;
  top: 50px;
  right: 5px;   
}

.slider .list .item .content .type {
   margin: 0 0 20px 0;   /* Space below type */
    display: block;  
  font-size: 4em;
  font-weight: bold;
  line-height: 1.1em;
  font-family: 'Poppins', sans-serif;
  color: #215030;
  -webkit-text-stroke: 0.3px black;
  margin-bottom: 25px;
  white-space: nowrap;
}

.slider .list .item .content .description {
  font-size: 1.3em;
  line-height: 1.5em;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}

/* Button container fix */
.slider .list .item .content .button {
  position: relative;
  z-index: 1000;
  margin-top: 20px;
  pointer-events: auto;
  display: inline-block;
}
/* Gallery button hover effects - Fixed */
.slider .list .item .content .button {
  position: relative !important;
  z-index: 1000 !important;
  pointer-events: auto !important;
}

.slider .list .item .content .button .button-54 {
  z-index: 1001 !important;
  position: relative !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  height: 100% !important;
  border: 2px solid transparent !important;
}

.slider .list .item .content .button .button-54:hover {
  color: rgb(202, 202, 202) !important;
  background: #1c4a21 !important;
  transform: translateY(-3px) scale(1.05) !important;
  transition: all 0.25s ease-in !important;
  box-shadow: 2px 2px 0px 0px, 4px 4px 0px 0px, 6px 6px 0px 0px, 8px 8px 15px rgba(0,0,0,0.3) !important;
}

.slider .list .item .content .button .button-54:active {
  box-shadow: 0px 0px 0px 0px !important;
  transform: translate(3px, 3px) !important;
}

/* Additional button click area fix */
.slider .list .item .content .button .button-54 {
  min-width: 140px !important;
  min-height: 45px !important;
  padding: 12px 24px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
  line-height: normal !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  touch-action: manipulation !important;
}

/* General button hover backup */
.button button:hover {
  color: rgb(202, 202, 202);
  background: #1c4a21;
  transform: translateY(-2px);
  transition: all 0.25s ease-in;
}
.button button:active {
  box-shadow: 0px 0px 0px 0px;
  top: 5px;
  left: 5px;
}
/* Thumbnail Section  */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}

.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}


/* nextPrevArrows Section  */
.nextPrevArrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.nextPrevArrows button{
    width: 80px;
    height: 55px;
    border-radius: 100px;
    background-color: #1c4a21;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bolder;
    transition: .5s;
    cursor: pointer;
    font-size: 3vw;
    text-align: center;
}
.nextPrevArrows button:hover{
    background-color: #fff;
    color: #000;
}

/* Animation Part */
.slider .list .item:nth-child(1){
    z-index: 1;
}


/* animation text in first item */
.slider .list .item:nth-child(1) .content .title,
.slider .list .item:nth-child(1) .content .type,
.slider .list .item:nth-child(1) .content .description,
.slider .list .item:nth-child(1) .content .button
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.slider .list .item:nth-child(1) .content .title{
    animation-delay: 0.4s !important;
}
.slider .list .item:nth-child(1) .content .type{
    animation-delay: 0.6s !important;
}
.slider .list .item:nth-child(1) .content .description{
    animation-delay: 0.8s !important;
}
.slider .list .item:nth-child(1) .content .button{
    animation-delay: 1s !important;
}




/* Animation for next button click */
.slider.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}

@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.slider.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.slider.prev .list .item img{
    z-index: 100;
}


@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}


.slider.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}



/* Animation for prev button click */
.slider.prev .list .item:nth-child(2){
    z-index: 2;
}

.slider.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.slider.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.slider.next .nextPrevArrows button,
.slider.prev .nextPrevArrows button{
    pointer-events: none;
}


.slider.prev .list .item:nth-child(2) .content .title,
.slider.prev .list .item:nth-child(2) .content .type,
.slider.prev .list .item:nth-child(2) .content .description,
.slider.prev .list .item:nth-child(2) .content .button
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .slider .list .item .content{
        padding-right: 0;
    }
    .slider .list .item .content .title{
        font-size: 50px;
    }
}
/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #16423c 0%, #0f2f2a 100%);
  color: white;
  padding: 40px 0 0 0;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease-out forwards;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.footer-section {
  transition: all 0.3s ease;
  padding: 15px;
  border-radius: 8px;
  
}

.footer-section:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.footer-section h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-section h3:hover {
  color: #a8d5ba;
  transform: translateX(5px);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s ease;
}

.footer-section ul li {
  transition: all 0.3s ease;
}

.footer-section ul li:hover {
  transform: translateX(10px);
}

.footer-section ul li a:hover {
  color: #a8d5ba;
  transform: translateX(5px) scale(1.05);
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: #16423c;
  background: white;
  padding: 8px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.social-icons a:hover {
  color: #16423c;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-8px) scale(1.2) rotate(360deg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  cursor: pointer;
}

.footer-bottom p:hover {
  color: #a8d5ba;
  transform: scale(1.05);
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

/* Smooth Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Intersection Animations */
.hero-section .content {
  animation: backgroundImage 1.6s ease-out forwards;
}

/* Slider Animation Styles */
.slider .list .item:nth-child(1) {
  z-index: 1;
}

/* Hide all content by default */
.slider .list .item .content .title,
.slider .list .item .content .type,
.slider .list .item .content .description,
.slider .list .item .content .button {
  opacity: 0;
  transform: translateY(50px);
  filter: blur(20px);
  pointer-events: none;
}

/* Show content only for the first item */
.slider .list .item:nth-child(1) .content .title,
.slider .list .item:nth-child(1) .content .type,
.slider .list .item:nth-child(1) .content .description,
.slider .list .item:nth-child(1) .content .button {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent .5s 1s linear 1 forwards;
  pointer-events: auto;
}

@keyframes showContent {
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
    pointer-events: auto;
  }
}

.slider .list .item:nth-child(1) .content .title {
  animation-delay: 0.4s !important;
}

.slider .list .item:nth-child(1) .content .type {
  animation-delay: 0.6s !important;
}

.slider .list .item:nth-child(1) .content .description {
  animation-delay: 0.8s !important;
}

.slider .list .item:nth-child(1) .content .button {
  animation-delay: 1s !important;
}

/* Fix for .buttons reference in original code */
.slider .list .item:nth-child(1) .content .buttons {
  animation-delay: 1s !important;
}

/* Slider Navigation Animations */
.slider.next .list .item:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage .5s linear 1 forwards;
}

@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.slider.next .thumbnail .item:nth-last-child(1) {
  overflow: hidden;
  animation: showThumbnail .5s linear 1 forwards;
}

.slider.prev .list .item img {
  z-index: 100;
}

@keyframes showThumbnail {
  from {
    width: 0;
    opacity: 0;
  }
}

.slider.next .thumbnail {
  animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext {
  from {
    transform: translateX(150px);
  }
}

.slider.prev .list .item:nth-child(2) {
  z-index: 2;
}

.slider.prev .list .item:nth-child(2) img {
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}

@keyframes outFrame {
  to {
    width: 150px;
    height: 220px;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
  }
}

.slider.prev .thumbnail .item:nth-child(1) {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail .5s linear 1 forwards;
}

.slider.next .nextPrevArrows button,
.slider.prev .nextPrevArrows button {
  pointer-events: none;
}

.slider.prev .list .item:nth-child(2) .content .title,
.slider.prev .list .item:nth-child(2) .content .type,
.slider.prev .list .item:nth-child(2) .content .description,
.slider.prev .list .item:nth-child(2) .content .button,
.slider.prev .list .item:nth-child(2) .content .buttons {
  animation: contentOut 1.5s linear 1 forwards !important;
}

@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  /* Button improvements */
  .button-54 {
    padding: 12px 20px;
    font-size: 14px;
    min-width: 100px;
    height: auto;
    min-height: auto;
  }
  
  /* Container buttons */
  .container .button-54 {
    font-size: 16px;
    padding: 15px 30px;
    min-width: 150px;
  }
  
  /* Gallery buttons */
  .slider .list .item .content .button .button-54 {
    font-size: 14px;
    padding: 10px 20px;
    min-width: 120px;
    height: auto;
  }
  
  /* Navigation improvements */
  .nav-right {
    display: none;
  }
  
  /* Hero section adjustments */
  .title h1 {
    font-size: 6rem;
    letter-spacing: 10px;
  }
  
  .title h3 {
    font-size: 1rem;
    letter-spacing: 5px;
  }
  
  /* Gallery content positioning */
  .slider .list .item .content {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    padding: 20px;
    max-width: none;
  }
  
  .slider .list .item .content .title {
    font-size: 2rem;
    top: 20px;
    margin-bottom: 30px;
    right: 0;
  }
  
  .slider .list .item .content .type {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .slider .list .item .content .description {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 20px;
  }
  
  /* Container improvements */
  .container h1 {
    font-size: 2.2rem;
    padding: 0 20px;
  }
  
  .container p {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  
  /* Footer improvements */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }
  
  /* Navigation arrows repositioning */
  .nextPrevArrows {
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    top: auto;
    width: 120px;
    justify-content: center;
  }
  
  .nextPrevArrows button {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  /* Thumbnail improvements */
  .thumbnail {
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 10px;
    max-width: 90vw;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .thumbnail::-webkit-scrollbar {
    display: none;
  }
  
  .thumbnail .item {
    width: 100px;
    height: 150px;
    flex-shrink: 0;
  }
  
  /* Info wrap improvements */
  .info-wrap {
    bottom: 25%;
  }
  
  .info-wrap p {
    width: 90%;
    font-size: 12px;
  }
  
  /* Quote section */
  .quote {
    bottom: 15%;
  }
  
  .quote h1 {
    font-size: 1.5rem;
    padding: 0 20px;
  }
}




    /* Mobile Navigation handled in base.html now */
    @media (max-width: 768px) {
      /* Mobile logo adjustments */
      .logo {
        top: 8px;
        left: 10px;
      }
      .logo img {
        height: 35px;
        min-height: 35px;
      }

    

      /* Mobile button improvements */
      .button-54 {
        font-size: 14px;
        padding: 12px 20px;
        min-width: 100px;
        height: auto;
        min-height: auto;
      }

      /* Container button responsiveness */
      .container .button-54 {
        font-size: 16px;
        padding: 15px 30px;
        width: auto;
        min-width: 150px;
      }

      /* Gallery button responsiveness */
      .slider .list .item .content .button .button-54 {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 120px;
        height: auto;
      }

      /* Next/Prev arrows responsiveness */
      .nextPrevArrows {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        top: auto;
        width: 120px;
        justify-content: center;
      }

      .nextPrevArrows button {
        width: 45px;
        height: 45px;
        font-size: 20px;
      }

      /* Thumbnail adjustments */
      .thumbnail {
        bottom: 80px;
        transform: translateX(-50%);
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 10px;
        max-width: 90vw;
      }

      .thumbnail .item {
        width: 100px;
        height: 150px;
        flex-shrink: 0;
      }

      /* Title responsiveness */
      .title h1 {
        font-size: 6rem;
        letter-spacing: 10px;
      }

      .title h3 {
        font-size: 1rem;
        letter-spacing: 5px;
      }

      /* Gallery content positioning */
      .slider .list .item .content {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        padding: 20px;
      }

      .slider .list .item .content .title {
        font-size: 2rem;
        top: 20px;
        margin-bottom: 30px;
      }

      .slider .list .item .content .type {
        font-size: 1.5rem;
        margin-bottom: 15px;
      }

      .slider .list .item .content .description {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 20px;
      }
    }

    @media (max-width: 480px) {

    
      .title h1 {
        font-size: 4rem;
        letter-spacing: 5px;
      }

      .title h3 {
        font-size: 0.9rem;
        letter-spacing: 3px;
      }

      .container h1 {
        font-size: 1.8rem;
      }

      .container p {
        font-size: 1rem;
      }
      .slider .list .item .content{
        position: absolute;
        top: 20%;

      }
      .slider .list .item .content .title {
        font-size: 1.8rem;
      }

      .slider .list .item .content .type {
        font-size: 1.2rem;
      }

      .thumbnail .item {
        width: 80px;
        height: 120px;
      }
    }

/* Small mobile devices */
@media (max-width: 678px) {
  .slider .list .item .content {
    padding: 15px;
    width: 98%;
  }
  
  .slider .list .item .content .title {
    font-size: 1.8rem;
    top: 10px;
  }
  
  .slider .list .item .content .type {
    font-size: 1.2rem;
  }
  
  .slider .list .item .content .description {
    font-size: 0.9rem;
  }
}


@media (max-width: 480px) {
  .quote h1 {
    display: flex;
       position: absolute;
       bottom:30%;
       color:#215030;

      }
  nav {
    padding: 5px 10px;
    gap: 3px;
  }
  
  nav a {
    font-size: 10px;
    padding: 6px 8px;
    min-width: 50px;
  }
  
  /* Extra small nav-right */
  .nav-right {
    right: 5px;
    top: 8px;
    gap: 10px;
  }
  
  .nav-right .button-54 {
    min-width: 50px;
    min-height: 25px;
    font-size: 10px;
    padding: 6px 10px;
    letter-spacing: 0.5px;
  }
  
  .user-name {
    font-size: 0.6rem;
  }
  
  .user-role {
    font-size: 0.5rem;
    padding: 1px 3px;
  }
  
  .user-icon {
    font-size: 1.3rem;
  }
  
  .nav-right i.fa-circle-play,
  .nav-right i.fa-pause-circle {
    font-size: 1.5rem;
  }
  
  /* Logo adjustments */
  .logo {
    top: 5px;
    left: 5px;
  }
  
  .logo img {
    height: 30px;
    min-height: 30px;
  }
  
  /* Title adustments - Perfected for mobile view */
  .hero-section .title {
    position: absolute !important;
    top: 20% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    text-align: center !important;
    z-index: 999 !important;
    padding: 0 15px !important;
  }
  
  .hero-section .title h1 {
    font-size: 5.5rem !important;
    letter-spacing: 3px !important;
    color: white !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9) !important;
    z-index: 999 !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 20%;
    font-weight: 700 !important;
    text-align: center !important;
  }
  
  .hero-section .title h3 {
    font-size: 1.3rem !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9) !important;
    z-index: 999 !important;
    display: block !important;
    position: relative !important;
    margin-bottom: 90px !important;
    font-weight: 500 !important;
  }
  
  /* Adjust background images for better mobile display */
  .hero-section .back-1, 
  .hero-section .back-2, 
  .hero-section .back-3 {
    z-index: 1 !important;
    opacity: 0.85 !important;
    position: relative !important;
  }
 


  /* Improve info-wrap text readability */
  .hero-section .info-wrap p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    padding: 15px !important;
    /* background-color: rgba(0,0,0,0.4) !important; */
    border-radius: 8px !important;
    margin-top: 20px !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7) !important;
  }
  
  /* Enhance quote styling */
  .hero-section .quote h1 {
    font-size: 1.5rem !important;
    margin-top: 15px !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
    font-style: italic !important;
    text-align: center;
  }
  
  .container h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 15px;
}
  
  .container p {
    font-size: 1rem;
  }
  
  .slider .list .item .content .title {
    font-size: 1.5rem;
  }
  
  .slider .list .item .content .type {
    font-size: 1rem;
  }
  
  .thumbnail .item {
    width: 80px;
    height: 120px;
  }
  
  .button-54 {
    font-size: 12px;
    padding: 10px 15px;
    min-width: 80px;
  }
  
  .info-wrap p {
    font-size: 10px;
  }
  
  .quote h1 {
    font-size: 1.2rem;
  }
}

/* Scroll-triggered animations */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Section visibility animations */
.section-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
