@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
  background-color: whitesmoke;
  background: linear-gradient(to bottom, #3a2c1a 0%, whitesmoke 40%);
}
a {
  text-decoration: none;
}
.container {
  
  min-height: 80vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
p {
  color: black;
  font-size: 1.4rem;
  margin-top: 10px;
  line-height: 2.5rem;
  font-weight: 420;
  letter-spacing: 0.05rem;
}

.section-title {
  margin-top: 50px;
  position: relative;
  font-size: 4rem;
  font-weight: 300;
  color: black;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-align: center;
  z-index: 1;
}
.section-title span {
  color: goldenrod;
}
.cta {
  display: inline-block;
  padding: 10px 30px;
  color: white;
  background-color: transparent;
  border: 2px solid #a97700;
  border-radius: 20px;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin: 10px auto 0 auto; /* Center horizontally */
  transition: 0.3s ease;
  transition-property: background-color, color;
  animation-delay: 0.3;
}
.cta:hover {
  animation-delay: 0.3;
  color: white;
  background-color: goldenrod;
}
.brand h1 {
  font-size: 2rem;
  text-transform: uppercase;
  color: white;
}
.brand h1 span {
  color: goldenrod;
}

/* Header section */
#header {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: auto;
}
#header .header {
  min-height: 8vh;
  background-color: rgba(31, 30, 30, 0.24);
  transition: 0.5s ease background-color;
}
#header .nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ← pull everything to the left */
  width: 100%;
  height: 100%;
  max-width: 2000px;
  padding: 0 30px; /* ← add some breathing room */
  gap: 30px; /* ← space between brand and nav list */
}
#header .nav-list ul {
  list-style: none;
  position: absolute;
  background-color: rgb(31, 30, 30);
  width: 100vw;
  height: 100vh;
  left: 100%;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  overflow: hidden;
  transition: 0.5s ease left;
}
#header .nav-list ul.active {
  left: 0%;
}
#header .nav-list ul a {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.5rem;
  text-decoration: none;
  color: azure;
  text-transform: uppercase;
  padding: 20px;
  display:block;
}
#header .nav-list ul a::after {
  content: attr(data-after);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: rgba(240, 248, 200, 0.021);
  font-size: 3rem;
  letter-spacing: 50px;
  z-index: -1;
  transition: 0.3s ease letter-spacing;
}
#header .nav-list ul li:hover a::after {
  transform: translate(-50%, -50%) scale(1);
  letter-spacing: initial;
}
#header .nav-list ul li:hover a {
  color: #b8860b;
}
#header .hamburger {
  height: 60px;
  width: 60px;
  display: inline-block;
  border: 3px solid white;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  transform: scale(0.8);
  margin-right: 20px;
}

#header .hamburger:after {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  border-radius: 50%;
  border: 3px solid white;
  animation: hamburger_pulse 1s ease infinite;
}

#header .hamburger .bar {
  height: 2px;
  width: 30px;
  position: relative;
  background-color: white;
  z-index: -1;
}
#header .hamburger .bar::after,
#header .hamburger .bar::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  background-color: white;
  transition: 0.3s ease;
  transition-property: top, bottom;
}
#header .hamburger .bar::after {
  top: 8px;
}
#header .hamburger .bar::before {
  bottom: 8px;
}
#header .hamburger.active .bar::before {
  bottom: 0;
}
#header .hamburger.active .bar::after {
  top: 0;
}
/* End Header section */

/* Hero section */
#hero {
  background-image: url(./img/ulaz.jpg);
  background-size: cover;
  background-position: center -500px;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  height: 80vh;         /* ↙️ visina sekcije (odrezuje sliku) */
  overflow: hidden;      /* ↙️ sakriva sve što “strši” izvan */
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: -1;
}
#hero .hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 50px;
}
#hero h1 {
  display: block;
  width: fit-content;
  font-size: 5rem;
  position: relative;
  color: transparent;
  animation: text_reveal 1s 1.5s ease forwards;
  animation-delay: 1s;
}
#hero h1:nth-child(1) {
  animation-delay: 0.7s;
}
#hero h1:nth-child(2) {
  animation: text_reveal_name 0.5s ease forwards;
  animation-delay: 1.7s;
}
#hero h1 span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 20px;
  background-color: white;
  animation: text_reveal_box 1s ease;
  animation-delay: 0.5s;
}
#hero h1:nth-child(1) span {
  animation-delay: 0.3s;
}
#hero h1:nth-child(2) span {
  animation-delay: 1.3s;
}
/* End Hero Section*/

