:root {
  --primary-pink: #EC5B75;
  --light-pink: #FED5DC;
  --background-pink: #FFE9EC;
  --dark-text: #333333;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-pink);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.top-bar {
  background-color: var(--light-pink);
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}

.contact-info {
  display: flex;
  align-items: center;
}

.phone a {
  color: var(--primary-pink);
  text-decoration: none;
  font-weight: 900;
  -webkit-text-stroke: 0.3px var(--primary-pink);
  letter-spacing: 0.2px;
  text-shadow: 0 0 0.5px var(--primary-pink);
}

.phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-pink);
}

.phone img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: var(--primary-pink);
  text-decoration: none;
}

/* Header */

.main-header {
  background-color: var(--white);
  padding: 30px 0 30px 0px;
  border-bottom: none;
  position: relative;
}

.scalloped-border {
  position: absolute;
  bottom: -20px; /* Adjust based on your needs */
  left: 0;
  width: 100%;
  height: 20px;
  background-image: radial-gradient(
      circle at 10px 6px,
      white 12px,
      transparent 12px
  );
  background-size: 20px 20px;
  background-repeat: repeat-x;
  z-index: 10;
}

/* If your header has a background color, add this */
.main-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15px; /* Slightly less than scalloped-border height */
  background: #fff; /* Same as your header background */
  z-index: 5;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  margin-top: -85px;
  height: 200px;
  position: absolute;
  z-index: 1000000;
}

.main-nav ul {
  display: flex;
  padding: 20px 0px 0px 0px;
  gap: 40px;
  list-style: none;
}

.main-nav a {
  color: var(--primary-pink);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #d14860;
}

/* Hero Section */
.hero {
  background-image: url('../img/baneri/naslovna-banner.webp');
  background-size: cover;  /* Changed from contain to cover */
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;  /* Changed from height to min-height and increased from 40vh to 60vh */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;  /* Added padding for better mobile spacing */
  margin-top: -20px;
  z-index: -1000;
}

@media (max-width: 768px) {
  .hero {
      min-height: 50vh;  /* Slightly shorter on mobile */
  }
}

@media (max-width: 480px) {
  .hero {
      min-height: 40vh;
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 900;  /* Maximum boldness */
  text-shadow: 
      2px 2px 4px rgba(0, 0, 0, 0.3),  /* Subtle shadow for depth */
      0 0 1px var(--white);  /* Text outline effect */
  letter-spacing: 1px;  /* Slightly increase letter spacing */
  -webkit-text-stroke: 1px var(--white);  /* Add white stroke around text */
  padding: 10px 0;
  text-transform: uppercase;  /* Optional: makes text all caps for stronger presence */
}

/* Add media query for mobile responsiveness */
@media (max-width: 768px) {
  .hero h1 {
      font-size: 36px;
      -webkit-text-stroke: 0.5px var(--white);
      text-shadow: 
          1px 1px 3px rgba(0, 0, 0, 0.3),
          0 0 1px var(--white);
  }
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  color: var(--white);
  text-align: center;
  display: inline;
  padding: 0.3em 0;
  background-color: var(--primary-pink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: 10px 0 0 var(--primary-pink), -10px 0 0 var(--primary-pink);
}

.hero-content {
  text-align: center;
  padding: 0 15px;
}

/* Add media query for mobile responsiveness */
@media (max-width: 768px) {
  .hero-subtitle {
      font-size: 16px;
  }
}

/* Introduction Section */
.introduction {
  padding: 80px 0;
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-text h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-pink);
  font-size: 42px;
  margin-bottom: 30px;
}

.intro-text p {
  color: var(--dark-text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.intro-text .highlight {
  color: var(--primary-pink);
  font-style: italic;
}

.intro-image img {
  width: 100%;
}

/* Product Gallery Section */
.product-gallery {
  padding: 80px 0;
  background-color: var(--white);
}

.section-title {
  font-family: 'Playfair Display', serif;
  color: var(--primary-pink);
  font-size: 42px;
  text-align: center;
  margin-bottom: 30px;
}

.section-description {
  max-width: 1000px;
  margin: 0 auto 60px;
  text-align: center;
  color: var(--dark-text);
  line-height: 1.8;
  font-size: 16px;
}

.product-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.category-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.category-image {
  border-radius: 10px;
  margin-bottom: 20px;
  aspect-ratio: 1;
}

.category-image img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.category-item h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-pink);
  font-size: 24px;
  margin-top: 15px;
}

/* Cake Size Section */
.cake-size {
  padding: 80px 0;
  background-color: var(--background-pink);
}

.size-description {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
  line-height: 1.8;
}

.cake-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.tier-option {
  text-align: center;
  padding: 10px;
}

.tier-icon {
  width: 120px;
  margin: 0 auto 20px;
}

.tier-option-1 {
  padding-top: 100px;
}

.tier-option-2 {
  padding-top: 63px;
}

.tier-option-3 {
  padding-top: 19px;
}

.tier-option-4 {
  padding-top: 30px;
}

.tier-option h3 {
  color: var(--primary-pink);
  font-size: 32px;
  padding-bottom: 20px;
  position: relative;
}

/* Add line under h3 */
.tier-option h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(236, 91, 117, 0.15);
}

