* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background: #0d1520;
}

/* HERO PARALLAX SECTION */
.hero-parallax {
  position: relative;
  height: calc(100vh - 70px);
  overflow: hidden;
  margin-top: 70px;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  will-change: transform;
}

/* Warstwa 1 */
.sky-layer {
  background-image: url("img/tatryPanorama2.jpg");
  background-size: cover;
  background-position: center bottom;
  height: 100%;
  bottom: 0;
  z-index: 1;
}

/* Warstwa 2 */
.mountains-back {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 2;
}

/* Warstwa 3  */
.mountains-mid {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(30, 40, 60, 0.3) 80%,
    rgba(20, 30, 45, 0.5) 100%
  );
  z-index: 3;
}

/* Warstwa 4 */
.trees-layer {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 70%,
    rgba(15, 20, 30, 0.4) 85%,
    rgba(10, 15, 25, 0.7) 95%,
    rgba(8, 12, 20, 0.9) 100%
  );
  z-index: 4;
}

.tree-silhouette {
  position: absolute;
  bottom: 0;
  z-index: 5;
  height: auto; 
}

.tree-1 {
  left: 10%;
  width: clamp(50px, 8vw, 120px);
  opacity: 0.8;
}

.tree-2 {
  left: 25%;
  width: clamp(60px, 10vw, 150px);
  opacity: 0.7;
}

.tree-3 {
  left: 45%;
  width: clamp(45px, 7vw, 100px);
  opacity: 0.9;
}

.tree-4 {
  right: 30%;
  width: clamp(55px, 9vw, 130px);
  opacity: 0.75;
}

.tree-5 {
  right: 10%;
  width: clamp(60px, 10vw, 140px);
  opacity: 0.8;
}

/* Warstwa 5 */
.clouds-layer {
  z-index: 6;
  pointer-events: none;
}

.cloud {
  position: absolute;
  top: 0;
  background-image: url("img/cloud2.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
  will-change: transform;
}

/* Płatki śniegu */
.snowflakes {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1em;
  animation: fall linear infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes fall {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Tekst główny */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  color: rgb(255, 255, 255);
}

.hero-content h1 {
  font-size: clamp(50px, 10vw, 120px);
  font-weight: 700;
  letter-spacing: 15px;
  margin: 0;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.7);
  background: linear-gradient(to bottom, #acacac, #b3b3b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content h2 {
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: 10px;
  margin-top: 20px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

.hero-content .tagline {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 400;
  letter-spacing: 4px;
  margin-top: 40px;
  padding: 15px 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  cursor: pointer;
}

.hero-content .tagline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  color: white;
  animation: bounce-scroll 2s infinite;
}

.scroll-down span {
  display: block;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.scroll-down::after {
  content: "";
  display: block;
  width: 30px;
  height: 50px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  position: relative;
}

.scroll-down::before {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: scroll-wheel 2s infinite;
}

@keyframes bounce-scroll {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* SEKCJA INTRO */
.intro-section {
  position: relative;
  min-height: auto;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 80px 20px;
}

.intro-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  color: white;
  text-align: center;
}

.intro-wrapper h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 30px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
  visibility: visible;
}

.intro-wrapper p {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 20px;
  visibility: visible;
}

/* SEKCJA WYBORU DOMKÓW/APARTAMENTÓW */
.choose-section {
  position: relative;
  min-height: auto;
  background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
  padding: 80px 20px;
  z-index: 20;
}

.choose-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  color: white;
}

.choose-title {
  text-align: center;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 60px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.house-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.house-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.house-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  position: relative;
  overflow: hidden;
}

.house-image::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.house-1 {
  background-image: url("img/g1.jpg");
  background-size: cover;
  background-position: center;
}

.house-2 {
  background-image: url("img/g2.jpg");
  background-size: cover;
  background-position: center;
}

.house-3 {
  background-image: url("img/g3.jpg");
  background-size: cover;
  background-position: center;
}

.house-4 {
  background-image: url("img/a1/a44.jpg");
  background-size: cover;
  background-position: center;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.house-info {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.house-info h3 {
  font-size: 28px;
  margin-bottom: 15px;
  letter-spacing: 1px;
  color: #667eea;
}

.house-info .capacity {
  font-size: 16px;
  opacity: 0.75;
  margin-bottom: 15px;
  color: #764ba2;
}

.house-info p {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 25px;
  font-size: 14px;
  opacity: 0.8;
}

.feature-list li {
  list-style: none;
  padding-left: 25px;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
  font-size: 16px;
}

.house-card-link {
  display: inline-block;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
  letter-spacing: 1px;
  align-self: flex-start;
}

.house-card-link:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* GALERIA 3D */
.gallery-section-3d {
  position: relative;
  width: 100%;
  min-height: auto;
  background: linear-gradient(135deg, #0a0e1a 0%, #0d1520 50%, #050a15 100%);
  padding: 100px 20px;
}

@media (max-width: 768px) {
  .gallery-section-3d {
    display: none;
  }
}

.gallery-title-3d {
  text-align: center;
  color: white;
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: 80px;
  letter-spacing: 4px;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stage {
  position: relative;
  width: 100%;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  margin-bottom: 60px;
}

.container {
  perspective: 2000px;
  width: clamp(250px, 80vw, 500px);
  height: clamp(350px, 80vw, 600px);
  position: relative;
}

.ring {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  cursor: grab;
}

.ring:active {
  cursor: grabbing;
}

.img {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: box-shadow 0.3s ease;
}

.img:hover {
  box-shadow: 0 30px 80px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
  .img {
    width: 90%;
    height: 90%;
    left: 5%;
    top: 5%;
  }
}

/* MAPS SECTION */
.maps-section {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 100px 0;
  z-index: 25;
}

.map-title {
  text-align: center;
  color: white;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 80px;
  margin-top: 20px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 20px;
}

.maps-container {
  width: 100%;
}

.maps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
}

#one {
  color: white;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  position: absolute;
  top: 20px;
  left: calc(50% - 156px);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 25px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

#two {
  color: white;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  position: absolute;
  top: 20px;
  left: calc(50% - 129px);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 25px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (min-width: 1024px) {
  .maps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.apartment-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto; 
}

.apartment-links .house-card-link {
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .apartment-links {
    flex-direction: row;
    gap: 15px;
  }
  
  .apartment-links .house-card-link {
    flex: 1;
  }
}

@media (max-width: 767px) {
  .apartment-links .house-card-link {
    font-size: 13px;
    padding: 10px 15px;
  }
}