@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');

:root {
  --green: #5a8455;
  --green-light: #6d9a67;
  --green-dark: #476d43;
  --dark: #132502;
  --white: #ffffff;
  --cream: #f0f5ec;
  --shadow-sm: 0 2px 8px rgba(19, 37, 2, 0.08);
  --shadow-md: 0 8px 30px rgba(19, 37, 2, 0.12);
  --shadow-lg: 0 20px 60px rgba(19, 37, 2, 0.15);
  --radius: 16px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========== NAVIGACIJA ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(90, 132, 85, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

nav.scrolled {
  padding: 0.6rem 0;
  background: rgba(90, 132, 85, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Alex Brush', cursive;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  position: relative;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ========== HERO ========== */
header.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--green) 0%, #4a7346 50%, var(--green-dark) 100%);
  position: relative;
  overflow: hidden;
}

header.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

header.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--white), transparent);
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  gap: 3rem;
  padding-top: 100px;
  position: relative;
  z-index: 3;
}

.hero-img-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
}

.hero-img-wrapper img {
  max-height: 85vh;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: heroImgIn 1.2s ease-out both;
}

@keyframes heroImgIn {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 2rem;
  padding-bottom: 15vh;
  animation: heroTextIn 1s ease-out 0.3s both;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(3rem, 8vw, 120px);
  color: var(--white);
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(1.5rem, 4vw, 60px);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}

.hero-scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== SECTION COMMON ========== */
.section-title {
  font-family: 'Praise', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: #888;
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 3.5rem;
  letter-spacing: 0.5px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--green);
  margin: 0 auto 2rem;
  border-radius: 3px;
}

/* ========== KNJIGE ========== */
.books {
  background-color: var(--white);
  color: var(--dark);
  padding: 7rem 1rem;
}

.books h2 {
  font-family: 'Praise', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--green);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  justify-items: center;
}

.book-card {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 3 / 4;
  perspective: 1500px;
}

.book-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.book-card:hover .book-card-inner {
  transform: rotateY(180deg);
}

.book-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.book-front,
.book-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.book-front {
  background: #f8f8f8;
}

.book-back {
  background: #f8f8f8;
  transform: rotateY(180deg);
  align-items: center;
  position: relative;
}

.book-back .book-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.read-btn {
  position: relative;
  z-index: 10;
  background-color: var(--green);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(90, 132, 85, 0.4);
  transition: var(--transition);
  cursor: pointer;
}

.read-btn:hover {
  background-color: var(--green-dark);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(90, 132, 85, 0.5);
}

@media (min-width: 600px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .books-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .books-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ========== O NEBOJSI ========== */
.about {
  background-color: var(--cream);
  color: var(--dark);
  padding: 7rem 1rem;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green), transparent);
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 450px;
}

.about-text h2 {
  font-family: 'Praise', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green);
  margin-bottom: 0.5rem;
}

.about-text .section-divider {
  margin: 0 0 2rem 0;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444;
  font-weight: 300;
}

.about-img-wrapper {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.about-img-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s ease;
}

.about-img-wrapper img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    flex: none;
    margin-bottom: 2rem;
  }

  .about-text .section-divider {
    margin: 0 auto 2rem;
  }

  .about-img-wrapper {
    flex: none;
  }
}

/* ========== PRICE / STORIES ========== */
section.stories {
  background-color: var(--white);
  color: var(--dark);
  padding: 7rem 1rem;
  position: relative;
}

section.stories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green), transparent);
}

.stories h2 {
  font-family: 'Praise', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--green);
}

.story-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.story-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border: 1px solid rgba(90, 132, 85, 0.08);
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.story-card h3 {
  color: var(--green);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.story-card p {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: #555;
  font-weight: 300;
}

.story-btn {
  align-self: flex-start;
  background-color: var(--green);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 3px 12px rgba(90, 132, 85, 0.3);
}

.story-btn:hover {
  background-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(90, 132, 85, 0.4);
}

@media (min-width: 768px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .story-grid { grid-template-columns: repeat(3, 1fr); }
}

.stories-footer {
  text-align: center;
  margin-top: 3.5rem;
}

.view-more-btn {
  display: inline-block;
  background-color: transparent;
  color: var(--green);
  padding: 0.9rem 2.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
  border: 2px solid var(--green);
}

.view-more-btn:hover {
  background-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(90, 132, 85, 0.3);
}

/* ========== VIDEO / YT ========== */
.klipovi-yt {
  background: var(--cream);
  padding: 7rem 1rem;
  position: relative;
}

.klipovi-yt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green), transparent);
}

.klipovi-yt .container {
  max-width: 1400px;
  margin: 0 auto;
}

.klipovi-yt h2 {
  font-family: 'Praise', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--green);
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-wrap:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 1024px) {
  .yt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .yt-grid { grid-template-columns: 1fr; }
}

/* ========== MASLINA SECTION ========== */
.maslina-section {
  padding: 6rem 1rem;
  background: linear-gradient(to bottom right, #e8f5e9, #ffffff);
  text-align: center;
}

.maslina-section h2 {
  font-family: 'Praise', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--green);
}

.maslina-section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  color: #444;
  font-weight: 300;
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.image-card {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.6s ease;
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.image-card:hover img {
  transform: scale(1.05);
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 1rem 3rem;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--green-dark), var(--green), var(--green-dark));
}

.footer-inner p {
  margin: 0.5rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-style: italic;
  font-weight: 300;
}

.footer-memorial {
  font-family: 'Alex Brush', cursive;
  font-size: 1.5rem;
  color: var(--green-light);
  margin-bottom: 0.5rem;
}

.footer-rights {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ========== RESPONSIVE NAVIGATION ========== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--green);
    flex-direction: column;
    gap: 0;
    padding: 5rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: rgba(255, 255, 255, 0.85);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .burger {
    display: flex;
    z-index: 1001;
  }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
  }

  .nav-overlay.active {
    display: block;
  }
}

/* ========== HERO RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding-top: 120px;
  }

  .hero-content {
    padding: 0;
    padding-bottom: 2rem;
  }

  .hero-img-wrapper img {
    max-height: 50vh;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }

  .books,
  .about,
  section.stories,
  .klipovi-yt {
    padding: 5rem 1rem;
  }
}
