* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: sans-serif;
  color: #1f2937;
  overflow-x: hidden;
  background-color: #ffffff;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}
.navbar {
  position: fixed;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 2.5rem;
}
.nav-icon {
  height: 1.2rem;
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative;
}
.logo {
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  height: 100%;
}
.nav-links a {
  border-bottom: none;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  height: 100%;
}


.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
}
.hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .hero {
    padding-bottom: 1rem;
  }
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.3rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hero-image {
    margin-bottom: 0;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #1e293b;
  min-height: 5rem; /* Osigurava prostor za naslov */
}

/* Stil za Typed.js kursor */
.typed-cursor {
  font-weight: 400;
  font-size: 2.5rem;
  color: #0369a1;
  opacity: 1;
  animation: blink 0.7s infinite;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #475569;
}

@media (max-width: 768px) {
  .hero-subtitle {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    text-align: justify;
  }
}
.btn {
  margin-top: 2rem;
  background-color: #0369a1;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.3rem;
  border: none;
  display: inline-block;
}
.btn:hover {
  background-color: #0284c7;
}
.section {
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 1.5rem 0;
    padding-top: 3rem; /* Dodatni prostor na vrhu za naslove */
  }
}

.section-title {
  text-align: left;
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.bg-light {
  background-color: #e2e8f0;
}

.bg-white {
  background-color: #ffffff;
}

/* Fade effect between sections */
.section::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 0;
}

/* Dodatni prostor za scroll anchor točke */
#services, #about, #contact, #experience {
  scroll-margin-top: 3rem;
}

/* Remove fade effect from experience section and about section */
#experience::before,
#about::before {
  display: none;
}

/* Reduce top padding for experience and about sections */
#experience,
#about {
  padding-top: 2rem;
}

.bg-light::before {
  background: linear-gradient(to bottom, #ffffff 0%, #e2e8f0 100%);
}

.bg-white::before {
  background: linear-gradient(to bottom, #e2e8f0 0%, #ffffff 100%);
}
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

#services .grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  #services .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  #services .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.3rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  text-align: left;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.card-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.card-icon-wrapper svg {
  width: 36px;
  height: 36px;
  color: #0369a1;
}
.about-grid {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about-text {
  flex: 1;
  text-align: justify;
}

.about-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .about-image-container {
    margin-bottom: 0;
  }
}

.about-image {
  width: 100%;
  max-width: 500px;
  border-radius: 0.3rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}
.contact-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-card {
  flex: 1;
  background: #fff;
  padding: 2rem;
  border-radius: 0.3rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-card {
  flex: 1;
  background: #fff;
  padding: 2rem;
  border-radius: 0.3rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .contact-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.contact-info-item .contact-icon-wrapper svg {
  width: 30px;
  height: 30px;
  color: #0369a1;
}

.contact-info-item h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  text-align: left;
}

.email-address {
  text-align: left;
  word-break: break-all;
}

.phone-container,
.address-container {
  margin: 0;
}

.phone-text,
.address-text {
  color: #1f2937;
}

.phone-link,
.address-link {
  color: #0369a1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.phone-link:hover,
.address-link:hover {
  color: #0284c7;
}

.desktop-only {
  display: inline;
}

.button-like.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only,
  .button-like.desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: inline-block;
  }
  
  .phone-link,
  .address-link {
    display: block;
    padding: 4px 10px;
    border: 1px solid #0369a1;
    border-radius: 4px;
    margin-top: 4px;
    text-align: left;
    width: fit-content;
    max-width: 140px;
  }
  
  .phone-link:hover,
  .address-link:hover {
    background-color: #0369a1;
    color: white;
    text-decoration: none;
  }
}

.contact-form-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.3rem;
  font-family: inherit;
}

.btn.full {
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
  }
}
.footer {
  background-color: #1e293b;
  color: #cbd5e1;
  padding: 2rem 1rem;
}
.footer a {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 40px; /* Prilagođeno visini navigacijske trake */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
    height: auto;
    max-height: 200px;
    overflow-y: auto;
  }

  .nav-links a {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.7rem 0;
    width: 100%;
    display: block;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: block;
  }

  .about-grid {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .about-image-container {
    width: 100%;
  }



  .hero-title {
    font-size: 1.75rem;
    min-height: 4rem; /* Smanjeni prostor na mobilnim uređajima */
  }

  .hero-subtitle {
    font-size: 1rem;
  }


  
  .section-title {
    line-height: 1.2;
    margin-bottom: 1rem;
  }
}

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

.section-spacer {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .section-spacer {
    margin-bottom: 1rem;
  }
}





.program-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0 0 0;
}

.program-logo-simple {
  height: 90px;
  width: auto;
}

@media (max-width: 768px) {
  .program-logos {
    gap: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1rem;
  }
  
  .program-logo-simple {
    height: 82px;
  }
}
.card h3 {
  margin: 0;
  font-size: 1.1rem;
  text-align: left;
}

.program-logos a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.program-logos a:hover {
  transform: translateY(-3px);
}
.hidden {
  display: none;
}
.alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  max-width: 90%;
  width: 400px;
  text-align: center;
  display: none;
}

.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: none;
}

.alert-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #0369a1;
}

.alert-message {
  margin-bottom: 1.5rem;
}

.alert-button {
  background-color: #0369a1;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.3rem;
  cursor: pointer;
  font-weight: 500;
  margin: 0 auto;
  display: block;
}

.alert-button:hover {
  background-color: #0284c7;
}

.button-like {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border: 2px solid #0369a1;
  border-radius: 4px;
  text-decoration: none;
  color: #0369a1;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s, color 0.3s;
  margin-left: 0.5rem;
}

.contact-info-item .button-like {
  margin-left: 0;
}

.button-like:hover,
.button-like:focus {
  background-color: #0369a1;
  color: white;
  outline: none;
}

.button-like svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  fill: currentColor;
}

.loading-spinner {
  display: none;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(3, 105, 161, 0.2);
  border-radius: 50%;
  border-top-color: #0369a1;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}