/* Services section */
#services {
  margin-bottom: -200px;
  background: whitesmoke
}

#services .services {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  padding: 50px 20px 0 20px;
}

#services .service-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 2000px; /* Add or increase this value */
  margin: 0 auto;
  overflow-x: unset; /* Remove horizontal scroll */
}

#services .service-item {
  flex: 0 0 320px;        /* Fixed width for each box */
  min-width: 300px;
  max-width: 350px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 30px;
  border-radius: 10px;
  background-image: url(./img/studio.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0px 10px 15px 5px rgba(0, 0, 0, 0.644);
  opacity: 1;
}

#services .service-item.show {
  opacity: 1;
}

#services .service-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
  opacity: 0.9;
  z-index: -1;
}

#services .icon {
  height: 80px;
  width: 80px;
  margin-bottom: 20px;
}

#services .service-item h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 10px;
  text-transform: uppercase;
}

#services .service-item p {
  color: white;
  text-align: start;
}
/* End Services section */

/* Schedule section */

#raspored {
  text-align: center; /* Centriranje sadržaja */
  margin-top: 20px; /* Smanjuje razmak iznad Raspored Treninga sekcije */
  margin-bottom: -50px; /* Smanjuje razmak ispod Raspored Treninga sekcije */
  background-color: whitesmoke;
  scroll-margin-top: 8vh; /* or use the pixel height of your header, e.g. 60px */
}

#raspored .schedule {
  margin: 0 auto;
  width: 100%;
  max-width: 1200px; /* Make this as wide as you want */
}


#raspored .container {
  display: block;
  text-align: center;
  padding: 200px 20px 0 20px;
}

#raspored p {
  margin-bottom: 10px; /* smanjuje razmak ispod teksta*/
  font-size: 1.4rem; /* povećava veličinu fonta */
  text-align: center; /* centriranje teksta */
}


.schedule table {
  width: 100%;        /* Table fills the schedule container */
  max-width: 70%;
  border-collapse: collapse;
  margin: 20px auto 0 auto;
  font-size: 1.4rem;
  text-align: center; /* Center text in table cells */
}

.schedule th, .schedule td {
  border: 1px solid #ddd;
  padding: 10px;
}

.schedule th {
  background-color: goldenrod;
  color: white;
  text-transform: uppercase;
}

.schedule tr:nth-child(even) {
  background-color: #f9f9f9;
}

.schedule tr:hover {
  background-color: #f1f1f1;
}

.schedule td {
  color: #333;
}
/* End Schedule section */

/* Prices section */
#cjenik {
  margin-top: 20px;
  background: whitesmoke;
  padding: 20px 0 10px 0; /* donji padding povećan */
  scroll-margin-top: 8vh;
}

.cjenik.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.price-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  background-color: #fff;
}

.price-table th,
.price-table td {
  text-align: center;
  padding: 14px 16px;
  border-bottom: 1px solid #ddd;
}

.price-table thead th {
  background-color: goldenrod;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
}

.price-table tbody tr:hover {
  background-color: #fdf6e3;
  transition: background-color 0.3s ease;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td:first-child {
  font-weight: 500;
  color: #444;
}
/* End Prices section */

/* Gallery section */

.galerija.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galerija .section-title {
  font-size: 8rem;
  font-weight: 300;
  margin-bottom: 40px;
  text-align: center;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

#lightbox {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  flex-direction: column;
}

#lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

#close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  z-index: 10001;
}

#prev-btn,
#next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

#prev-btn { left: 20px; }
#next-btn { right: 20px; }

#prev-btn:hover,
#next-btn:hover,
#close-lightbox:hover {
  color: #ffc107;
}
/* End Gallery section */


/* Collaboration Section */

/* === Collaboration section === */
#collaboration {
  padding-top: 120px;
  margin-bottom: 50px;
  scroll-margin-top: 8vh;
}

#collaboration .collaboration {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

#collaboration .collaboration-header h1 {
  margin-bottom: 50px;
}

#collaboration .all-collaboration {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#collaboration .collaboration-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 90%; /* malo uže i centraliziranije */
  margin: 20px auto;
  overflow: hidden;
  border-radius: 16px; /* mrvicu više zaobljeno */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2); /* siva sjena umjesto crvene */
  background-color: white; /* ako želiš da pozadina bude čista, dodaj i ovo */
}

