/* CSS Varijable za konzistentne boje */
:root {
  --primary-green: #2c5e3a;
  --secondary-green: #1e4d31;
  --accent-yellow: #a3e635;
  --cyan: #00FFFF;
  --cyan-hover: #00CCCC;
  --dark-bg: #111827;
  --text-light: #dad7cd;
  --text-gray: #4b5563;
  --white: #fff;
  --black: #000;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: linear-gradient(135deg, #344e41, #3a5a40);
  color: var(--text-light);
}

/* Custom Styles for Tailwind Overrides */
.nav-link {
  transition: color 0.3s ease;
}

.cta-btn, .service-btn {
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.feature-card, .service-card, .testimonial-card, .blog-card, .team-card, .approach-card, .story-step, .community-card {
  transition: all 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styling */
header {
  background: linear-gradient(135deg, rgba(44, 94, 58, 0.7), rgba(17, 24, 39, 0.7));
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 50;
  top: 0;
  padding: 15px 20px;
}

header .logo a {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.navigation {
  display: flex;
  gap: 2rem;
}

.navigation a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.125rem;
}

.navigation a:hover {
  color: var(--accent-yellow);
}

.telegram-btn {
  background-color: var(--primary-green);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 5px;
  border: 2px solid var(--primary-green);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.telegram-btn:hover {
  background-color: var(--secondary-green);
  border-color: var(--secondary-green);
  transform: translateY(-2px);
}

/* Mobile Menu */
#mobile-menu {
  background: var(--white);
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
}

#mobile-menu.show {
  display: block;
}

#mobile-menu-btn {
  display: none;
  border: 1px solid var(--white);
  border-radius: 5px;
  padding: 4px 8px;
}

#mobile-menu a {
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  width: 100%;
  padding: 12px 16px;
}

#mobile-menu a:hover {
  color: var(--accent-yellow);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #344e41, #3a5a40);
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-section h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* Scroll Down Arrow */
.scroll-down {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* About Section */
.about-section {
  background: var(--white);
  padding: 5rem 1rem;
}

.about-section h2 {
  color: #344e41;
  font-size: 2.5rem;
  font-weight: 800;
}

.about-section p {
  color: var(--text-gray);
  font-size: 1.25rem;
}

/* Our Story Section */
.our-story {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-bg));
  padding: 5rem 1rem;
  position: relative;
}

#story-particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

#story-particles-js canvas {
  background: transparent;
}

.our-story h2 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 800;
}

.story-step {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
}

.story-step h3 {
  color: #344e41;
  font-size: 1.25rem;
}

.story-step p {
  color: var(--text-gray);
}

.step-number {
  background-color: var(--primary-green);
  color: var(--white);
}

/* Our Approach Section */
.our-approach {
  background: #f9f9f9;
  padding: 5rem 1rem;
}

.our-approach h2 {
  color: #344e41;
  font-size: 3rem;
  font-weight: 800;
}

.approach-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.approach-card h3 {
  color: #344e41;
  font-size: 1.25rem;
}

.approach-card p {
  color: var(--text-gray);
}

.approach-card i {
  color: var(--primary-green);
}

.approach-card i.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Community Spotlight Section */
.community-spotlight {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-bg));
  padding: 4rem 1rem;
}

.community-spotlight h2 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 800;
}

.community-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.community-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.community-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.community-card h3 {
  color: #344e41;
  font-size: 1.25rem;
}

.community-card p {
  color: var(--text-gray);
}

@media (max-width: 768px) {
  .community-card {
    width: 85% !important;
    min-width: 0 !important;
  }

  .community-carousel {
    padding-left: 40px;
    padding-right: 40px;
  }

  #prevBtn, #nextBtn {
    z-index: 10;
  }
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (min-width: 768px) {
  .community-carousel {
    display: flex;
    justify-content: space-between;
  }
  .community-card {
    flex: 1 1 30%;
  }
}

@media (max-width: 768px) {
  .community-carousel {
    padding-left: 10px;
    padding-right: 10px;
  }
  .community-card {
    width: 85% !important;
    min-width: 0 !important;
  }
  .community-spotlight h2 {
    font-size: 1.5rem !important;
    line-height: 1.2;
    white-space: nowrap;
  }

}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-bg));
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  background-attachment: fixed;
  background-size: cover;
  position: relative;
}

#cta-particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

.cta-section h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.cta-section h2 {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .cta-section h2 {
    margin-bottom: 4rem;
  }
}

.cta-btn, .service-btn {
  background-color: var(--primary-green);
  color: var(--white);
  font-size: 1.25rem;
  padding: 14px 32px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover, .service-btn:hover {
  background-color: var(--secondary-green);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(44, 94, 58, 0.7);
}

/* Footer Styling */
.footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 4rem 0;
}

.footer h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-yellow);
}

.footer .social-icons a {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.footer .social-icons a:hover {
  color: var(--accent-yellow);
}

.footer .footer-links a {
  color: var(--text-light);
  margin-right: 15px;
  transition: color 0.3s ease;
}

.footer .footer-links a:hover {
  color: var(--accent-yellow);
}

/* Responsive Styling */
@media (max-width: 768px) {
  .navigation {
    display: none;
  }

  #mobile-menu-btn {
    display: block;
  }

  #mobile-menu {
    background: var(--white);
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
  }

  .hero-section h1 {
    font-size: 3rem;
  }

  .hero-section p {
    font-size: 1.5rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1.25rem;
  }

  .about-section .flex {
    flex-direction: column;
  }

  .about-section img {
    max-width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer .container {
    grid-template-columns: 1fr;
  }

  .about-section h2 {
    font-size: 2rem !important;
  }

  .about-section p {
    font-size: 1rem !important;
  }
}