@media (max-width: 1024px) {
  .bg-video {
    width: 110%;
    height: 110%;
  }
    .logo {
    top: 0;
  }
   .navbar {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 2%;
    height: auto;
  }
  .nav-links {
    margin-top: 100px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  #schedule {
    margin: 0;
    width: 100%;
    max-width: 280px;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 140px 5% 200px;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .hero-left h1 {
    font-size: 3.5rem;
  }

  .hero-left h2 {
    font-size: 2.3rem;
  }

  .hero-left p {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-right {
    max-width: 460px;
    height: auto;
    padding: 40px 30px;
  }

  .hero-stats {
    width: 100%;
    flex-wrap: wrap;
    gap: 25px;
    padding: 25px;
  }

  .hero-stats div {
    min-width: 140px;
  }

  .tech-stack {
    width: 100%;
  }

  #services {
    height: auto;
    padding-bottom: 60px;
  }

  .title-text {
    font-size: 2.8rem;
  }

  .dvider {
    width: 25%;
  }

  .container-boxes {
    flex-direction: column;
    max-width: 640px;
  }

  .box {
    width: 100%;
  }

  .main-box h2 {
    font-size: 2rem;
  }

  .hosting-container {
    padding: 20px;
  }

  .paketi {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .paket {
    padding: 28px;
  }

  .why-choose-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .left-side,
  .right-side {
    margin: 0 auto;
    width: min(420px, 92%);
  }

  .left-side {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  #zasto-mi {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    padding: 120px 5% 90px;
    text-align: center;
  }

  .rhombus {
    width: 340px;
    height: 340px;
    max-width: 82vw;
    max-height: 82vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .rhombus, 
  .right-side {
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .left-side img {
    width: 88%;
    max-width: 300px;
    position: relative;
    bottom: 0;
    margin-left: auto;
    margin-right: auto;
    transform: none;
    z-index: 2;
  }

  .right-side {
    bottom: 0;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .section-subtitle {
    margin-bottom: 30px;
  }

  #kontakt {
    margin-top: 80px !important;
    padding-top: 30px !important;
  }

  .contact-container {
    flex-direction: column;
    padding: 0 20px;
  }

  .contact-info {
    width: 100% !important;
    margin: 0 auto !important;
    border-radius: 20px;
    flex-direction: column !important;
    min-height: auto !important;
  }

  .contact-left {
    width: 100% !important;
    padding: 25px !important;
  }
 
  .contact-data {
    width: 100% !important;
    height: auto !important;
    font-size: 1.1rem !important;
    padding: 0 !important;
    margin: 20px 0 !important;
  }

  .contact-data div {
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .contact-right input,
  .contact-right textarea {
    width: 100% !important;
    margin-top: 15px;
  }

  #submit {
    width: 100% !important;
    margin: 25px 0 0 !important;
  }

  .contact-container::before {
    display: none !important;
  }
}

/* TABLET */
@media (max-width: 992px) {
    .logo {
    top: 0;
  }
    .bg-video {
    width: 110%;
    height: 110%;
  }
    .paket {
        width: 100%;
        min-height: auto;
        padding: 25px;
    }
    .hosting-container li {
      flex-direction: column;
      width: 100%;
      display: flex;
    }
    .paketi {
        gap: 20px;
    }

    .paket.standard,
    .paket.highlight {
        transform: scale(1);
    }

    #services .box button {
      width: 90%;
    }
    
}

@media (max-width: 1366px) {
    .about-right {
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    .why-choose-us {
      margin-top: 150px;
    }

    .paketi {
      gap: 32px;
      align-items: center;
    }
    .paket h2 {
      width: max-content;
      margin-left: auto;
      margin-right: auto;
    }
    .contact-right form {
      margin-top: 200px;
    }
}

@media (max-width: 1440px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 20px;
  }
  .bg-video {
    width: 100%;
    height: 100%;
  }
  #zasto-mi {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    padding: 140px 5% 110px;
  }

  .why-choose-container {
    align-items: center;
    gap: 72px;
  }

  .left-side {
    width: min(420px, 65vw);
    margin: 40px auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .right-side {
    margin: 0 auto;
    max-width: 640px;
  }
    .rhombus {
    width: 320px;
    height: 320px;
    max-width: 70vw;
    max-height: 70vw;
    transform: translate(-50%, -50%) rotate(45deg);
    top: 0%;
    left: 10%;
    right: auto;
  }
  .about-right {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }


.left-side img {
  position: relative;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
  transform: none;
  width: 100%;
  max-width: 420px;
  left: 0%;
  right: 0%;
}
  
    .about-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .about-right {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    }
}

@media (max-width: 680px) {
  .bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero {
    height: auto;
    min-height: 100vh;
  }

    .about-wrapper {
        padding: 110px 0 80px;
    }

    .section-lead {
        padding: 0 18px;
    }

    .about-container {
        padding: 26px;
    }


    .about-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .about-right {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
  .bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
  }
  .hero {
    height: auto;
    min-height: 100vh;
  }


  .logo {
    top: 0;
  }
  
  #hamburgerMenu {
    display: flex;
    margin-left: auto;
    position: relative;
    bottom: 100px;
    padding: 20px;
  }
  .navbar {
    padding: 15px 10px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .tech-stack {
    height: auto;
    padding-bottom: 100px;
  }
  .tech-stack-container {
    width: 90%;
    margin-left: auto;
    margin-right: auto;

  }
.navbar {
  position: relative;
}

#navLinks {
  display: none;
  left: 0;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

#navLinks.active {
  display: flex;
  justify-content: center;
}
  #services .main-box button {
    max-width: 90%;
  }

  #zasto-mi {
    padding: 90px 5% 80px;
    margin-top: 10em;
    text-align: center;
  }

  .why-choose-container {
    gap: 24px;
    text-align: center;
    align-items: center;
  }

  .rhombus {
    width: 200px;
    height: 200px;
    max-width: 82vw;
    max-height: 82vw;
    transform: translate(-50%, -50%) rotate(45deg);
    top: 0%;
    left: 0%;
    left: auto;
    right: auto;
  }

  .rhombus{
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .left-side img {
    position: relative;
    bottom: 0;
    right: 0;
    width: 82%;
    max-width: 240px;
    margin: 0 auto;
  }

 .paket {
        width: 100%;
        padding: 25px;
    }
  

  #schedule {
    max-width: none;
  }

  .hero {
    padding: 110px 20px 160px;
  }

  .hero-left h1 {
    font-size: 2.8rem;
  }

  .hero-left h2 {
    padding-top: 20px;
    font-size: 32px !important;
  }

  .hero-left p {
    text-align: center;
    align-items: center

  }

  .hero-btns {
    flex-direction: column;
    display: flex;
    width: 100%;
  }

  .hero-btns a {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  .hero-left h2 {
    font-size: 28px;
  }
  .hero-stats h3 {
    font-size: 1.6rem;
  }

  .container-boxes {
    width: 100%;
    padding: 0 15px;
  }
  .box {
    flex: auto;
  }
  .main-box h2 {
    font-size: 1.7rem;
  }

  .main-box p {
    font-size: 1rem;
  }

  .main-box button {
    width: 100%;
  }

  .title-text {
    font-size: 2.4rem;
  }


  .paket {
    padding: 24px;
    position: relative;
  }
  .paket li {
    font-size: 2rem;

  }

  .paketi ul li{
    margin: 10px 0;

  } 
  .paket.standard h2 {
    text-align: center;
  }

}
  .packages {
    position: relative;
    bottom: auto;
    margin-top: clamp(42px, 10vw, 80px);
  }

  .features-grid {
    gap: 15px;
    width: 100%;
    margin-left: 0;
  }

  .feature-box h2 {
    font-size: 1.6rem;
  }

  .feature-box p {
    font-size: 1rem;
  }

  .contact-info {
    width: 80%;
    border-radius: 30px;
    margin-top: 20px !important;
  }

  .contact-left,
  .contact-right {
    padding: 30px 20px;
  }
  .contact-right {
    width: 95%;
    margin-left:  auto;
    margin-right: auto;
  }
  .contact-data {
    font-size: 1.2rem;
  }

  .contact-data-phone,
  .contact-data-email,
  .contact-data-ig {
    align-items: flex-start;
    gap: 6px;
  }

  .contact-right input,
  .contact-right textarea {
    width: 100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }


  #submit {
    width: 100%;
    margin: 30px 0 0;
  }


