:root {
  --primary-color: #000;
  --secondary-color: #c62727;
  --accent-bg: #fff;
  --nav-padding: 3vw 10vw;
  --section-padding: 3vw 10vw;
  --gap-main: 20px;
  --font-main: Verdana, Geneva, Tahoma, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

/* Full viewport */
html,
body {
  height: 100%;
  width: 100%;
}

/* Hide scrollbar */
body::-webkit-scrollbar {
  display: none;
}

/* Navigation */
#nav {
  padding: var(--nav-padding);
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

#navleft,
#navright {
  display: flex;
  gap: var(--gap-main);
}

#nav a {
  text-decoration: none;
  display: inline-block;
  color: var(--primary-color);
  transition: color 0.3s;
}

#nav a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

#nav a:hover {
  color: var(--secondary-color);
}

#active {
  font-weight: bold;
  font-style: italic;
}

/* Hero Section */
#hero {
  margin-top: 20vw;
  padding: 0 10vw;
  display: flex;
  justify-content: space-between;
}

/* Sustain */
#sustain {
  width: 15vw;
  margin-top: 15vw;
}

#sustain p {
  font-size: 12px;
  color: red;
  font-weight: 800;
  /* opacity: 0.5; */
  text-transform: capitalize;
  margin: 10px 0;
}

#sustain #susimage {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 25vw;
}

#susimage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Heading */
#heading {
  width: 40vh;
  height: 47vh;
  position: relative;
}

#heading #headings {
  position: absolute;
  top: -20%;
  left: -10%;
}

#heading p {
  position: absolute;
  color: red;
  font-size: 1vw;
  width: 70%;
  line-height: 1.3;
  letter-spacing: -0.1vw;
  top: 127%;
}

#heading img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

#circles {
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2vw;
  height: 2vw;
}

#headings h1 {
  font-size: 5vw;
  font-weight: 800;
  letter-spacing: -0.4vw;
  line-height: 0.8;
  color: black;
  text-transform: uppercase;
  margin-top: 10px;
}

#visit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2vw;
}

#visit h2 {
  font-size: 2vw;
  font-weight: 500;
  color: var(--primary-color);
}

/* Motive Section */
#motive {
  padding: var(--section-padding);
  margin-top: 7vw;
  display: flex;
  justify-content: space-between;
}

#motive h4 {
  font-size: 1.5vw;
  font-weight: 550;
}

#motive p {
  position: relative;
  line-height: 1.7;
  font-weight: 500;
  margin-top: 5vw;
  text-align: right;
  width: 80%;
  font-size: 2.1vw;
}

#motive span {
  display: inline-block;
  margin: 0 13px;
  border-radius: 100px;
  margin-bottom: -12.5px;
  background-color: #220505;
}

#onespan {
  width: 80px;
  height: 50px;
  background-size: cover;
  background-position: top center;
  background-image: url(../images/face.jpg);
}

#twospan {
  width: 120px;
  height: 50px;
  background-size: cover;
  background-position: top center;
  background-image: url(../images/frame.jpg);
}

#threespan {
  width: 80px;
  height: 50px;
  background-size: cover;
  background-position: top center;
  background-image: url(../images/mountains.jpg);
}

/* Picture Section */
#picture {
  display: flex;
  justify-content: space-between;
  margin-top: 5vw;
  padding: 3vw;
  padding-left: 14vw;
  padding-right: 12vw;
}

#firstpic,
#secpic {
  font-size: 2vw;
  text-decoration: none;
}

#firstpic {
  width: 17vw;
}

#firstpic #picimg {
  width: 100%;
  height: 24vw;
  margin-bottom: 1vw;
}

#picimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#firstpic a {
  text-decoration: none;
}

#secpic a {
  text-decoration: none;
}

#firstpic h1,
#secpic h1 {
  letter-spacing: -0.1vw;
  text-decoration: none;
  color: blueviolet;
  font-weight: 200;
  font-size: 2vw;
  text-align: right;
}

#firstpic p,
#secpic p {
  opacity: 0.8;
  color: black;
  font-size: 1vw;
  letter-spacing: -0.06vw;
  margin-top: 10px;
  line-height: 1;
}

