* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
}

:root {
  --bg-color:  #ffffff; /*later on we can switch it*/ 
  --second-bg-color:  #bcbcbc;
  --text-color: #28262b;
  --second-color: #989898;
  --primary-color:var(--second-color)
  --main-color: #f4ebd0;
  --big-font: 5rem;
  --h2-font: 1rem;
  --p-font: 1rem;
}
 
h1 {
  font-family: 'Lato', sans-serif;
  font-weight: bold;
}

html{ scroll-behavior: smooth;}
a { color: var(--primary-color); }
a:hover { color: var(--second-bg-color);}

/*
@media (min-width: 544px) {}
@media (min-width: 768px) {}
@media (min-width: 992px) {}
@media (min-width: 1200px) {}
@media (min-width: 1400px) {}
@media (min-width: 1600px) {}
*/

/* Custom Container */

/* Style for the loading spinner container */
.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  }

  /* Style for the "Cube Design" text */
  .cube-design-text {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: bold;
  font-family: 'Roboto';
  font-weight: 500;
  }

  /* Style for the loading spinner */
  .spinner {
  border: 4px solid rgba(0, 0, 0, 0.3);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  }

  /* Animation keyframes for the spinner */
  @keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
  }

  .container-custom {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
  }
  
  @media (min-width: 1200px) {
    .container-custom {  width: 1140px;  }
  }
  
  @media (min-width: 1400px) {
    .container-custom {  width: 1340px;  }
  }
  
  @media (min-width: 1600px) {
    .container-custom {  width: 1520px;  }
  }
  

  @media(max-width: 991px) {
    .sidebar{
      background-color: rgba(1, 1, 1, 0.9);
     }
  }
  
body {
background: #FBF0F6;
font-family: 'Lato', sans-serif;
font-weight: 400;
background-color: #fff;
}

/*LOADER*/
.master-loader {
  background: white;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  --path: #2f3545;
  --dot: #626262;
  --duration: 2s;
  width: 44px;
  height: 44px;
  position: relative;
}

.loader:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  display: block;
  background: var(--dot);
  top: 37px;
  left: 19px;
  transform: translate(-18px, -18px);
  animation: dotRect var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

.loader svg {
  display: block;
  width: 100%;
  height: 100%;
}

