:root {
  --bg-color: #060913;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7f00ff;
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%; /* Spriječava pomake */
  position: relative;
}

/* Background Animated Shapes */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  animation: float 15s infinite alternate;
}

.bg-shape-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(79,172,254,0.4) 0%, rgba(6,9,19,0) 70%);
}

.bg-shape-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(127,0,255,0.3) 0%, rgba(6,9,19,0) 70%);
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.9); }
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

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

.mt-4 { margin-top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-heading);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000 !important;
  border: none;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:active {
  color: #000 !important;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 242, 254, 0.5);
  color: #000 !important;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
}

p {
  color: var(--text-secondary);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2.5rem;
  position: relative;
  display: block;
  text-align: center;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-radius: 0 0 24px 24px;
  transition: var(--transition-smooth);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
}

.logo-svg {
  width: 40px;
  height: 40px;
  position: absolute;
  left: -48px; /* Pozicionira logo lijevo od teksta bez utjecaja na centriranje teksta */
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-btn span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s ease;
  left: 0;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Main Sections Layout */
main {
  padding-top: 80px; /* Smanjeno zaglavlje */
}

section {
  padding: 4rem 0; /* Smanjeni razmaci između odjeljaka */
  scroll-margin-top: 80px;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-card {
  padding: 2.5rem 2rem;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.about-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(0,242,254,0.1), rgba(127,0,255,0.1));
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.about-summary {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-top: 2rem;
}

/* Services */
.services-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.focus-service {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.focus-service {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.check {
  color: var(--accent-purple);
  background: rgba(127,0,255,0.1);
  width: 24px; height: 24px;
  display: inline-flex; justify-content: center; align-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* Footer / Contact */
.footer {
  padding-bottom: 2rem;
}

.footer-panel {
  border-radius: 30px;
  padding: 4rem;
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-footer .logo-svg {
  width: 35px;
  height: 35px;
  position: absolute;
  left: -45px; /* Poravnanje logotipa lijevo od centriranog teksta */
}

.contact-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-col h4 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
  width: fit-content;
  margin: 0 auto;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: flex-start;
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-purple);
}

.contact-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.contact-list a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Media Queries */
@media (max-width: 992px) {
  .hero-visual {
    display: none;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .focus-service {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem;
  }
  
  .service-features {
    text-align: left;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
    text-align: center;
  }

  .container {
    padding: 0 1.2rem;
  }
  
  section {
    padding: 2.5rem 0;
  }

  .nav-content {
    height: 70px;
  }

  .logo-svg {
    width: 30px;
    height: 30px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .nav-content {
    justify-content: center; /* Centriranje logotipa */
    position: relative;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
  }

  .logo .logo-svg {
    width: 32px;
    height: 32px;
    left: -40px; /* Smanjeno za mobitel */
  }

  .mobile-menu-btn {
    display: block;
    margin-left: auto; /* Pomak hamburgera na rub */
    position: relative;
    right: 0;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(6, 9, 19, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--glass-border);
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero h1 {
    font-size: 2rem; /* Blago smanjeno za bolji prelom */
    line-height: 1.2;
  }

  .hero .subtitle {
    font-size: 1.05rem;
    margin: 0 auto 2rem;
    max-width: 280px; /* Širina prilagođena mobitelu */
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
  
  .focus-service {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-content h3 {
    font-size: 1.6rem;
  }

  .footer {
    padding-bottom: 0;
  }

  .footer-panel {
    padding: 3rem 1.5rem 1.5rem;
    border-radius: 30px 30px 0 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .contact-list li {
    /* Uklonjeno centriranje unutar LI kako bi ikone ostale poravnate vertikalno */
  }
  
  .service-features {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    margin: 2rem 0 0;
    text-align: center;
  }

  .service-features li {
    display: flex;
    align-items: center;
    justify-content: center; /* Apsolutno centriranje svake stavke */
    gap: 0.8rem;
    width: 100%;
  }
}

/* PWA Install Banner */
.install-banner {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-200%);
  width: 95%;
  max-width: 420px;
  z-index: 2000;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 24px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(0, 242, 254, 0.3);
  opacity: 0;
  pointer-events: none;
}

.install-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.install-content {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.install-logo {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
}

.install-text {
  display: flex;
  flex-direction: column;
}

.install-text strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.install-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.install-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
}

.close-btn:hover {
  color: var(--text-primary);
}