@media (max-width: 480px) {
  .hero {
    padding: 80px 15px 120px;
  }

  .hero-left h1 {
    font-size: 2.2rem;
  }

  .hero-left h2 {
    font-size: 1.5rem;
  }

  .hero-right {
    padding: 24px 20px;
  }

  .hero-stats {
    padding: 15px;
  }

  .hero-stats div {
    width: 100%;
  }

  .title-text {
    font-size: 2rem;
  }

  .box {
    padding: 15px;
  }

  .paket {
    padding: 20px 18px;
  }

  .left-side,
  .right-side {
    width: 100%;
    margin: 20px auto;
  }

  .contact-left h2 {
    font-size: 1.8rem;
  }

  .contact-data {
    font-size: 1rem;
  }

  .paket {
        width: 100%;
        padding: 20px;
        border-radius: 15px;
    }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


.blur-accent, .blur-accent-right {
  max-width: 60vw;
  max-height: 60vw;
  left: 0;
  right: 0;
}

}

@media (max-width: 1024px) {
  .hero, .about-container, .contact-info, .paketi, .container-boxes {
    max-width: 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;

  }

  .logo {
    top: 0;
  }

  .left-side, .right-side {
    margin: 0 auto !important;
    width: 100% !important;
  }

  .hero-right {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
  }
}


