/* CSS VARIJABLE - Opcija 2: Premium Zdravstvena Paleta */
:root {
    /* Glavne boje */
    --primary-blue: #1e3a8a;        /* Duboka plava - profesionalna */
    --secondary-green: #059669;     /* Živopisna zelena - zdravlje, priroda */
    --accent-coral: #f97316;        /* Koralna - pozitiv, energija */
    --dark-text: #1e293b;           /* Tamni tekst */

    /* Neutralne */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --border-gray: #e2e8f0;

    /* Gradijenti */
    --hero-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #059669 100%);
    --product-gradient: linear-gradient(135deg, #d1fae5 0%, #f0fdf4 100%);
    --about-gradient: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --icon-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: 'Lato', sans-serif;
}

body, p {
  font-family: 'Open Sans', sans-serif;
}

/* HEADER SECTION */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo img {
    max-width: 120px;
    height: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 23px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-green);
    transform: scale(1.05);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        order: 2;
    }

    .logo {
        order: 1;
    }

    .cta {
        order: 3;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav a {
        padding: 15px 30px;
        width: 100%;
        text-align: left;
        font-size: 20px;
    }

    nav a:hover {
        background-color: rgba(5, 150, 105, 0.1);
        transform: scale(1);
    }
}

.cta-button {
    background-color: var(--accent-coral);
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.cta-button:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.hero-wrapper {
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(5, 150, 105, 0.15) 100%);
    pointer-events: none;
}

/* HERO SECTION */

.hero {
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 60vh;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.05);
}
.hero-content {
    max-width: 800px;
    margin: auto;
    z-index: 1;
    position: relative;
}
.hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
    color: #ffffff;
    background-color: rgba(96, 102, 109, 0.6);
    padding: 2px 6px;
    border-radius: 14px;
}
.hero p {
    font-size: 30px;
    margin-bottom: 28px;
    color: #ffffff;
    background-color: rgba(96, 102, 109, 0.6);
    padding: 2px 6px;
    border-radius: 16px;
}

/* O NAMA SECTION */

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    background: var(--light-gray);
    gap: 20px;
}

.about-us,
.about-section {
    flex: 1 1 48%; 
    box-sizing: border-box;
    
}

.about-us img {
    width: 100%;
    height: auto;
    border-radius: 8px; 
}

.about-section h2 {
    font-size: 30px;
    margin-bottom: 20px;
    
}

.about-section p, 
.about-section ul {
    font-size: 20px;
    line-height: 1.6;
}

.about-section ul {
    margin-top: 10px;
    padding-left: 20px;
}

.about-section li {
    margin-bottom: 5px;
}

.about-section {
    background: var(--about-gradient);
    color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.3);
}

.about-section h2 {
    font-size: 36px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-us img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}

.about-us,
.about-section {
    transition: transform 0.3s ease;
}

.about-us:hover,
.about-section:hover {
    transform: scale(1.05); 
}

@media (max-width: 768px) {
    .about-us {
        flex: 0 0 100%;
        text-align: center;
    }
    .about-us img {
        max-width: 100%;
        height: auto;
    }
}



/* PRODUKTI SECTION */

.products-section {
  padding: 60px 20px;
  background: var(--product-gradient);
  border-radius: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.products-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--secondary-green);
  text-align: center;
  width: 100%;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px;
  width: 100%;
  max-width: 1200px;  
  margin: 0 auto; 
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.15);
  border: 1px solid #a7f3d0;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 20%;
  transition: transform 0.3s ease-in-out;
}

.product-card img:hover {
  transform: scale(1.05);
}

.product-info {
  text-align: center;
  margin-top: 20px;
}

.product-info h3 {
  font-size: 22px;
  color: var(--secondary-green);
  margin-bottom: 10px;
}

.product-info p {
  font-size: 18px;
  color: var(--dark-text);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr; 
  }
}

/* KONTAKTI SECTION */

  .contact-section {
    width: 100%;
    padding: 60px 20px;
    background-color: rgba(96, 102, 109, 0.01);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-blue);
  }

  .contact-container {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    background: var(--product-gradient);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--secondary-green);
  }

  .contact-form-wrapper h3 {
    color: var(--secondary-green);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  .form-group label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: 16px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-green);
  }

  .submit-btn {
    background-color: var(--accent-coral);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  }

  .submit-btn:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  }

  .form-message {
    margin-top: 20px;
    text-align: center;
  }

  .form-message .success {
    color: #28a745;
    font-weight: 600;
    padding: 15px;
    background-color: #d4edda;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
  }


  .contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--product-gradient);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--secondary-green);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
  }

  .contact-info h3 {
    color: var(--secondary-green);
    font-size: 24px;
    margin-bottom: 10px;
    text-align: left;
  }

  .contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-family: sans-serif;
    padding: 8px 0;
  }

  .contact-item strong {
    min-width: 100px;
    color: var(--dark-text);
    font-weight: 600;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .contact-item a,
  .contact-item p {
    margin: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    line-height: 1.5;
  }

  .contact-item a:hover {
    text-decoration: underline;
    color: var(--secondary-green);
    transform: scale(1.05);
    transition: all 0.3s ease;
  }

  @media (max-width: 768px) {
    .contact-container {
      flex-direction: column;
    }

    .contact-form-wrapper,
    .contact-info {
      min-width: 100%;
    }
  }

/* FOOTER SECTION*/

.footer-name {
    display: block;
    width: 100%;
    text-align: center;           
    padding: 20px 0;              
    color: #333;    
    font-weight: bold;           
    font-size: 20px;    
    background-color: rgba(96, 102, 109, 0.01);          
                    
}

/* LANGUAGE SECTION */
.lang-hidden {
  display: none !important;
}

.language-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.language-switch button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid white;
  color: white;
  background-color: rgba(30, 58, 138, 0.8);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.language-switch button:hover {
  background-color: rgba(5, 150, 105, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.language-switch button.active {
  background-color: var(--secondary-green);
  border-color: #ffd700;
}

.flag-img {
  width: 28px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s ease;
  max-height: 85vh;
  overflow-y: auto;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h2 {
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-size: 32px;
  text-align: center;
}

.modal-content h3 {
  color: var(--secondary-green);
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 22px;
}

.modal-content p {
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 35px;
  font-weight: bold;
  line-height: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: var(--accent-coral);
}

.learn-more-btn {
  background-color: var(--accent-coral);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.learn-more-btn:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 20px;
    margin: 10% auto;
  }

  .modal-content h2 {
    font-size: 24px;
  }

  .modal-content h3 {
    font-size: 18px;
  }
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--icon-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

/* SCROLL ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Remove existing fadeIn animation from product cards */
.product-card {
  opacity: 1;
  animation: none;
}