/* Osnovni stili */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Preprečevanje animacij med nalaganjem */
.preload * {
  animation-duration: 0s !important;
  transition: none !important;
}

:root {
  --color-primary: #8B0000;
  --color-secondary: #0000cd;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-400: #9ca3af;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-white: #ffffff;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  color: var(--color-gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Navigacija */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
  background-color: transparent;
}

#mainNav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.125rem;
  background-color: var(--color-primary);
  transition: all 0.2s;
  width: 0%;
}

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

.logo {
  flex-shrink: 0;
  position: relative;
}

.logo img {
  height: 3rem;
  width: auto;
  transition: transform 0.2s;
}

.logo:hover img {
  transform: scale(1.05);
}

.desktop-menu {
  display: none;
}

@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  color: var(--color-gray-900);
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.underline {
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background-color: var(--color-primary);
  transition: all 0.2s;
}

.nav-link:hover .underline, .nav-link.active .underline {
  width: 100%;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.language-selector .current-language {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flag {
  font-size: 1.125rem;
}

.language-text {
  display: none;
  font-weight: 500;
}

@media (min-width: 640px) {
  .language-text {
    display: inline;
  }
}

.language-selector .language-options {
  position: absolute;
  top: 110%;
  right: 0;
  background-color: var(--color-white);
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 160px;
  overflow: hidden;
  display: none;
}

.language-selector.active .language-options {
  display: block;
}

.language-selector .language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.language-selector .language-option:hover {
  background-color: var(--color-gray-100);
}

.language-selector .language-option .flag {
  font-size: 1.125rem;
}

.language-selector .language-option .language-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-800);
}

/* Mobilni izbirnik jezika */
.mobile-language {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 0;
  position: relative;
  width: 100%;
}