@media (max-width: 420px) {
  html, body {
    -webkit-text-size-adjust: 100%;
  }
  .hero-left h1, .hero-left h2 {
    word-break: break-word;
  }

    .paket h2 {
        font-size: 20px;
        text-align: center;
        align-items: center;
    }
    .paket .cijena {
      font-size: 22px;
    }
    .cijena {
        font-size: 18px;
    }

    .paket ul li {
        font-size: 14.5px;
    }
    .paketi {
        width: max-content;
    }
    .paket {
      width: max-content;
    }

  }

@media (max-width: 1024px) {
  .packages {
    width: 100%;
  }

  .hosting-container,
  .paketi {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .paketi {
    gap: 34px;
  }

  .paket {
    width: 95% !important;
    max-width: 95% !important;
    margin-left: auto;
    margin-right: auto;
    min-height: auto;
    padding: 32px 26px;
  }

  .paket h2 {
    font-size: 2.35rem;
    line-height: 1.15;
    text-align: center;
    width: 100%;
  }

  .paket h3 {
    font-size: 1.25rem;
    line-height: 1.45;
  }

  .paket .cijena,
  .cijena {
    font-size: 2.15rem;
  }

  .paket ul li,
  .hosting-container li {
    font-size: 1.35rem;
    line-height: 1.4;
  }

  #packageBtn {
    width: 100%;
    max-width: 360px;
    font-size: 1.08rem;
    padding: 16px 18px;
  }
}

@media (max-width: 600px) {
  .hosting-container {
    padding-left: 0;
    padding-right: 0;
  }

  .paket {
    border-radius: 22px;
    padding: 30px 20px;
  }

  .paket h2 {
    font-size: 2rem;
  }

  .paket h3 {
    font-size: 1.12rem;
  }

  .paket .cijena,
  .cijena {
    font-size: 1.9rem;
  }

  .paket ul li,
  .hosting-container li {
    font-size: 1.18rem;
  }
}

@media (min-width: 901px) {
  .footer-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(32px, 4vw, 76px);
    text-align: left;
  }

  .footer-brand-col {
    flex: 1.05 1 260px;
    align-items: center;
    text-align: center;
  }

  .footer-links-col {
    flex: 0.7 1 150px;
  }

  .contact-col {
    flex: 1.25 1 360px;
  }

  .footer-cta-col {
    flex: 0.9 1 260px;
  }
}

