/* Consolidated Sidebar styles */
.sidebar {
    height: 100vh;
    width: 220px;
    background: #a0522d; /* warm sienna */
    color: #fff8f0;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 30px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    z-index: 1000;
    border-right: 2px solid rgba(255, 214, 165, 0.5);
}

.sidebar h2 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #ffd194; /* warm gold */
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    background: linear-gradient(to bottom, #8b2f23, #73221a);
    padding: 10px 0;
    border-radius: 6px;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #fff8f0;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, padding-left 0.2s;
    position: relative; /* Explicitly added to ensure ::after positioning */
}

.sidebar a:hover {
    background: #d2691e; /* chocolate orange */
    padding-left: 28px;
}

.sidebar a::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #ffd27f;
    transition: width 0.3s;
}

.sidebar a:hover::after {
    width: 70%;
}

/* Push rest of page */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ffe5b4, #fff3e0);
    color: #3a2c2c;
}

/* Main content wrapper */
.main-content {
    margin-left: 220px; /* Match sidebar width */
    padding: 0; /* Remove padding to avoid extra spacing */
    min-height: 100vh; /* Ensure it spans the viewport height */
    box-sizing: border-box;
}

/* Headings */
h1 {
    color: #d35400; /* warm orange */
    font-size: 4.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

h2, h3 {
    color: #8b2f23;
}

/* Buttons */
a.button, .contact-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ff7f50; /* coral/orange */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

a.button:hover, .contact-button:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

/* Hero */
/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url('Slike/Picture.jpg'); /* Path to your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff; /* Ensure text is readable against overlay */
  overflow: hidden;
}

/* Darker orange overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0); /* Darker orange with 60% opacity */
  z-index: 1;
}

/* Ensure content stays above overlay */
.hero h1,
.hero p,
.hero .button {
  position: relative;
  z-index: 2;
}

/* Style adjustments for readability */
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add shadow for contrast */
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: 20px;
}

.hero .button {
  padding: 12px 25px;
  background-color: #ff7f50;
  color: #fff8f0;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.hero .button:hover {
  background-color: #d35400;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 127, 80, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 60px 15px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* Feature Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 20px;
    justify-items: center;
}
h2{
  text-align: center ;
}
.feature-item {
    perspective: 1000px;
    cursor: pointer;
    width: 240px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffe4a0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Services */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Effects */
section {
  padding: 40px;
  text-align: center;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(3, 4fr); /* 6 per row */
  gap: 40px;
  margin-top: 20px;
}

/* flip card setup */
.feature-item {
  perspective: 1000px; /* 3D depth */
  max-width: 250px;
  margin: auto;
  cursor: pointer; /* show clickable */
}

.feature-inner {
  position: relative;
  width: 100%;
  height: 300px; /* fixed card height */
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* 👇 no hover flip anymore */
.feature-item.flipped .feature-inner {
  transform: rotateY(180deg) scale(1); /* flip only when class is added */
}

.feature-front,
.feature-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  border: 2px solid #ffd27f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* front side */
.feature-front {
  background: #3a2c2c;
  color: #fff;
}

.feature-front img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* back side */
.feature-back {
  background: #ffe5b4;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


/* SERVICES */
.service {
    flex: 1 1 250px;
    background: #ffb347;
    color: #3a2c2c;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-top: 5px solid #ff7f50;
}

/* Contact Button Section */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* Shop All Section */
.shop-all {
    text-align: center;
    margin-top: 30px;
}

/* Footer */
footer {
    background: #3a2c2c;
    color: #fff5e1;
    text-align: center;
    padding: 40px 20px;
    margin-top: 0; /* Remove gap */
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

footer p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Push Navigation and Social to edges */
    gap: 20px; /* Reduced gap for better spacing */
    max-width: 1200px; /* Increased to give more room for alignment */
    margin: 0 auto;
    padding: 0 20px; /* Ensure padding for smaller screens */
}

footer .footer-section {
    flex: 0 1 200px; /* Fixed width for consistency */
    min-width: 200px;
    text-align: left; /* Default to left for Navigation and Contact */
}

footer .footer-section h3 {
    color: #fff;
    margin-bottom: 10px;
}

footer .footer-section p {
    margin: 4px 0;
    font-size: 16px;
}

footer .footer-section a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin: 4px 0;
}

footer .footer-section a:hover {
    color: #ff8243;
}

footer .footer-section.social {
    text-align: right; /* Align Social links to the right */
}

.footer hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 30px auto;
    max-width: 100px;
}

footer .copyright {
    text-align: center;
    font-size: 18px;
    color: #ffffff;
}
.contact-form{
text-align: center;
}
/* Media query for smaller screens */
@media (max-width: 768px) {
    footer .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    footer .footer-section {
        text-align: center; /* Center all sections on mobile */
    }

    footer .footer-section.social {
        text-align: center; /* Center social links on mobile */
    }
}
