/* Pagrindinės spalvos */
:root {
  --primary-color: #8B0000;
  --primary-light: #a33030;
  --primary-dark: #6b0000;
  --text-light: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --bg-light: #f9f6f2;
  --bg-accent: #f5efe7;
  --pattern-color: rgba(139, 0, 0, 0.03);
}

/* Bendri puslapio stiliai */
body {
  background: var(--bg-light);
  background-image: 
    linear-gradient(45deg, var(--pattern-color) 25%, transparent 25%),
    linear-gradient(-45deg, var(--pattern-color) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--pattern-color) 75%),
    linear-gradient(-45deg, transparent 75%, var(--pattern-color) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-accent) 100%);
  z-index: -1;
}

/* Dekoratyvinės linijos */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color) 50%, transparent);
  margin: 2rem 0;
  opacity: 0.1;
}

/* Sticky navigacija */
nav {
  position: sticky;
  top: 0;
  background-color: var(--primary-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: 0.5rem;
  z-index: 1000;
  backdrop-filter: blur(5px);
  margin-bottom: 20px;
}

/* Išvalo sąrašo numatytus taškus ir tarpus */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px; /* Tarpai tarp elementų */
}

/* Nuorodų stilius */
nav ul li a {
  color: var(--text-light);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

/* Nuorodos hover efektas */
nav ul li a:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

/* Aktyvus puslapis */
nav ul li a.active {
  background-color: var(--primary-dark);
  box-shadow: inset 0 2px 4px var(--shadow-color);
}

/* Responsive dizainas */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 12px 20px;
    margin: 5px 0;
  }
}

/* Galerijos konteineris */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 10px;
}

/* Kiekvienas galerijos elementas */
.gallery-item {
  overflow: hidden;
}

/* Vaizdų stilius */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* Efektas: užvedus pele vaizdas šiek tiek padidina */
.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1;
  transition: all 0.3s ease;
}

/* Header stiliai */
header {
  text-align: center;
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 0, 0, 0.1);
}

header h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-top: 10px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.05);
}

/* Main content stiliai */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  line-height: 1.8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #333;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
}

main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 12px;
}

/* Hero sekcija */
.hero {
  margin: -30px -30px 30px -30px;
  padding: 60px 30px;
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

/* Statistikos sekcija */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}

.stat-card {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 1.1rem;
}

/* Faktų sekcija */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}

.fact-card {
  background: white;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary-color);
}

.fact-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

main h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

main h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
}

/* Sąrašų stiliai */
main ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style-type: none;
}

main ul li {
  position: relative;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
}

main ul li:before {
  content: "•";
  color: var(--primary-color);
  font-size: 1.2em;
  position: absolute;
  left: 0;
  top: 0.4rem;
}

main p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  max-width: 70ch;
}

/* Teksto blokai */
.text-block {
  padding: 20px;
  background: #f8f8f8;
  border-radius: 6px;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-color);
}

/* Svarbūs faktai */
.important-fact {
  font-weight: 500;
  color: var(--primary-dark);
  padding: 10px 0;
}

/* Nuorodos tekste */
main a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

main a:hover {
  border-bottom-color: var(--primary-color);
  color: var(--primary-dark);
}

/* Responsive teksto dydžiai */
@media (max-width: 768px) {
  main {
    padding: 20px;
  }
  
  main h2 {
    font-size: 1.75rem;
  }
  
  main p {
    font-size: 1rem;
  }
}

/* Footer stiliai */
footer {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px 20px;
  text-align: center;
  margin-top: 30px;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(139, 0, 0, 0.1);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.1), transparent);
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

footer a:hover {
  color: var(--primary-light);
  background-color: rgba(139, 0, 0, 0.05);
}