@media (max-width: 1024px) {
  #navBar.navbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
  }

  #navBar .logo,
  .logo {
    flex: 0 0 auto;
    top: 0;
  }

  #navBar .logo img,
  .logo img {
    width: 170px;
  }

  #hamburgerMenu {
    bottom: auto;
    top: 0;
    margin-left: auto;
    padding: 10px;
    position: relative;
  }

  #navLinks {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  #navBar.navbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    padding: 16px 18px;
  }

  #navBar .logo,
  .logo {
    grid-column: 2;
    justify-self: center;
  }

  #hamburgerMenu {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
  }

  #navLinks {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-top: 18px;
    padding: 20px 0 6px;
    width: 100%;
  }

  :root[data-theme="dark"] #navLinks {
    background: transparent;
  }

  #navLinks.active {
    display: flex;
  }

  #navLinks li {
    width: 100%;
  }

  #navLinks a,
  #navLinks .theme-toggle {
    justify-content: center;
    width: 100%;
    font-size: 19px;
  }
}

@media (max-width: 420px) {
  #navBar .logo img,
  .logo img {
    width: 150px;
  }

  #navBar.navbar {
    padding: 14px;
  }
}

/* Other responsive styles */

@media (max-width: 1180px) {
  .projects-toolbar {
    justify-content: flex-start;
    margin: 0 0 28px;
  }

  .featured-project {
    grid-template-columns: 1fr;
  }

  .project-preview {
    min-height: 460px;
  }
}

@media (max-width: 900px) {
  .projects-section {
    padding: 90px 0 110px;
  }

  .projects-shell {
    width: min(100% - 34px, 720px);
  }

  .project-cards {
    grid-template-columns: 1fr;
  }

  .project-stats {
    grid-template-columns: 1fr;
  }

  .project-card-visual {
    min-height: 190px;
  }
}

@media (max-width: 620px) {
  .projects-heading h2 {
    font-size: 2.45rem;
  }

  .projects-toolbar {
    gap: 8px;
  }

  .project-filter {
    flex: 1 1 calc(50% - 8px);
    padding-inline: 10px;
  }

  .featured-project {
    padding: 16px;
    border-radius: 22px;
  }

  .project-preview {
    min-height: 300px;
  }

  .project-preview::before {
    inset: 6%;
    border-radius: 22px;
  }

  .preview-desktop {
    left: 7%;
    top: 14%;
    width: 64%;
    min-height: 0;
    padding: 14px;
  }

  .project-screenshot-card {
    width: 66%;
    min-height: 0;
    padding: 0;
    border-radius: 16px;
  }

  .preview-grid {
    gap: 8px;
    margin-top: 30px;
  }

  .preview-grid span {
    min-height: 58px;
  }

  .preview-mobile {
    right: 6%;
    bottom: 10%;
    width: 30%;
    min-width: 96px;
    max-width: 142px;
    padding: 0;
    aspect-ratio: 373 / 669;
  }

  .project-mobile-shot {
    border-radius: 20px;
  }

  .preview-mobile::before {
    border-radius: 22px;
  }

  .project-actions a {
    width: 100%;
  }

  .project-slider-controls {
    margin-top: 18px;
  }

  .project-slider-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .project-preview {
    min-height: 260px;
    border-radius: 18px;
  }

  .project-preview::before {
    inset: 7%;
    border-radius: 18px;
  }

  .project-screenshot-card {
    left: 8%;
    top: 16%;
    width: 62%;
    border-radius: 14px;
  }

  .preview-mobile {
    right: 7%;
    bottom: 12%;
    width: 30%;
    min-width: 86px;
    max-width: 112px;
    padding: 0;
    aspect-ratio: 373 / 669;
  }

  .project-mobile-shot {
    border-radius: 16px;
  }

  .preview-mobile::before {
    border-radius: 18px;
  }

}

