body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: rgb(0, 0, 0);
    min-height: 250vh;
    scroll-behavior: smooth;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #050505; 
        z-index: 1; /* hero iza projects */

}

#matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(1.5px); 
}


.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.397); 
    z-index: 5;
}


.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    top: 20%;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 24px;
}

.hero-cta-holder {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    animation: bounce 2s infinite;
}

.scroll-down span {
    color: white;
    font-size: 16px;
}

.scroll-down img {
    width: 24px;
    height: 24px;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
}

.projects{
    width: 95%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #333333;
    background-color: #222222;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.projects-header{
    display: flex;
    margin-bottom: 30px;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.projects-header-text{
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 50%;
}

.projects-header-text h1{
    color: #F28C28;
    font-size: 26px;
    margin-bottom: 10px;
}

.projects-header-text h2{
    color: white;
    font-size: 42px;
    margin-bottom: 10px;
    border-bottom: 2px solid #F28C28;
    width: fit-content;
    margin-top: 1px;
}

.projects-header-text p{
    color: #CCCCCC;
    font-size: 24px;
    margin-top: 0;
}


.projects-cards-holder{
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 10px;
}

.projects-cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.project-type-selection{
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    width: 70%;
}


.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    background: #111;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.project-card:hover img {
    transform: scale(1.07);
}

.project-card-overlay{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.9) 0%, rgba(255, 107, 53, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
}

.project-card:hover .project-card-overlay{
    opacity: 1;
}

.project-overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.project-card:hover .project-overlay-content {
    transform: translateY(0);
}

.project-title{
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-tags-overlay {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-tags-overlay .tag-overlay {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.project-card-tags {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    gap: 8px;
    padding: 10px;
    z-index: 2;
    flex-wrap: wrap;
}

.project-card-tags span {
    background: rgba(30, 30, 30, 0.103);
    border: 1px solid #F28C28;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #F28C28;
}

.projects-cta{
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.services{
    margin-top: 10vh;
}

.services-header{
    text-align: center;
    margin-bottom: 40px;
    width: 70%;
    margin: 0 auto;
}

.services-header h1{
    color: #F28C28;
    font-size: 32px;
    margin-bottom: 10px;
}
.services-header h2{
    color: white;
    font-size: 62px;
    margin-bottom: 10px;
    border-bottom: 2px solid #F28C28;
    width: fit-content;
    margin: 0 auto;
}
.services-header p{
    color: #CCCCCC;
    font-size: 18px;
    margin-top: 5px;
}


      .cards {
        --total-cards: 5;
        --card-height: calc(100% / var(--total-cards));

        display: flex;
        flex-direction: column;
        gap: 30px 0;
        width: 100%;
        max-width: 1350px;
        margin: 0 auto;
        
        view-timeline-name: --cardsContainer;
      }

      @keyframes change-color {
        to {
          background: yellow;
        }
      }

      .card {
        --target-brightness: 50%;
        transform-origin: top center;
        position: sticky;
        top: calc(90px + (var(--index) * 20px)); /* Dodao 80px offset za header */

        animation: stacking linear forwards;
        animation-timeline: --cardsContainer;
        animation-range-start: exit-crossing
          calc(var(--card-height) * (var(--index) - 1));
        animation-range-end: exit-crossing
          calc(var(--card-height) * var(--index));
      }

      #card-1 {
        --index: 1;
      }

      #card-2 {
        --index: 2;
      }

      #card-3 {
        --index: 3;
      }

        #card-4 {
            --index: 4;
        
        }
    #card-5 {
        --index: 5;
        --target-brightness: 100%;
        height: 400px;
        
    }

      @keyframes stacking {
        to {
          transform: scale(calc(1 - 0.1 * (var(--total-cards) - var(--index))));
          filter: brightness(var(--target-brightness));
        }
      }

      /* Mobile-friendly animacija bez scale efekta */
      @keyframes stacking-mobile {
        to {
          transform: translateY(calc(-10px * (var(--total-cards) - var(--index))));
          filter: brightness(var(--target-brightness));
        }
      }

      .card__inner {
        /* background: #333333; */
        border-radius: 14px;
        display: flex;
        overflow: clip;
        box-shadow: 0 25px 50px -12px hsla(265.3, 20%, 10%, 35%);
    }


    /* Style specifically for the fifth card's inner element */
    #card-5 .card__inner {
        background: linear-gradient(135deg, #F28C28 0%, #FF6B35 100%);
        color: #fff;
        box-shadow: 0 8px 32px rgba(242, 140, 40, 0.25);
        border: 2px solid #F28C28;
    }

      .card__image-container {
        display: flex;
        width: 40%;
        flex-shrink: 0;
        background: rgba(24, 24, 24, 0.959); 
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px);
      }

    .card__image {
      width: 30%;
      object-fit: contain;
      aspect-ratio: 1;
      margin: auto;
      display: block;
    }

      .card__content {
        padding: 40px 30px;
        display: flex;
        flex-direction: column;
        background-color: #333333;
      }

      .card__title {
        padding: 0;
        margin: 0;
        font-size: 60px;
        font-weight: 600;
        color: white;
        border-bottom: 2px solid #F28C28;
        width: fit-content;
      }

      .card__description {
        line-height: 1.4;
        font-size: 24px;
        color: #CCCCCC;
      }

      .spacer {
        height: 20vh;
      }

      .spacer--small {
        height: 10vh;
      }

