:root {
  --bg-dark: #181818;
  --bg-light: #222;
  --text-light: #fff;
  --accent: #3b82f6;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
}

/* Navbar */
header {
  background: var(--bg-light);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-size: 1.5rem;
  margin: 0;
}

.navbar {
  display: flex;
  gap: 1.2rem;
}

.navbar a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
}

/* Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}

.slide {
  display: none;
  position: relative;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
}

.caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  padding: 0 1rem;
}

.caption h2 {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
}

.caption p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 1.4rem;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 600;
}

.btn:hover {
  background: #2563eb;
}

/* Intro */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 3rem auto;
  text-align: center;
}

.intro h2 {
  font-size: 1.8rem;
}

.intro p {
  margin: 1rem 0 2rem 0;
  color: #ccc;
}

/* Footer */
footer {
  text-align: center;
  background: #111;
  padding: 1.2rem 0;
  color: #aaa;
  font-size: 0.9rem;
}

/* Animacija */
.fade {
  animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
  from {opacity: 0.3;}
  to {opacity: 1;}
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .caption h2 {
    font-size: 1.8rem;
  }
  .caption p {
    font-size: 1rem;
  }
}

@media (max-width: 700px) {
  .navbar {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg-light);
    flex-direction: column;
    width: 100%;
    display: none;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    padding: 1rem;
    border-top: 1px solid #333;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .caption h2 {
    font-size: 1.6rem;
  }

  .caption p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
  }
}
/* =====================
   ŠONINIS MENIU (SIDEBAR)
===================== */

#sidebar {
  position: fixed;
  top: 0;
  left: -270px;
  width: 260px;
  height: 100%;
  background: var(--bg-light);
  box-shadow: 2px 0 8px rgba(0,0,0,0.5);
  transition: 0.35s ease;
  z-index: 200;
  padding: 1rem;
  overflow-y: auto;
}

#sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sidebar-header h3 {
  color: var(--text-light);
  margin: 0;
  font-size: 1.3rem;
}

#closeSidebar {
  font-size: 1.8rem;
  color: #aaa;
  cursor: pointer;
  transition: 0.3s;
}

#closeSidebar:hover {
  color: var(--accent);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 0.6rem;
}

.sidebar-links a {
  display: block;
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  transition: 0.25s;
}

.sidebar-links a:hover {
  background: var(--accent);
  color: #fff;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 150;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive sidebar */
@media (max-width: 700px) {
  #sidebar {
    width: 80%;
  }
}
