:root {
  --ocean-blue: #1a5f7a;
  --deep-blue: #003366;
  --risk-orange: #e67e22;
  --current-red: #e74c3c;
  --safe-green: #2ecc71;
  --light-text: #f8f9fa;
  --dark-text: #333333;
}

body {
  font-family: 'Raleway', sans-serif;
  margin: 0;
  color: var(--dark-text);
  line-height: 1.6;
  background-color: #f5f7fa;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: rgba(26, 95, 122, 0.95);
  color: var(--light-text);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 0.8rem 5%;
  background: rgba(26, 95, 122, 0.98);
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  gap: 12px;
  height: 55px;
}

.logo-icon {
  width: 55px;
  height: 55px;
}

.logo-text {
  font-size: 1.8rem;
  color: var(--light-text);
  line-height: 1;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

/* Hero Section with Image */
.hero-section {
  position: relative;
  margin-top: 80px;
  display: flex;
  justify-content: center;
  background: #f0f0f0;
  padding: 20px 0; /* Dodajemy odstęp góra-dół */
}

.map-image {
  max-width: 90%; /* Zmniejszamy szerokość do 90% kontenera */
  max-height: 65vh; /* Ograniczamy wysokość */
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Lekki cień dla estetyki */
  border-radius: 4px; /* Zaokrąglone rogi */
}

.hero-overlay {
  position: absolute;
  bottom: 40px; /* Więcej miejsca od dołu */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  max-width: 80%;
  text-align: center;
}
/* Reszta CSS pozostaje BEZ ZMIAN */

@media (max-width: 768px) {
  .hero-overlay {
    padding: 1rem 5%;
    bottom: 10px;
  }
  
  .hero-overlay h1 {
    font-size: 2rem;
  }
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-top: 0;
}

/* Main Content */
.project-container {
  display: flex;
  padding: 3rem 5%;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-description {
  flex: 2;
}

.project-stats {
  flex: 1;
}

/* Typography */
h2 {
  font-family: 'Montserrat', sans-serif;
  color: var(--deep-blue);
  margin-top: 0;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--ocean-blue);
}

/* Statistics Cards */
.stats-section {
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  color: white;
}

.high-risk {
  background-color: var(--risk-orange);
}

.current-risk {
  background-color: var(--current-red);
}

.total-risk {
  background-color: var(--deep-blue);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.stat-detail {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* Technical Details */
.tech-section {
  margin-bottom: 2rem;
}

.tech-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsywność */
@media (max-width: 768px) {
  .project-container {
    flex-direction: column;
  }
  
  .hero-overlay h1 {
    font-size: 2rem;
  }
  
  .hero-section {
    height: 50vh;
  }
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1200px;
  max-height: 90vh;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {transform: scale(0.1)}
  to {transform: scale(1)}
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover {
  color: #bbb;
}

/* Przycisk powiększenia na miniaturce */
.enlarge-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-section:hover .enlarge-icon {
  opacity: 1;
}

.image-container {
  position: relative;
  display: inline-block;
}