/* GOOGLE FONTOVI */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Marcellus&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+HR&display=swap');

/* FONT AWESOME */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');

/* BAZNI STILOVI */
body {
  background: #1A1A1A;
  font-family: Arial, sans-serif;
  color: #BFA14A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 10px;
  overflow-x: hidden;
  position: relative;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center; 
    padding: 0 5px;
}

.lang-switcher button {
    background: transparent;
    border: none; 
    color: #BFA14A;
    padding: 5px 4px;
    margin: 2px 0;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1rem;
    flex-grow: 0;
    flex-shrink: 0;
}

.lang-switcher button:not(:last-child)::after {
    content: '|';
    margin: 0 6px;
    color: #BFA14A;
    font-weight: normal;
    pointer-events: none;
}

.lang-switcher button:hover,
.lang-switcher button.active { 
    background: #BFA14A;
    color: #1A1A1A;
    box-shadow: 0 0 10px #BFA14A;
}

.lang-switcher button:hover::after,
.lang-switcher button.active::after {
    color: #1A1A1A;
}

/* DIM OVERLAY */
#dim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.5s ease; 
  z-index: 900; 
}

#dim-overlay.visible {
  opacity: 0.75; 
  pointer-events: auto; 
}

/* LOGO - CIJELA ŠIRINA BEZ EFEKATA */
.logo-link {
    display: block;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
    border: none !important;
    background: transparent !important;
    animation: none !important;
    width: 100% !important;
    text-align: center;
}

.logo-link:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

img.logo {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(82%) sepia(20%) saturate(1183%) hue-rotate(4deg) brightness(93%) contrast(87%);
}

/* NOVI WRAPPER ZA SLIKU */
.headshot-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 1rem 0;
  z-index: 10;
}

/* Prilagođeni stil za sliku UNUTAR wrappera */
img.headshot {
  width: 100%;
  height: 100%;
  border: 4px solid #BFA14A;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
  position: relative;
  z-index: 1; 
  box-sizing: border-box;
}

/* KLIKABILNA SLIKA PROFILA - LIJEVO PORAVNANA */
.headshot-link {
  display: block;
  padding: 0 !important;
  margin: 1rem 0 2rem 0 !important; 
  border: none !important;
  background: transparent !important;
  animation: none !important;
  width: 200px !important;
  height: 200px !important;
  text-align: left;
  transition: transform 0.3s ease;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  overflow: visible;
  float: left;
  clear: both;
}

/* TYPOGRAPHY */
h1 {
  margin: 0.5rem 0;
  color: #BFA14A;
  font-size: 3.5rem;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 2px;
  width: 100%;
  font-family: 'Cinzel', 'Playfair Display', 'Marcellus', 'Cormorant Garamond', serif;
  font-weight: 700;
  text-transform: uppercase;
}

.subtitle {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-style: normal;
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
}

.slogan {
  font-size: 1.7rem; /* POVEĆANO SA 1.5rem */
  text-align: center;
  margin-bottom: 1.5rem;
  color: #FFFFFF !important; /* BIJELA BOJA */
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0 5px;
  font-weight: 500;
  line-height: 1.4;
}

.slogan-part {
  display: block;
  color: #FFFFFF !important; /* BIJELA BOJA */
  font-size: 1.1em; /* MALO POVEĆANO */
}

.slogan-fixed {
  display: block;
  margin-top: 8px;
  color: #BFA14A; /* ZLATNA BOJA ZA OSTALE ELEMENTE */
}

/* NOVI STIL ZA MASTER LEVEL TEKST */
.master-level {
  font-weight: bold;
  color: #FFD700 !important;
  text-shadow: 0 0 10px #FFD700, 0 0 20px #FFA500 !important;
  font-size: 1.1em;
  letter-spacing: 1px;
}

/* LINKS & BUTTONS */
a {
  box-sizing: border-box;
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  margin: 0.5rem 0;
  text-decoration: none;
  background: transparent;
  color: #BFA14A;
  border: 2px solid #BFA14A;
  border-radius: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite;
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.card-wrapper > a:not(#phone-link-text):not(.phone-number-link):not(.icon-group a):not(.logo-link):not(.two-button-row > a):hover,
.main-link-with-subtitle:hover {
  background: transparent;
  color: #fff;
  box-shadow: 0 0 15px #BFA14A;
  transform: scale(1.08);
}

.main-link-with-subtitle:hover {
    transform: scale(1.12);
}

.phone-number-link {
  font-size: 1.5rem;
  font-weight: 900;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #BFA14A !important;
}

.phone-number-link:hover {
    transform: none;
    background: transparent !important;
    color: #BFA14A !important;
    box-shadow: none;
}

.phone-wrapper {
    text-align: center;
}

/* SMANJENI SMOKE EFFECT ZA BROJ MOBITELA */
#phone-link-text {
  border: 2px solid #FFFFFF !important;
  background-color: transparent;
  animation: subtle-smoke-effect 3s ease-in-out infinite !important;
  -webkit-animation: subtle-smoke-effect 3s ease-in-out infinite !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  width: 100%;
  display: block;
  transition: none;
  font-size: 2.0rem; 
  letter-spacing: 1px;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
}

#phone-link-text:hover {
  background-color: transparent;
  color: #FFFFFF !important;
  transform: none;
  box-shadow: none;
}

