:root {
  --maintxt: #794e0d;       /* Temno olivno-zelena, bolj čista */
  --body-txt: #000000;      /* Mehka naravna olivno-siva */
  --subtext: #171717;       /* Svetla olivna za sekundarni tekst */
  --footerbg: #2D403D;      /* Enaka kot glavna temna za enotnost */
  --main-bg: #F5F2EB;       /* Še svetlejša, moderna topla bež */
  --menu-bg: #b3652d5d;       /* Glavni meni v temni olivno-zeleni */
  --product-bg: #E9E4D8;    /* Svetla topla bež za sekcije */
  --crack: #E9E4D8;         /* Prehodne sekcije */
  --second-main: #C48A69;   /* Lep opečnato-topel ton (ne premočan) */
  --btn-bg: #C48A69;        /* Gumbi v toplih tonih */
  --btn-border: #C48A69;
  --icon-hover: #A47149;    /* Opečnata za hover efekt */
  --icon-hover-txt: #F5F2EB; /* Svetlo besedilo na hoverju */
  --icon-colour: #2D403D;   /* Ikone v osnovni temno olivni */
  --graphite: #232323;


  --shadow: 0 8px 32px rgba(27,42,54,0.14);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  }

  html {
    scroll-behavior: smooth;
    height: 100%;
    min-height: 100vh;
  }


  /* RESET & BASE */
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: "Work Sans", sans-serif;
    background-color: var(--main-bg);
    background-image: url('https://www.transparenttextures.com/patterns/concrete-wall.png');
    background-repeat: repeat;
    background-size: 600px;
    background-position: 0 0;
    animation: cementRollVertical 120s linear infinite;
    color: var(--body-txt);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    height: 100%;
  }
  
  /* Optional: faint lighting effect overlay */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.02) 0%, transparent 70%);
    animation: floatLight 90s ease-in-out infinite alternate;
  }
  
  /* Rolling vertical texture */
  @keyframes cementRollVertical {
    0% { background-position: 0 0; }
    100% { background-position: 0 2000px; }
  }
  
  /* Optional: floating light texture for natural shift */
  @keyframes floatLight {
    0% { transform: translateY(0px); }
    100% { transform: translateY(10px); }
  }
  
  

  .logo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease-out;
    pointer-events: none; /* This allows scrolling even when overlay is visible */
  }
  
  .logo-overlay img {
    max-width: 80vw;
    max-height: 40vh;
  }
  
  
  
  /* Main menu container and cards */
  .main-menu-container {
    background: var(--menu-bg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    top: 0;
    z-index: 200;
  }
  
  .product-card {
    background: var(--product-bg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    top: 0;
    z-index: 200;
  }

  .footer-container {
    background: var(--footerbg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    top: 0;
    z-index: 200;
  }

  @keyframes metalTilt {
    from { transform: rotateZ(-2deg); }
    to { transform: rotateZ(2deg); }
  }
  
  /* Simulate slab lines on cards */
  .main-menu-container::before,
  .product-card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 40%;
    height: 1.5px;
    background:
      repeating-linear-gradient(120deg, transparent, transparent 120px, var(--shadow) 121px, transparent 123px),
      repeating-linear-gradient(60deg, transparent, transparent 200px, var(--shadow) 202px, transparent 204px);
    opacity: 0.13;
    opacity: 0.25;
    pointer-events: none;
    z-index: 2;
  }

  

  .product-card::before { top: 60%; }
  .main-menu-container::after,
  .product-card::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 60%;
    width: 1.5px;
    background:
    repeating-linear-gradient(120deg, transparent, transparent 120px, var(--shadow) 121px, transparent 123px),
    repeating-linear-gradient(60deg, transparent, transparent 200px, var(--shadow) 202px, transparent 204px);
  opacity: 0.13;
    opacity: 0.18;
    pointer-events: none;
    z-index: 2;
  }
  .product-card::after { left: 30%; }
  
  /* Menu background image */
  .menu-bg-image {
    width: 100%;
    height: 40v; /* or taller if your logo is very tall */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    position: relative;
  }
  
  .menu-bg-image img {
    height: 100%;
    width: auto;
    max-width: 40vw; /* adjust as needed for your logo */
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: grayscale(0.1) brightness(0.9) blur(0.5px);
    opacity: 0.94;
  }
  
  .nase-storitve-box:hover,
  .product-card:hover {
  transform: translateY(-6px) scale(1.03) rotateZ(-1.5deg);
  box-shadow: var(--shadow-strong);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1);
}

  
  /* Menu section */
  .menu-btn-section {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    background: transparent;
    padding: 1.3rem 1rem 1.1rem 1rem;
    gap: 1.5rem;
    position: relative;
    z-index: 1000;
    margin-top: -40px;
    animation: navShadow linear both;
    animation-timeline: scroll(root);
    position: sticky;
    top: 0;
  }

  @keyframes navShadow {
    to { box-shadow: var(--shadow-strong); }
  }

  .menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--blac);
    font-size: 1.13rem;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    min-width: 100px;
    padding: 0.85rem 0.7rem;
    border-radius: 0.7rem;
    padding-top: 2rem;
    transition: 
      background var(--btn-bg), 
      color var(--maintxt);
    box-shadow: none;
    position: relative;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .menu-btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.1rem;
    background: var(--black);
    border-radius: 50%;
    padding: 0.2em;
    animation: iconBounce 2.2s infinite;
  }
  @keyframes iconBounce {
    0%, 100% { transform: translateY(0);}
    50% { transform: translateY(-6px);}
  }
  .menu-btn .icon svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: var(--icon-hover);
    transition: stroke var(--transition);
  }
  .menu-btn span:last-child {
    font-size: 1.13rem;
    letter-spacing: 0.04em;
  }
  .menu-btn:hover,
  .menu-btn:focus {
    background: var(--icon-colour);
    color: var(--icon-hover-txt);
    transform: translateY(-3px) scale(1.05);
  }
  .menu-btn:hover .icon,
  .menu-btn:focus .icon {
    background: var(--icon-hover);
  }
  .menu-btn:hover .icon svg,
  .menu-btn:focus .icon svg {
    stroke: var(--icon-colour);
  }
 
  /* Animated SVG icon stroke */
  .icon-anim {
    stroke-dasharray: 56;
    stroke-dashoffset: 56;
    animation: iconDraw 0.7s forwards;
  }
  .menu-btn:hover .icon-anim,
  .menu-btn:focus .icon-anim {
    animation: iconDraw 0.7s forwards, iconPulse 1s infinite alternate;
  }
  @keyframes iconDraw {
    to { stroke-dashoffset: 0; }
  }
  @keyframes iconPulse {
    0% { stroke: var(--accent);}
    100% { stroke: var(--icon-colour);}
  }
  /* Highlight home button */
  .menu-btn-home {   
     color: #000;
  }
  .menu-btn-home .icon {
    background: var(--icon-hover-txt);
  }
  .menu-btn-home .icon svg {
    stroke: var(--icon-colour);
  }
  .menu-btn-home:hover,
  .menu-btn-home:focus {
    background: var(--icon-colour);
    color: var(--icon-hover-txt);
  }
  .menu-btn-home:hover .icon,
  .menu-btn-home:focus .icon {
    background: var(--icon-hover);
  }
  .menu-btn-home:hover .icon svg,
  .menu-btn-home:focus .icon svg {
    stroke: var(--icon-hover-txt);
  }
  
  /* Responsive: vertical menu on mobile */
  @media (max-width: 700px) {
    .main-menu-container {
      max-width: 98vw;
      padding: 0;
    }
    .menu-bg-image { height: 80px; }
    .menu-btn-section {
      flex-direction: column;
      align-items: stretch;
      gap: 1.1rem;
      margin-top: -24px;
      padding: 1.1rem 0.7rem 0.7rem 0.7rem;
    }
    .menu-btn {
      flex-direction: row;
      justify-content: flex-start;
      gap: 0.9rem;
      min-width: 0;
      font-size: 1.02rem;
      padding: 0.7rem 0.8rem;
    }
    .menu-btn .icon {
      margin-bottom: 0;
    }
  }

