@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  color-scheme: light only;
  --bg-primary: #fafafa;
  --color-primary: #0047ab;
  --color-secondary: #001f45;
  --text-primary: #050505;
  --text-secondary: #404040;
  --divider: #e0e0e0;
  --color-primary-hover: #003380;
  --text-glass-blue: #8d8d9a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background-color: rgba(0, 86, 210, 0.2);
  color: var(--color-primary);
}

::-moz-selection {
  background-color: rgba(0, 86, 210, 0.2);
  color: var(--color-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif !important;
}

p,
span,
a,
button,
input,
textarea,
select,
option,
label,
legend,
caption,
cite,
code,
kbd,
pre,
samp,
var,
small,
big,
sub,
sup,
tt,
i,
b,
u,
s,
strike,
tt,
cite,
dfn,
em,
strong,
var,
bdo,
iframe,
big,
cite,
code,
del,
ins,
kbd,
q,
s,
samp,
small,
strike,
sub,
sup,
tt,
var,
tt,
u,
var {
  font-family: "Inter", sans-serif !important;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
}

#body,
html {
  background-color: var(--bg-primary);
  font-size: 14px;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

.nav-container {
  position: fixed;
  top: 20px;
  width: 95vw;
  left: 50vw;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: 50px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 30px;
  z-index: 9999;
  box-shadow:
    0 20px 60px rgba(0, 86, 210, 0.04),
    0 5px 15px rgba(0, 0, 0, 0.02);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.nav-container.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.nav-container:hover {
  box-shadow:
    0 25px 70px rgba(0, 86, 210, 0.06),
    0 10px 25px rgba(0, 0, 0, 0.03);
  border-color: rgba(255, 255, 255, 0.6);
}

.nav-container header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-container header img {
  width: 60px;
  object-fit: contain;
  margin-right: 10px;
}

.nav-container .logo-c {
  display: flex;
  align-items: center;
}

.nav-container .logo-c span {
  font-weight: bold;
  font-size: 17.3px;
}

.nav-container .logo-c span .dev-text {
  color: var(--color-primary);
  font-weight: 800;
}

.nav-container .menu-c ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0 !important;
  list-style-type: none;
}

.nav-container .menu-c ul li {
  position: relative;
}

.nav-container .menu-c ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 17.3px;
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.25s ease;
  background: transparent;
}

.nav-container .menu-c ul li:hover a {
  color: var(--color-primary);
  background: rgba(26, 115, 232, 0.08);
}

.nav-container .menu-c ul li.active a {
  color: #fff;
  background-color: var(--color-secondary);
  font-weight: 500;
  overflow: hidden;
  position: relative;
}

.nav-container .menu-c ul li.active a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.nav-container .menu-c ul li.active:hover a::before {
  left: 100%;
}

/* Dropdown styling */
.nav-container .menu-c ul li.has-dropdown {
  position: relative;
}

.nav-container .menu-c ul li .dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  opacity: 0;
  visibility: hidden;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 12px;
  min-width: 260px;
  box-shadow: 0 20px 40px rgba(0, 86, 210, 0.08), 0 5px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 1000;
}

/* Invisible bridge so hover doesn't break when moving from nav item to dropdown */
.nav-container .menu-c ul li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}

.nav-container .menu-c ul li.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-container .menu-c ul li .dropdown-menu li {
  width: 100%;
  list-style: none;
}

.nav-container .menu-c ul li .dropdown-menu li a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 15.7px;
  font-weight: 500;
  transition: all 0.25s ease;
  background: transparent;
}

.nav-container .menu-c ul li .dropdown-menu li:hover a {
  background: rgba(0, 86, 210, 0.06);
  color: var(--color-primary);
  transform: translateX(4px);
}

