:root {
  /* PALETTE */
  --olive-leaf: #606C38;
  --black-forest: #283618;
  --cornsilk: #FEFAE0;
  --cornsilk-light: #f9f7e8;

  /* TRANSPARENCY */
  --black-forest-90: rgba(40, 54, 24, 0.90);
  --black-forest-60: rgba(40, 54, 24, 0.6);
  --black-forest-30: rgba(40, 54, 24, 0.3);

  /* SHADOWS */
  --shadow-dark: rgba(0, 0, 0, 0.25);
  --shadow-darker: rgba(0, 0, 0, 0.3);

  scroll-behavior: smooth;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--cornsilk);
  color: var(--black-forest);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevents horizontal scroll on mobile */
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s;
}

.navbar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 200%;
  mask: linear-gradient(black, transparent);
  backdrop-filter: blur(16px);
  transition: all 0.3s;
}

.navbar.scrolled::before {
  display: none;
}

.navbar.scrolled {
  background: var(--black-forest-90);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
  /* Keeps logo above mobile menu */
}

.logo img {
  height: 45px;
  background-color: white;
  border-radius: 50%;
  /* Optional: Makes logo background round */
}

.logo a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: var(--cornsilk);
  text-decoration: none;
  letter-spacing: 2px;
}

/* Desktop Menu */
.navbar ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.navbar a {
  color: var(--cornsilk);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: 0.3s;
}

.navbar a:hover {
  color: var(--olive-leaf);
}

/* HAMBURGER ICON (Hidden on Desktop) */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  /* Crucial: Keeps it clickable above the menu overlay */
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--cornsilk);
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  /* Using a high-quality stock image as requested */
  background: linear-gradient(var(--black-forest-60), var(--black-forest-30)),
    url("./images/slika.png") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cornsilk);
  padding: 0 20px;
}

.animate-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: 15px;
  /* The fade-in animation */
  animation: heroFadeIn 1.2s ease-out forwards;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: heroFadeIn 1.5s ease-out forwards;
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  padding: 15px 35px;
  background: var(--olive-leaf);
  color: var(--cornsilk);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 25px var(--shadow-darker);
  transition: 0.3s;
  border: 2px solid var(--olive-leaf);
}

.hero-btn:hover {
  transform: translateY(-3px);
  background: #4a542a;
}

.secondary-hero-btn {
  background: transparent;
  border: 2px solid var(--cornsilk);
}

.secondary-hero-btn:hover {
  background: var(--cornsilk);
  color: var(--black-forest);
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .animate-hero-title {
    font-size: 2.5rem;
  }
}

/* --- ABOUT SECTION --- */
.about-section {
  padding: 120px 5%;
  background-color: var(--cornsilk);
  overflow: hidden;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* FLUID COLLAGE WRAPPER */
.about-images-collage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ensures images don't overflow the grid column on smaller laptops */
  max-width: 100%;
}

/* MAIN IMAGE - FLUID */
.collage-main-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  /* Keep max-width but allow shrinking */
}

.collage-main-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  /* Maintains shape while resizing */
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
  display: block;

  /* SMOOTH RESIZING TRANSITION */
  transition: all 0.4s ease-out;
}

/* DECORATIVE BORDER - FLUID */
.collage-main-img::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  /* Moves comfortably with the image */
  width: 75%;
  /* Changed from fixed px to % */
  height: 100%;
  border: 2px solid var(--olive-leaf);
  border-radius: 4px;
  z-index: -1;
  /* Behind the image */

  /* SMOOTH RESIZING TRANSITION */
  transition: all 0.4s ease-out;
}

/* ACCENT IMAGE - FLUID */
.collage-accent-img img {
  position: absolute;

  /* Percentage width allows it to shrink with the parent */
  width: 60%;
  max-width: 250px;
  height: auto;
  aspect-ratio: 4/5;

  bottom: -10%;
  /* Percentage based positioning */
  left: -10%;
  /* Percentage based positioning */

  object-fit: cover;
  border: 8px solid var(--cornsilk);
  border-radius: 4px;
  z-index: 3;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15);

  /* SMOOTH RESIZING TRANSITION */
  transition: all 0.4s ease-out;
}

/* --- TEXT CONTENT --- */
.section-badge {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--olive-leaf);
  font-weight: 700;
  margin-bottom: 15px;
}

.about-text-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  /* Smooth font scaling */
  line-height: 1.1;
  margin-bottom: 25px;
  color: var(--black-forest);
}

.highlight {
  color: var(--olive-leaf);
  font-style: italic;
}

.intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  border-left: 3px solid var(--olive-leaf);
  padding-left: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.feature-item h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--olive-leaf);
  margin-bottom: 10px;
  font-size: 1rem;
}

/* --- services section --- */
.services-section {
  padding: 100px 5%;
  background-color: var(--cornsilk);
}

