* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
}

.header {
    background: #1a1a1a;
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
}

.nav a:hover {
    color: #facc15;
}

.hero-section {
    background: linear-gradient(135deg, #767eea, #764ba2);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.section {
    padding: 3rem 2rem;
}

.book-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.book-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: scale(1.05);
}

.book-card img {
    width: 100%;
    border-radius: 6px;
}

.btn {
    display: inline-block;
    background: #facc15;
    color: #000;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn:hover {
    background: #eab308;
}

input, textarea {
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 0.75rem 1.5rem;
    background: #000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.video-rresht {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.video-rresht .video {
    flex: 1 1 calc(25% - 20px); /* 4 video në desktop */
}

.video-rresht video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.liber-background {
    background-image: url('Libri2.webp'); /* zëvendëso me emrin e saktë të fotos */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
    text-align: center;
    position: relative;
}

.liber-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.liber-background .content {
    position: relative;
    z-index: 1;
}

.liber-background h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #facc15;
}

.liber-background p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.book-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* -------------------------- */
/* ✅ Responsive për telefona */
/* -------------------------- */
@media (max-width: 768px) {
  .book-grid {
    grid-template-columns: repeat(4, 1fr); /* Si në desktop */
  }
}

    

    .nav a {
        margin-left: 0;
        margin-right: 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .video-rresht .video {
        flex: 1 1 100%; /* 1 video për rresht në telefon */
    }

    .liber-background h2 {
        font-size: 1.8rem;
    }

    .liber-background p {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}



* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f5f5f5;
  color: #333;
}

.header {
  background: #1a1a1a;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.nav a:hover {
  color: #facc15;
}

.hero-section {
  background: linear-gradient(135deg, #767eea, #764ba2);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.section {
  padding: 3rem 2rem;
}

.book-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.book-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: scale(1.05);
}

.book-card img {
  width: 100%;
  border-radius: 6px;
  height: auto;
  max-height: 250px;
  object-fit: cover;
}

.btn {
  display: inline-block;
  background: #facc15;
  color: #000;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn:hover {
  background: #eab308;
}

.footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 1.5rem;
}





.video-rresht {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
}
.video video {
  flex: 0 0 auto;
  width: 250px;
  height: auto;
}