.nav-container button {
  width: 170px;
  height: 50px;
  font-size: 17.3px;
  border: none;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  color: #fff;
  font-weight: 400 !important;
  border-radius: 500px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-container button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.nav-container button:hover {
  background: linear-gradient(
    135deg,
    var(--color-primary-hover) 0%,
    #0d5aa7 100%
  );
}

.nav-container button:hover::before {
  width: 300px;
  height: 300px;
}

.nav-container button:active {
  transform: translateY(0);
}

/* ===========================
   Modern Freud Mobile Navigation
   =========================== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
    width: 30px;
    height: 30px;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.hamburger-menu.active span {
    background-color: #ffffff; /* White when on dark freud overlay */
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-overlay.spremic-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 400px;
    max-width: 100vw;
    height: 100%;
    background: var(--bg-primary, #fafafa);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    transform: translateX(100%);
    clip-path: none;
    color: var(--text-primary);
    overflow-y: auto;
    font-family: 'Poppins', sans-serif;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.spremic-sidebar.open {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

.spremic-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 290px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-bottom-left-radius: 50% 12%;
    border-bottom-right-radius: 50% 12%;
    z-index: -1;
}

.spremic-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px;
    color: #fff;
}

.spremic-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.spremic-close-btn {
    background: transparent !important;
    border: none;
    color: #fff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
}

.spremic-close-btn::before { display: none !important; }
.spremic-close-btn:hover { background: rgba(255, 255, 255, 0.15) !important; border-radius: 50%; }

.spremic-close-btn .material-symbols-outlined {
    font-size: 28px;
    font-weight: 300;
}

.spremic-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 30px;
    text-align: center;
}

.spremic-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spremic-avatar img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.spremic-profile-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.spremic-profile-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.spremic-menu-section {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 15px;
}

.spremic-menu-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 10px;
}

.spremic-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.spremic-menu-item .material-symbols-outlined {
    font-size: 22px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.spremic-menu-item:hover, .spremic-menu-item.active {
    background: rgba(26, 115, 232, 0.08);
    color: var(--color-primary);
}

.spremic-menu-item:hover .material-symbols-outlined, 
.spremic-menu-item.active .material-symbols-outlined {
    color: var(--color-primary);
}

.spremic-mobile-submenu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out, margin 0.3s ease-out, opacity 0.2s ease-out;
    padding-left: 54px;
    gap: 4px;
    opacity: 0;
}

.spremic-mobile-submenu.open {
    max-height: 400px;
    margin-top: 4px;
    margin-bottom: 8px;
    opacity: 1;
}

.spremic-submenu-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14.5px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.spremic-submenu-item:hover, .spremic-submenu-item.active {
    background: rgba(26, 115, 232, 0.05);
    color: var(--color-primary);
    border: 1px solid rgba(26, 115, 232, 0.1);
}

.dropdown-chevron {
    transition: transform 0.3s ease;
}

.spremic-mobile-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.spremic-menu-divider {
    height: 1px;
    background: var(--divider, #e0e0e0);
    margin: 16px 0;
}

.spremic-bottom-actions {
    margin-top: auto;
    padding: 30px 24px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.spremic-btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%) !important;
    color: #fff !important;
    text-decoration: none;
    border: none;
    border-radius: 50px !important;
    padding: 14px 28px !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100% !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 210, 0.2);
}

.spremic-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 210, 0.3);
}

@media (max-width: 1024px) {
    .nav-container .menu-c,
    .nav-container .contact-btn {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }

    .nav-container {
        position: absolute;
        top: 20px;
        width: 90vw;
        padding: 10px 24px;
        border-radius: 50px;
    }
}

@media (max-width: 500px) {
    .mobile-nav-overlay.spremic-sidebar {
        width: 100%;
    }
}

/* ===========================
   Cursor Gradient
   =========================== */
.cursor-gradient {
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.2s;
}

/* ===========================
   INITIAL LOADER
   =========================== */
#loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: transparent; /* Background is created by the shadow */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

#loader-overlay.finished {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.loader-hole {
  width: 0;
  height: 0;
  background: transparent;
  /* Massive white shadow creates the solid background around the hole */
  box-shadow: 0 0 0 300vmax #ffffff;
  z-index: 1;
  border-radius: 0; /* Square hole */
}

.loader-text-wrapper {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
}

.loader-text {
  display: inline-block;
  will-change: transform;
}

.loader-text.elin {
  color: #030303;
}

.loader-text.code {
  color: var(--color-primary);
}

/* Animation States */
#loader-overlay.animating .loader-text.elin {
  animation: moveElin 4.5s ease-in-out forwards;
  animation-delay: 0.1s;
}

#loader-overlay.animating .loader-text.code {
  animation: moveCode 4.5s ease-in-out forwards;
  animation-delay: 0.1s;
}

