.hero {
    position: relative;
    display: flex;
    justify-content: center; 
    align-items: center;    
    height: 91vh;  
    overflow: hidden;         
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 16px;
}

.hero-bg {
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(.45) saturate(1.1);
}

.hero h1 {
    font-size: clamp(28px, 7vw, 64px); 
    margin: 0 0 6px; 
    line-height: 1.05;
}

.neon {
    color: var(--neon); 
    text-shadow: 0 0 18px rgba(0,208,255,.6);
}

.hero p {
    color: var(--muted); 
    margin: 6px 0 18px;
}

.hero-actions {
    display: flex; 
    gap: 12px; 
    justify-content: center; 
    flex-wrap: wrap;
}

/* Inicijalno nevidljivo */
.hero-bg,
.hero h1,
.hero p,
.hero-actions,
.stats-strip,
.stats,
.cta-strip {
    opacity: 0;
}

/* Animacije pri .hero-loaded */
.hero-loaded .hero-bg {
    animation: fadeIn 1.2s ease-out forwards;
}

.hero-loaded .hero h1 {
    animation: slideDown 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

.hero-loaded .hero p {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 1s;
}

.hero-loaded .hero-actions {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 1.4s;
}



/* === About preview (standalone) === */
.about-preview{
    padding: clamp(36px, 6vw, 90px) 0;
    background:
      radial-gradient(800px 340px at 12% -10%, rgba(0,208,255,.10), transparent),
      linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  }
  .ap-wrap{ max-width: 1040px; margin: 0 auto; }
  .ap-head{ margin-bottom: 10px; }
  .ap-title{ margin: 0; }
  .ap-kicker{
    color: #9fb3ff;
    margin: 6px 0 0;
    letter-spacing: .3px;
  }
  
  .ap-body{ margin-top: 14px; }
  .ap-lead{
    font-size: clamp(15px, 1.05rem, 18px);
    line-height: 1.65;
    color: #cfe8ff;
    max-width: 70ch;
    margin: 0 0 18px;
    position: relative;
  }
  .ap-strong{ color:#fff; text-shadow: 0 0 10px rgba(0,208,255,.35); }
  
  .ap-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 3vw, 22px);
    margin: 14px 0 18px;
  }
  .ap-item{
    background: rgba(10,20,40,.9);
    border: 1px solid rgba(0,208,255,.25);
    border-radius: 14px;
    padding: 16px 16px 14px;
    box-shadow: 0 0 18px rgba(0,208,255,.08);
  }
  .ap-item h3{
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.05rem;
  }
  .ap-item p{ color:#c9d6ff; margin: 0; }
  
  .ap-btn{ margin-top: 6px; }
  
  /* mask reveal start state */
  [data-reveal-mask]{
    --ap-mask-radius: 10px;
    -webkit-mask: linear-gradient(#000 0 0) top/100% 0 no-repeat;
            mask: linear-gradient(#000 0 0) top/100% 0 no-repeat;
  }
  
  /* word-wrap shimmer baseline */
  [data-ww]{ position: relative; }
  [data-ww] h3,[data-ww] p{ opacity: 0; transform: translateY(8px); }
  
  
  

/* Features animacije – pojedinačne kartice */
.features > div {
    opacity: 0;
}

.hero-loaded .features > div:nth-child(1) {
    animation: slideFromLeft 0.9s ease-out forwards;
    animation-delay: 1.8s;
}

.hero-loaded .features > div:nth-child(2) {
    animation: slideFromRight 0.9s ease-out forwards;
    animation-delay: 2s;
}

.hero-loaded .features > div:nth-child(3) {
    animation: slideFromLeft 0.9s ease-out forwards;
    animation-delay: 2.2s;
}

/* Stats i CTA */
.hero-loaded .stats-strip {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 2.6s;
}

.hero-loaded .stats {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 2.8s;
}

.hero-loaded .cta-strip {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 3.2s;
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.based-usa {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
    color: white;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
}
/* ---------------------Features grid----------------------- */
.features {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 20px;
    padding: 2rem 1rem;
}

.features .card {
    background: rgba(10, 20, 40, 0.9); /* teget s laganom transparentnošću */
    border: 1px solid rgba(0, 208, 255, 0.3);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.features .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(0, 208, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.features .card:hover::before {
    left: 100%;
}

.features .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(0, 208, 255, 0.4);
    border-color: #00d0ff;
}

.features .card i,
.features .card img.truck-icon {
    font-size: 3rem;
    width: 135px;
    height: 60px;
    margin-bottom: 1rem;
    color: #00d0ff;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(0, 208, 255, 0.5));
}

.features .card:hover i,
.features .card:hover img.truck-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(0, 208, 255, 0.8));
}

.features .card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.features .card p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Specific for truck icon from file */
.truck-icon {
    display: inline-block;
    background-image: url('media/icons/car_neon.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/*---------------BLOG-------------*/



  
  .blog-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 auto 16px;
    max-width: 1120px;
  }
  
  .blog-title {
    margin: 0;
    font-size: clamp(22px, 3.2vw, 32px);
    line-height: 1.1;
  }
  
  .home-blog .btn.small {
    padding: 8px 12px;
    font-size: .9rem;
    border: 1px solid rgba(255,255,255,.18);
  }
  
  /* Grid 3 u liniji */
  .blog-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .blog-card {
    position: relative;
    background: rgba(10, 20, 40, 0.9);   /* teget */
    border: 1px solid rgba(0, 208, 255, .28);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  }
  
  .blog-card:hover {
    transform: translateY(-6px);
    border-color: #00d0ff;
    box-shadow: 0 0 18px rgba(0,208,255,.35);
  }
  
  .blog-thumb { aspect-ratio: 16 / 9; background: #071224; }
  .blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  
  .blog-body { padding: 14px 14px 12px; }
  .blog-meta { color: #9db0ca; font-size: .9rem; margin: 0 0 6px; }
  .blog-title-sm { color: #fff; font-size: 1.1rem; margin: 0 0 6px; }
  .blog-excerpt {
    color: #c6d6eb; font-size: .98rem; line-height: 1.45;
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  }
  
  .blog-actions { padding: 10px 14px 14px; }
  .blog-actions .btn.read {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 8px 12px;
    background: transparent; color: #fff; text-decoration: none;
    transition: border-color .2s, color .2s, box-shadow .2s;
  }
  .blog-actions .btn.read:hover { border-color: #00d0ff; color: #00d0ff; box-shadow: 0 0 12px rgba(0,208,255,.25); }
  
  .blog-empty { text-align: center; margin-top: 12px; color: #9fb3ff; }
  

  /* ===== Dealer Solutions (sneak peek) ===== */
.dealer-peek{
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 90px) 0;
    
  }
  /* diagonal wipe layer (animira GSAP-om) */
  .dealer-peek::before{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(135deg, rgba(0,208,255,.10), rgba(0,208,255,0) 60%);
    transform: translateX(-100%);
    pointer-events: none;
  }
  
  .dealer-wrap{
    display:grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(18px, 4vw, 44px);
    align-items: center;
  }
  
  .dealer-copy .dealer-title{
    margin: 0 0 6px;
  }
  .dealer-lead{
    color: #cfe8ff;
    margin: 6px 0 14px;
    max-width: 62ch;
  }
  .dealer-points{
    list-style: none; padding: 0; margin: 0 0 16px;
  }
  .dealer-points li{
    display:flex; align-items:center; gap:10px;
    color:#c9d6ff; margin:6px 0;
  }
  .dealer-points i{ color:#00d0ff; filter: drop-shadow(0 0 6px rgba(0,208,255,.4)); }
  
  .dealer-visual{
    position:relative; margin:0;
    border-radius: 16px;
    border:1px solid rgba(0,208,255,.28);
    background: rgba(10,20,40,.9);
    box-shadow: 0 0 20px rgba(0,208,255,.12);
    padding: clamp(12px, 2vw, 18px);
  }
  
  .dealer-truck{
    width: 100%; height: auto; display:block;
    filter: drop-shadow(0 0 10px rgba(0,208,255,.35));
  }
  .dealer-truck .stroke{
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000; /* start hidden – GSAP će “crtat” */
  }
  
  .dealer-chips{
    display:flex; flex-wrap: wrap; gap: 8px;
    margin-top: 10px;
  }
  .chip{
    display:inline-flex; align-items:center; gap:8px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #cfe8ff;
    background: rgba(0,208,255,.10);
    border: 1px solid rgba(0,208,255,.25);
    font-size: .9rem;
  }

  .dealer-illustration{
    width:100%;
    max-width:520px;
    display:block;
    margin-inline:auto;
    filter: drop-shadow(0 0 10px rgba(0,208,255,.25));
  }
  .dlr-wheel{ opacity:0; transform:scale(.8); }
  
  
 
  

  /* === Gallery preview === */

  .gp-wrap{ max-width: 1120px; margin: 0 auto; }
  .gp-head{ margin-bottom: 16px; }
  .gp-head .neon{ display:inline-block; margin-top: 46px; }
  .gp-kicker{ color:#9fb3ff; margin:6px 0 0; }
  
  .gp-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2.6vw, 18px);
  }
  .gp-item{
    position:relative;
    border-radius:14px;
    overflow:hidden;
    border:1px solid rgba(0,208,255,.28);
    background: rgba(10,20,40,.6);
    /* 3D tilt baseline */
    --rx: 0deg; --ry: 0deg; --s: 1;
    transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s));
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    box-shadow: 0 0 18px rgba(0,208,255,.08);
    isolation:isolate;
  }
  .gp-item img{
    display:block; width:100%; height:100%;
    aspect-ratio: 16 / 10; object-fit: cover;
    filter: saturate(1.05) contrast(1.02) brightness(.98);
    transition: transform .45s ease, filter .45s ease;
  }
  
  /* sheen + neon outline on hover */
  .gp-item::after{
    content:""; position:absolute; inset:-1px;
    background:
      radial-gradient(600px 140px at var(--mx,50%) var(--my,50%),
        rgba(0,208,255,.20), transparent 60%);
    mix-blend-mode: screen; opacity:0; transition:opacity .25s ease;
    pointer-events:none;
  }
  .gp-item:hover{
    --s: 1.02;
    border-color:#00d0ff;
    box-shadow: 0 0 22px rgba(0,208,255,.25);
  }
  .gp-item:hover img{ transform: scale(1.04); filter: saturate(1.12) brightness(1.02); }
  .gp-item:hover::after{ opacity:1; }
  
  .gp-btn{ margin-top: 16px; }
  
  
  
  

/* -----------------Stats-------------------- */


.stats {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
    text-align: center;
}

.stat {
    padding: 18px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,.08); 
    background: rgba(13,24,51,.6);
}

.num {
    font-size: 1.6rem; 
    font-weight: 800;
}

/* CTA */
.cta-strip {
    padding: 48px 20px; 
    text-align: center;
}


.gp-btn-wrap {
  grid-column: 1 / -1;          /* zauzmi cijeli red ispod svih kolona */
  display: flex;
  justify-content: center;      /* centriraj gumb horizontalno */
  margin-top: 1rem;
}

.gp-btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #00d0ff;
  background: transparent;
  border: 2px solid #00d0ff;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gp-btn:hover {
  color: #081027;
  background: #00d0ff;
  box-shadow: 0 0 18px rgba(0, 208, 255, 0.7);
  transform: translateY(-2px);
}



/* MEDIA QUERIES */
@media (max-width: 900px) {
    .features {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr; 
        gap: 10px;
    }

    .gp-grid{ grid-template-columns: repeat(2, 1fr); }
    .ap-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 980px){
    .dealer-wrap{ grid-template-columns: 1fr; }
    .dealer-visual{ order: -1; }
  }


    /* Responsive */
@media (max-width: 1024px) { 
.blog-grid { grid-template-columns: repeat(2, 1fr); } 

}
@media (max-width: 640px)  { 
    .blog-head { 
        flex-direction: column; 
        align-items: flex-start; 
    }

    .blog-grid { 
        grid-template-columns: 1fr; 
    }
    
    .gp-grid{ 
        grid-template-columns: 1fr; 
    } 
}