@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}
html {
    scroll-behavior: smooth;
}
section, .New_project_portfolio, .Banner {
    scroll-margin-top: 44px; /* Visina tvoje navigacije */
  }
body{
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    background-color: var(--forest-green);
}
body::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--forest-green);

    
}

:root{
    --white-show: #F1F6F7;
    --forest-green: #232628;
    --subset-orange: #F79B7B;
    --slate-gray: #BDBBBC;
    --charcoal-black: #232628;
    --neutral-p: #B3B9C1 ;
    --pg-color: #CACBCD;
    --bc-color: linear-gradient(
        45deg,
        #68737F 0%,
        #868E99 40%,
        #D3DBE1 70%,
        #717A85 100%
    )
}

nav {
    height: 44px;
    background: var(--charcoal-black); /* Polu-transparentna charcoal-black boja (hex: #1c1c1e) */
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px); /* Blur efekat */
    -webkit-backdrop-filter: blur(10px); /* Za Safari */
}

.nav-logo {
    filter: brightness(0) invert(1);
    height: 20px;
    width: auto;
    vertical-align: middle;
}

/* Ostali postojeći stilovi ostaju isti */
.menu {
    position: relative;
    margin: 0 auto;
    width: 1000px;
    overflow: hidden;
}

.menu ul{
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.menu ul li{
    list-style: none;
}

.menu ul li,
.menu ul li a{
    color: #fcf3f3;
    line-height: 44px;
    text-decoration: none;
}

.menu ul li .fa.fa-apple{
    font-size: 20px;
}

.menu ul li a.menu-item{
    transform: scale(1);
    transition: 0.5s;
    display: block;
}

.menu ul li a.menu-item.hide-item{
    transform: scale(0);
}


.menu ul li a.menu-item.hide-item{
    transform: scale(0);
}

.menu ul li:nth-child(2) a.menu-item.hide-item{
    transition-delay: 0.6s;
}

.menu ul li:nth-child(3) a.menu-item.hide-item{
    transition-delay: 0.5s;
}

.menu ul li:nth-child(4) a.menu-item.hide-item{
    transition-delay: 0.4s;
}

.menu ul li:nth-child(5) a.menu-item.hide-item{
    transition-delay: 0.3s;
}

.menu ul li:nth-child(6) a.menu-item.hide-item{
    transition-delay: 0.2s;
}

.menu ul li:nth-child(7) a.menu-item.hide-item{
    transition-delay: 0.1s;
}

.menu ul li:nth-child(8) a.menu-item.hide-item{
    transition-delay: 0s;
}

/* press cmd + D or ctrl + D(windows) to select multiple lines having same names for eg. */

.menu ul li:nth-child(2) a.menu-item{
    transition-delay: 0s;
}

.menu ul li:nth-child(3) a.menu-item{
    transition-delay: 0.1s;
}

.menu ul li:nth-child(4) a.menu-item{
    transition-delay: 0.2s;
}

.menu ul li:nth-child(5) a.menu-item{
    transition-delay: 0.3s;
}

.menu ul li:nth-child(6) a.menu-item{
    transition-delay: 0.4s;
}

.menu ul li:nth-child(7) a.menu-item{
    transition-delay: 0.5s;
}

.menu ul li:nth-child(8) a.menu-item{
    transition-delay: 0.6s;
}

.search-form{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(0);
    width: 600px;
    height: 44px;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}

.search-form.active{
    opacity: 1;
    visibility: visible;
    transition-delay: 0.5s;
    transform: translateX(-50%);
}

.search-form input{
    width: 100%;
    height: 44px;
    background: transparent;
    color: var(--white-show);
    border: none;
    outline: none;
    font-size: 16px;
}

.search-form input::placeholder{
    color: #f7efef;
}

.search-form:before{
    content: '\f002';
    position: absolute;
    top: 12px;
    left: -26px;
    font-size: 18px;
    color: #f1eaea;
    font-family: fontAwesome;
}

.close {
    position: absolute;
    right: 0;
    top: 1px;
    height: 44px;
    background: var(--charcoal-black); /* Ista boja kao nav */
    color: #FFF;
    line-height: 44px;
    font-size: 18px;
    text-align: right;
    width: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(10px); /* Blur i za close */
    -webkit-backdrop-filter: blur(10px);
}

.close.active{
    opacity: 1;
    visibility: visible;
}
.search-icon {
    position: relative;
    z-index: 12;
}
/* Responzivnost */
@media (max-width: 1024px) {
    .menu ul li:nth-child(n+6) { /* Sakrij poslednje 3 stavke na tabletima */
        display: none;
    }
}

@media (max-width: 768px) {
    .menu ul li:nth-child(n+4) { /* Sakrij još stavki na manjim ekranima */
        display: none;
    }
    
    .menu {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .menu ul li:not(:first-child):not(:last-child) { /* Prikaži samo prvu i poslednju stavku */
        display: none;
    }
    
    .menu ul {
        justify-content: space-around;
    }
    
    .search-form {
        width: 95%;
    }
}




.medium {
    width: 600px !important;
    height: 600px !important;
  }
  
  section:nth-child(2n + 1) {
    position: relative;
    height: auto;
    background: var(--charcoal-black);
    display: flex;
    flex-direction: row-reverse;
  }
  
  section:nth-child(2n + 2) {
    position: relative;
    height: auto;
    background: var(--charcoal-black);
    display: flex;
  }
 
  section .imgBx {
    position: sticky;
    top: 0;
    min-width: 50%;
    height: 100vh;
  }
  
  section .imgBx img {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
  }
  
  section:nth-child(2n + 1) .content {
    padding: 100px 0 100px 100px;
    text-align: right;
  }
  
  section:nth-child(2n + 2) .content {
    padding: 100px 100px 100px 0;
    text-align: left;
  }
  
  section .content h2 {
    color: var(--subset-orange);
    margin: 0 0 20px;
    font-size: 60px;
  }
  
  section .content p {
    color: #fff;
    font-size: 18px;
  }
  
  input[type="submit"] {
    border: 0;
    background: none;
    display: block;
    font-size: 18px;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #fff;
    padding: 14px 40px;
    outline: none;
    color: #fff;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.5s ease-in-out;
  }
  
  input[type="submit"]:hover {
    background: var(--subset-orange);
  }


/*Footer*/
.container1{
    max-width: 1170px;
    margin: auto;
}
ul{
    list-style: none;
}
.footer{
    background-image: url(img/footer_bg.png);
    padding: 70px 0;
}
.row{
    display: flex;
    flex-wrap: wrap;
}
.footer-col{
    width: 25%;
    padding: 0 15px;
}
.footer-col h4{
    font-size: 18px;
    color: #f0f0f0;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
}
.footer-col h4:before{
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: var(--subset-orange);
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}
.footer-col ul li:not(:last-child){
    margin-bottom: 10px;
}
.footer-col ul li a{
    font-size: 16px;
    text-transform: capitalize;
    color: var(--white-show);
    text-decoration: none;
    font-weight: 300;
    color: #fff;
    display: block;
    transition: all 0.3s ease;
}
.footer-col ul li a:hover{
    color: var(--subset-orange);
    padding-left: 8px;
}
.footer-col .social-links a{
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(0,0,0,0.3);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.5s ease;
}
.footer-col .social-links a:hover{
    color: var(--subset-orange);
    background-color: #000;
}

.newsletter {
    margin-top: 20px;
}
.newsletter h4 {
    margin-bottom: 15px;
}
.newsletter input {
    padding: 8px;
    width: 100%;
    margin-bottom: 10px;
}
.newsletter button {
    padding: 8px 15px;
    background-color: var(--subset-orange);
    color: white;
    border: none;
    cursor: pointer;
}

.bottom {
    text-align: center;
    padding-top: 20px 0 0;
    margin-top: 20px;
    border-top: none;
}
.bottom p {
    margin: 5px 0;
    color: #fff;
}
.bottom a {
    color: #fff;
    text-decoration: none;
}
.bottom a:hover {
    color: var(--subset-orange);
}

@media(max-width: 767px){
    .footer-col {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media(max-width: 574px){
    .footer-col {
        width: 100%;
    }
}

/*--Custom Scrollbar--*/
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background-color: var(--charcoal-black); /* Fallback boja */
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--forest-green, #232628); /* Fallback boja */
    border-radius: 20px;
    border: 3px solid var(--subset-orange, #F79B7B); /* Dodaje prostor oko thumb-a */
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(34, 74%, 36%); /* Ispravljen HSL format */
}

/*Responzija section */

.medium {
  width: 100%;
  height: auto;
  max-width: 600px;
  max-height: 600px;
}

section {
  position: relative;
  height: auto;
  background: var(--charcoal-black);
  display: flex;
  flex-wrap: wrap;
  padding: 40px 0;
}

section .imgBx {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

section .imgBx img {
  width: 100%;
  height: auto;
  max-width: 600px;
  object-fit: contain;
}

section .content {
  width: 100%;
  padding: 40px;
  box-sizing: border-box;
}

section .content h2 {
  color: var(--subset-orange);
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.2;
}

section .content p {
  color: #fff;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  margin-bottom: 20px;
}

input[type="submit"] {
  border: 0;
  background: none;
  display: block;
  font-size: 18px;
  margin: 20px auto;
  text-align: center;
  border: 2px solid #fff;
  padding: 14px 40px;
  outline: none;
  color: #fff;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}

input[type="submit"]:hover {
  background: var(--subset-orange);
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
  section {
    flex-wrap: nowrap;
    padding: 0;
  }
  
  section .imgBx {
    position: sticky;
    top: 0;
    width: 50%;
    height: 100vh;
    min-height: 100vh;
  }
  
  section .content {
    width: 50%;
    padding: 100px;
  }
  
  section:nth-child(2n + 1) {
    flex-direction: row-reverse;
  }
  
  section:nth-child(2n + 1) .content {
    text-align: right;
    padding-left: 100px;
    padding-right: 0;
  }
  
  section:nth-child(2n + 2) .content {
    text-align: left;
    padding-right: 100px;
    padding-left: 0;
  }
}

@media (max-width: 1200px) {
  section .content {
    padding: 80px;
  }
  
  section:nth-child(2n + 1) .content {
    padding-left: 80px;
  }
  
  section:nth-child(2n + 2) .content {
    padding-right: 80px;
  }
}

@media (max-width: 1000px) {
  section .content {
    padding: 60px;
  }
  
  section:nth-child(2n + 1) .content {
    padding-left: 60px;
  }
  
  section:nth-child(2n + 2) .content {
    padding-right: 60px;
  }
}

@media (max-width: 768px) {
  section .imgBx {
    min-height: 300px;
    height: auto;
  }
  
  section .content {
    padding: 40px;
  }
  
  section .content h2 {
    margin-bottom: 15px;
  }
}

@media (max-width: 500px) {
  section .imgBx {
    min-height: 250px;
    padding: 10px;
  }
  
  section .content {
    padding: 30px 20px;
  }
  
  input[type="submit"] {
    padding: 10px 30px;
    font-size: 16px;
  }
}
/* Base styles for all sections */
section {
    position: relative;
    background: var(--charcoal-black);
    display: flex;
    flex-direction: column;
    padding: 40px 0;
  }
  
  section .imgBx {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    order: 1; /* Image first on mobile */
  }
  
  section .imgBx img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  
  section .content {
    width: 100%;
    padding: 30px 20px;
    order: 2; /* Content after image on mobile */
    box-sizing: border-box;
  }
  
  /* Desktop layout (768px and up) */
  @media (min-width: 768px) {
    section {
      flex-direction: row;
      min-height: 100vh;
      padding: 0;
    }
  
    section .imgBx {
      position: sticky;
      top: 0;
      width: 50%;
      height: 100vh;
      min-height: 100vh;
      padding: 40px;
    }
  
    section .imgBx img {
      max-height: 80vh;
      width: auto;
      max-width: 90%;
    }
  
    section .content {
      width: 50%;
      padding: 80px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  
    /* Alternate layout for even sections */
    section:nth-child(2n + 1) {
      flex-direction: row-reverse;
    }
  }
  
  /* Specific fixes for DinteriorS Filozofija section image */
  section:nth-child(2) .imgBx img {
    object-position: center center; /* Ensures important parts of image remain visible */
  }
  
  /* Responsive adjustments */
  @media (max-width: 1200px) {
    section .content {
      padding: 60px;
    }
  }
  
  @media (max-width: 1000px) {
    section .imgBx img {
      max-height: 70vh;
    }
    section .content {
      padding: 50px;
    }
  }
  
  @media (max-width: 768px) {
    section .imgBx {
      min-height: 250px;
      height: auto;
    }
    section .imgBx img {
      max-height: 400px;
    }
  }
  
  @media (max-width: 500px) {
    section .imgBx {
      min-height: 200px;
      padding: 10px;
    }
    section .content {
      padding: 25px 15px;
    }
  }