/* RESPONSIVE STYLES */
@media (max-width: 600px) {
  .card-wrapper { 
    margin: 20px; 
    padding: 20px; 
    box-sizing: border-box; 
    animation: fire-glow-card-mobile 3s ease-in-out infinite !important;
    -webkit-animation: fire-glow-card-mobile 3s ease-in-out infinite !important;
    border: 3px solid #BFA14A !important;
  }
  
  h1 {
    font-size: 2.8rem;
    letter-spacing: 1px;
    text-align: center !important;
  }
  
  a { 
    margin-left: 10px; 
    margin-right: 10px; 
    font-size: 1.2rem; 
    line-height: 1.6; 
    padding: 1.2rem; 
  }
  
  .phone-number-link { 
    margin-left: 0; 
    margin-right: 0; 
    font-size: 1.6rem; 
  }
  
  #phone-link-text {
    font-size: 2.2rem; 
    animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    -webkit-animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 700;
    width: 100%;
  }
  
  .subtitle { 
    font-size: 1.3rem;
    text-align: center !important; 
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    padding: 0 10px;
  }
  
  .slogan { 
    font-size: 1.15rem; 
    text-align: center !important; 
  }
  
  .two-button-row > .main-link-with-subtitle .main-link-text {
    font-size: 1.4rem; 
  }
  
  .two-button-row > .main-link-with-subtitle .link-subtitle {
    font-size: 0.8rem; 
  }

  .icon-group { 
    gap: 10px; 
  } 
  
  .icon-group a { 
    width: 78px;
    height: 78px;
    aspect-ratio: 1/1; 
    margin: 2px; 
  }
  
  #icon-row-1 a {
    flex-basis: 40%;
    max-width: 150px;
  }
  
  #icon-row-2 a {
    flex-basis: 30%;
    max-width: 100px;
  }

  .icon-group a i { 
    font-size: 1.5rem; 
  }
  
  .icon-label { 
    font-size: 0.5rem; 
    margin-top: 5px;
  }
  
  .lang-switcher button {
    font-size: 1rem;
  }
  
  .share-buttons {
    gap: 15px;
  }
  
  .share-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .footer {
    font-size: 1.4rem;
    margin-top: 2rem;
    text-align: center !important;
  }
  
  .footer img {
    width: 320px;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  
  footer {
    font-size: 1.3rem !important; 
    padding: 1rem 5px !important; 
    text-align: center !important;
  }

  .smoke-effect-button {
    animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    -webkit-animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
  }

  .share-title {
    font-size: 1.8rem !important;
    animation: white-flicker 2s linear infinite !important;
    -webkit-animation: white-flicker 2s linear infinite !important;
    color: #FFFFFF !important;
    text-shadow: 
      0 0 10px #fff,
      0 0 20px #fff,
      0 0 30px #fff,
      0 0 40px #ffffff !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.4rem;
    letter-spacing: 0.5px;
    text-align: center !important;
  }
  
  .card-wrapper {
    margin: 15px;
    padding: 15px;
    animation: fire-glow-card-mobile 3s ease-in-out infinite !important;
    -webkit-animation: fire-glow-card-mobile 3s ease-in-out infinite !important;
    border: 3px solid #BFA14A !important;
  }
  
  a {
    font-size: 1.1rem;
    padding: 1rem;
    margin-left: 5px;
    margin-right: 5px;
  }
  
  .phone-number-link {
    font-size: 1.4rem;
  }
  
  #phone-link-text {
    font-size: 1.8rem;
    animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    -webkit-animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 700;
    width: 100%;
  }
  
  .subtitle {
    font-size: 1.2rem;
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    padding: 0 10px;
  }
  
  .slogan {
    font-size: 1rem;
    text-align: center !important;
  }
  
  .two-button-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .two-button-row > a {
    min-width: 100%;
  }
  
  .icon-group-wrapper {
    gap: 8px;
  }
  
  .icon-group a {
    width: 70px;
    height: 70px;
  }
  
  #icon-row-1 a {
    flex-basis: 45%;
    max-width: 140px;
  }
  
  #icon-row-2 a {
    flex-basis: 28%;
    max-width: 90px;
  }
  
  .icon-group a i {
    font-size: 1.3rem;
  }
  
  .icon-label {
    font-size: 0.45rem;
  }
  
  .lang-switcher {
    justify-content: center;
  }
  
  .lang-switcher button {
    font-size: 0.9rem;
    padding: 4px 3px;
  }
  
  .share-buttons {
    gap: 12px;
  }
  
  .share-btn {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
  
  .footer img {
    width: 280px;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  
  footer {
    font-size: 1.3rem !important;
    padding: 0.8rem 5px !important;
    text-align: center !important;
  }

  .smoke-effect-button {
    animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    -webkit-animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
  }

  .share-title {
    font-size: 1.6rem !important;
    animation: white-flicker 2s linear infinite !important;
    -webkit-animation: white-flicker 2s linear infinite !important;
    color: #FFFFFF !important;
    text-shadow: 
      0 0 8px #fff,
      0 0 16px #fff,
      0 0 24px #fff,
      0 0 32px #ffffff !important;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2rem;
    text-align: center !important;
  }
  
  .card-wrapper {
    margin: 10px;
    padding: 12px;
    animation: fire-glow-card-mobile 3s ease-in-out infinite !important;
    -webkit-animation: fire-glow-card-mobile 3s ease-in-out infinite !important;
    border: 3px solid #BFA14A !important;
  }
  
  a {
    font-size: 1rem;
    padding: 0.8rem;
  }
  
  .phone-number-link {
    font-size: 1.2rem;
  }
  
  #phone-link-text {
    font-size: 1.6rem;
    animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    -webkit-animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 700;
    width: 100%;
  }
  
  .subtitle {
    font-size: 1.1rem !important;
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    padding: 0 10px;
    letter-spacing: 0.5px;
  }
  
  .slogan {
    font-size: 0.9rem;
    text-align: center !important;
  }
  
  .main-link-with-subtitle .main-link-text {
    font-size: 1.1rem;
  }
  
  .main-link-with-subtitle .link-subtitle {
    font-size: 0.65rem;
  }
  
  .icon-group a {
    width: 65px;
    height: 65px;
  }
  
  .icon-group a i {
    font-size: 1.2rem;
  }
  
  .icon-label {
    font-size: 0.4rem;
    margin-top: 3px;
  }
  
  .lang-switcher button {
    font-size: 0.8rem;
    padding: 3px 2px;
  }
  
  .share-buttons {
    gap: 10px;
  }
  
  .share-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .footer {
    font-size: 1.3rem;
    text-align: center !important;
  }
  
  .footer img {
    width: 250px;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  
  footer {
    font-size: 0.75rem !important;
    text-align: center !important;
  }

  .smoke-effect-button {
    animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    -webkit-animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
  }

  .share-title {
    font-size: 1.4rem !important;
    animation: white-flicker 2s linear infinite !important;
    -webkit-animation: white-flicker 2s linear infinite !important;
    color: #FFFFFF !important;
    text-shadow: 
      0 0 6px #fff,
      0 0 12px #fff,
      0 0 18px #fff,
      0 0 24px #ffffff !important;
  }
}

/* PORAVNAVANJE "S POŠTOVANJEM" ULIJEVO NA MOBILNIMA */
@media (max-width: 768px) {
  .footer div[data-key="sincerely"] {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
    padding-left: 0 !important;
    float: none !important;
  }
  
  .footer {
    padding-left: 15px !important;
    box-sizing: border-box !important;
  }

  .headshot-wrapper {
    animation: pulse 2s infinite !important;
    -webkit-animation: pulse 2s infinite !important;
  }

  .card-wrapper {
    text-align: center;
  }
  
  h1, .subtitle, .slogan, .phone-wrapper, .icon-group-wrapper, .share-section, .footer {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .fire-text {
    -webkit-animation: fire-flicker-mobile 2s linear infinite !important;
    animation: fire-flicker-mobile 2s linear infinite !important;
  }
  
  #phone-link-text {
    animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    -webkit-animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 700;
    width: 100%;
  }

  .smoke-effect-button {
    animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    -webkit-animation: subtle-smoke-effect 3s ease-in-out infinite !important;
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
  }

  .card-wrapper::before,
  .card-wrapper::after {
    display: none !important;
  }

  .share-title {
    font-size: 1.7rem !important;
    animation: white-flicker 2s linear infinite !important;
    -webkit-animation: white-flicker 2s linear infinite !important;
    color: #FFFFFF !important;
    text-shadow: 
      0 0 10px #fff,
      0 0 20px #fff,
      0 0 30px #fff,
      0 0 40px #ffffff !important;
  }
}

/* POPRAVAK ZA VATRU NA TEKSTU "S POŠTOVANJEM" NA MOBILNIMA */
@media (max-width: 768px) {
  .footer div[data-key="sincerely"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: fire-flicker-mobile 2s linear infinite !important;
    -webkit-animation: fire-flicker-mobile 2s linear infinite !important;
    text-shadow: 
        0 0 8px #fff,
        0 0 16px #ffae42,
        0 0 24px #ff8000,
        0 0 32px #ff4500 !important;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 10px 0 !important;
  }
}

/* ==============================================
   NOVI POPRAVAK: VATRA ZA FOOTER BLOKOVE NA MOBILNIMA
   ============================================== */
@media (max-width: 768px) {
  /* Ovo pravilo osigurava da se .fire-text animacija 
     primijeni na elemente unutar ova tri bloka */
  .footer-stats p.fire-text,
  .footer-contact-links a.fire-text,
  .footer-services p.fire-text {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      animation: fire-flicker-mobile 2s linear infinite !important;
      -webkit-animation: fire-flicker-mobile 2s linear infinite !important;
      text-shadow: 
          0 0 8px #fff,
          0 0 16px #ffae42,
          0 0 24px #ff8000,
          0 0 32px #ff4500 !important;
  }
}
/* ==============================================
   KRAJ NOVOG POPRAVKA
   ============================================== */


/* CENTRIRANJE SLIKE I RAZMAK ZA NASLOV */
@media (max-width: 768px) {
  .headshot-link {
    float: none !important;
    margin: 1rem auto 1rem auto !important;
    text-align: center !important; 
    display: block !important;
    width: 180px !important;
    height: 180px !important;
    clear: both;
  }

  h1.fire-text {
    clear: both !important; 
    padding-top: 0 !important; 
    margin-top: 4.5rem !important; 
  }

  .card-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .headshot-link {
    width: 160px !important;
    height: 160px !important;
    margin: 0.5rem auto 0.5rem auto !important;
  }
}

@media (max-width: 360px) {
  .headshot-link {
    width: 140px !important;
    height: 140px !important;
  }
}

/* DODATAK: OSIGURAJ DA SE MOBILNE ANIMACIJE POKREĆU */
@media (max-width: 768px) {
  /* FORSIRAJ ANIMACIJE ZA SVE FIRE-TEXT ELEMENTE */
  .fire-text {
    animation: fire-flicker-mobile 2s linear infinite !important;
    -webkit-animation: fire-flicker-mobile 2s linear infinite !important;
  }
  
  /* FORSIRAJ CARD WRAPPER ANIMACIJU */
  .card-wrapper {
    animation: fire-glow-card-mobile 3s ease-in-out infinite !important;
    -webkit-animation: fire-glow-card-mobile 3s ease-in-out infinite !important;
  }
  
  /* FORSIRAJ HEADSHOT ANIMACIJU */
  .headshot-wrapper {
    animation: pulse 2s infinite !important;
    -webkit-animation: pulse 2s infinite !important;
  }
}