/* IMAGE SLIDESHOW SECTION */
.image-slideshow-section {
  width: 100%;
  padding: 60px 0;
  margin: 40px 0;
  position: relative;
  z-index: 50;
}

.slideshow-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mySlides {
  display: none;
  animation: fade 1.5s ease-in-out;
}

.mySlides img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: var(--btn-bg);
  color: var(--icon-hover-txt);
  font-size: 1.2rem;
  text-align: center;
  font-family: 'Crimson Text', serif;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .mySlides img {
    height: 400px;
  }
  
  .caption {
    font-size: 1rem;
    padding: 12px;
  }
}



  /* Zakaj izbrati nas? - Section */    

.izbrati-nas-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 50px auto;
  padding: 20px;
  max-width: 900px;
  align-items: center;
}

.zakaj-nas-title {
  color: var(--maintxt);
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  margin-top: 10vh;
}

.zakaj-nas-text {
  color: var(--subtext);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  margin-top: 20px;
}

.izbrati-nas-box {
  display: flex;
  align-items: center;
  background-color: var(--product-bg);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  animation: forgeEntry linear both;
  animation-timeline: view();
  animation-range: entry 20% cover 50%;
}

.izbrati-nas-box img {
  width: 100px;
  height: auto;
  margin-right: 20px;
}