@media (max-width: 900px) {
  .section-heading,
  .projects-heading.section-heading {
    width: min(100% - 34px, 720px);
    margin-bottom: 38px;
  }

  #services h1.title-text,
  .title-text,
  .section-heading .title-text,
  .projects-heading.section-heading h2 {
    font-size: clamp(2.35rem, 11vw, 4.2rem);
  }
}
@media (max-width: 700px) {
  .contact-left .contact-intro {
    font-size: 1.45rem;
  }

  .contact-data-card {
    padding: 18px;
    gap: 16px;
  }

  .contact-data-icon {
    width: 52px;
    height: 52px;
  }

  .contact-data-text strong {
    font-size: 1rem;
  }

  .contact-data-text span {
    font-size: 0.95rem;
  }
}
@media (max-width: 700px) {
  .contact-info::after {
    display: none;
  }

  .form-heading {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .theme-toggle {
    margin-left: 0;
    margin-right: 8px;
    min-width: 48px;
    width: 48px;
    height: 48px;
    padding: 0;
  }

  .theme-toggle span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stats::after,
  .tech-stack-container::after,
  .btn-primary::after,
  .btn-outline::after,
  #packageBtn::after,
  #submit::after,
  .main-box button::after {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 54px 46px;
  }

  .footer-brand-col {
    align-items: flex-start;
    text-align: left;
  }
}


@media (max-width: 700px) {
  .footer {
    padding-top: 56px;
    border-radius: 0 0 24px 24px;
  }

  .footer-container {
    width: min(100% - 34px, 520px);
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-brand-col,
  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    font-size: 2rem;
  }

  .footer-col h3 {
    font-size: 1.35rem;
    margin-bottom: 24px;
  }

  .footer-col ul li a {
    justify-content: center;
  }

  .contact-card {
    width: 100%;
    padding: 18px;
    text-align: left;
  }

  .contact-icon {
    width: 52px;
    height: 52px;
  }

  .footer-contact-info span {
    font-size: 0.95rem;
  }

  .footer-btn {
    width: 100%;
    min-width: 0;
  }

  .footer-bottom {
    margin-top: 52px;
    padding: 24px 18px 30px;
  }
}

/* Smaller laptops */
@media (min-width: 1025px) and (max-width: 1366px) {
  html,
  body {
    overflow-x: hidden;
  }

  #navBar.navbar,
  .navbar {
    gap: 18px;
    padding: 16px clamp(22px, 3vw, 36px);
  }

  #navBar .logo,
  .logo {
    flex: 0 0 165px;
  }

  #navBar .logo img,
  .logo img {
    width: 165px;
  }

  .navbar ul,
  #navLinks {
    gap: clamp(14px, 1.5vw, 22px);
  }

  .navbar a {
    font-size: clamp(16px, 1.35vw, 18px);
  }

  .theme-toggle {
    min-width: 78px;
    padding: 7px 10px;
    font-size: 14px;
  }

  .hero {
    min-height: calc(100vh - 76px);
    padding: 70px 4vw 110px;
    gap: 36px;
    flex-wrap: nowrap;
  }

  .hero-left {
    max-width: min(58vw, 720px);
  }

  .hero-left h3 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.15;
  }

  .hero-left h3 span {
    font-size: inherit;
  }

  .hero-left h2 {
    font-size: clamp(2rem, 2.8vw, 2.5rem);
    line-height: 1.18;
  }

  .hero-left h2 i {
    font-size: 0.95em;
  }

  .hero-left p {
    font-size: 1.08rem;
  }

  .hero-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero-right {
    width: min(31vw, 360px);
    height: auto;
    min-height: 330px;
    padding: 24px 20px;
  }

  .tech-label {
    top: 12px;
    text-align: center;
  }

  .tech-stack {
    gap: 14px;
  }

  .tech-stack-container {
    top: 18px;
    width: 100%;
    max-width: 300px;
    padding: 9px 18px;
  }

  .hero-stats {
    gap: 18px;
    margin-left: 0;
    margin-right: 0;
    padding: 18px 22px;
    border-radius: 28px;
  }

  .hero-stats h3 {
    font-size: clamp(1.1rem, 1.65vw, 1.35rem);
  }

  .hero-stats p {
    font-size: 0.92rem;
  }

  #services {
    height: auto;
    min-height: auto;
    margin-top: 70px;
    padding: 70px 0 90px;
  }

  .section-heading,
  .projects-heading.section-heading {
    width: min(1180px, calc(100% - 56px));
  }

  #services h1.title-text,
  .title-text,
  .section-heading .title-text,
  .projects-heading.section-heading h2 {
    font-size: clamp(2.4rem, 3.2vw, 3.4rem);
  }

  .container-boxes {
    width: min(1180px, calc(100% - 56px));
    gap: 18px;
    align-items: stretch;
  }

  .box {
    flex: 1 1 calc(33.333% - 18px);
    min-width: 0;
    padding: 6px;
  }

  .main-box h2 {
    padding: 18px 12px 12px;
    font-size: clamp(1.45rem, 2.1vw, 1.85rem);
    line-height: 1.15;
  }

  .main-box p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .main-box i {
    width: 66px;
    height: 66px;
    font-size: 2.3rem;
  }

  .projects-shell {
    width: min(1180px, calc(100% - 56px));
  }

  .featured-project {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  }

  .project-preview {
    min-height: 430px;
  }

  #zasto-mi,
  .why-choose-us {
    bottom: 0;
    margin-top: 80px;
    padding: 90px 4vw 95px;
  }

  .why-choose-container {
    gap: 44px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .left-side {
    width: min(34vw, 380px);
    margin: 0;
  }

  .left-side img {
    max-width: 330px;
  }

  .rhombus {
    width: 300px;
    height: 300px;
    top: 12%;
    left: 14%;
  }

  .right-side {
    bottom: 0;
    max-width: 650px;
    margin: 0;
    padding-top: 0;
  }

  .section-title {
    font-size: clamp(2rem, 2.8vw, 2.5rem);
  }

  .section-subtitle {
    margin-bottom: 34px;
    font-size: 1.08rem;
  }

  .features-grid {
    gap: 16px;
    width: calc(100% - 28px);
    margin-left: 28px;
  }

  .feature-box {
    padding: 20px;
  }

  .feature-box h2 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
  }

  .feature-box p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .packages {
    bottom: auto;
    margin-top: 90px;
    padding: 70px 0 90px;
  }

  .hosting-container {
    width: min(1220px, calc(100% - 56px));
    padding: 0;
  }

  .paketi {
    gap: 32px;
    align-items: stretch;
  }

  .paket,
  .paket.standard,
  .paket.highlight {
    width: calc((100% - 64px) / 3);
    max-width: none;
    min-height: auto;
    padding: 24px 20px;
    border-radius: 24px;
    transform: none;
  }

  .paket h2 {
    width: 100%;
    margin-bottom: 24px;
    text-align: center;
    font-size: clamp(1.7rem, 2.2vw, 2.1rem);
    line-height: 1.14;
  }

  .paket h3 {
    font-size: 1rem;
    line-height: 1.45;
  }

  .paket .cijena,
  .cijena {
    font-size: clamp(1.6rem, 2.2vw, 1.95rem);
  }

  .paket ul li,
  .hosting-container li {
    bottom: 22px;
    padding-left: 22px;
    font-size: 0.98rem;
    line-height: 1.38;
  }

  #packageBtn {
    width: 100%;
    max-width: 300px;
    padding: 14px 16px;
    font-size: 0.98rem;
  }

  .about-wrapper {
    margin-top: 80px;
  }

  .about-container {
    max-width: min(1180px, calc(100% - 56px));
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    gap: 2rem;
    padding: 36px;
  }

  .about-left h3 {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  }

  .about-left p,
  .about-list li,
  .skill-box p {
    font-size: 1rem;
  }

  .about-right {
    grid-template-columns: 1fr;
  }

  .skill-box {
    min-height: auto;
    padding: 20px;
  }

  .skill-box h4 {
    font-size: clamp(1.45rem, 2.1vw, 1.8rem);
  }

  #contact,
  .contact {
    margin-top: 90px;
  }

  .contact-container {
    min-height: auto;
  }

  .contact-info {
    width: min(1120px, calc(100% - 56px));
    min-height: 560px;
    margin-top: 28px !important;
  }

  .contact-left,
  .contact-right {
    padding: 42px;
  }

  .contact-left .contact-intro {
    font-size: clamp(1.9rem, 2.7vw, 2.45rem);
    line-height: 1.18;
  }

  .contact-data {
    margin: 8px 0;
    padding: 0;
    font-size: 1.2rem;
  }

  .contact-right form {
    margin-top: 0;
  }

  .footer-container {
    width: min(1180px, calc(100% - 56px));
    gap: 34px;
  }

  .footer-btn {
    min-width: 230px;
  }
}