.services-section .container {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  align-items: center;
}

.price-list {
  flex: 1.3;
  min-width: 300px;
}

.section-title {
  font-family: 'montserrat', sans-serif;
  color: var(--black-forest);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.divider {
  width: 100%;
  height: 4px;
  background-color: var(--olive-leaf);
  margin-bottom: 30px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  transition: 0.3s;
}

.service-row:hover {
  background-color: #fcfdf9;
}

.service-name {
  font-weight: 700;
  color: var(--black-forest);
  display: block;
  text-align: left;
}

.service-desc {
  text-align: left;
  font-size: 0.85rem;
  color: #777;
  display: block;
}

.price {
  font-weight: 800;
  color: var(--olive-leaf);
  font-size: 1.1rem;
  white-space: nowrap;
  /* keeps price from breaking lines */
}

.image-slider {
  flex: 0.7;
  min-width: 300px;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  display: flex;
}

.slider-wrapper {
  width: 100%;
  height: 500px;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fade 1.2s;
  display: none;
  /* hide by default, js handles display */
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

/* --- gallery --- */

.gallery-section {

  padding: 80px 5%;

  background-color: var(--cornsilk-light);

}



.gallery-header {

  text-align: center;

  margin-bottom: 50px;

}



/* masonry layout logic */

.masonry-wrapper {

  column-count: 3;

  /* creates 3 columns */

  column-gap: 20px;

  /* gap between columns */

  max-width: 1200px;
  padding-inline: 20px;
  margin: 0 auto;

}

.masonry-column {
  margin-bottom: 20px;
}

/* individual image container */

.pin-item {

  position: relative;

  break-inside: avoid;

  /* prevents image cutting */

  margin-bottom: 20px;

  /* bottom gap */

  border-radius: 16px;

  overflow: hidden;

  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);

  transition: transform 0.3s ease;

  cursor: pointer;

}



.pin-item img {

  width: 100%;

  height: auto;

  display: block;

  /* removes bottom space */

  transition: transform 0.5s ease;

}



/* hover effects */

.pin-item:hover {

  transform: translatey(-5px);

  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);

}



.pin-item:hover img {

  transform: scale(1.05);

}



/* overlay text on hover */

.pin-overlay {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);

  opacity: 0;

  transition: opacity 0.3s ease;

  display: flex;

  align-items: flex-end;

  padding: 20px;

}



.pin-item:hover .pin-overlay {

  opacity: 1;

}



.pin-overlay span {

  color: white;

  font-family: 'montserrat', sans-serif;

  font-weight: 600;

  font-size: 1.1rem;

  letter-spacing: 1px;

}



/* responsive masonry */

@media (max-width: 992px) {

  .masonry-wrapper {

    column-count: 2;

    /* 2 columns on tablets */

  }

}



@media (max-width: 600px) {

  .masonry-wrapper {

    column-count: 1;

    /* 1 column on mobile */

  }



  .animate-hero-title {

    font-size: 2.8rem;

    /* smaller font on mobile hero */

  }



  .hero-content {

    padding: 25px;

    /* less padding on mobile */

  }

}