#collaboration .collaboration-info {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to bottom, #b8860b 0%, #a97700 100%);
  color: white;
}

#collaboration .collaboration-info h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

#collaboration .collaboration-info p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: white;
}

#collaboration .collaboration-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#collaboration .collaboration-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#collaboration .collaboration-item:hover .collaboration-image img {
  transform: scale(1.1);
}

#collaboration .collaboration-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(to bottom, #b8860b 0%, #a97700 100%);
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid black;
  border-radius: 5px;
  letter-spacing: 0.1rem;
  text-decoration: none;
  animation: fadeIn 2s;
}

#collaboration .collaboration-image::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #485563;
  opacity: 0.5;
  z-index: -1;
}


/*#collaboration .collaboration-info h1{
    font-size: 4rem;
    font-weight: 500;
}*/
/* End collaboration section */

/* about Section */
#about {
  margin-top: 0; /* Adjust this value as needed */
}

#about .about {
  flex-direction: column-reverse;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
}
#about .col-left {
  width: 720px;
  height: 960px;
}
#about .col-right {
  width: 100%;
}
#about .col-right h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.2rem;
  margin-bottom: 10px;
}
#about .col-right p {
  margin-bottom: 20px;
}
#about .col-right .cta {
  color: black;
  margin-bottom: 50px;
  padding: 10px 20px;
  font-size: 2rem;
}
#about .col-left .about-img {
  margin-top: 50px;
  height: 60%;
  width: 100%;
  position: relative;
  /*border: 10px solid white;*/
}

#about .col-left .about-img img {
  border-radius: 20px; /* Adjust the px value for more or less rounding */
  box-shadow: 0px 0px 18px 0 #29323c;
}

#about .col-left .about-img::after {
  content: "";
  position: absolute;
  left: -33px;
  top: 30px;
  height: 98%;
  width: 98%;
  border: 7px solid;
  border-color: #b8860b;
  border-radius: 20px;
  z-index: -1;
}
/* end about Section */

/*Contact section*/
#contact {
  margin-top: 0;
  scroll-margin-top: 8vh; /* Ensures section is visible below fixed header */
}
#contact .contact {
  flex-direction: column;
  max-width: 1500px;
  margin: 0 auto;
}
#contact .contact-items {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
#contact .contact-item {
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  padding: 30px;
  margin: 0;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0px 0px 18px 0 #29323c;
  transition: 0.3s ease box-shadow;
}
#contact .contact-item:hover {
  box-shadow: 0px 0px 5px #29323c;
}
#contact .icon {
  width: 30px;
  margin: 0 auto;
  margin-bottom: 10px;
}
#contact .contact-info h1 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 5px;
}
#contact .contact-info h2 {
  font-size: 1.2rem;
  line-height: 2rem;
  font-weight: 500;
}
#contact .contact-info iframe {
  width: 100%;
  max-width: 400px;
  height: 300px;
  min-height: 200px;
  border: 0;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}
/*End contact section*/

/* Footer section */
#footer {
  background: linear-gradient(to bottom, white, #696969 75%);
}

#footer .footer {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 10px;
}

#footer h2 {
  text-align: center;
  color: white;
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

#footer .social-icon {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

#footer .social-item {
  height: 40px;
  width: 40px;
  margin: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#footer .social-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

#footer .social-img {
  width: 100%;
  height: auto;
  max-width: 40px;
  max-height: 40px;
  display: block;
}

#footer .social-item img {
  width: 100%;
  height: auto;
  max-width: 40px;
  display: block;
  transition: transform 0.2s;
}

#footer .social-item a:hover img,
#footer .social-item:hover img {
  transform: scale(1.15);
}

#footer p {
  color: white;
  font-size: 1.3rem;
  margin: 0;
  text-align: center;
}
/* End Footer section */

.overlay {
  position: fixed; /* Stay in place */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure overlay is on top */
  overflow: hidden;
}

#overlay-content {
  width: 80%;
  height: 80%;
  font-family: "Courier New", Courier, monospace;
  text-align: center;
  color: whitesmoke;
  font-size: 3rem;
}

#overlay-content img {
  max-width: 600px;
  object-fit: contain;
  /* height: 100%; */
  /* display: block; Prevents image from affecting vertical alignment */
  /* margin: 0 auto 20px; Center image horizontally and add some bottom margin */
}

