:root {
  --fs-base: 16px;
  --fs-lg: 18px;
  --fs-2xl: 32px;
  --fs-hero: 48px;

  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
}

/* =====================
   RESET & OSNOVE
===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: #222;
  background: #fff;
  padding-top: 60px;
  
}

p {
  color: #444;
}

/* =====================
   CONTAINER
===================== */
.main-wrapper {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.12);
}
/* =====================
   HEADER & NAV
===================== */
.header {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-height: 40px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  display: inline-block;
  line-height: 1;
  transition: border-color 0.3s ease, color 0.2s ease;
}

.nav a:hover {
  border-bottom-color: currentColor;
  color: #111;
}

.nav-cta {
  background: #e63946;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.3s ease;
}

/* =====================
   DROPDOWN
===================== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  list-style: none;
  padding: 8px 0;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #111;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* =====================
   MOBILE MENU TOGGLE
===================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #111;
}

/* =====================
   HERO
===================== */
.hero {
  text-align: center;
  padding: 90px 20px 70px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  min-height: 420px;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p {
  font-size: var(--fs-lg);
  margin-bottom: 36px;
  font-weight: 600;
  color: #1d1d1f;
  background-color: rgb(227, 236, 247);
  padding: 12px 16px;
  border-radius: 8px;
  display: inline-block;
}

.hero p:nth-of-type(2) {
  background-color: rgb(255, 232, 214);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

#hero-text .accent {
  position: relative;
  color: #1d3557;
}

#hero-text .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: #e63946;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1s ease forwards;
  animation-delay: 0.6s;
}

/* =====================
   BUTTONS
===================== */
.btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.call-btn {
  background: #e63946;
  color: #fff;
  border: none;
}

.call-btn i {
  color: #fff;
}

.whatsapp-btn {
  border: 1px solid #111;
  color: #111;
}

.whatsapp-btn i {
  color: #25D366;
  font-size: 20px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* =====================
   MAIN CONTENT
===================== */
main.container {
  max-width: 850px;
}

main p {
  margin-bottom: 1.4rem;
  line-height: 1.65;
}

main h2 {
  font-weight: 600;
  font-size: var(--fs-2xl);
  margin-bottom: 16px;
}

main a {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
}

/* =====================
   SERVICES
===================== */
#services .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}

.service-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 150px;
  text-align: center;
}

.icon-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
}

.icon-box ul {
  padding-left: 20px;
  margin: 0;
  text-align: left;
}

.icon-box li {
  margin-bottom: 8px;
  text-align: left;
}

.icon-circle-red {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  background-color: #ff4d4d;
  border-radius: 50%;
  margin-bottom: 10px;
  transition: transform 0.3s, background-color 0.3s;
}

.icon-circle-red i {
  color: #fff;
  font-size: 30px;
}

.icon-circle-red:hover {
  background-color: #e60000;
  transform: scale(1.1);
}

.icon-box h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.nested-list {
  padding-left: 20px;
  margin-bottom: 16px;
}

.nested-list li {
  margin-bottom: 6px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

/* =====================
   CLIENTS
===================== */
.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.client-logo {
  height: 80px;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.client-logo img {
  max-height: 40px;
  max-width: 140px;
  opacity: 1;
  transition: transform 0.25s ease;
}

.client-logo:hover img {
  transform: scale(1.05);
}

.clients-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollClients 40s linear infinite;
}

.clients {
  padding: 80px 0;
}

.clients-marquee {
  background: #f5f5f5;
  padding: 40px 0;
  margin-top: 40px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;

  /* trik za full width */
  width: 100%;
  margin-left: 0;
}

.clients-marquee {
  overflow: hidden;
}

/* =====================
   FAQ CHAT
===================== */
#faqChatWindow {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.msg {
  max-width: 70%;
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 20px;
  line-height: 1.4;
  word-wrap: break-word;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease-in-out;
}

.msg.user {
  background: #007bff;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.msg.bot {
  background: #e0e0e0;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.msg.typing::after {
  content: '...';
  animation: blink 1s infinite;
}

#faqSuggestions {
  margin-top: 10px;
}

#faqSuggestions button {
  font-size: 16px;
  padding: 8px 12px;
  margin: 5px 4px;
  border-radius: 10px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background 0.2s;
}

#faqSuggestions button:hover {
  background: #e0e0e0;
}

button.copyBtn {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
}

/* =====================
   TRANSLATOR
===================== */
#translator-section h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.forma_jezik,
.swap-btn,
.translate-btn {
  font-size: 16px;
  padding: 8px 12px;
  margin: 5px 4px 10px 0;
  border-radius: 10px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background 0.2s;
}

.forma_jezik:hover,
.swap-btn:hover,
.translate-btn:hover {
  background: #e0e0e0;
}

#input_text,
#output {
  width: 100%;
  height: 140px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  resize: vertical;
}

#input_text {
  background: #f5f5f5;
}

#output {
  background: #fff;
}

.ai-expand {
  margin-bottom: 40px;
}