.loader svg rect, .loader svg polygon, .loader svg circle {
  fill: none;
  stroke: var(--path);
  stroke-width: 10px;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.loader svg polygon {
  stroke-dasharray: 145 76 145 76;
  stroke-dashoffset: 0;
  animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

.loader svg rect {
  stroke-dasharray: 192 64 192 64;
  stroke-dashoffset: 0;
  animation: pathRect 3s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

.loader svg circle {
  stroke-dasharray: 150 50 150 50;
  stroke-dashoffset: 75;
  animation: pathCircle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

.loader.triangle {
  width: 48px;
}

.loader.triangle:before {
  left: 21px;
  transform: translate(-10px, -18px);
  animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

@keyframes pathTriangle {
  33% {
    stroke-dashoffset: 74;
  }

  66% {
    stroke-dashoffset: 147;
  }

  100% {
    stroke-dashoffset: 221;
  }
}

@keyframes dotTriangle {
  33% {
    transform: translate(0, 0);
  }

  66% {
    transform: translate(10px, -18px);
  }

  100% {
    transform: translate(-10px, -18px);
  }
}

@keyframes pathRect {
  25% {
    stroke-dashoffset: 64;
  }

  50% {
    stroke-dashoffset: 128;
  }

  75% {
    stroke-dashoffset: 192;
  }

  100% {
    stroke-dashoffset: 256;
  }
}

@keyframes dotRect {
  25% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(18px, -18px);
  }

  75% {
    transform: translate(0, -36px);
  }

  100% {
    transform: translate(-18px, -18px);
  }
}

@keyframes pathCircle {
  25% {
    stroke-dashoffset: 125;
  }

  50% {
    stroke-dashoffset: 175;
  }

  75% {
    stroke-dashoffset: 225;
  }

  100% {
    stroke-dashoffset: 275;
  }
}

.loader {
  display: none;
  margin: 0 16px;
}

/*LOADER*/

.container-custom {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .container-custom {  width: 1140px;  }
}

@media (min-width: 1400px) {
  .container-custom {  width: 1340px;  }
}

@media (min-width: 1600px) {
  .container-custom {  width: 1520px;  }
}


@media(max-width: 991px) {
  .sidebar{
    background-color: rgba(1, 1, 1, 0.9);
   }
}

/* Main Header */
.header {
  z-index: 2;
}
 
/* CSS to make the hamburger icon thinner and black */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='12' viewBox='0 0 16 16' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M0 1.5A1.5 1.5 0 0 1 1.5 0h13A1.5 1.5 0 0 1 16 1.5v1A1.5 1.5 0 0 1 14.5 4H1.5A1.5 1.5 0 0 1 0 2.5v-1zm0 6A1.5 1.5 0 0 1 1.5 6h13A1.5 1.5 0 0 1 16 7.5v1A1.5 1.5 0 0 1 14.5 10H1.5A1.5 1.5 0 0 1 0 8.5v-1zm0 6A1.5 1.5 0 0 1 1.5 12h13A1.5 1.5 0 0 1 16 13.5v1A1.5 1.5 0 0 1 14.5 16H1.5A1.5 1.5 0 0 1 0 14.5v-1z'/></svg>");
  background-size: 16px;
}

 
/* Default style for the expanded menu items (black) */
.nav-link {
  color: black;
}

/* Style for the expanded menu items in mobile when sidebar is open (white) */
.sidebar-open .nav-link {
  color: white;
}


 .nav-link:hover{
  color: red;
 }

.transparent-navbar {
background-color: transparent;
}

/* CSS for dark navbar */
.dark-navbar {
background-color: #333; /* Replace this with your desired dark background color */
/* You may also want to adjust the text color to make it visible on the dark background */
color: white; /* For example, set the text color to white */
}

.navbar {
height: 50px; /* Adjust the height as per your requirement */
}


.dropdown-nav__closeNavBtn {
  position: absolute;
  top: 20px;
  right: 16px;
  background-color: rgbA(255,255,255,0.6);
}

.dropdown-nav__container {
  height: 100vh;
  padding: 0 1rem;
}
 
 
 

@keyframes bounce {
from{
    transform: translateY(0px);
}
to{
    transform: translateY(-10px);
}
}
 

section {
  padding: 160px 15% 120px;
}
 

 
/* services section */

.services {
  background: var(--second-bg-color);
}

.main-text {
  text-align: center;
}

.main-text p{
  color: var(--text-color);
  font-size: 15px;
  margin-bottom: 15px;
}

.main-text h2 {
  font-size: 32px;
  line-height: 1;
}

.services-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  align-items: center;
  gap: 2.5rem;
  margin-top: 5rem;
}

.box {
  background: var(--bg-color);
  padding: 35px 45px;
  border-radius: 8px;
  transition: all .45s ease;
}

.s-icons i {
  font-size: 32px;
  margin-bottom: 20px;
}

.box h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
}

.box p {
  color: var(--second-color);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.read {
  display: inline-block;
  padding: 8px 18px;
  background: #333333;
  color:var(--second-color);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all .45s ease;
}

.read:hover {
  letter-spacing: 1px;
  background: #ffffff99;
  color: var(--text-color);
}

.box:hover {
  transform: translateY(-8px);
  cursor: pointer;
}

.projects-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, auto)); /* ovdje je bilo */
  align-items: center;
  gap: 2.5rem;
  margin-top: 5rem;
  }

.row {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  width: 100%; /* Add this */
  height: 270px; /* Reduce the fixed height */
}
 
/* Media query for smaller screens (e.g., mobile devices) */
@media (max-width: 767px) {
  .row {
    width: 100%;
    margin-left: 10px;
    margin-right: 30px;
     max-height: 260px;
  }
  .projects-content{
    margin-left: -20px;
  }
}