.izbrati-nas-box .text-content p {
  font-size: 18px;
  color: var(--maintxt);
  text-align: left;
  margin: 0;
  font-family: "Crimson Text", serif;
  font-weight: 600;
}

@media (max-width: 768px) {
  .izbrati-nas-section {
      grid-template-columns: 1fr;
      gap: 20px;
      padding: 10px;
  }
  .izbrati-nas-box {
      flex-direction: column;
      text-align: center;
      padding: 20px;
      align-items: center;
      justify-content: center;
  }
  .izbrati-nas-box img {
      margin-bottom: 15px;
      margin-right: 0;
      width: 70px;
  }
}

/* Reuse your animation keyframes */
@keyframes forgeEntry {
  from {
    opacity: 0;
    transform: translateY(50px) rotateX(45deg);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}




/* Naše storitve - Section */

.nase-storitve-container {
    padding: 20px;
    animation: slideIn 2s; /* Slide in animation */
}

.nase-storitve-title {
    color: var(--maintxt);
    font-family: "Crimson Text";
    font-size: 64px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
}

.nase-storitve-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; /* Space between boxes */
    margin: 50px auto;
    padding: 20px;
    max-width: 1200px; /* Centered layout */
    align-items: center;
    scroll-timeline-name: --services;
}

.nase-storitve-box {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the left */
    background-color: var(--product-bg); /* Light gray background */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    padding: 30px; /* Inner padding for content spacing */
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(50px); /* Initial position for animation */
        transition: opacity 0.6s ease, transform 0.6s ease; /* Smooth transition */
    animation: forgeEntry linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 40%;
}

@keyframes forgeEntry {
    from {
      opacity: 0;
      transform: translateY(50px) rotateX(45deg);
      filter: blur(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0) rotateX(0);
      filter: blur(0);
    }
  }

.nase-storitve-box.visible {
    opacity: 1; /* Fully visible when scrolled into view */
    transform: translateY(0); /* Reset position */
}

.nase-storitve-box img {
    width: 100px; /* Icon size */
    height: auto;
    margin-right: 20px; /* Space between icon and text */
}

.text-content {
    display: flex;
    flex-direction: column;
}

.text-content h2 {
    font-size: 28px; /* Larger title font size */
    font-weight: bold;
    color: var(--maintxt); /* Dark gray text color */
    margin-bottom: 10px;
    text-align: left;
}

.text-content p {
    font-size: 18px; /* Body text size */
    color: var(--subtext); /* Medium gray text color */
    text-align: left;
}

/* Responsive Design for Mobile Screens */
@media (max-width: 768px) {
    .nase-storitve-section {
        grid-template-columns: 1fr; /* Single column layout for smaller screens */
        gap: 20px;
        padding: 10px;
    }

    .nase-storitve-box {
        flex-direction: column; /* Stack content vertically on mobile */
        text-align: center;
        padding: 20px;
        align-items: center;
        justify-content: center;
    }

    .nase-storitve-box img {
        margin-bottom: 15px; /* Add space below the icon on mobile */
        margin-right: 0;
        width: 70px; /* Slightly smaller icon size on mobile */
    }
}