/* =====================
   LANGUAGE SWITCHER
===================== */
.language-switcher {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.language-switcher li {
  display: inline-flex;
}

.modern-links {
  padding-left: 0;
  margin-left: 0;
  list-style-position: inside;
}

/* =====================
   FOOTER
===================== */
#footer {
  position: relative;
  background: #5f6368;
  color: #fff;
  padding: 80px 0 40px;
  margin-top: 4rem;
  overflow: hidden;
}

#footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #e63946;
  z-index: 2;
}

#footer::after {
  display: none !important;
}

#footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: flex-start;
}

#footer .container > div {
  flex: 1;
  min-width: 180px;
}

#footer .container > div:first-child {
  flex: 2;
  min-width: 220px;
}

#footer .copyright {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 1rem;
  color: #ffffff;
  font-size: 0.9rem;
}

#footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .img-fluid {
  max-height: 50px;
  margin-bottom: 1.5rem;
}

#footer img {
  max-height: 50px;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  transition: opacity 0.3s ease;
  filter: none;
}

#footer img:hover {
  opacity: 1;
}

#footer p {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0.6rem 0;
}

#footer a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

#footer a:hover {
  color: #ffffff;
  border-bottom-color: #e63946;
}

#footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.75rem;
}

#footer h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #e63946;
}

#footer ul li {
  margin-bottom: 0.8rem;
}

#footer ul li a {
  color: #ffffff;
  font-size: 0.95rem;
  display: inline-block;
  transition: all 0.3s ease;
  padding-left: 0;
}

#footer ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
  border-bottom: none;
}

#footer > div:last-child {
  width: 100%;
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.9rem;
}

.email-link {
  color: #4285F4;
  text-decoration: none;
  font-weight: 500;
}

.email-link:hover {
  text-decoration: underline;
}

.whatsapp-link {
  color: #25D366;
  margin-left: 6px;
}

.viber-link {
  color: #8e24aa;
  margin-left: 6px;
}

.copyBtn {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* =====================
   CONTACT
===================== */
#contact {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
}

.contact-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.info-wrap {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  text-align: center;
  margin-bottom: 40px;
}

.info-icon {
  width: 60px;
  height: 60px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.info-icon i {
  color: #fff;
  font-size: 28px;
}

.info-wrap h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-wrap h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 10px;
}

.info-wrap p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.php-email-form {
  width: 100%;
  max-width: 700px;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.php-email-form input,
.php-email-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  color: #000;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

textarea {
  resize: vertical;
  margin-bottom: 6px;
}

.form-text {
  font-size: 0.85rem;
  color: #777;
}

.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.submit-wrap {
  text-align: center;
}

button[type="submit"] {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #b02a37;
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
}

input[type="number"],
select {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: all 0.25s ease;
}

input[type="number"] {
  width: 200px;
}

select {
  width: 220px;
}

input[type="number"]:focus,
select:focus {
  border-color: #f7931a;
  box-shadow: 0 0 5px rgba(247,147,26,0.5);
  outline: none;
}

/* =====================
   CRYPTO WIDGET
===================== */
.fiat-box {
  margin-bottom: 12px;
}

.fiat-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.fiat-box input,
.fiat-box select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  font-size: 15px;
}

#fiatInput,
#valuta {
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.crypto-widget {
  background: #ffffff;
  padding: 26px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  max-width: 360px;
  margin: 0 auto;
}

#btc {
  color: #f7931a;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 0 6px rgba(247,147,26,0.2);
}

/* =====================
   SEO & UTILITY
===================== */
.faq-seo {
  position: absolute;
  left: -9999px;
  height: 1px;
  overflow: hidden;
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes underline {
  to { transform: scaleX(1); }
}

@keyframes scrollClients {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes wave {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-25%) translateY(20px); }
  100% { transform: translateX(0) translateY(0); }
}

/* =====================
   RESPONSIVE - TABLET & MOBILE (768px)
===================== */
@media (max-width: 768px) {
  /* Mobile menu */
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    width: 100%;
    background: #fff;
    padding: 15px 20px;
    border-top: 1px solid #eee;
  }

  .nav.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 15px;
  }

  .hero h1 {
    font-size: 36px;
  }

  /* Services */
  #services .row {
    grid-template-columns: 1fr;
  }

  /* Contact */
  #contact {
    padding: 40px 0;
  }

  .php-email-form {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .info-wrap h2 {
    font-size: 1.5rem;
  }

  /* Footer */
  #footer {
    background: #5f6368 !important;
    padding: 60px 0 30px;
  }

  #footer .container {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  #footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  #footer ul li a:hover {
    padding-left: 0;
  }

  #footer > .container > div:first-child {
    min-width: 100%;
  }

  #footer > div:last-child {
    margin-top: 2rem;
  }

  #footer p,
  #footer a,
  #footer h5,
  #footer ul li a,
  #footer > div:last-child {
    color: #ffffff !important;
  }
}

/* =====================
   RESPONSIVE - MOBILE SMALL (480px)
===================== */
@media (max-width: 480px) {
  .hero::before {
    background-size: 340px auto;
  }

  #footer {
    padding: 40px 0 20px;
  }

  #footer .container {
    gap: 2rem;
    padding: 0 15px;
  }

  #footer img {
    max-height: 40px;
  }

  #footer h5 {
    font-size: 1rem;
  }
}