/* Media query for smaller screens (e.g., mobile devices) */
@media (max-width: 1180px) {
  .row {
    width: 100%;
    margin-left: 10px;
    margin-right: 30px;
     max-height: 260px;
  }
  .projects-content{
    margin-left: -20px;
  }
}
 
.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0,0,0,0.1), var(--second-bg-color));
  position: absolute;
  border-radius: 8px;
  left:0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  transition: height 0.5s;
}

.layer h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
   font-family: 'Montserrat', sans-serif;
}

.layer p {
  color: var(--text-color);
  font-weight: bold;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.8;
}

.layer i{
  color: var(--main-color);
  margin-top: 20px;
  font-size: 20px;
  background: var(--text-color);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.row:hover img{ 
  transform: scale(1.1);
}

.row:hover .layer{
  height: 100%;
}

 
 

/*responsive layout*/

@media (max-width: 1480px) {
 
  section{
    padding: 110px 3% 60px;
  }
   
}

@media (max-width: 1100px){
  :root{
    --big-font: 4rem;
    --h2-font: 2.5rem;
    --p-font: 1rem;
    transition: .1s;
  }
   
}

.footer {
  padding: 40px 0;
  background-color: #ededed;
}

.footer .social{
  text-align: center;
  padding-bottom: 25px;
  color: #4b4c4d;
}

.footer .social a {
  font-size: 24px;
  color: inherit;
  border: 1px solid #ccc;
  width: 40px;
  height: 40px;
  line-height: 38px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 8px;
  opacity: 0.75;
}

.footer .social a:hover {
  opacity: 0.9;
}

.footer ul{
  margin-top: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}

.footer ul li a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.footer ul li {
  display: inline-block;
  padding: 0 15px;
}

.footer ul li a:hover {
  opacity: 1;
}

.footer .copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* Add responsive CSS here */

/* Responsive layout for tablets */
@media (max-width: 991px) {
  .container-custom {
    padding: 0 0.5rem; /* Reduce horizontal padding to avoid content cutoff */
  }
}

/* Responsive layout for phones */
@media (max-width: 767px) {
  .container-custom {
    padding: 0 0.5rem; /* Reduce horizontal padding further */
  }

  .main-text h2 {
    font-size: 24px; /* Decrease font size for h2 headings on smaller screens */
  }

  .services-content {
    grid-template-columns: repeat(auto-fit, minmax(150px, auto)); /* Adjust grid columns for smaller screens */
    gap: 1rem; /* Reduce the gap between service boxes */
    margin-top: 3rem; /* Reduce top margin for service boxes */
  }

  .projects-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, auto)); /* Adjust grid columns for smaller screens */
    gap: 1rem; /* Reduce the gap between project images */
    margin-top: 3rem; /* Reduce top margin for project images */
  }

  .row img {
    border-radius: 4px; /* Reduce image border radius for smaller screens */
  }

  .layer {
    padding: 0 20px; /* Adjust padding inside the layer for smaller screens */
  }
}

/* Additional media queries for even smaller screens, like smaller smartphones, can be added here */
/* For example: @media (max-width: 480px) {} */

/* General responsive layout for larger screens */
@media (min-width: 1200px) {
  /* You can keep the existing styles or add more specific styles for larger screens if needed */
}

/*language toggle*/
 

/* CSS for the globe icon */
.globe-icon {
  font-size: 24px; /* Adjust the size as needed */
  transition: transform 0.3s ease-in-out; /* Animation duration and easing */
}

/* CSS for the rotating animation */
.rotate {
  transform: rotate(180deg); /* Rotate the globe icon */
}

 
#switchLanguage {
  font-size: 16px;
  color: black;
  transition: transform 0.3s ease-in-out;
}

/* Style for the globe icon (white) on screens with a maximum width of 768px */
@media (max-width: 768px) {
  #switchLanguage {
      color: white;
  }
}

/* Style for the globe icon (white) on screens with a maximum width of 768px */
@media (max-width: 1180px) {
  #switchLanguage {
      color: white;
  }
}

#switchLanguage.clicked {
  transform: rotate(180deg);
}