/* Scroll Animation Keyframes (Pop-Up Effect) */
@keyframes popUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kontakt Section */
.kontakt-img-container {
    position: relative;
    width: auto;
    height: 50vh;
    background-image: url('../Slike/free-photo-of-men-holding-an-iron-pole-in-black-and-white.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kontakt-btn-container {
    width: 253px;
    height: 93px;
    flex-shrink: 0;
    border-radius: 10px;
    background-color: var(--btn-bg);
}

.knt-btn {
  background: var(--product-bg);
  border: none;
  border-radius: 10px;
}

.knt-btn:hover  {
  background-color: var(--icon-hover-txt);
  color: var(--menu-bg);
  border: none;
}

.kontakt-btn-container p {
    display: flex;
    width: 253px;
    height: 93px;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    color: var(--maintxt);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: bold;
}

.kontakt-btn-container p:hover {
  color: var(--btn-bg)
}
/* Responsive Design for Mobile Screens */
@media (max-width: 768px) {
    
   /* Stack sections vertically on mobile */
   .kontakt-img-container {
       margin-top: 20px; /* Add spacing between sections on mobile */
       height: auto; /* Adjust height for better fit on mobile screens */
       padding-bottom: 20px; 
   }
}

/* Footer */
.footer-container {
  background-color: var(--main-bg); 
  padding: 40px 20px; 
  display: flex;
  justify-content: space-between;
  align-items: center; 
  margin-top: 31vh;
  height: auto; /* Adjusted for responsiveness */
}

/* Left section (Kontakt) */
.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  margin-left: 100px; 
}

.footer-left h3 {
  color: var(--maintxt);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 10px; 
}

.footer-item {
  display: flex;
  align-items: center; 
  flex-direction: column;
  margin-bottom: 10px; 
}

.footer-item img {
  width: 50px; 
  height: auto;
  margin-right: 15px; 
}

.footer-item p {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  color:  var(--subtext);
  width: 100%; 
}

/* Center section (Logo) */
.footer-center {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-right: 150px; /* Added padding for spacing */  
}

.footer-center img {
  width: 371.93px;
  height: 212px;
}

.footer-center p {
  color: var(--subtext);
  text-align: center;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;  
}

/* Right section (Sledite nam) */
.footer-right {
  text-align: center; 
  margin-right: 150px;
}

.footer-right h3 {
  color: var(--maintxt);;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 10px;
}

.social-info {
  display: flex;
  align-items: center; 
  margin-bottom: 10px; 
}

.social-info img {
  width: 50px; 
  height: auto;
}

.social-info p {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  color: var(--subtext);
  width: 100%;
}

.footer-credits {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 15px;
  color: var(--subtext); /* Medium gray text color */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      align-items: center;
      padding: 20px;
  }

  .footer-left, .footer-center, .footer-right {
      margin-bottom: 20px;
  }
}

@media (max-width: 900px) {
  .footer-container {
    gap: 24px;
    padding: 32px 10px 18px 10px;
    max-width: 98vw;
  }
  .footer-center img {
    width: 120px;
  }
}

@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 4vw 12px 4vw;
    border-radius: 12px 12px 0 0;
  }
  .footer-left, .footer-center, .footer-right {
    min-width: 0;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .footer-center img {
    width: 90px;
  }
  .footer-credits {
    font-size: 13px;
    margin-top: 18px;
  }
}

/* Extra: Center all footer text on small screens */
@media (max-width: 700px) {
  .footer-container, 
  .footer-container * {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

@media (max-width: 600px) {
  .center-all {
    padding: 10px; /* Optional: add spacing on small screens */
  }
}


/* =========================
   Responsive @media Queries
   ========================= */

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .responsive-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199px) and (min-width: 992px) {
  .responsive-section {
    max-width: 960px;
    padding: 32px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991px) and (min-width: 768px) {
  .responsive-section {
    max-width: 720px;
    padding: 24px;
    font-size: 1rem;
  }
}

/* Small devices (landscape phones, 600px and up) */
@media (max-width: 767px) and (min-width: 600px) {
  .responsive-section {
    max-width: 540px;
    padding: 16px;
    font-size: 0.95rem;
  }
}

/* Extra small devices (phones, less than 600px) */
@media (max-width: 599px) {
  .responsive-section {
    max-width: 100%;
    padding: 8px;
    font-size: 0.9rem;
  }
}

/* Example: Make grid single column on smaller screens */
@media (max-width: 900px) {
  .responsive-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .responsive-section {
    gap: 12px;
    padding: 6px;
  }
}

/* =========================
   Example Adaptive Section
   ========================= */
.responsive-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  transition: all 0.3s ease;
}

/* =========================
   Universal @keyframes
   ========================= */

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Pop up animation */
@keyframes popUp {
  0%   { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-15px); }
}

/* Example usage */
.responsive-box {
  animation: fadeIn 1s ease;
}

.responsive-box.pop {
  animation: popUp 0.7s cubic-bezier(.17,.67,.83,.67);
}

.responsive-icon {
  animation: bounce 1.2s infinite;
}