/* Keyframes */
@keyframes text_reveal_box {
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}
@keyframes hamburger_pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes text_reveal {
  100% {
    color: white;
  }
}
@keyframes text_reveal_name {
  100% {
    color: goldenrod;
    font-weight: 500px;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/*End Keyframes*/



/* Media query for tablet */
/*@media only screen and (max-width: 768px) {
  .cta {
    font-size: 2.5rem;
    padding: 20px 60px;
  }
  h1 .section-title {
    font-size: 6rem;
  }}

  /* Hero */
  /*#hero {
    background-size: cover;
    background-position: 30% center;
    background-repeat: no-repeat;
    min-height: 100vh;
  }
  /* End Hero */

  /* Services Section */
  #services .service-bottom .service-item {
    flex-basis: 45%;
    margin: 2.5%;
  }
  /* End Services section */

  /* Collaborations */
  #collaboration .collaboration-item:nth-child(even) {
    flex-direction: row-reverse;
  }

  #collaboration .all-collaboration .collaboration-info {
    height: 100%;
  }
  #collaboration .all-collaboration .collaboration-img {
    height: 100%;
  }
  /* Collaborations */
  /* About */
  #about .about {
    flex-direction: row;
  }
  #about .col-left {
    width: 600px;
    height: 400px;
    padding-left: 60px;
  }
  #about .col-left .about-img::after {
    left: -30px;
    top: 34px;
    height: 90%;
    width: 90%;
    border: 8px solid #a97700;
  }
  #about .col-right {
    text-align: left;
    padding: 30px;
  }
  #about .col-right h1 {
    text-align: left;
  }
  /* End About */

  /* Contact */
  #contact .contact {
    flex-direction: column;
    padding: 100px 0;
    align-items: center;
    justify-content: center;
    min-width: 20vh;
  }
  #contact .contact-items {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 20px;
    margin: 0;
  }

  #contact .contact-item {
    margin: 20px;
    flex-direction: row;
  }

  #contact .contact-item .icon {
    height: 60px;
    width: 60px;
    margin-left: -10px;
  }
  #contact .contact-item .icon img {
    object-fit: contain;
  }
  #contact .contact-item .contact-info {
    width: 100%;
    text-align: left;
    padding-left: 20px;
  }
  #contact h1.section-title {
  font-size: 3rem;
  margin: 0 auto 20px auto;
  max-width: 90%;
  text-align: center;
}
  /* End Contact */

  #overlay-content {
    font-size: 2rem;
  }

/* End Media query for tablet */

/* Media query for Desktop */
@media only screen and (min-width: 1500px) {
  #header .hamburger {
    display: none;
  }
  #header .nav-list ul {
  display: flex;
  flex-direction: row;
  position: static;
  background-color: transparent;
  width: auto;
  height: auto;
  align-items: center;
  gap: 20px;
  }
  #header .nav-list ul li {
    display: flex;
  }
  #header .nav-list ul li a {
    white-space: nowrap;
  }
  #header .nav-list ul a::after {
    display: none;
  }
  #services .service-bottom .service-item {
    flex-basis: 22%;
    margin: 1.5%;
  }
}
/* End Media query for Desktop */

@media only screen and (max-width: 480px) {
  .cta { font-size: 1.5rem; padding: 10px 20px; }
  #hero h1 { font-size: 3rem; }
  /* ...other tweaks... */
}

/* For mobile devices with screen width less than or equal to 768px */
@media only screen and (max-width: 768px) {
  #services .service-item {
    flex: 1 1 100%;
    min-width: unset;
    max-width: 100%;
  }
@media (max-width: 768px) {
  .price-table table,
  .price-table thead,
  .price-table tbody,
  .price-table th,
  .price-table td,
  .price-table tr {
    display: block;
    width: 100%;
  }

  .price-table thead {
    display: none;
  }

  .price-table tr {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  .price-table td {
    text-align: left;
    padding: 10px;
    position: relative;
  }

  .price-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #555;
  }
}
  .cta {
    font-size: 2.5rem;          /* manji tekst na mobitelu */
    padding: 10px 20px;         /* manji razmaci */
    width: 100%;                 /* širina gumba - fleksibilna */
    margin: 50px auto 0 auto;   /* centriraj */
    text-align: center;         /* poravnaj tekst unutar gumba */
    display: block;
    box-sizing: border-box;
  }

  .section-title {
    font-size: 2.2rem;
    margin-top: 100px;
  }

  h1 .section-title {
    font-size: 7rem;
  }

  #hero h1 {
    font-size: 5rem;
  }

  #hero {
    background-size: 100% 100%;   /* Stretch image to fill */
    background-position: top center;
    height: 800px;             /* Optional: adjust height for mobile */
  }

  #contact .contact-items {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  #contact .contact-item {
    width: 90%;
    flex-direction: column;
    text-align: center;
  }

  .section-title {
    font-size: 2.2rem;
    margin-top: 100px;
  }/* Add this for the About section */

  .price-table {
    width: 100%;
    overflow-x: auto;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }
  .price-table table {
    width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  background-color: #fff;
  }
  .price-table th,
  .price-table td {
    text-align: center;
  padding: 14px 16px;
  border-bottom: 1px solid #ddd;
  }