#secpic #picimg {
  width: 100%;
  height: 34vw;
  margin-bottom: 1vw;
}

#secpic {
  width: 27vw;
  display: flex;
  flex-direction: column;
  align-items: end;
}

#secpic p {
  width: 50%;
  text-align: right;
  text-decoration: none;
}

/* Banner Section */
#banner {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 8vw;
}

#bimg {
  width: 65%;
  height: 60vh;
  background-color: red;
}

#bimg img {
  width: 100%;
  height: 100%;
  object-position: 0% 70%;
  object-fit: cover;
}

#btext {
  width: 35%;
  padding: 0 3vw;
  /* text-align: end; */
}

#btext h1 {
  font-size: 2.5vw;
  font-weight: 520;
  letter-spacing: -0.15vw;
  line-height: 1;
}

#btext p {
  font-size: 1.2vw;
  line-height: 1.5;
  margin-top: 1vw;
}

/* Future Section */
#future {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100vh;
}

#future video {
  width: 100%;
  opacity: 0;
  position: absolute;
  object-fit: cover;
}

#ftext {
  position: relative;
  z-index: 1;
  color: red;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1vw 1.2vw;
  background-color: var(--accent-bg);
  border-radius: 10px;
}

#ftext button {
  padding: 1vw 2vw;
  font-size: 0.7vw;
  font-weight: 700;
  border-radius: 100px;
  background: var(--accent-bg);
  border: 1px solid var(--primary-color);
  text-transform: capitalize;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {

  #nav,
  #motive,
  #picture,
  #banner {
    flex-direction: column;
    padding: 3vw 2vw;
  }

  #hero {
    flex-direction: column;
    margin-top: 10vw;
  }

  #sustain,
  #heading,
  #secpic,
  #firstpic,
  #bimg,
  #btext {
    width: 100%;
    margin-top: 5vw;
    height: auto;
  }

  #bimg {
    height: 30vh;
  }

  #btext {
    padding: 0 1vw;
  }
}

/* Mobile Image Slider Styles */
#mobileSlider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  z-index: 9999;
  overflow: hidden;
}

.mobile-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100vh;
  padding: 40px 20px 20px 20px;
  position: relative;
  gap: 20px;
}

.mobile-message {
  text-align: center;
  color: #fff;
  z-index: 15;
  max-width: 320px;
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.mobile-message h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
  font-family: "Staatliches", cursive;
}

.image-stack {
  position: relative;
  width: 250px;
  height: 380px;
  margin: 60px 0 0 0;
}

.image-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  transform-origin: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Card positioning with 3D effects */
.image-card.active {
  z-index: 10;
  transform: translateY(0) scale(1) rotateX(0deg);
  opacity: 1;
  filter: brightness(1);
  box-shadow: 0 30px 70px rgba(255, 255, 255, 0.2),
    0 20px 45px rgba(0, 0, 0, 0.4), 0 10px 25px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.15);
  animation: breathingRise 1.5s ease-in-out infinite;
}