#loader-overlay.animating .loader-hole {
  animation: expandLoaderHole 4.5s ease-in-out forwards;
  animation-delay: 0.1s;
}

@keyframes expandLoaderHole {
  0% {
    width: 0;
    height: 0;
  }
  15% {
    width: 140px;
    height: 140px;
  }
  35% {
    width: 140px;
    height: 140px;
  }
  100% {
    width: 250vmax;
    height: 250vmax;
  }
}

@keyframes moveElin {
  0% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-160px);
  }
  35% {
    transform: translateX(-160px);
  }
  100% {
    transform: translateX(-120vw);
  }
}

@keyframes moveCode {
  0% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(100px);
  }
  35% {
    transform: translateX(100px);
  }
  100% {
    transform: translateX(120vw);
  }
}

/* ===========================
   Premium Chat Widget Styles
   (migrated from chat.css)
   =========================== */

.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-direction: row-reverse;
  pointer-events: none;
}

.chat-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  cursor: default;
  pointer-events: auto;
  opacity: 1;
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.chat-preview.fade-out {
  opacity: 0;
  pointer-events: none;
}

.chat-preview.fade-in {
  opacity: 0;
  animation: fadeInPreview 0.4s ease forwards;
}

@keyframes fadeInPreview {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.chat-preview:hover {
  transform: translateY(-4px);
}

.chat-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Attention-grabbing animation for avatar */
@keyframes chatAvatarPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  20% {
    transform: translateY(-6px) scale(1.07);
  }
  40% {
    transform: translateY(0) scale(1);
  }
  60% {
    transform: translateY(-4px) scale(1.04);
  }
  80% {
    transform: translateY(0) scale(1);
  }
}

.chat-avatar.attention {
  animation: chatAvatarPulse 1.1s ease-in-out 0s 3;
}

.chat-avatar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.chat-preview:hover .chat-avatar::before {
  width: 200px;
  height: 200px;
}

.chat-preview:hover .chat-avatar {
  transform: scale(1.05);
}

.chat-avatar .material-symbols-outlined {
  color: #fff;
  font-size: 26px;
  position: relative;
  z-index: 2;
}

.chat-bubble-preview {
  background: #fff;
  padding: 22px 18px 16px 18px;
  border-radius: 18px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 260px;
  position: relative;
  border: none;
  animation: bubbleAppear 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
  margin-bottom: 8px;
  cursor: pointer;
  pointer-events: auto;
}

.chat-bubble-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.chat-bubble-close .material-symbols-outlined {
  font-size: 18px;
  color: var(--text-glass-blue);
}

.chat-bubble-close:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: scale(1.05);
}

@keyframes bubbleAppear {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-bubble-preview::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.chat-bubble-preview p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
}

.chat-bubble-preview .chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-glass-blue);
}

.chat-status-dot-preview {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: blink 2s infinite;
}

.chat-button {
  display: none;
  pointer-events: auto;
}

