/* RESET */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Poppins', sans-serif; }
body { background:#fff; color:#222; line-height:1.6; scroll-behavior:smooth; width: 100%; overflow-x: hidden; }
:root { --green:#1dd75f; --brown:#694b2f; --black:#000; --white:#fff; }

/* HEADER */


/* Hover efekat za logo */
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 10px; /* prostor između DS i punog imena */
  margin-left: -20px;
}

.logo span.logo-full {
  color: var(--brown);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  white-space: nowrap;
  font-weight: 700;
  font-size: 20px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.logo:hover span.logo-full {
  opacity: 1;
  transform: scaleX(1);
}

.logo span.logo-short {
  color: var(--brown);
  font-weight: 700;
  font-size: 26px;
}

.logo img.logo-short {
  height: 60px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}


header { position:fixed; top:0; left:0; width:100%; display:flex; justify-content:flex-end; align-items:center; padding:20px 50px; background:rgba(255,255,255,0.9); backdrop-filter:blur(10px); z-index:999; }
.logo { font-size:26px; font-weight:700; color:var(--brown); position:absolute; left:50px; } .logo span{color:var(--green);}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  position: relative;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: var(--black);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-links{list-style:none; display:flex; gap:8px; align-items:center; flex-wrap:nowrap; justify-content:flex-end;}
.nav-links a{text-decoration:none; color:var(--black); font-weight:600; padding:6px 12px; transition:0.3s; white-space:nowrap;}
.nav-links a:hover{color:var(--brown); transform:scale(1.1);}
.lang-switch a{border:2px solid var(--brown); padding:6px 12px; border-radius:6px; color:var(--brown); font-size:14px;}
.lang-switch a:hover{background:var(--brown); color:#fff;}

/* HERO PARALLAX */
.hero-parallax{position:relative; height:90vh; display:flex; align-items:center; justify-content:center; overflow:hidden; width: 100%; margin: 0; box-sizing: border-box;}
.hero-parallax .hero-content{position:relative; z-index:2; text-align:center; color:#fff;}
.hero-parallax .hero-content h1{font-size:60px; margin-bottom:20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5);}
.hero-parallax .hero-content p{font-size:20px; margin-bottom:20px; text-shadow: 1px 1px 8px rgba(0,0,0,0.5);}
.hero-parallax .btn{background:var(--brown); color:#fff; padding:14px 28px; border-radius:8px; text-decoration:none; transition:0.3s;}
.hero-parallax .btn:hover{background:#4a3219; transform:translateY(-3px);}
.hero-bg{position:absolute; top:0; left:0; width:100%; height:100%; background-size:cover; background-position:center; filter:brightness(0.5); transform:translateZ(0);}


.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* SERVICES */
.services { padding:120px 40px; text-align:center; background:#f9f9f9;}
.services-grid{display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap:20px; justify-content:center; justify-items:center; margin-top:40px; margin-left:auto; margin-right:auto; max-width:100%;}
.service-card{background:#fff; padding:20px; border-radius:12px; max-width:280px; transition:transform 0.4s; box-shadow:0 4px 12px rgba(0,0,0,0.1);}
.service-card:hover{transform:translateY(-10px) scale(1.03);}

/* PORTFOLIO HORIZONTAL SCROLL */
.portfolio {
  padding: 100px 0;
  background: #fff;
  text-align: center;
  overflow: hidden; /* sprečava horizontalni overflow na celom delu */
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.portfolio-scroll {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.portfolio-scroll a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-item {
  flex: 0 0 auto;
  width: 300px;       /* fiksna širina */
  height: 200px;      /* fiksna visina */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s;
  background: #f9f9f9;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
  border-radius: 12px;
}

.portfolio-item:hover img {
  transform: scale(1.05) translateY(-5px);
}

.portfolio-item p {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  font-weight: 600;
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

/* OVDE JE VAŽNO */
body {
  overflow-x: hidden; /* sprečava horizontalni scrollbar na celom body-ju */
}



/* TEAM */
.team { padding:100px 40px; text-align:center; background:#f0f0f0; width: 100%; margin: 0; box-sizing: border-box;}
.team-grid{display:flex; flex-wrap:wrap; gap:20px; justify-content:center;}
.team-member{background:#fff; padding:20px; border-radius:12px; width:220px; text-align:center; transition:transform 0.4s; perspective:1000px;}
.team-member img{width:120px; height:120px; border-radius:50%; object-fit:cover;}
.team-member.flip:hover{transform:rotateY(180deg);}

/* FAQ */
.faq{padding:100px 40px; text-align:center; width: 100%; margin: 0; box-sizing: border-box;}
.faq-item{margin:15px auto; max-width:600px; padding:15px; border:1px solid #ddd; border-radius:10px; cursor:pointer; transition:0.3s;}
.faq-answer{display:none; margin-top:10px;}

/* CONTACT FORM */
.contact{padding:100px 40px; text-align:center; background:#f9f9f9; width: 100%; margin: 0; box-sizing: border-box;}
.contact form{max-width:500px; margin:0 auto; display:flex; flex-direction:column; gap:15px;}
.contact input, .contact textarea{padding:12px; border-radius:8px; border:1px solid #ccc; font-size:16px;}
.contact button{background:var(--brown); color:#fff; padding:14px; border:none; border-radius:8px; cursor:pointer; transition:0.3s;}
.contact button:hover{background:#fff; color:var(--brown); transform:translateY(-3px);}


/* ANIMATIONS */
.fade-up{opacity:0; transform:translateY(40px); transition:opacity 0.8s ease, transform 0.8s ease;}

/* RESPONSIVE */
@media(max-width:900px){.hero-parallax .hero-content h1{font-size:36px;} .services-grid,.team-grid{flex-direction:column; align-items:center;}}


/* -------------------- SHOP -------------------- */
.shop {
  padding: 80px 20px;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
}

.shop h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease forwards;
}

.shop-text {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  opacity: 0;
  animation: fadeInUp 1s 0.3s ease forwards;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.shop-item {
  background: #222;
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.5s, box-shadow 0.5s;
}

.shop-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.shop-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.shop-item p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.shop-item .btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--brown);
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.4s;
}

.shop-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.shop-item img {
  width: 100%;
  height: 350px; /* POVECANO – vidi se cela 4:5 slika */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}




/* -------------------- O NAMA -------------------- */
.onama {
  padding: 80px 20px;
  background: #111;
  color: #fff;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.onama h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  animation: fadeInUp 1s ease forwards;
}

.onama-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.onama-text {
  flex: 1 1 400px;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.onama-text > div {
  padding: 20px;
  border-left: 3px solid var(--brown);
  padding-left: 25px;
}

.onama-gallery {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.gal-img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s;
}

.gal-img:hover {
  transform: scale(1.05);
}
.onama-gallery .gal-img {
  height: 200px; /* ista visina kao prva slika */
  object-fit: cover; /* slika popunjava okvir bez deformacije */
}


/* -------------------- SAJTOVI -------------------- */
.projekti {
  padding: 80px 20px;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.projekti h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease forwards;
}

.projekti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 30px;
}

.projekat-card {
  background: #222;
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.5s, box-shadow 0.5s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.projekat-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.projekat-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.projekat-card p {
  font-size: 0.95rem;
}

.projekat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}


/* -------------------- BLOG -------------------- */
.blog {
  padding: 80px 20px;
  background: #111;
  color: #fff;
  text-align: center;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.blog h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease forwards;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 30px;
}

.blog-card {
  background: #222;
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.5s, box-shadow 0.5s;
}

.blog-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 0.95rem;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* BLOG slike kao druga (ograničenje + crop) */
.blog-card img {
    width: 100%;
    height: 250px;     /* možeš menjati visinu */
    object-fit: cover; /* iseče sliku kao prava galerija */
    border-radius: 10px;
} 

/* -------------------- ANIMACIJE -------------------- */
@keyframes fadeInUp {
  0% {opacity: 0; transform: translateY(20px);}
  100% {opacity: 1; transform: translateY(0);}
}

@keyframes slideLeft {
  0% {opacity:0; transform: translateX(-50px);}
  100% {opacity:1; transform: translateX(0);}
}

@keyframes slideRight {
  0% {opacity:0; transform: translateX(50px);}
  100% {opacity:1; transform: translateX(0);}
}

/* -------------------- HOVER ZOOM -------------------- */
.zoom {
  transition: transform 0.4s;
}

.zoom:hover {
  transform: scale(1.05);
}

/* -------------------- RESPONSIVE -------------------- */
@media(max-width:768px) {
  .onama-wrapper { flex-direction: column; }
}



/* Slika se pojavljuje preko kartice, dimenzije kartice se ne menjaju */
.service-card {
  position: relative; /* za apsolutno pozicioniranje slike */
  overflow: hidden;
}

.service-card .service-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.service-card .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* slika pokriva karticu bez menjanja dimenzija */
}

.service-card:hover .service-img {
  opacity: 1;
} 


footer {
  background: #f5f3f0;
  color: #333;
  padding: 60px 20px 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.footer-top h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.footer-top p {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.footer-menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 0;
}

.footer-menu a {
  color: #888;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.footer-menu a:hover {
  color: var(--brown);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-social a {
  color: #333;
  font-size: 32px;
  transition: transform 0.3s, color 0.3s;
  display: inline-block;
}

.footer-social a:hover {
  transform: scale(1.2);
  color: var(--brown);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

#scrollTop {
  background: var(--brown);
  border: none;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.3s;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#scrollTop:hover {
  background: #fff;
  color: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* CUSTOM CURSOR */
.cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  color: var(--black);
  font-weight: 700;
  font-size: 12px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-circle {
  width: 40px;
  height: 40px;
  border: 2px solid var(--black);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.15s ease;
  transform: translate(-50%, -50%);
}

/* GALLERY */
.gallery {
  padding: 120px 40px 60px;
  min-height: 100vh;
}

.gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--brown);
}

.gallery-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img,
.gallery-item video {
  object-fit: cover;
}

.gallery-item img:hover,
.gallery-item video:hover {
  transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox img,
.lightbox video {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s ease;
}

.close-lightbox:hover {
  transform: scale(1.2);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  padding: 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  user-select: none;
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.2);
  opacity: 0.8;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  position: relative;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: var(--black);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* RESPONSIVE MEDIA QUERIES */

/* Hamburger Menu for 300px to 1300px */
@media (min-width: 300px) and (max-width: 1300px) {
  .hamburger-menu {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 998;
    padding-top: 80px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px;
    width: 100%;
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  
  .nav-links a {
    display: block;
    width: 100%;
    padding: 15px 10px;
    font-size: 16px;
  }
  
  .lang-switch {
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  
  .lang-switch a {
    display: block;
    width: 100%;
    padding: 15px 10px;
    text-align: left;
  }
}

/* Extra small devices / ultra small (mobiteli, 300px+) */
@media (min-width: 300px) and (max-width: 329px) {
  header { padding: 15px 20px; }
  .logo { margin-left: -10px; }
  .logo img.logo-short { height: 40px; }
  .logo span.logo-full { font-size: 14px; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 11px; padding: 5px 8px; }
  .lang-switch a { font-size: 10px; padding: 5px 8px; }
  .hero-parallax .hero-content h1 { font-size: 24px; }
  .hero-parallax .hero-content p { font-size: 14px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; justify-items: center; max-width: 100%; margin-left: auto; margin-right: auto; }
  .shop-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .projekti-grid { grid-template-columns: 1fr; }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; flex-shrink: 0; }
  .portfolio-scroll { gap: 15px; }
  .portfolio-item { width: 200px; height: 150px; }
  .contact { padding: 60px 20px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; display: block !important; }
  .contact h2 { text-align: center !important; }
  .team > div { flex-direction: column !important; padding: 40px 0 !important; max-width: 100% !important; }
  .team > div > div { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .team img { width: 350px !important; height: 350px !important; }
  .footer-menu ul { flex-wrap: wrap; gap: 10px; }
  .footer-menu a { font-size: 12px; }
  .footer-social a { font-size: 24px; }
}

@media (min-width: 330px) and (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; gap: 20px; justify-items: center; max-width: 100%; margin-left: auto; margin-right: auto; }
}

@media (min-width: 300px) and (max-width: 359px) {
  header { padding: 15px 20px; }
  .logo { margin-left: -10px; }
  .logo img.logo-short { height: 40px; }
  .logo span.logo-full { font-size: 14px; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 11px; padding: 5px 8px; }
  .lang-switch a { font-size: 10px; padding: 5px 8px; }
  .hero-parallax .hero-content h1 { font-size: 24px; }
  .hero-parallax .hero-content p { font-size: 14px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; justify-items: center; max-width: 100%; margin-left: auto; margin-right: auto; }
  .shop-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .projekti-grid { grid-template-columns: 1fr; }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; flex-shrink: 0; }
  .portfolio-scroll { gap: 15px; }
  .portfolio-item { width: 200px; height: 150px; }
  .contact { padding: 60px 20px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; display: block !important; }
  .contact h2 { text-align: center !important; }
  .team > div { flex-direction: column !important; padding: 40px 0 !important; max-width: 100% !important; }
  .team > div > div { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .team img { width: 350px !important; height: 350px !important; }
  .footer-menu ul { flex-wrap: wrap; gap: 10px; }
  .footer-menu a { font-size: 12px; }
  .footer-social a { font-size: 24px; }
}

/* Very small devices (mobiteli, 360px+) */
@media (min-width: 360px) and (max-width: 399px) {
  header { padding: 15px 25px; }
  .logo img.logo-short { height: 45px; }
  .logo span.logo-full { font-size: 15px; }
  .nav-links a { font-size: 12px; padding: 6px 10px; }
  .lang-switch a { font-size: 11px; padding: 6px 10px; }
  .hero-parallax .hero-content h1 { font-size: 28px; }
  .hero-parallax .hero-content p { font-size: 15px; }
  .portfolio-item { width: 220px; height: 165px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; display: block !important; }
  .contact h2 { text-align: center !important; }
  .team > div { flex-direction: column !important; padding: 40px 0 !important; max-width: 100% !important; }
  .team > div > div { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .team img { width: 350px !important; height: 350px !important; }
}

/* Small devices (mobiteli, 400px+) */
@media (min-width: 400px) and (max-width: 439px) {
  header { padding: 18px 30px; }
  .logo img.logo-short { height: 50px; }
  .logo span.logo-full { font-size: 16px; }
  .nav-links a { font-size: 13px; }
  .hero-parallax .hero-content h1 { font-size: 30px; }
  .portfolio-item { width: 240px; height: 180px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; display: block !important; }
  .contact h2 { text-align: center !important; }
  .team > div { flex-direction: column !important; padding: 40px 0 !important; max-width: 100% !important; }
  .team > div > div { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .team img { width: 350px !important; height: 350px !important; }
}

/* iPhone SE / iPhone 5 / 5S / 5C */
@media (min-width: 320px) and (max-width: 375px) and (-webkit-device-pixel-ratio: 2) {
  header { padding: 15px 20px; }
  .logo img.logo-short { height: 42px; }
  .nav-links { gap: 6px; }
  .nav-links a { font-size: 11px; padding: 5px 8px; }
  .hero-parallax .hero-content h1 { font-size: 26px; }
  .portfolio-item { width: 210px; height: 158px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; display: block !important; }
  .contact h2 { text-align: center !important; }
  .team > div { flex-direction: column !important; padding: 40px 0 !important; max-width: 100% !important; }
  .team > div > div { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .team img { width: 350px !important; height: 350px !important; }
}

/* iPhone 6 / 6S / 7 / 8 */
@media (min-width: 375px) and (max-width: 414px) and (-webkit-device-pixel-ratio: 2) {
  header { padding: 18px 25px; }
  .logo img.logo-short { height: 48px; }
  .nav-links a { font-size: 12px; }
  .hero-parallax .hero-content h1 { font-size: 29px; }
  .portfolio-item { width: 230px; height: 173px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; display: block !important; }
  .contact h2 { text-align: center !important; }
  .team > div { flex-direction: column !important; padding: 40px 0 !important; max-width: 100% !important; }
  .team > div > div { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .team img { width: 350px !important; height: 350px !important; }
}

/* iPhone 6+/7+/8+ */
@media (min-width: 414px) and (max-width: 449px) and (-webkit-device-pixel-ratio: 3) {
  header { padding: 18px 30px; }
  .logo img.logo-short { height: 52px; }
  .nav-links a { font-size: 13px; }
  .hero-parallax .hero-content h1 { font-size: 32px; }
  .portfolio-item { width: 250px; height: 188px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; display: block !important; }
  .contact h2 { text-align: center !important; }
  .team > div { flex-direction: column !important; padding: 40px 0 !important; max-width: 100% !important; }
  .team > div > div { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .team img { width: 350px !important; height: 350px !important; }
}

/* Make projekti section look like 336px from 450px to 490px */
@media (min-width: 450px) and (max-width: 490px) {
  .projekti-grid { grid-template-columns: 1fr; }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; flex-shrink: 0; }
}

/* Medium devices / standard mobile (440px+) */
@media (min-width: 440px) and (max-width: 469px) {
  header { padding: 20px 35px; }
  .logo img.logo-short { height: 55px; }
  .logo span.logo-full { font-size: 18px; }
  .nav-links a { font-size: 14px; }
  .hero-parallax .hero-content h1 { font-size: 32px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; justify-items: center; max-width: 100%; margin-left: auto; margin-right: auto; }
  .portfolio-item { width: 260px; height: 195px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; display: block !important; }
  .contact h2 { text-align: center !important; }
  .team > div { flex-direction: column !important; padding: 40px 0 !important; max-width: 100% !important; }
  .team > div > div { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .team img { width: 350px !important; height: 350px !important; }
}

@media (min-width: 470px) and (max-width: 479px) {
  header { padding: 20px 35px; }
  .logo img.logo-short { height: 55px; }
  .logo span.logo-full { font-size: 18px; }
  .nav-links a { font-size: 14px; }
  .hero-parallax .hero-content h1 { font-size: 32px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; justify-items: center; max-width: 100%; margin-left: auto; margin-right: auto; }
  .portfolio-item { width: 260px; height: 195px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; display: block !important; }
  .contact h2 { text-align: center !important; }
  .team > div { flex-direction: column !important; padding: 40px 0 !important; max-width: 100% !important; }
  .team > div > div { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .team img { width: 350px !important; height: 350px !important; }
}

/* Make projekti section look like 650px from 500px to 630px */
@media (min-width: 500px) and (max-width: 579px) {
  .projekti-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; flex-shrink: 0; }
}

/* Make projekti section look like 620px from 580px to 615px */
@media (min-width: 580px) and (max-width: 615px) {
  .projekti-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; flex-shrink: 0; }
}

@media (min-width: 616px) and (max-width: 630px) {
  .projekti-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; flex-shrink: 0; }
}

/* Large mobiles / small tablets (480px+) */
@media (min-width: 480px) and (max-width: 599px) {
  header { padding: 20px 40px; }
  .logo img.logo-short { height: 58px; }
  .nav-links a { font-size: 14px; }
  .hero-parallax .hero-content h1 { font-size: 34px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .service-card { max-width: 100%; padding: 15px; }
  .portfolio-item { width: 280px; height: 210px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; display: block !important; }
  .contact h2 { text-align: center !important; }
  .team > div { flex-direction: column !important; padding: 40px 0 !important; max-width: 100% !important; }
  .team > div > div { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .team img { width: 350px !important; height: 350px !important; }
}

/* Small tablets (600px+) */
@media (min-width: 600px) and (max-width: 767px) {
  body { width: 100%; overflow-x: hidden; }
  header { padding: 20px 45px; width: 100%; }
  .services, .portfolio, .shop, .onama, .projekti, .blog, .team, .faq, .contact, .gallery, footer { width: 100%; padding-left: 40px; padding-right: 40px; box-sizing: border-box; }
  .logo img.logo-short { height: 60px; }
  .nav-links a { font-size: 15px; }
  .hero-parallax .hero-content h1 { font-size: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .service-card { max-width: 100%; padding: 15px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item { width: 300px; height: 225px; }
  .contact > div { gap: 40px; padding: 0 !important; }
  .contact img { width: 200px !important; height: 200px !important; }
  .team img { width: 350px !important; height: 350px !important; }
  .onama-text { flex: 1 1 100%; min-width: 100%; }
  .team > div { flex-direction: column !important; padding: 40px 0 !important; max-width: 100% !important; }
  .team > div > div { flex: 1 1 100% !important; min-width: 100% !important; width: 100% !important; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact h2 { text-align: center !important; }
}

/* Tablets / medium screens (768px+) */
@media (min-width: 768px) and (max-width: 870px) {
  header { padding: 20px 50px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .service-card { max-width: 100%; padding: 15px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .projekti-grid { grid-template-columns: repeat(2, 1fr); }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; flex-shrink: 0; }
  .portfolio-item { width: 320px; height: 240px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; }
  .contact h2 { text-align: center !important; }
  .team img { width: 400px !important; height: 400px !important; }
}

/* Hide QR images from 800px to 1000px */
@media (min-width: 800px) and (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .service-card { max-width: 100%; padding: 15px; }
  .contact > div > div:first-child,
  .contact > div > div:last-child { display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact h2 { text-align: center !important; }
}

@media (min-width: 901px) and (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .contact > div > div:first-child,
  .contact > div > div:last-child { display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact h2 { text-align: center !important; }
}

@media (min-width: 871px) and (max-width: 900px) {
  header { padding: 20px 50px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .service-card { max-width: 100%; padding: 15px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .projekti-grid { grid-template-columns: repeat(2, 1fr); }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; flex-shrink: 0; }
  .portfolio-item { width: 320px; height: 240px; }
  .team img { width: 400px !important; height: 400px !important; }
}

@media (min-width: 901px) and (max-width: 991px) {
  header { padding: 20px 50px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .projekti-grid { grid-template-columns: repeat(2, 1fr); }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; flex-shrink: 0; }
  .portfolio-item { width: 320px; height: 240px; }
  .team img { width: 400px !important; height: 400px !important; }
}

/* Large tablets / small laptops (992px+) */
@media (min-width: 992px) and (max-width: 1199px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .projekti-grid { grid-template-columns: repeat(2, 1fr); }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; flex-shrink: 0; }
  .portfolio-item { width: 350px; height: 263px; }
  .contact > div { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 !important; padding: 0 !important; }
  .contact > div > div:nth-child(2) { order: 1; width: 100%; flex-basis: 100%; text-align: center !important; margin-bottom: 30px; }
  .contact > div > div:nth-child(2) { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; }
  .contact > div > div:nth-child(2) p,
  .contact > div > div:nth-child(2) a,
  .contact > div > div:nth-child(2) hr { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
  .contact > div > div:first-child { order: 2; flex: 0 0 auto; margin-right: 0 !important; display: none !important; }
  .contact > div > div:last-child { order: 2; flex: 0 0 auto; margin-left: 0 !important; display: none !important; }
  .contact > div > div:first-child img,
  .contact > div > div:last-child img { display: none !important; }
  .contact img { width: 200px !important; height: 200px !important; display: block !important; }
  .contact h2 { text-align: center !important; }
}

/* Desktop / large screens (1200px+) */
@media (min-width: 1200px) and (max-width: 1599px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .projekti-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; }
  .portfolio-item { width: 380px; height: 285px; }
  .contact > div { gap: 100px; }
}

/* Extra large desktop (1600px+) */
@media (min-width: 1600px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .projekti-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .projekat-card { height: 100%; display: flex; flex-direction: column; }
  .projekat-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #1a1a1a; }
  .portfolio-item { width: 400px; height: 300px; }
  .contact > div { gap: 100px; }
}

/* Ensure all sections fill full width without white space */
section {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.gallery {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

footer {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