.fire-text {
    animation: fire-flicker 2s linear infinite;
    color: #fff !important;
}

a.fire-text:hover {
    background: transparent !important;
    color: #fff !important;
    box-shadow: 0 0 15px #BFA14A;
}

.main-link-with-subtitle {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.main-link-with-subtitle span {
    display: block;
    line-height: 1.4;
}

.main-link-text {
    font-size: 1.25rem;
}

.link-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* TWO BUTTON ROW */
.two-button-row {
  display: flex;
  flex-wrap: wrap; 
  gap: 10px; 
  width: 100%;
  margin: 0.5rem 0; 
}

.two-button-row > a {
  flex-grow: 1; 
  flex-basis: 0; 
  width: auto; 
  margin: 0; 
  min-width: 150px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ICON GROUPS */
.icon-group-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px; 
    margin: 1.5rem 0;
    width: 100%;
}

.icon-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    width: 100%;
}

.icon-group a {
    border: 2px solid #BFA14A;
    border-radius: 16px;
    width: 78px;
    height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 0.2rem;
}

#icon-row-1 a {
    flex-grow: 1; 
    flex-basis: 45%; 
    max-width: 180px; 
}

#icon-row-2 a {
    flex-grow: 1;
    flex-basis: 30%;
}

.icon-group a:hover {
    background: #BFA14A;
    color: #1A1A1A;
    box-shadow: 0 0 15px #BFA14A;
    transform: scale(1.15);
}

.icon-group a i {
    font-size: 2rem;
    margin-bottom: -2px;
}

.icon-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    opacity: 1;
    transition: color 0.3s ease;
    word-break: break-word;
}

#icon-row-1 .icon-label, #icon-row-2 .icon-label {
    font-size: 0.55rem;
}

.icon-spacing {
    margin-right: 8px; 
}

html[dir="rtl"] .icon-spacing {
    margin-right: 0;
    margin-left: 8px;
}

/* SHARE SECTION */
.share-section {
    text-align: center;
    margin: 2rem 0 1rem 0;
    padding: 1rem;
    border-top: none !important;
    border-bottom: none !important;
}

.share-title {
    color: #BFA14A;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    animation: fire-flicker 2s linear infinite !important;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.share-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #BFA14A;
    background: transparent;
    color: #BFA14A;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    animation: smoke-pulse 3s ease-in-out infinite;
    text-decoration: none;
}

.share-btn:hover {
    background: #BFA14A;
    color: #1A1A1A;
    transform: scale(1.1);
    box-shadow: 0 0 15px #BFA14A;
}

/* WHATSAPP GUMB */
.share-btn.whatsapp-share {
    background: #25D366 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    animation: green-pulse 2s ease-in-out infinite !important;
}

.share-btn.whatsapp-share:hover {
    background: #FFFFFF !important;
    color: #25D366 !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px #FFFFFF;
}

/* LINK GUMB - ZLATNA BOJA */
.share-btn.url-share {
    background: transparent !important;
    color: #BFA14A !important;
    border-color: #BFA14A !important;
    animation: pulse 2s infinite !important;
}

.share-btn.url-share:hover {
    background: #BFA14A !important;
    color: #1A1A1A !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px #BFA14A;
}

/* FOOTER */
.footer {
  margin-top: 3rem;
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  box-sizing: border-box;
  color: #BFA14A;
  font-size: 1.3rem;
  position: relative;
  z-index: 10;
}

html[dir="rtl"] .footer {
    padding-right: 0;
    padding-left: 1rem;
    text-align: left;
}

.footer img {
  width: 400px;
  height: auto;
  margin-top: 1rem;
  filter: brightness(0) saturate(100%) invert(82%) sepia(20%) saturate(1183%) hue-rotate(4deg) brightness(93%) contrast(87%);
  display: block;
  margin-left: auto;
  margin-right: 0;
}

/* CARD SYMBOLS & SNOWFLAKES */
.card-symbol {
  position: absolute;
  font-size: 1.8rem;
  color: #BFA14A;
  pointer-events: none;
  animation: sparkle 1.2s ease-out forwards;
  z-index: 1000;
  user-select: none;
}