/* Cards above active */
.image-card[data-relative="-1"] {
  z-index: 9;
  --card-y: -40px;
  --card-scale: 0.94;
  --card-rotate: 2deg;
  transform: translateY(-40px) scale(0.94) rotateX(2deg);
  opacity: 1;
  filter: brightness(1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: breathingWave 1.5s ease-in-out infinite 0.15s;
}

.image-card[data-relative="-2"] {
  z-index: 8;
  --card-y: -70px;
  --card-scale: 0.88;
  --card-rotate: 3deg;
  transform: translateY(-70px) scale(0.88) rotateX(3deg);
  opacity: 1;
  filter: brightness(1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 6px 15px rgba(0, 0, 0, 0.2);
  animation: breathingWave 1.5s ease-in-out infinite 0.3s;
}

.image-card[data-relative="-3"] {
  z-index: 7;
  --card-y: -95px;
  --card-scale: 0.82;
  --card-rotate: 4deg;
  transform: translateY(-95px) scale(0.82) rotateX(4deg);
  opacity: 0.9;
  filter: brightness(1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 5px 12px rgba(0, 0, 0, 0.15);
  animation: breathingWave 1.5s ease-in-out infinite 0.45s;
}

.image-card[data-relative="-4"] {
  z-index: 6;
  --card-y: -115px;
  --card-scale: 0.76;
  --card-rotate: 5deg;
  transform: translateY(-115px) scale(0.76) rotateX(5deg);
  opacity: 0.8;
  filter: brightness(1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: breathingWave 1.5s ease-in-out infinite 0.6s;
}

/* Cards below active */
.image-card[data-relative="1"] {
  z-index: 9;
  --card-y: 40px;
  --card-scale: 0.94;
  --card-rotate: -2deg;
  transform: translateY(40px) scale(0.94) rotateX(-2deg);
  opacity: 1;
  filter: brightness(1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: breathingWave 1.5s ease-in-out infinite 0.75s;
}

.image-card[data-relative="2"] {
  z-index: 8;
  --card-y: 70px;
  --card-scale: 0.88;
  --card-rotate: -3deg;
  transform: translateY(70px) scale(0.88) rotateX(-3deg);
  opacity: 1;
  filter: brightness(1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 6px 15px rgba(0, 0, 0, 0.2);
  animation: breathingWave 1.5s ease-in-out infinite 0.9s;
}

.image-card[data-relative="3"] {
  z-index: 7;
  --card-y: 95px;
  --card-scale: 0.82;
  --card-rotate: -4deg;
  transform: translateY(95px) scale(0.82) rotateX(-4deg);
  opacity: 0.9;
  filter: brightness(1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 5px 12px rgba(0, 0, 0, 0.15);
  animation: breathingWave 1.5s ease-in-out infinite 1.05s;
}

.image-card[data-relative="4"] {
  z-index: 6;
  --card-y: 115px;
  --card-scale: 0.76;
  --card-rotate: -5deg;
  transform: translateY(115px) scale(0.76) rotateX(-5deg);
  opacity: 0.8;
  filter: brightness(1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: breathingWave 1.5s ease-in-out infinite 1.2s;
}

/* Cards outside visible range */
.image-card[data-relative="hidden"] {
  z-index: 4;
  transform: translateY(140px) scale(0.7) rotateX(-8deg);
  opacity: 0.2;
  filter: blur(4px) brightness(0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Touch interaction styles */
.image-card:active {
  transform: scale(0.98);
}

/* Animation keyframes */
@keyframes breathingRise {
  0% {
    transform: translateY(0) scale(1) rotateX(0deg);
  }

  25% {
    transform: translateY(-8px) scale(1.01) rotateX(0deg);
  }

  50% {
    transform: translateY(-15px) scale(1.02) rotateX(0deg);
  }

  75% {
    transform: translateY(-8px) scale(1.01) rotateX(0deg);
  }

  100% {
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}

@keyframes breathingWave {
  0% {
    transform: translateY(var(--card-y, 0)) scale(var(--card-scale, 1)) rotateX(var(--card-rotate, 0deg));
  }

  25% {
    transform: translateY(calc(var(--card-y, 0px) - 5px)) scale(calc(var(--card-scale, 1) + 0.008)) rotateX(var(--card-rotate, 0deg));
  }

  50% {
    transform: translateY(calc(var(--card-y, 0px) - 10px)) scale(calc(var(--card-scale, 1) + 0.015)) rotateX(var(--card-rotate, 0deg));
  }

  75% {
    transform: translateY(calc(var(--card-y, 0px) - 5px)) scale(calc(var(--card-scale, 1) + 0.008)) rotateX(var(--card-rotate, 0deg));
  }

  100% {
    transform: translateY(var(--card-y, 0)) scale(var(--card-scale, 1)) rotateX(var(--card-rotate, 0deg));
  }
}

@keyframes riseFromBelow {
  0% {
    transform: translateY(60px) scale(0.9);
    opacity: 0.6;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Current image moving to back/top animation */
.image-card:not(.active) {
  animation: moveToBack 0.3s ease-out;
}

@keyframes moveToBack {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-20px) scale(0.96);
    opacity: 0.9;
  }
}