.mobile-language .current-language {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

.mobile-language .language-options {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid var(--color-gray-100);
  padding-top: 0.5rem;
}

.mobile-language .language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-language .language-option:hover {
  color: var(--color-primary);
}

.mobile-language .flag {
  font-size: 1.25rem;
}

@media (max-width: 480px) {
  .language-selector {
    padding: 0.375rem 0.75rem;
  }
  
  .mobile-language .language-option {
    padding: 0.625rem 0;
  }
}

.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  color: var(--color-gray-900);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-button:hover {
  color: var(--color-primary);
  background-color: rgba(249, 250, 251, 0.8);
}

.mobile-menu-button:focus {
  outline: none;
  ring: 2px solid var(--color-primary);
  ring-offset: 2px;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

.hamburger-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hamburger-line {
  position: absolute;
  height: 2px;
  width: 1.5rem;
  background-color: currentColor;
  transform: translateY(0);
  transition: transform 0.2s;
}

.hamburger-line:nth-child(1) {
  transform: translateY(-8px);
}

.hamburger-line:nth-child(3) {
  transform: translateY(8px);
}

/* Hero section */
#hero {
  position: relative;
  height: 100vh;
  background-color: var(--color-gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-container {
  opacity: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.2s;
  z-index: 1;
}

.hero-image {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  width: 100%;
}

.hero-text, .hero-subtitle, .hero-cta {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.hero-text {
  font-weight: 600;
}

.hero-text {
  animation-delay: 0.8s;
}

.hero-subtitle {
  animation-delay: 1.2s;
}

.hero-cta {
  animation-delay: 1.6s;
  margin-top: 2rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle p {
  font-size: 1.125rem;
  color: var(--color-white);
  margin-top: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3.5rem;
    max-width: 80%;
    margin: 0 auto;
  }
  
  .hero-subtitle p {
    font-size: 1.5rem;
    max-width: 70%;
    margin: 1.5rem auto 0;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 2s;
}

.scroll-bounce {
  animation: bounce 1.5s infinite;
}

.scroll-arrow {
  width: 2rem;
  height: 2rem;
  color: var(--color-white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Sekcije */
section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.section-light {
  background-color: var(--color-white);
}

.section-gray {
  background-color: var(--color-gray-50);
}

.section-header {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 1s ease-out forwards;
  margin-bottom: 2rem;
  text-align: center;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    font-size: 2.25rem;
  }
}

/* Mission section */
.mission-content {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.mission-card {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.2s;
  background-color: var(--color-gray-50);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.mission-card p {
  font-size: 1.125rem;
  color: var(--color-gray-700);
  line-height: 1.625;
}

@media (min-width: 768px) {
  .mission-card {
    padding: 2rem;
  }
  
  .mission-card p {
    font-size: 1.25rem;
  }
}

/* Features section */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.feature-card {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 1s ease-out forwards;
  background-color: var(--color-white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.feature-card:nth-child(1) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.6s;
}

.feature-icon {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 1rem;
  color: var(--color-gray-600);
}

@media (min-width: 768px) {
  .feature-card {
    padding: 2rem;
  }
  
  .feature-icon {
    font-size: 2.25rem;
  }
  
  .feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .feature-card p {
    font-size: 1.125rem;
  }
}

/* Footer */
footer {
  background-color: var(--color-gray-900);
  color: var(--color-white);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-column h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-column p {
  color: var(--color-gray-400);
}

.footer-links, .contact-list {
  list-style: none;
  margin-top: 0.5rem;
}

.footer-links li, .contact-list li {
  margin-bottom: 0.5rem;
}

.footer-links a, .contact-list a {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover, .contact-list a:hover {
  color: var(--color-white);
}

.contact-icon {
  margin-right: 0.5rem;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-800);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--color-gray-400);
}

/* Gumbi */
.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #700000;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Animacije */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Mobilni meni prilagoditve */
.mobile-menu {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  z-index: 40;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-container {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-800);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-gray-100);
  display: block;
  width: 100%;
  transition: color 0.2s;
}

.mobile-nav-link:active {
  transform: scale(0.98);
}

.mobile-nav-link.active {
  color: var(--color-primary);
}

.mobile-contact-section {
  margin-top: 15px;
  margin-bottom: 10px;
  padding: 30px 0;
  background-color: #f9f9f9;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-contact-section h3 {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.mobile-contact-icon {
  margin-right: 15px;
  font-size: 24px;
  color: var(--color-gray-700);
  min-width: 24px;
  text-align: center;
}

.mobile-contact-item a {
  color: var(--color-gray-800);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.mobile-contact-item a:hover {
  color: var(--color-primary);
}

/* Touch prilagoditve za mobilne naprave */
@media (hover: none) {
  .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.12);
  }
  
  .mobile-menu-button:active {
    color: var(--color-primary);
    background-color: rgba(249, 250, 251, 0.8);
  }
  
  .nav-link:active .underline {
    width: 100%;
  }
  
  .feature-card:active {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  
  .mobile-contact-item a:active {
    color: var(--color-primary);
    transform: scale(0.98);
  }
}

/* Dodatne mobilne optimizacije */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle p {
    font-size: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .mission-card p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .logo img {
    height: 2.5rem;
  }
  
  .footer-column h3 {
    font-size: 1.125rem;
  }
  
  .footer-column p,
  .footer-links a, 
  .contact-list a {
    font-size: 0.875rem;
  }
  
  .mobile-contact-section {
    padding: 20px 0;
  }
  
  .mobile-contact-section h3 {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .mobile-contact-item {
    margin-bottom: 20px;
  }
  
  .mobile-contact-item a {
    font-size: 15px;
  }
  
  .mobile-contact-icon {
    font-size: 20px;
    margin-right: 12px;
  }
}

/* Izboljšana dostopnost za dotik */
.nav-link, .btn, .mobile-nav-link, .footer-links a, .contact-list a {
  touch-action: manipulation;
}

/* Optimizacija nalaganja slik */
.hero-image {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .hero-image-container {
    height: 100%;
  }
  
  #hero {
    height: 60vh;
  }
}

/* Povečaj velikost elementov, ki se klikajo, na mobilnih napravah */
@media (max-width: 768px) {
  .mobile-menu-button {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .hamburger-line {
    width: 1.75rem;
  }
  
  .footer-links li, .contact-list li {
    margin-bottom: 1rem;
  }
}

/* Dodamo iOS hitro nalaganje (iOS momentum scrolling) */
.mobile-menu, body, html {
  -webkit-overflow-scrolling: touch;
}

/* Boljše obnašanje za slike na manjših zaslonih */
img {
  max-width: 100%;
  height: auto;
}

/* Stili za podatke o vodstvu */
.management-info {
  margin-bottom: 1rem;
}

.management-person {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

.management-person strong {
  font-weight: 600;
  color: var(--color-gray-800);
  display: block;
  margin-bottom: 0.25rem;
}

/* Posebni stili za vodstvo v footerju */
footer .management-person strong {
  color: var(--color-gray-100);
  font-weight: 600;
}

footer .management-person span {
  color: var(--color-gray-300);
}

footer .management-person a {
  color: var(--color-primary);
  font-weight: 500;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

footer .management-person a:hover {
  color: var(--color-white);
}

footer .contact-icon {
  color: var(--color-gray-300);
}

.management-person span {
  display: block;
  margin-bottom: 0.25rem;
}

.management-person a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.management-person a:hover {
  color: var(--color-gray-900);
}

/* Stili za kontaktno stran - sekcija vodstvo */
.contact-detail .management-info {
  margin-top: 0.5rem;
}

.contact-detail .management-person {
  margin-bottom: 1rem;
}

.contact-detail .management-person:last-child {
  margin-bottom: 0;
}

/* Responsive stili za vodstvo */
@media (max-width: 480px) {
  .management-person {
    margin-bottom: 1rem;
  }
  
  .management-person strong,
  .management-person span {
    font-size: 0.9rem;
  }
} 