.snowflake {
    position: absolute; 
    color: #fff;
    font-size: 1.5rem;
    pointer-events: none; 
    animation: fall linear forwards;
    z-index: 1001; 
    text-shadow: 0 0 5px rgba(255,255,255,0.7);
}

/* CARD WRAPPER */
.card-wrapper {
  border: 3px solid #BFA14A;
  border-radius: 20px;
  padding: 20px;
  max-width: 500px;
  width: 100%;
  background: #1A1A1A !important;
  margin: 10px;
  position: relative; 
  z-index: 901;
  overflow: hidden;
}

/* FOOTER */
footer {
  margin-top: 4rem; 
  text-align: center; 
  color: #BFA14A; 
  font-size: 1.1rem;
  background: #1A1A1A; 
  padding: 1.5rem 0;
  font-family: 'Cormorant Garamond', serif;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Poboljšanje za telefonski broj */
.phone-wrapper {
    text-align: center;
    margin: 1rem 0;
    word-break: break-word;
}

#phone-link-text {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

/* VCF GUMB */
#vcf-download-link {
  display: none;
  position: relative;
  z-index: 10;
}

/* Poboljšanje za vrlo male ekrane */
@media (max-width: 320px) {
    h1 {
        font-size: 1.8rem !important;
    }
    
    #phone-link-text {
        font-size: 1.4rem !important;
        padding: 0.3rem !important;
    }
    
    .phone-number-link {
        font-size: 1.2rem !important;
    }
}

/* Mobile fire effects klasa */
body.mobile-fire-effects .fire-text {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* BOŽIĆNI GUMB */
#christmas-button {
    background-color: #00A000 !important;
    color: #FFFFFF !important;
    animation: white-flicker 2s linear infinite !important;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff !important;
    border: 2px solid #FFFFFF !important;
    position: relative;
    z-index: 10;
}

/* MOBILNI UREDAJI */
@media (max-width: 768px) {
    .fire-glow-name {
        animation: none !important; 
        padding: 0 !important;
        box-shadow: none !important; 
    }
    
    #christmas-button {
        animation: white-flicker 2s linear infinite !important;
        border: 2px solid #FFFFFF !important;
        font-weight: bold !important;
    }
}

#christmas-button.fire-text {
    animation: white-flicker 2s linear infinite !important;
    border: 2px solid #FFFFFF !important;
}

/* DESKTOP STILOVI */
h1.fire-text {
    animation: fire-flicker 2s linear infinite !important;
    display: block;
    padding: 0;
    border-radius: 0;
}

.fire-glow-name {
    animation: none !important;
    display: block;
    padding: 0;
    border-radius: 0;
    margin: 5px 0 !important;
    text-shadow: 0 0 10px #fff, 0 0 20px #ffae42, 0 0 30px #ff8000 !important;
}

.fire-glow-button {
    background-color: #00A000 !important;
    color: #FFFFFF !important;
    animation: white-flicker 2s linear infinite !important;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff !important;
    border: 2px solid #FFFFFF !important;
    position: relative;
    z-index: 10;
}

/* POPRAVCI ZA KLIKOVE */
.icon-group a {
  position: relative;
  z-index: 1002;
}

/* FOOTER LINK */
footer a {
  display: inline;
  width: auto;
  text-align: inherit;
  padding: 0;
  margin: 0;
  text-decoration: underline;
  background: transparent;
  border: none;
  animation: none;
  line-height: inherit;
  letter-spacing: inherit;
}

footer a:hover {
  background: transparent;
  color: #fff;
  box-shadow: none;
  transform: none;
}

/* TEKST POTPISA */
.footer div[data-key="sincerely"] {
  font-family: 'Playwrite HR', 'Cormorant Garamond', serif;
  font-size: 2rem; 
  text-align: left;
  position: relative; 
  z-index: 10;
  animation: light-yellow-flicker 2.5s linear infinite !important;
  -webkit-animation: light-yellow-flicker 2.5s linear infinite !important;
}

/* SMOKE EFFECT */
.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;
  background: transparent !important;
  position: relative;
  z-index: 10;
}

.smoke-effect-button:hover {
  background: transparent !important;
  color: #FFFFFF !important;
  transform: none;
  box-shadow: none;
}

/* POVEĆANJE SLOGANA NA MOBILNIM UREDAJIMA */
@media (max-width: 768px) {
  .slogan {
    font-size: 1.4rem !important; /* POVEĆANO ZA MOBILNE */
    line-height: 1.3;
  }
  
  .slogan-part {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .slogan {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 360px) {
  .slogan {
    font-size: 1.2rem !important;
  }
}