/* --- simple cta section --- */
.transformation-section {
  background-color: #263219;
  /* темно зелената од сликата */
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.container {
  display: flex;
  align-items: center;
  /* ова го центрира текстот вертикално со видеото */
  max-width: 1100px;
  gap: 40px;
  /* простор помеѓу текстот и видеото */
}

/* главниот наслов (подготвени за трансформација?) */
.content-side h2 {
  font-size: 3.5rem;
  /* зголеми ја бројката по желба (пр. 4rem за уште поголем) */
  font-weight: 700;
  /* за да биде подебел и повпечатлив */
  line-height: 1.2;
  /* растојание меѓу редовите */
  margin-bottom: 20px;
  color: #ffffff;
}

/* помалиот текст под насловот */
.content-side p {
  font-size: 1.2rem;
  /* стандардно е околу 1rem, со 1.2 или 1.4 ќе биде почитлив */
  max-width: 500px;
  /* го ограничуваме за да не се рашири премногу во еден ред */
  margin: 0 auto 30px auto;
  /* го центрираме и додаваме простор до копчето */
  line-height: 1.6;
  opacity: 0.9;
  /* малку поблаг од насловот за подобра хиерархија */
}

.content-side {
  flex: 1;
  text-align: center;
  /* центриран текст во неговата колона */
  color: white;
}

.media-side {
  flex: 1;
  display: flex;
  justify-content: center;
}

.video-wrapper {
  width: 350px;
  max-width: 400px;
  /* ја ограничуваме ширината за да не ја „растегне“ секцијата */
  border-radius: 15px;
  /* малку заоблени агли за помодерен изглед */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-wrapper img,
.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

/* стилизирање на копчето */
.btn-zakazi {
  display: inline-block;
  background-color: #636e42;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  margin-top: 20px;
  transition: 0.3s;
}

/* едноставна fade-in анимација */
.fade-in {
  animation: simplefade 1s ease-out forwards;
}

@keyframes simplefade {
  from {
    opacity: 0;
    transform: translatey(20px);
  }

  to {
    opacity: 1;
    transform: translatey(0);
  }
}

/* прилагодување за мобилен */
@media (max-width: 768px) {
  .simple-cta {
    padding: 70px 5%;
  }

  .simple-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
}

/* --- contact --- */
.contact-section {
  padding: 100px 0;
  background-color: white;
}

.contact-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.contact-info {
  padding: 0 10%;
}

.contact-info h2 {
  font-family: 'montserrat', sans-serif;
  color: var(--black-forest);
  font-size: 3rem;
  margin-bottom: 30px;
}

.info-item {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.info-item span {
  font-weight: 700;
  color: var(--black-forest);
  margin-right: 10px;
}

.map-wrapper {
  height: 100%;
  min-height: 450px;
  padding-inline: 10%;
}

/* ========================================= */
/* --- mobile responsive styles (updated) --- */
/* ========================================= */

@media (max-width: 992px) {

  /* tablet adjustments */
  .services-section .container {
    flex-direction: column;
    padding: 20px;
  }

  .image-slider {
    width: 100%;
    height: 350px;
  }

  .about-container {
    gap: 40px;
  }
}

@media (max-width: 768px) {

  /* menu logic */
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translatey(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translatey(-8px) rotate(-45deg);
  }

  .navbar ul {
    position: fixed;
    left: -100%;
    /* hidden by default */
    top: 60px;
    /* adjust based on navbar height */
    flex-direction: column;
    background-color: var(--black-forest-90);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.3s;
    padding-top: 40px;
    gap: 20px;
  }

  .navbar ul.active {
    left: 0;
    /* slide in */
  }

  .navbar a {
    font-size: 1.2rem;
    /* larger text for mobile menu */
  }

  /* layout fixes */
  .about-section,
  .services-section,
  .contact-section {
    padding: 60px 5%;
    /* less vertical padding on mobile */
  }

  .gallery-section {
    padding: 60px 0;
  }

  /* fix about grid */
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-text {
    border-left: none;
    border-top: 3px solid var(--olive-leaf);
    padding-left: 0;
    padding-top: 15px;
  }

  .about-features {
    text-align: left;
  }

  /* Fix About Image Collage for Mobile */
  .about-images-collage {
    flex-direction: column;
  }

  .collage-main-img img {
    max-width: 100%;
    height: auto;
  }

  .collage-main-img::before {
    display: none;
    /* Simplify visuals on mobile */
  }

  .collage-accent-img img {
    position: relative;
    top: -30px;
    left: auto;
    bottom: auto;
    width: 150px;
    height: 200px;
    border: 4px solid var(--cornsilk);
  }

  /* Fix Typography */
  .about-text-content h2,
  .contact-info h2,
  .section-title {
    font-size: 2rem;
    /* Smaller headings */
  }

  .animate-hero-title {
    font-size: 2.5rem;
  }

  /* Fix Contact Grid */
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 0 5% 40px 5%;
    text-align: center;
  }

  .map-wrapper {
    padding: 0 5%;
    min-height: 350px;
  }

  /* Price list Font size */
  .price {
    font-size: 1rem;
  }
}

/* Media query за телефони (екран помал од 768px) */
@media (max-width: 768px) {

  .container {
    flex-direction: column;
    /* Го менува распоредот во вертикален */
    text-align: center;
    /* Сè се центрира на средина */
    gap: 30px;
    /* Намалено растојание меѓу елементите */
    padding: 40px 15px;
    /* Помалку простор од страните */
  }

  .content-side h2 {
    font-size: 2.2rem;
    /* Оптимална големина за мобилен */
    margin-bottom: 15px;
  }

  .content-side p {
    font-size: 1.1rem;
    /* Малку поголем од стандарден текст */
    max-width: 100%;
    /* Го користи целиот простор на екранот */
  }

  .media-side {
    width: 100%;
    /* Видеото ја зазема целата ширина на телефонот */
    order: -1;
    /* ОПЦИОНАЛНО: Ако сакаш видеото да биде НАД текстот на мобилен */
  }

  .video-wrapper {
    max-width: 100%;
    /* Овозможува видеото да биде поголемо на мобилен */
    border-radius: 10px;
    /* Посуптилни агли */
  }

  .btn-zakazi {
    width: 80%;
    /* Копчето станува полесно за кликање со палец */
    padding: 15px;
  }
}

.btn-zakazi:hover {
  background-color: #7a8a52;
  /* Малку посветла нијанса */
  transform: translateY(-3px);
  /* Се крева малку нагоре */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
