/* Modern, responsive One-Page styles with glassmorphism */
:root {
  /* Colors */
  --primary: #f4511e;
  --text-light: #f9f9f9;
  --text-dark: #303030;
  
  /* Glassmorphism variables */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(12px);

  --glass-dark-bg: rgba(0, 0, 0, 0.4);
  --glass-dark-border: rgba(255, 255, 255, 0.1);
  --glass-dark-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Montserrat', 'Lato', sans-serif;
}

body {
  background: url('../images/mountain_background.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-light);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
}

h2 {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}
h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--primary);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

p {
  font-family: 'Lato', sans-serif;
  margin-bottom: 15px;
  font-size: 16px;
}

/* Reusable Glass Class */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 40px;
}

.glass-panel-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-dark-border);
  box-shadow: var(--glass-dark-shadow);
  border-radius: 16px;
  padding: 40px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(244, 81, 30, 0.4);
}
.btn:hover {
  background: #d84315;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(244, 81, 30, 0.6);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 50px;
  transition: all 0.4s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar.scrolled {
  padding: 15px 50px;
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-dark-border);
  box-shadow: var(--glass-dark-shadow);
}
.navbar .logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}
.nav-links li a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}
.nav-links li a:hover::after, .nav-links li a.active::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}
.hero-content {
  max-width: 800px;
  animation: fadeInDown 1s ease-out;
}
.hero-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
.hero-content h1 {
  font-size: 48px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 15px;
}
.hero-content p {
  font-size: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* General Section Layout */
.section {
  padding: 100px 50px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.section-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Galeria Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s ease;
}
.card:hover {
  transform: translateY(-10px);
}
.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 2px solid rgba(255,255,255,0.1);
}

/* O Nas Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
}
.about-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--glass-dark-shadow);
  border: 1px solid var(--glass-border);
}

/* Warunki / Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.service-item {
  margin-bottom: 20px;
}

/* Cennik */
.pricing-list {
  list-style: none;
}
.pricing-list li {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 18px;
  display: flex;
  align-items: center;
}
.pricing-list li:last-child {
  border-bottom: none;
}
.pricing-list li::before {
  content: "✔";
  color: var(--primary);
  margin-right: 15px;
  font-size: 20px;
}

/* Warunki Pobytu (Regulamin) */
.rules-list {
  list-style: none;
  counter-reset: my-counter;
}
.rules-list li {
  position: relative;
  padding: 15px 20px 15px 60px;
  margin-bottom: 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}
.rules-list li:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(5px);
}
.rules-list li::before {
  counter-increment: my-counter;
  content: counter(my-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Kontakt & Map */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 18px;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 50px 50px 20px;
  text-align: center;
  border-top: 1px solid var(--glass-dark-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto 30px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 14px;
  color: #aaa;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: #d84315;
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 992px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--glass-dark-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    border-left: 1px solid var(--glass-dark-border);
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: flex;
    z-index: 1001;
  }
  .hamburger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
  .hamburger.toggle .line2 { opacity: 0; }
  .hamburger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
  
  .section {
    padding: 80px 20px;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}
