:root {
  --primary-color: #160023;
  --secondary-color: #ff6b6b;
  --accent-color: #4ecdc4;
  --text-light: #ffffff;
  --text-dark: #333333;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

#logo {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%) scale(5);
  z-index: 10000;
  animation: logoEntry 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
  width: 100px;
  height: auto;
  opacity: 1;
}

@keyframes logoEntry {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(5) rotate(0deg);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(3) rotate(360deg);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) rotate(720deg);
  }
  100% {
    opacity: 1;
    transform: translate(60px, 30px) scale(1) rotate(720deg);
  }
}

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-color);
  z-index: 1000;
  transition: var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.nav-logo.visible {
  visibility: visible;
  opacity: 1;
}

.nav-logo img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo-text {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

.header {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
@media (max-width: 768px) {
  .header {
    height: 100dvh;
    padding-top: 60px;
  }

  .hero-content {
    margin-top: 0;
    padding: 0 5%;
    transform: none;
    animation: none;
    opacity: 1;
  }

  .slideshow {
    height: 100%;
  }

  .header-slide {
    background-size: cover;
    background-position: center center;
  }
}

.hero-content {
  margin-top: 120px;
  transform: translateY(50px);
  opacity: 0;
  animation: fadeUp 1s forwards;
  animation-delay: 0.5s;
}

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

.featured-posts {
  padding: 5rem 5%;
  background: var(--primary-color);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.post-card {
  background: lab(100% 0.01 -0.01);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.267);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-card:hover {
  transform: translateY(-10px);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1rem;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-content p {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.parallax {
  background-image: url("img/raimond-klavins-OqVDmmUt8oc-unsplash.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
  }
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}

.header-slide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: slideShow 42s infinite;
  opacity: 0;
  z-index: 0;
}

.header-slide:nth-child(1) {
  background-image: url("img/bg.avif");
  animation-delay: 0s;
}
.header-slide:nth-child(2) {
  background-image: url("img/Lakesidenight.jpeg");
  animation-delay: 6s;
}
.header-slide:nth-child(3) {
  background-image: url("img/mountains.jpeg");
  animation-delay: 12s;
}
.header-slide:nth-child(4) {
  background-image: url("img/IMG_0212.JPG");
  animation-delay: 18s;
}
.header-slide:nth-child(5) {
  background-image: url("img/Fewa-Boat.jpg");
  animation-delay: 24s;
}
.header-slide:nth-child(6) {
  background-image: url("img/City.jpg");
  animation-delay: 30s;
}
.header-slide:nth-child(7) {
  background-image: url("img/peace-stupa.jpg");
  animation-delay: 36s;
}

@keyframes slideShow {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  1% {
    opacity: 1;
    transform: scale(1.02);
  }
  13% {
    opacity: 1;
    transform: scale(1.1);
  }
  15% {
    opacity: 0;
    transform: scale(1.15);
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

.header-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5vw;
  box-sizing: border-box;
  z-index: -1;
}

.header-frame .slideshow {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .header-frame {
    padding: 3vw;
  }
}

.newsletter {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 4rem 5%;
  text-align: center;
}

.newsletter-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  gap: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

.cta-button {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.cta-button:hover {
  background: #ff5252;
}

@media (max-width: 768px) {
  .parallax,
  .header {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--primary-color);
    position: absolute;
    top: 100%;
    right: 5%;
    padding: 1rem;
    border-radius: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

.footer {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 4rem 5%;
  text-align: center;
}

.social-links {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent-color);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}
@media (max-width: 768px) {
  #logo {
    width: 80px;
    animation: logoEntryMobile 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes logoEntryMobile {
    100% {
      transform: translate(30px, 20px) scale(1) rotate(720deg);
    }
  }

  .nav-logo img {
    height: 40px;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 15px;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.close-button {
  float: right;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.about-section {
  padding: 8rem 2rem;
  position: relative;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  position: relative;
  color: #f1f1f1;
}

.accent-dot {
  color: white;
}

.subheading {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 3rem;
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.about-card {
  background: rgb(255, 255, 255);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(250, 250, 250, 0.17);
}

.about-card i {
  font-size: 2.5rem;
  color: black;
  margin-bottom: 1rem;
}

.highlight {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: rgb(255, 255, 255);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  box-shadow: rgba(255, 255, 255, 0.179);
}

.highlight i {
  font-size: 1.8rem;
  color: black;
  min-width: 40px;
}

.about-gallery {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.25);
}

.gallery-slider {
  height: 600px;
  position: relative;
}

.slider-item {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: var(--transition);
}

.slider-item.active {
  opacity: 1;
}

.slider-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
}

.slider-controls button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.slider-controls button:hover {
  color: var(--accent-color);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: rgba(85, 2, 85, 0.983);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .gallery-slider {
    height: 400px;
  }

  .about-text h2 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .desktop-slideshow {
    display: none;
  }

  .mobile-slideshow {
    display: block;
    position: relative;
    height: 100vh;
    overflow: hidden;
  }

  .mobile-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: transform;
  }

  .mobile-slide.active {
    opacity: 1;
  }

  .mobile-banner {
    display: none;
  }
}

.desktop-slideshow {
  display: block;
}

.mobile-slideshow {
  display: none;
}

.newsletter-input::placeholder {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
}