.tier-option ul {
  list-style: none;
  padding: 0;
  position: relative;
}

.tier-option li {
  position: relative;
  padding: 12px 0px 12px 0px;
  font-size: 14.5px;
  font-weight: 1000;
  color: var(--primary-pink);
}

/* Add lines after each li except the last one */
.tier-option li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(236, 91, 117, 0.15);
}

/* Add these styles to your existing CSS file */

/* Featured Section */
.featured-section {
  padding: 80px 0;
  background-color: var(--background-pink);
}

.featured-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.featured-image {
  position: relative;
  width: auto;
  height: 600px;
  overflow: hidden;
}

.featured-image .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-image .slide.active {
  opacity: 1;
  visibility: visible;
}

.slider-dots {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #dddddd00;
  border: 1px solid var(--primary-pink);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot:hover {
  background-color: var(--primary-pink);
}

.dot.active {
  background-color: var(--primary-pink);
}

.featured-content {
  padding: 40px;
}

.badge {
  display: inline-block;
  background-color: var(--primary-pink);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

.featured-content h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-pink);
  font-size: 36px;
  margin-bottom: 20px;
}

.featured-content p {
  color: var(--dark-text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.button {
  display: inline-block;
  background-color: var(--primary-pink);
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #d14860;
}

.slider-dots {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

/* Footer */
.site-footer {
  background-color: var(--primary-pink);
  padding: 60px 0 0 0;
  color: white;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  margin-bottom: 40px;
}

.footer-logo img {
  height: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item img {
  width: 24px;
  height: 24px;
}

.footer-links h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-social .social-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.footer-social .social-link:hover {
  opacity: 0.8;
}

.footer-social .social-link i {
  width: 40px;
  height: 40px;
  background-color: var(--primary-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.footer-social .social-link span {
  font-weight: 400;
}

:root {
  --primary-pink: #EF5B74;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  opacity: 0.8;
}

.social-link img {
  width: 24px;
  height: 24px;
}

.phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Društvene mreže u navbaru */

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-pink);
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.social-icons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icons i {
  font-size: 18px;
}

/* Specific styles for each platform */
.instagram {
  background: var(--primary-pink);
}

.facebook {
  background: var(--primary-pink);
}

.whatsapp {
  background: var(--primary-pink);
}

/* Ikone u footeru */

.icon-circle {
  width: 40px;
  height: 40px;
  background-color: var(--primary-pink);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-circle i {
  color: white;
  font-size: 18px;
}

/* Hover effects */
.icon-circle:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

a.icon-circle {
  text-decoration: none;
}

.phone-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-pink);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-icon i {
  color: white;
  font-size: 20px;
}

/* Hover effect */
.phone-icon:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.transition {
  width: 100%;
  overflow: hidden;
  display: block;
  margin: 0;
  padding: 0;
}

.transition img {
  width: 100vw;
  height: 60px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.flavors-intro {
  background-color: var(--primary-pink);
  padding: 60px 0;
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flavors-intro h2 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 500;
}

.intro-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
}

/* Flavors grid */
.flavors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
}

.flavor-item {
  position: relative;
  padding: 0 30px 30px 0; /* Increased padding */
}

/* Horizontal lines */
.flavor-item::after {
  content: '';
  position: absolute;
  top: -20px; /* Position line higher up */
  left: 0;
  width: 100%;
  height: 2px; /* Thinner line */
  background-color: rgba(255, 255, 255, 0.15); /* More transparent */
}

/* Remove vertical lines from last column */
.flavor-item:nth-child(3n)::before {
  display: none;
}

/* Existing styles for content */
.number {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 15px;
  display: block;
  font-weight: 300;
  line-height: 1;
  position: relative;
  left: -5px;
}

.flavor-item h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 500;
  color: white;
}

.flavor-item p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  color: white;
}

.order-btn {
  background-color: white;
  color: var(--primary-pink);
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.order-btn:hover {
  background-color: var(--light-pink);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Google map */

.map-section {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* For better browser compatibility */
@supports(object-fit: cover) {
  .transition img {
      object-fit: cover;
      object-position: center;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .featured-container {
      grid-template-columns: 1fr;
      gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-content {
      grid-template-columns: 1fr;
      gap: 40px;
  }

  .featured-content {
      padding: 20px;
  }
}

@media (max-width: 480px) {
  .featured-content h2 {
      font-size: 28px;
  }
}

/* Responsive Design Improvements */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
    padding: 0 10px;
  }
  .intro-content,
  .footer-content,
  .featured-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-categories,
  .cake-tiers,
  .flavors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .featured-image {
    height: 450px;
  }
}

/* Phone & Small Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    gap: 20px;
  }
  .logo img {
    margin-top: 0px;
    height: 120px;
    position: static;
  }
  .main-nav ul {
    gap: 20px;
    padding: 10px 0 0 0;
    flex-wrap: wrap;
  }
  .intro-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .intro-image img {
    max-width: 300px;
    margin: 0 auto;
  }
  .section-title,
  .flavors-intro h2 {
    font-size: 28px;
    padding-top: 30px;
  }
  .product-categories,
  .cake-tiers,
  .flavors-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .featured-image {
    height: 400px;
  }
  .featured-content {
    padding: 10px;
  }
  .site-footer {
    padding: 30px 0 0 0;
  }
  .footer-container {
    padding: 0 10px;
  }
  .footer-content {
    gap: 20px;
  }
  .transition img {
    height: 40px;
  }
    .featured-section{
    padding: 0;
  }
}

/* Phone (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 5px;
  }
  .main-header {
    padding: 15px 0;
  }
  .logo img {
    position: absolute;
    left: 20px;
    top: 45px;
    height: 120px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .hero h1 {
    font-size: 22px;
    padding: 5px 0;
  }
  .hero-subtitle {
    font-size: 13px;
    padding: 0.2em 0;
  }
  .introduction,
  .product-gallery,
  .cake-size,
  .featured-section,
  .flavors-intro {
    padding: 0 0 20px 0 ;
  }
  .section-title,
  .flavors-intro h2 {
    font-size: 20px;
  }
  .category-item h3,
  .tier-option h3,
  .flavor-item h3 {
    font-size: 16px;
  }
  .featured-image {
    height: 350px;
  }
  .order-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  .footer-content {
    gap: 10px;
  }
  .footer-links h3 {
    font-size: 15px;
  }
  .footer-links li,
  .footer-social .social-link span {
    font-size: 13px;
  }
  .icon-circle,
  .phone-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

/* Utility: Make images and grids flexible */
img, .category-image img, .tier-icon img, .intro-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  .phone {
    font-size: 13px;
    gap: 4px;
  }
  .phone a {
    font-size: 13px;
    font-weight: 700;
    -webkit-text-stroke: 0.2px var(--primary-pink);
    letter-spacing: 0.1px;
    text-shadow: none;
  }
  .phone img {
    width: 18px;
    height: 18px;
  }
  .social-icons {
  display: flex;
  gap: 5px;
}
}
.footer-copyright2 {
  text-align: center;
  margin-top: 40px;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  color: var(--primary-pink);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  border-top: 2px solid var(--light-pink);
  padding: 18px 0 18px 0;
  background: transparent;
  background: linear-gradient(90deg, var(--background-pink) 0%, var(--white) 100%);
  box-shadow: none;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 8px #fff8e35e, 0 0 1px var(--light-pink);
}

.footer-copyright2 a {
  color: var(--primary-pink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: color 0.18s, border-bottom 0.18s;
  border-bottom: 2px solid var(--primary-pink);
  padding: 0 5px;
  background: none;
}

.footer-copyright2 a:hover {
  color: #d14860;
  border-bottom: 2px solid #d14860;
}

@media (max-width:600px) {
  .footer-copyright2 {
    font-size: 0.92rem;
    padding: 14px 0 5px 0;
    margin-top: 24px;
  }
  .size-description {
    max-width: 900px;
    margin: 0 auto -20px;
    text-align: center;
    line-height: 1.8;
  }
  .category-image {
    max-width: 240px; /* 160px * 1.2 = 192px */
    margin-left: auto;
    margin-right: auto;
  }
  .category-image img {
    width: 100%;
    height: auto;
    max-width: 240px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .tier-option-1 {
    padding-top: 70px;
  }

  .tier-option-2 {
    padding-top: 33px;
  }

  .tier-option-3 {
    padding-top: -13px;
  }
  .tier-option-4 {
    padding-top: 0px;
  }
  .flavor-item {
    padding-top: 8px;
  }
  .flavor-item:first-child::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .category-image {
    max-width: 200px; /* 160px * 1.2 = 192px */
    margin-left: auto;
    margin-right: auto;
  }
  .category-image img {
    width: 100%;
    height: auto;
    max-width: 200px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .intro-text {
  margin-bottom: 0px;
}
}