.project-card-cta{
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.about-us{
    padding: 20px;
    background: rgba(24, 24, 24, 0.938); 
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px);
    border: 1px solid #333333;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 95%;
    margin: 0 auto;
    margin-bottom: 100px !important;
}

.about-us-header{
    margin-bottom: 30px;
}

.about-us-header h1{
    color: #F28C28;
    font-size: 26px;
    margin-bottom: 10px;
}

.about-us-header h2{
    margin-top: 0px;
    color: white;
    font-size: 42px;
    margin-bottom: 10px;
    border-bottom: 2px solid #F28C28;
    width: fit-content;
}

.about-us-content-holder{
    display: flex;
    gap: 20px;
    align-items: start;
    justify-content: space-between;
}

.about-us-text{
    color: #CCCCCC;
    font-size: 18px;
    width: 60%;
    line-height: 1;
}

.about-us-text p{
    margin-bottom: 15px;
    font-size: 20px ;
}

.about-us-cta{
    margin-top: 20px;
    width: fit-content;
}

.about-us-image-holder{
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-us-image-holder img{
    width: 65%;
   height: auto;    
}

.name-position-holder{
    text-align: center;
    border: 1px solid #333333;
    padding: 12px;
    border-radius: 10px;
    background-color: #111111;
    width: 90%;
}
.name-position-holder h3{
    color: #F28C28;
    font-size: 22px;
    margin-bottom: 5px;
    margin-top: 5px;
}
.name-position-holder span{
    color: #CCCCCC;
    font-size: 18px;
    font-style: italic;
}
/* ========== REVEAL ANIMACIJA ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========== MINI STATISTIKA ========== */
.about-mini-stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.mini-stat {
    text-align: left;
}

.mini-counter {
    font-size: 42px;
    font-weight: bold;
    color: #F28C28;
    text-shadow: 0 0 10px #F28C28;
}

/* ========== LOGO GRID ========== */
.about-mini-logos h3 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.mini-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.mini-logo-grid img {
    width: 160px;
    opacity: 0.4;
    transition: 0.3s;
}

.mini-logo-grid img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ========== ANIMACIJA SLIKE OSNIVAČA ========== */
.about-us-image-holder img {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: 0.8s ease;
}

.about-us-image-holder.show-img img {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.about-us-image-holder img:hover {
    /* transform: scale(1.05); */
    filter: drop-shadow(0 0 12px #F28C28);
}


.blogs{
    margin: 150px auto;
}

.blogs-header{
    text-align: center;
    margin-bottom: 40px;
}

.blogs-header h1{
    color: #F28C28;
    font-size: 32px;
    margin-bottom: 10px;
}

.blogs-header h2{
    color: white;
    font-size: 62px;
    margin-bottom: 10px;
    border-bottom: 2px solid #F28C28;
    width: fit-content;
    margin: 0 auto;
}

.blogs-header p{
    color: #CCCCCC;
    font-size: 18px;
    margin-top: 5px;
}

.blogs-cards-holder{
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.blogs-cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

.blog-card {
    position: relative;
    background: #111111;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #333333;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0px 32px rgba(242, 140, 40, 0.2);
    border-color: rgba(242, 140, 40, 0.5);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-card-date {
    color: #F28C28;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: #F28C28;
}

.blog-card-description {
    color: #CCCCCC;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.blog-card-read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F28C28;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-read-more {
    gap: 12px;
}

.blog-card-read-more svg {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-read-more svg {
    transform: translateX(4px);
}



.blogs-cta{
    margin: 30px auto;
    display: flex;
    justify-content: center;

}

.contact-us{
    padding: 20px;
    
    border:2px solid #F28C28;
    border-radius: 16px;
    background: rgba(24, 24, 24, 0.938); 
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 70%;
    margin: 0 auto ;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 100px !important;
}

.contact-us-content{
    /* text-align: center; */
    padding: 20px;
    width: 65%;
}

.contact-us-content h1{
    color: white;
    font-size: 42px;
    margin-bottom: 10px;
    border-bottom: 2px solid #F28C28;
    width: fit-content;
}

.contact-us-content p{
    color: #CCCCCC;
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-us-cta{
    margin-top: 50px;
    width: fit-content;
}

.contact-us-direct{
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-direction: column;
}

.contact-us-direct a{
    text-decoration: none;
    color:whitesmoke;
    font-size: 22px;
    transition: all 0.3s ease;
}

.contact-us-direct a:hover{
    color: #FFA040;
    transform: translateY(-3px);
}

.contact-us-direct-item{
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-us-direct-item img{
    width: 28px;
    height: 28px;
}

/* Mobile optimization */

@media screen and (max-width: 768px) {
    .hero-content {
        top: 25%;
    }
    .hero-content h1 {
        font-size: 32px;
        width: 90%;
        margin: 25px auto;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-content img{
        width: 250px;
        
    }

    .hero-content-cta{
        flex-direction: column;
        gap: 15px;
    }

    .scroll-down img{
        width: 20px;
        height: 20px;
    }

    .projects{
        width: 90%;
        padding: 10px;
        margin: 10px auto;
    }

    .projects-header{
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .projects-header-text{
        width: 100%;
        text-align: left;
    }

    .projects-header-text h2 {
        font-size: 32px;
    }

    .project-type-selection {
        width: 100%;
        flex-wrap: wrap;
    }

    .services-header{
        margin-bottom: 20px;
        width: 90%;
        margin: 0 auto;
    }

    .services-header h2 {
        font-size: 42px;
    }

    .services-header p{
        margin-top: 20px;
    }

    .cards{
        width: 95%!important;
    }

    .card {
        /* Unifikuj brightness sve kartice na mobilnom */
        --target-brightness: 85% !important;
        /* Koristi mobilnu animaciju umesto desktop */
        animation: stacking-mobile linear forwards !important;
        /* Smanji gap između kartica */
        top: calc(90px + (var(--index) * 15px)) !important;
    }

    .card__inner {
        flex-direction: column;
        transition: all 0.3s ease;
    }

    /* Touch-friendly efekat za service kartice na mobilnom */
    .card:active .card__inner,
    .card:focus .card__inner {
        transform: scale(1.02);
        box-shadow: 0 15px 35px rgba(242, 140, 40, 0.3);
        border: 2px solid rgba(242, 140, 40, 0.5);
    }

    /* Media query za touch uređaje */
    @media (hover: none) and (pointer: coarse) {
        .card {
            --target-brightness: 85% !important;
        }
        
        .card:active,
        .card:focus,
        .card.active {
            --target-brightness: 100% !important;
        }
    }

    .card__image-container {
        width: 100%;
        padding: 20px 0;
    }

    .card__title {
        font-size: 36px;
    }

    .card__description {
        font-size: 18px;
    }

    .spacer {
        height: 10vh;
    }

    .about-us{
        width: 85%;
        margin: 10px auto;
    }

    .about-us-cta{
    margin-top: 20px;
    width: 100%;
}

    .about-us-header h2{
        font-size: 32px;
    }

    .about-us-text p{
        font-size: 18px;
        width: 100%;
    }

    .about-us-content-holder {
        flex-direction: column;
        align-items: center;
    }

    .about-us-text, .about-us-image-holder {
        width: 100%;
    }

    

    .contact-us {
        flex-direction: column;
        gap: 20px;
        width: 85%;
    }

    .contact-us-content {
        width: 100%;
        text-align: left;
    }

    .contact-us-direct {
       align-items: flex-start;
       justify-content: flex-start;
       width: 100%;
    }

    /* Blog kartice mobilni stilovi */
    .blogs {
        margin: 100px auto;
    }

    .blogs-header {
        margin-bottom: 30px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .blogs-header h2 {
        font-size: 42px;
    }

    .blogs-header p {
        margin-top: 20px;
    }

    .blogs-cards {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 95%;
        margin: 0 auto;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 20px;
    }

    .blog-card-description {
        font-size: 15px;
    }
    
}