.chat-window {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  max-width: calc(100vw - 60px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: none;
  opacity: 0;
  transform: scale(0.8);
  transform-origin: bottom right;
  pointer-events: auto;
}

.chat-window.active {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

/* Premium morph animations for opening/closing chat */
.chat-window.chat-opening {
  animation: chatOpenMorph 0.45s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.chat-window.chat-closing {
  animation: chatCloseMorph 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes chatOpenMorph {
  0% {
    opacity: 0;
    transform: scale(0.2);
    border-radius: 999px;
  }
  60% {
    opacity: 1;
    transform: scale(1.03);
    border-radius: 28px;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    border-radius: 24px;
  }
}

@keyframes chatCloseMorph {
  0% {
    opacity: 1;
    transform: scale(1);
    border-radius: 24px;
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
    border-radius: 999px;
  }
}

/* Subtle avatar reaction when chat is open */
.chat-widget.chat-open .chat-avatar {
  transform: scale(0.9);
}

.chat-unread-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444; /* crvena boja za notifikacije */
  color: white;
  font-size: 12px;
  font-weight: bold;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
  border: 2px solid white;
  z-index: 10;
}

.bounce-badge {
  animation: bounce-badge 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce-badge {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.chat-header {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  padding: 18px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.chat-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.chat-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-header-avatar .material-symbols-outlined {
  color: #fff;
  font-size: 20px;
}

.chat-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-header-text h4 {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.chat-header-text p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.chat-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.chat-close .material-symbols-outlined {
  color: #fff;
  font-size: 18px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.message {
  display: flex;
  gap: 12px;
  animation: messageSlide 0.3s ease;
}

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

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.message.bot .message-avatar {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  color: #fff;
}

.message.user .message-avatar {
  background: var(--color-secondary);
  color: #fff;
}

.message-content {
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message.bot .message-content {
  align-items: flex-start;
}

.message.user .message-content {
  align-items: flex-end;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.message.bot .message-bubble {
  background: #fff;
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}

.message.user .message-bubble {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  color: #fff;
  border-bottom-right-radius: 6px;
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-glass-blue);
  padding: 0 4px;
}

.suggested-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.suggested-question {
  padding: 10px 16px;
  background: #fff;
  border: 1.5px solid rgba(21, 101, 192, 0.15);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.suggested-question::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(21, 101, 192, 0.08),
    transparent
  );
  transition: left 0.5s ease;
}

.suggested-question:hover::before {
  left: 100%;
}

.suggested-question:hover {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  color: #fff;
  border-color: transparent;
  transform: translateX(4px);
}

.chat-input-container {
  padding: 16px 18px;
  background: #fff;
  border-top: 1px solid var(--divider);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* When input has multiple lines, align send button to bottom */
.chat-input-container.multi-line {
  align-items: flex-end;
}

.chat-input-wrapper {
  flex: 1;
  position: relative;
}

.chat-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--divider);
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  resize: none;
  outline: none;
  transition: all 0.3s ease;
  max-height: 200px;
  min-height: 44px;
  overflow-y: hidden;
}

.chat-input:focus {
  border-color: var(--color-primary);
  background: #fff;
}

.chat-input::placeholder {
  color: var(--text-glass-blue);
}

.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.chat-send::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.5s ease,
    height 0.5s ease;
}

.chat-send:hover::before {
  width: 200px;
  height: 200px;
}

.chat-send:hover {
  transform: translateY(-2px) scale(1.05);
}

.chat-send:active {
  transform: translateY(0) scale(1);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-send .material-symbols-outlined {
  color: #fff;
  font-size: 22px;
  position: relative;
  z-index: 1;
}
footer {
  margin-top: -50px;
  background-color: #fff;
}
footer .cta {
  position: relative;

  top: 170px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  width: 85%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  z-index: 1;
  border-radius: 10px;
}

footer .cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/static/img/footerBcg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

footer .cta h4 {
  font-size: 2.3rem;
  color: #fff;
  font-weight: bold;
}
footer .cta p {
  font-size: 1.1rem;
  color: #f0f0f0;
}
footer .cta button {
  width: 170px;
  height: 53px;
  font-size: 1.1rem;
  border: none;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  margin-top: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

footer .cta button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

footer .cta button:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 50, 120, 0.3);
}

footer .cta button:hover::before {
  left: 100%;
}

footer .cta button:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 50, 120, 0.2);
}


footer .footer-content {
  background-color: #030303;
  padding-top: 270px; /* Space for CTA overlap */
  padding-bottom: 60px;
  position: relative;
  height: auto;
}

.footer-container {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col.brand-col {
  flex: 1.5;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo img {
  width: 40px;
  height: auto;
}

.footer-logo span {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.footer-logo .dev-text {
  color: var(--color-primary);
}

.footer-col p {
  color: #888;
  line-height: 30px;
  font-size: 1.05rem;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 14px;
}

.footer-col ul li a {
  color: #888;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-col ul li a::before {
  content: "\2192";
  position: absolute;
  left: -20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: #0056d2;
}

.footer-col ul li a:hover {
  color: #0056d2;
  transform: translateX(20px);
}

.footer-col ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-col .contact-list li {
  color: #888;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.social-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 86, 210, 0.2);
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #555;
  font-size: 1rem;
}

.legal-links {
  display: flex;
  gap: 30px;
}

.legal-links a {
  color: #555;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #fff;
}

/* Subscribe Form Styles */
.subscribe-form {
  margin-top: 24px;
  max-width: 320px;
}

.subscribe-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  transition: all 0.3s ease;
}

.subscribe-wrapper:focus-within {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.subscribe-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px 14px;
  font-size: 0.875rem;
  outline: none;
  font-family: "Inter", sans-serif;
}

.subscribe-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.subscribe-wrapper button {
  background: var(--color-primary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  flex-shrink: 0;
}

.subscribe-wrapper button:hover {
  background: var(--color-primary-hover);
  transform: scale(1.05);
}

.subscribe-wrapper button .material-symbols-outlined {
  font-size: 18px;
}

/* ===========================
   FOOTER ANIMATIONS
   =========================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.75s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.75s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 499px) {
  footer .cta {
    height: 250px;
    top: 100px;
    width: 92%;
  }
  footer .cta h4 {
    font-size: 1.4rem;
  }
  footer .cta p {
    font-size: 0.8rem;
    padding: 0 15px;
  }
  footer .cta button {
    width: 100%;
    max-width: 200px;
    height: 44px;
    font-size: 0.85rem;
  }
  footer .footer-content {
    padding-top: 150px;
    padding-bottom: 40px;
  }
  .footer-logo span,
  .footer-col p,
  .footer-col h4,
  .footer-col ul li a,
  .footer-col .contact-list li,
  .footer-bottom p,
  .legal-links a {
    font-size: 0.8rem;
  }
  .footer-logo img {
    width: 32px;
  }
  .social-links a {
    width: 36px;
    height: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .legal-links {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 767px) {
  .nav-container {
    position: absolute !important;
  }
}

/* =========================================================================
   UNIFIED FONT SIZES MATCHING KONTAKT.CSS (Base 16.5px)
   ========================================================================= */

.footer-col h4,
.spremic-profile-name,
footer .cta h4 {
    font-size: 23.1px !important;
}

.footer-col p,
.footer-col ul li a,
.footer-col .contact-list li,
.footer-bottom p,
.legal-links a,
.spremic-menu-item,
.spremic-submenu-item,
.spremic-menu-label,
footer .cta p,
.footer-logo span {
    font-size: 17.325px !important;
}

@media (max-width: 1499px) {
    .footer-col h4,
    .spremic-profile-name,
    footer .cta h4 {
        font-size: 21.45px !important;
    }
    .footer-col p,
    .footer-col ul li a,
    .footer-col .contact-list li,
    .footer-bottom p,
    .legal-links a,
    .spremic-menu-item,
    .spremic-submenu-item,
    .spremic-menu-label,
    footer .cta p,
    .footer-logo span {
        font-size: 16.5px !important;
    }
}

@media (max-width: 1279px) {
    .footer-col h4,
    .spremic-profile-name,
    footer .cta h4 {
        font-size: 21.45px !important;
    }
    .footer-col p,
    .footer-col ul li a,
    .footer-col .contact-list li,
    .footer-bottom p,
    .legal-links a,
    .spremic-menu-item,
    .spremic-submenu-item,
    .spremic-menu-label,
    footer .cta p,
    .footer-logo span {
        font-size: 15.675px !important;
    }
}

@media (max-width: 1023px) {
    .footer-col h4,
    .spremic-profile-name,
    footer .cta h4 {
        font-size: 21.45px !important;
    }
    .footer-col p,
    .footer-col ul li a,
    .footer-col .contact-list li,
    .footer-bottom p,
    .legal-links a,
    .spremic-menu-item,
    .spremic-submenu-item,
    .spremic-menu-label,
    footer .cta p,
    .footer-logo span {
        font-size: 16.5px !important;
    }
}

@media (max-width: 767px) {
    .footer-col h4,
    .spremic-profile-name,
    footer .cta h4 {
        font-size: 18.15px !important;
    }
    .footer-col p,
    .footer-col ul li a,
    .footer-col .contact-list li,
    .footer-bottom p,
    .legal-links a,
    .spremic-menu-item,
    .spremic-submenu-item,
    .spremic-menu-label,
    footer .cta p,
    .footer-logo span {
        font-size: 15.675px !important;
    }
}

@media (max-width: 499px) {
    .footer-col h4,
    .spremic-profile-name,
    footer .cta h4 {
        font-size: 15.675px !important;
    }
    .footer-col p,
    .footer-col ul li a,
    .footer-col .contact-list li,
    .footer-bottom p,
    .legal-links a,
    .spremic-menu-item,
    .spremic-submenu-item,
    .spremic-menu-label,
    footer .cta p,
    .footer-logo span {
        font-size: 14.52px !important;
    }
}