@media (max-width: 900px) {
  #services .section-heading {
    position: static;
    top: auto;
    width: calc(100% - 34px);
    max-width: 720px;
    margin: 0 auto 38px;
    padding: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  #services {
    margin-top: 56px;
    padding: 56px 0 72px;
    overflow: hidden;
  }

  #services .section-heading {
    position: static;
    top: auto;
    width: calc(100% - 32px);
    max-width: 100%;
    margin: 0 auto 34px;
    padding: 0;
    box-sizing: border-box;
  }

  #services .section-kicker {
    max-width: 100%;
    gap: 10px;
    margin-bottom: 14px;
    font-size: clamp(0.78rem, 3.5vw, 0.9rem);
    line-height: 1.2;
    white-space: normal;
  }

  #services .section-kicker::before {
    width: 24px;
  }

  #services h1.title-text,
  #services .section-heading .title-text {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.35rem, 15vw, 3.35rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  #services .container-boxes {
    width: calc(100% - 32px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 380px) {
  #services .section-heading,
  #services .container-boxes {
    width: calc(100% - 24px) !important;
  }

  #services h1.title-text,
  #services .section-heading .title-text {
    font-size: clamp(2.1rem, 14vw, 2.8rem);
  }
}

@media (max-width: 1180px) {
  #navBar.navbar {
    width: calc(100% - 28px);
    gap: 14px;
    padding: 12px 14px;
  }

  #navBar .logo img,
  .logo img {
    width: 158px;
  }

  #navLinks {
    gap: 4px;
  }

  #navLinks a {
    padding: 0 10px;
    font-size: 0.88rem;
  }

  #navLinks .theme-toggle {
    min-width: 78px;
    padding: 9px 11px;
    font-size: 0.84rem;
  }
}

