* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'alanSans', sans-serif;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.7;
}

@font-face {
    font-family: 'alanSans'; 
    src: url('../fonts/static/AlanSans-Regular.ttf') format('opentype'); 
    font-weight: normal; 
    font-style: normal;
    font-display: swap;
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #00408066, transparent);
  margin: 0;
  opacity: 10%;
}



/* Header */
header {
  position: fixed;                
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  
  backdrop-filter: blur(10px);      
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.0);
  color: #ffffff;
  padding: 1rem 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: transform 0.4s ease, background 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95); 
  color: #000; 
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: flex;                 
  align-items: center;           
  height: 100%;                  
  padding: 0.5rem 0;             
  transition: color 0.3s ease, transform 0.3s ease;
}




header.scrolled nav ul li a {
  color: #000;
}

nav ul li a:hover {
  transform: scale(1.04);
}

header.scrolled nav ul li a:hover {
  color: #004080;
}

.lang-btn {
  background: #ffffff;
  color: #1a2a44 !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;          
  align-items: center;           
  justify-content: center;       
  transition: background 0.3s ease, transform 0.2s ease;
}

header.scrolled .lang-btn {
  background: #004080;
  color: #fff !important;
}

.lang-btn:hover {
  transform: scale(1.04);
}


/* kada se sakrije pri scrollu */
header.hide {
  transform: translateY(-100%);
}


/* Hero sekcija */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
              url("../img/1.webp") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 10%;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
}

/* Sekcije */
section {
  padding: 80px 8%;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #004080;
}

.features{
    background: #f8faff;
    border-bottom: 1px solid #e0e0e0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.feature-card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #004080;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #004080;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
}


/* Usluge */
.services{
    border-bottom: 1px solid #e0e0e0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.service-card {
  background: #f9f9ff;
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid #e6e6f0;
  box-shadow: 0 3px 14px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  background: #fff;
}

.service-card h3 {
  font-size: 1.2rem;
  color: #004080;
  margin-bottom: 1rem;
  border-left: 4px solid #ffcc00;
  padding-left: 0.6rem;
}

.service-card ul {
  list-style: disc inside;
  margin-bottom: 1.2rem;
  color: #444;
}

.service-card li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.service-card .benefit {
  font-weight: 600;
  color: #004080;
  background: #eef5ff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: inline-block;
}


/* O nama */
.about {
  background: #f8faff;
  padding: 80px 8%;
  border-bottom: 1px solid #e0e0e0;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
  font-size: 1.05rem;
  color: #444;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.about-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #e5e9f2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.about-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #004080;
}

.about-card h3 {
  font-size: 1.15rem;
  color: #004080;
  margin-bottom: 0.6rem;
}

.about-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Footer */
footer {
  color: #333;
  padding: 3rem 8% 1rem 8%;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-about,
.footer-contact {
  flex: 1 1 300px;
}

.footer-about h3,
.footer-contact h3 {
  color: #004080;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-about p {
  max-width: 400px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.footer-contact p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.footTel{
    color: #333 !important;
}

.footer-contact a {
  color: #004080;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #004080;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  text-align: center;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.footer-bottom .credits {
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.footer-bottom .credits a {
  color: #004080;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.3s ease, color 0.1s ease;
}

.footer-bottom .credits a:hover {
  transform: scale(1.02);
}

#toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 250px;
  background: #004080;
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}

.toast.success { background: #28a745; }
.toast.error { background: #dc3545; }

.toast .progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255,255,255,0.7);
  animation: shrink linear forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-20px); }
}

@keyframes shrink {
  from { width: 100%; }
  to { width: 0%; }
}


@media (max-width: 768px) {
    
  header nav ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100%;
  }

  header nav ul > li:not(.keep-on-mobile) {
    display: none !important;
  }
  header nav ul > li.keep-on-mobile {
    display: block !important;
  }

  .lang-btn:hover {
    transform: scale(1);
  }

  header nav ul > li.keep-on-mobile .lang-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.42rem 0.85rem !important;
    font-size: 0.92rem !important;
    text-decoration: none !important;
  }

  header {
    background: rgba(255, 255, 255, 0.06) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
  }

  header:not(.scrolled) .lang-btn {
    background: rgba(255,255,255,0.95) !important;
    color: #1a2a44 !important;
  }
  header.scrolled .lang-btn {
    background: #004080 !important;
    color: #fff !important;
  }

  .hero{
    padding-top: 45vh; 
    min-height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url("../img/1.webp") center/cover no-repeat;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 60px 6%;
  }

  .features{
    padding: 20px 10px;
  }

  .features h2{
    margin-bottom: 0;
  }

  .features-grid{
    margin-top: 20px;
    gap: 15px;
  }

  .feature-card .icon{
    margin-bottom: 10px;
  }

  .feature-card h3{
    margin: 0;
  }

  .feature-card:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  }

  .services{
    padding: 20px 10px 20px 10px;
  }

  .services h2{
    margin: 0;
  }

  .services-grid{
    margin-top: 20px;
  }

  .services-grid{
    gap: 15px;
  }

  .service-card{
    padding-top: 20px;
    padding-bottom: 25px;
  }

  .service-card:hover {
    transform: none;
    box-shadow: 0 3px 14px rgba(0,0,0,0.05);
    background: #f9f9ff;
  }

  .about{
    padding: 20px 10px 20px 10px;
  }

  .about-grid{
    gap: 15px;
  }

  .about-card .icon{
    margin-bottom: 10px;
  }

  .about-card:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  }

  .contact{
    padding: 20px 10px 20px 10px;
  }

  .footer-bottom .credits a:hover {
  transform: scale(1);
}
}
