body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url("../insta-asset/images/IMG_8345.JPG") no-repeat center center/cover;
  background-attachment: fixed;
  height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(4px);
  z-index: -1;
}

/*=====================
SCROLLBAR SECTION:
=====================*/
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/*=====================
HEADER SECTION:
=====================*/
.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  color: #fff;
  text-align: center;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-links a {
  margin: 0 5px;
  font-size: 20px;
  color: #f3e9eb;
  transition: 0.3s;
}
.header-links a:hover {
  color: rgb(222, 190, 7);
  transform: scale(1.2);
}

.site-header {
  display: flex;
  align-items: center;
  /* padding: 10px 20px; */
}

.logo img {
  height: 100px; /* adjust as needed */
  width: auto;
}

/*=====================
GRID SECTION:
=====================*/
.grid {
  display: grid;
  padding: 7px;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;

  -webkit-tap-highlight-color: transparent;
}

.grid-item:active {
  transform: scale(0.98);
}

.grid-item:nth-child(1) {
  animation-delay: 0.1s;
}
.grid-item:nth-child(2) {
  animation-delay: 0.2s;
}
.grid-item:nth-child(3) {
  animation-delay: 0.3s;
}
.grid-item:nth-child(4) {
  animation-delay: 0.4s;
}

.grid-item::after {
  content: "View Post";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  /* padding: 2px 6px; */
  border-radius: 12px;
  font-size: 18px;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.grid-item:hover::after {
  opacity: 1;
}

.grid-item img,
.grid-item video {
  width: 100%;
  aspect-ratio: 1 / 1; /* perfect square */
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/*=====================
MODAL SECTION:
=====================*/
.modal {
  opacity: 0;
  transition: opacity 0.3s ease;

  display: none;
  position: fixed;

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);

  justify-content: center;
  align-items: center;

  z-index: 1001;
}
.modal.show {
  opacity: 1;
}

.modal-content {
  max-width: 600px;
  width: 95%;
  height: 90vh;

  background: rgba(16, 3, 3, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  display: flex;
  flex-direction: column;

  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

#modalText {
  padding: 10px;
  font-size: 14px;
  text-align: left;
}

.modal-media img,
.modal-media video {
  width: 100%;
  max-height: 530px;

  object-fit: contain;

  background: #000000;

  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: transform 0.3s ease;
}
.modal-media img:hover,
.modal-media video:hover {
  transform: scale(1.02);
}

.modal-info {
  padding: 12px;
  border-top: 1px solid #222;
  max-height: 200px;
  overflow-y: auto;
}

.modal-info p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #ddd;
}

/*=====================
MODAL CLOSE SECTION:
=====================*/
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  z-index: 1001;
}

/*=====================
LIKE BUTTON SECTION:
=====================*/
#likeBtn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1002;

  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.1);

  padding: 5px 8px;
  border-radius: 50px;

  font-size: 25px;
  cursor: pointer;
  color: #aaa;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  transition: 0.3s ease;
}

#likeBtn.liked {
  color: #ff4d6d;
  border-color: rgba(255, 77, 109, 0.4);
  /* font-size: 30px; */
}

/*=====================
ANIMATIONS SECTION:
=====================*/

/* Double click -  Big heart animation */
.big-heart {
  position: absolute;
  font-size: 80px;
  color: white;
  opacity: 0;
  pointer-events: none;
  animation: pop 0.6s ease;
}
@keyframes pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* Grid items fade in animation */
.grid-item:nth-child(1) {
  animation-delay: 0.1s;
}
.grid-item:nth-child(2) {
  animation-delay: 0.2s;
}
.grid-item:nth-child(3) {
  animation-delay: 0.3s;
}
.grid-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*=====================
FOOTER SECTION:
=====================*/
.footer {
  margin-top: 60px;
  padding: 40px 20px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);

  text-align: center;
  color: #ccc;

  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
}
.footer.show {
  opacity: 1;
  transform: translateY(0);
}
.footer a {
    color: #ccc;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.footer-content {
  max-width: 800px;
  margin: auto;
}

.footer-logo {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}

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

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  margin: 0 20px;
  font-size: 30px;
  color: #f3e9eb;
  transition: 0.3s;
}

.footer-links a:hover {
  color: rgb(7, 151, 34);
  transform: scale(1.2);
}

.footer-copy {
  font-size: 12px;
  color: #777;
}

/* .floating-footer {
  position: fixed;
  bottom: 50px;
  right: 20px;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);

  padding: 10px 15px;
  border-radius: 20px;

  color: white;
  font-size: 26px;
  font-weight: bold;

  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;

  z-index: 1000;
}

.floating-footer.show {
  opacity: 1;
  transform: translateY(0);
}

.floating-footer:hover {
  background: rgba(0, 0, 0, 0.8);
  color: beige;
  cursor: pointer;
} */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;

  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;

  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
  color: #fff;
}

/* Optional pulse animation to grab attention */
.whatsapp-float::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(37, 211, 101, 0.602);
  animation: whatsapp-pulse 1s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 10;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