/* Gallery css section */
/* Prikaži desktop galeriju samo na velikim ekranima */
.desktop-gallery {
  display: grid;
}

@media (min-width: 769px) {
  .mobile-gallery {
    display: none !important;
  }
}


/*About section CSS for mobile*/
  #about .about {
    display: flex;
    flex-direction: column;
  }

  #about .col-left {
    order: 2;
    width: 100%;
    padding: 0;
    position: relative;
    display: flex;
    justify-content: center;
  }

  #about .about-img {
    position: relative;
    display: inline-block;
    max-width: 90%;
    margin: 0 auto;
  }

  #about .about-img img {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
  }

  #about .about-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 7px solid #b8860b;
    border-radius: 20px;
    z-index: -1;
  }

  #about .col-right {
    order: 1;
    width: 100%;
    padding: 0;
  }
  /*End About section CSS for mobile*/

  #footer .brand h1 {
    text-align: center;
    width: 100%;
  }

  #collaboration { margin-top: -20px; }

#collaboration .collaboration-item {
    flex-direction: column;
    align-items: stretch;
    height: auto !important;
    min-height: 50vh;
    overflow: visible !important;
    max-width: 400px;         /* ← dodaj širinu kao kod galerije */
    margin: 20px auto;        /* ← centriraj */
  }


#collaboration .collaboration-image img {
  width: 100%;
  height: auto !important;
  object-fit: contain;
  display: block;
  max-height: none; /* Sprječava da se slučajno odreže */
}

#collaboration .collaboration-image img {
  width: 100%;
  height: auto !important;
  display: block;
}

#collaboration .collaboration-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 2;
}

  #collaboration .collaboration-info {
    padding: 20px;
  }

}

/*Price note*/

#price-note-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.note-content {
  background-color: rgba(33, 33, 33, 0.95);
  border-radius: 16px;
  max-width: 600px;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-family: 'Poppins', sans-serif;
  color: #fff;
  text-align: left;
}

.note-content h3 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #ffc107;
}

.note-content p {
  font-size: 1.4rem;
  line-height: 1.7;
  color: #eaeaea;
}

#close-note {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.2rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

#close-note:hover {
  color: #ff4c4c;
}

@media (max-width: 480px) {
  .note-content {
    padding: 25px 20px;
    margin: 0 15px;
    font-size: 1rem;
  }

  .note-content h3 {
    font-size: 1.5rem;
  }

  .note-content p {
    font-size: 1rem;
  }

  #close-note {
    font-size: 2rem;
    top: 10px;
    right: 15px;
  }
}


/* end price note*/

/* CSS for mobile gallery view*/
/* Desktop – sakrij mobilnu galeriju */
@media (min-width: 769px) {
  .mobile-gallery {
    display: none !important;
  }
}

/* Mobile – sakrij desktop galeriju i prikaži preview */
@media (max-width: 768px) {
  .gallery-grid {
    display: none !important;
  }

  .galerija .section-title {
    font-size: 5rem;
    margin-bottom: 20px;
    padding: 0 10px;
    word-wrap: break-word;
  }

  .mobile-gallery {
    display: block !important;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
  }

  .gallery-preview-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
  }

  .gallery-preview-wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
  }

  .gallery-overlay-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
  }
}
/* END CSS for mobile gallery view*/

/* Media query for overlay */
@media (max-width: 480px) {
  .note-content {
    padding: 25px 20px;
    margin: 0 15px;
    font-size: 1rem;
  }

  .note-content h3 {
    font-size: 1.5rem;
  }

  .note-content p {
    font-size: 1rem;
  }

  #close-note {
    font-size: 2rem;
    top: 10px;
    right: 15px;
  }
}



/* End Media query for mobile */