@media (max-width: 900px) {
  #navBar.navbar {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 10px;
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 22px;
    position: sticky;
    top: 10px;
    z-index: 100;
  }

  #navBar .logo,
  .logo {
    grid-column: 2;
    justify-self: center;
    padding: 4px 8px;
  }

  #navBar .logo img,
  .logo img {
    width: 150px;
  }

  #hamburgerMenu {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
    margin: 0;
    padding: 0;
    position: relative;
    inset: auto;
  }

  #navLinks {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 8px 0 0;
    padding: 12px;
    gap: 8px;
    border: 1px solid rgba(91, 33, 182, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
  }

  :root[data-theme="dark"] #navLinks {
    border-color: rgba(216, 180, 254, 0.16);
    background: rgba(255, 255, 255, 0.06);
  }

  #navLinks.active {
    display: flex;
  }

  #navLinks li {
    width: 100%;
  }

  #navLinks a,
  #navLinks .theme-toggle {
    width: 100%;
    min-height: 46px;
    height: auto;
    padding: 0 14px;
    justify-content: center;
    font-size: 0.98rem;
  }

  #navLinks .theme-toggle {
    margin: 2px 0 0;
    border-radius: 14px;
  }

  #navLinks .theme-toggle span {
    display: inline;
  }
}

@media (max-width: 420px) {
  #navBar.navbar {
    width: calc(100% - 18px);
    grid-template-columns: 42px 1fr 42px;
    padding: 9px 10px;
    border-radius: 20px;
  }

  #hamburgerMenu {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.7rem;
  }

  #navBar .logo img,
  .logo img {
    width: 136px;
  }
}
