* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2d3436;
  --secondary-color: #c5a35a;
  --text-color: #333;
  --light-bg: #fdfdfd;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar {
  background: transparent;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1010;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scrolled .nav-links a {
  color: #000;
}

.black-nav .nav-links a {
  color: #000;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  font-family: "Playfair Display", serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  display: none;
  height: 40px;
}

.active-logo img {
  filter: invert();
  display: block;
}

.logo-hero img {
  filter: invert();
  height: 120px;
}

.scrolled .logo img {
  filter: none;
}

.scrolled .logo {
  color: var(--primary-color);
}

.black-nav .logo img {
  filter: none;
}

.black-nav .logo {
  color: var(--primary-color);
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.mobile-menu {
  display: none;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  position: fixed;
  top: 0;
  right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1001;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-links.active {
  right: 0;
}

li {
  list-style: none;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--secondary-color);
}

.mobile-nav-links .lang-switcher-mobile a:hover,
.mobile-nav-links .lang-switcher-mobile a.active {
  background: transparent;
  color: var(--secondary-color);
  text-decoration: underline;
}

.mobile-nav-links li {
  width: 100%;
}

.mobile-nav-links a {
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  width: 100%;
  display: flex;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--secondary-color);
}

.mobile-menu-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: var(--primary-color);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
  position: relative;
}

.mobile-menu-btn.active span {
  background: #000;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.scrolled .mobile-menu-btn span {
  background: var(--primary-color);
}

.scrolled .mobile-menu-btn span {
  background: var(--primary-color);
}

.black-nav .mobile-menu-btn span {
  background: var(--primary-color);
}

.black-nav {}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop Navigation Links */
.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.scrolled .nav-links a {
  color: #000;
}

.scrolled .lang-switcher,
.scrolled .lang-switcher a {
  color: #000;
}

.black-nav .lang-switcher,
.black-nav .lang-switcher a {
  color: #000;
}

.nav-links .active-black-nav:hover,
.nav-links a.active-black-nav {
  color: var(--secondary-color);
  background: rgba(197, 163, 90, 0.1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary-color);
  background: rgba(197, 163, 90, 0.1);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  background-image: url("../images/Golec uOrkiestra_Bazylika .jpg");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: -1;
}

.hero-content {
  padding: 2rem;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.6rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.slogan {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact {
  padding: 6rem 0;
}

.contact-content {
  display: flex;
  justify-content: center;
}

.contact-info {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 30px;

  @media (max-width: 768px) {
    flex-direction: column;
  }
}

.contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-info .contact-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  width: 30px;
  text-align: center;
}

.contact-info .contact-item p {
  margin: 0;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-link {
  color: inherit;
  text-decoration: none;
}

.cta-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;

  @media (max-width: 640px) {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
}

.margin-top {
  margin-top: 20px;
}

/* Language Switcher */
.lang-switcher {
  margin-left: 20px;
  color: #fff;
}

.lang-switcher a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 5px;
  transition: color 0.3s;
}

.lang-switcher a:hover {
  color: #ddd;
}

.lang-switcher a.active-lang {
  font-weight: 700;
  text-decoration: underline;
}

.lang-switcher-mobile {
  padding-top: 15px;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

.lang-switcher-mobile a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.lang-switcher-mobile a.active-lang {
  font-weight: 700;
  text-decoration: underline;
}

footer {
  background: var(--primary-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.lang-switcher-eng {
  display: flex !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .desktop-menu {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .slogan {
    font-size: 1.4rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* Section Styling */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.about {
  padding: 6rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat h3 {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.stat p {
  color: #666;
}

.gallery {
  padding: 6rem 0;
  background: var(--light-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  transition: bottom 0.3s ease;
}

.gallery-item img {
  cursor: pointer;
}

.gallery-item.video-item {
  position: relative;
}

.gallery-item.video-item::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  color: white;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  opacity: 0.8;
  transition: all 0.3s ease;
  pointer-events: none;
}

.gallery-item.video-item:hover::after {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.lightbox-video-container {
  display: none;
  width: 90%;
  max-width: 900px;
  margin: auto;
  position: relative;
}

.lightbox-video-container iframe {
  width: 100%;
  height: 500px;
  max-height: 80vh;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-next,
.lightbox-prev {
  cursor: pointer;
  position: fixed;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.events {
  padding: 6rem 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 2rem;
}

.event-card {
  display: block;
  background: white;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-image {
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.active-project,
.active-black-nav {
  color: var(--secondary-color) !important;
  background: rgba(197, 163, 90, 0.1) !important;
  border: 1px solid var(--secondary-color) !important;
}

.event-details {
  padding: .5rem;
}

.event-details h3 {
  margin-bottom: 1rem;
}

.event-details p {
  margin-bottom: 0.5rem;
  color: #666;
}

.event-details p strong {
  color: var(--primary-color);
}

.event-details .date {
  color: var(--secondary-color);
}

.support {
  padding: 6rem 0;
  background: var(--light-bg);
  text-align: center;
}

.donation-box {
  background: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.donation-box p {
  margin-bottom: 2rem;
  color: #666;
}

.btn {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid var(--secondary-color);
}

.btn.primary {
  background: var(--secondary-color);
  color: white;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  color: white;
  backdrop-filter: blur(5px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn.secondary:hover {
  background: white;
  color: var(--primary-color);
}

.lang-switcher-mobile {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.lang-switcher-mobile a {
  width: auto;
}

/* Culture section */
.culture {
  padding: 6rem 0;
  background: #fff;
}

.culture .performers,
.culture .music-links {
  margin: 1rem 0 2rem;
  padding-left: 1.2rem;
}

.culture ul li {
  margin-bottom: 0.5rem;
}

/* Promo Popup */
.promo-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  padding: 1rem;
}

.promo-popup.active {
  display: flex;
}

.promo-popup-content {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 90%;
  max-height: 86vh;
  /* Limit height to viewport and allow scroll */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.promo-popup-content img {
  display: block;
  width: 100%;
  height: auto;
}

.promo-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.promo-popup-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Disable background scroll when popup is open */
html.no-scroll,
body.no-scroll {
  overflow: hidden;
}

@media (max-width: 768px) {
  .address {
    font-size: 14px;
  }
}