html {
  scroll-behavior: smooth;
}

body { 
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: white;
  color: #222;
}

/* === HEADER NAD HERO === */
header {
  background: transparent;        
  padding: 2rem 1rem 1rem;
  text-align: center;
  position: relative;
  z-index: 3;                     
}

.site-logo {
  height: 110px;                   
  margin-bottom: 0.75rem;
}

.site-title {
  font-weight: 300;           
  font-size: 2rem;            
  color: #38311f;             
  letter-spacing: 1px;
  margin: 0.25rem 0 0;
}

/* === JEZIKI (LANGUAGE GRID) === */
.language-grid-container {
  max-width: 1200px;
  position: absolute;
  top: 220px;
  left: 0;
  right: 0;
  margin: auto;
  background: rgba(255, 255, 255, 0.15);   /* prosojno */
  backdrop-filter: blur(10px);             
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15); 
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.language-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  align-self: flex-start;
  color: white;
}

.under-construction {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  align-self: flex-start;
  color: white;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.language-card {
  background-color: white;
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
  text-decoration: none;
  color: #222;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  width: 260px;
  overflow: hidden;
  background-clip: padding-box;
}

.language-card:hover {
  transform: scale(1.03);
}

.language-card img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.language-card.inactive {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.7) 15px,
    rgba(245, 235, 220, 0.6) 15px,
    rgba(245, 235, 220, 0.6) 30px
  );
  cursor: not-allowed;
  opacity: 0.7;
}

.language-card:focus,
.language-card:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(235, 210, 170, 0.35) !important;
  border-radius: 0.75rem;
}

.language-card::-moz-focus-inner {
  border: 0;
}

/* === HERO OZADJE === */
.background-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: -1;
}

/* === WELCOME SEKCIJA === */
.welcome-section {
  background-color: #c75b5b;
  padding: 4rem 2rem;
  position: relative;
}

.welcome-panel-background {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100px;
  width: 50%;
  background-color: #fdf9f6;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.welcome-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease-out;
}

.welcome-left, .welcome-right {
  flex: 1;
  min-width: 300px;
}

.welcome-left h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
  font-weight: 600;
}

.welcome-left p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.welcome-right img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

/* === ALPHABET SEKCIJA === */
.alphabet-section {
  padding: 4rem 2rem;
  background-color: #d0eae2;
  position: relative;
}

.alphabet-panel-background {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100px;
  width: 50%;
  background-color: #fdf9f6;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.alphabet-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  animation: fadeIn 1.2s ease-out;
}

.alphabet-left, .alphabet-right {
  flex: 1;
  min-width: 300px;
}

.alphabet-left img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.alphabet-right h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
  font-weight: 600;
}

.alphabet-right p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* === ABOUT US SEKCIJA === */
.about-us-section {
  padding: 4rem 2rem;
  background-color: #f3e9d3;
  position: relative;
}

.about-panel-background {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100px;
  width: 50%;
  background-color: #fdf9f6;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.about-us-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  animation: fadeIn 1.2s ease-out;
}

.about-us-left, .about-us-right {
  flex: 1;
  min-width: 300px;
}

.about-us-left h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
  font-weight: 600;
}

.about-us-left p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.about-us-right img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

/* === FOOTER === */
footer {
  background-color: white;
  color: #222;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #222;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links span {
  color: #ccc;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* === ANIMACIJE === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.language-grid-container { animation: fadeIn 1.2s ease-out; }
.background-image { animation: fadeIn 1.6s ease-out; }
.welcome-inner { animation: fadeIn 1s ease-out; }
.alphabet-inner { animation: fadeIn 1.2s ease-out; }
.about-us-inner { animation: fadeIn 1.4s ease-out; }

/* === RESPONSIVE === */
@media (max-width: 400px) {
  .language-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    justify-items: center;
  }
  .language-card {
    width: 100%;
    max-width: 320px;
  }
  .language-grid-container { padding: 1.5rem 1rem; }
  .welcome-panel-background,
  .alphabet-panel-background,
  .about-panel-background { display: none; }
  .welcome-inner,
  .alphabet-inner,
  .about-us-inner {
    flex-direction: column;
    text-align: center;
  }
  .welcome-left, .welcome-right,
  .alphabet-left, .alphabet-right,
  .about-us-left, .about-us-right { width: 100%; }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-links span { display: none; }
}

@media (min-width: 401px) and (max-width: 768px) {
  .language-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    justify-items: center;
  }
  .language-card {
    width: 100%;
    max-width: 160px;
  }
  .language-grid-container { padding: 1.5rem 1rem; }
  .welcome-panel-background,
  .alphabet-panel-background,
  .about-panel-background { display: none; }
  .welcome-inner,
  .alphabet-inner,
  .about-us-inner {
    flex-direction: column;
    text-align: center;
  }
  .welcome-left, .welcome-right,
  .alphabet-left, .alphabet-right,
  .about-us-left, .about-us-right { width: 100%; }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-links span { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .language-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    justify-items: center;
  }
  .language-card {
    width: 100%;
    max-width: 200px;
  }
  .language-grid-container { padding: 2rem 1.5rem; }
  .welcome-panel-background,
  .alphabet-panel-background,
  .about-panel-background { display: none; }
  .welcome-inner,
  .alphabet-inner,
  .about-us-inner {
    flex-direction: column;
    text-align: center;
  }
  .welcome-left, .welcome-right,
  .alphabet-left, .alphabet-right,
  .about-us-left, .about-us-right { width: 100%; }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-links span { display: none; }
}

/* LOGO responsive */
@media (max-width: 768px) {
  .site-logo { height: 95px !important; }
}
@media (max-width: 480px) {
  .site-logo { height: 80px !important; }
}
