/* Root Variables - Palette and Theme */
:root {
  /* Primary Colors - Razdjelno-Complementary Scheme */
  --primary-color: #2E7D32; /* Deep green */
  --primary-dark: #1B5E20; /* Darker green */
  --primary-light: #4CAF50; /* Light green */
  
  /* Complementary Colors */
  --accent-color: #D32F2F; /* Vibrant red */
  --accent-dark: #B71C1C; /* Darker red */
  --accent-light: #EF5350; /* Light red */
  
  /* Split Complementary Colors */
  --secondary-color: #7B1FA2; /* Purple */
  --secondary-light: #9C27B0; /* Light purple */
  --tertiary-color: #1976D2; /* Blue */
  --tertiary-light: #2196F3; /* Light blue */
  
  /* Neutral Colors */
  --neutral-dark: #263238; /* Almost black */
  --neutral-medium: #607D8B; /* Gray blue */
  --neutral-light: #ECEFF1; /* Off-white */
  
  /* Text Colors */
  --text-dark: #212121; /* Nearly black for readability */
  --text-medium: #424242; /* Dark gray */
  --text-light: #FFFFFF; /* White for dark backgrounds */
  
  /* Functional Colors */
  --success: #4CAF50;
  --warning: #FFC107;
  --error: #F44336;
  --info: #2196F3;
  
  /* Spacing Variables */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-medium);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

.section-title {
  position: relative;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Button Styles */
.btn {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
  border: none;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  color: var(--text-light);
}

.btn-outline-light {
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.btn-outline-light:hover {
  background-color: var(--text-light);
  color: var(--primary-dark);
}

.btn-success {
  background-color: var(--success);
  color: var(--text-light);
}

.btn-success:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.btn-outline-dark {
  border: 2px solid var(--text-dark);
  color: var(--text-dark);
}

.btn-outline-dark:hover {
  background-color: var(--text-dark);
  color: var(--text-light);
}

/* Header/Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand h1 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
  color: var(--text-medium);
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

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

.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Contact Form Top */
.contact-form-top {
  padding-top: 120px !important;
  background-color: var(--neutral-light);
}

.contact-form-top .card {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-medium);
}

.contact-form-top .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.form-control {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.25);
  border-color: var(--primary-color);
}

.form-floating > .form-control:focus ~ label {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 70px;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-section h1 {
  color: var(--text-light);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-section p {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  animation: fadeInUp 1.2s ease-out;
}

.min-vh-80 {
  min-height: 80vh;
}

/* Services Section */
.services-section {
  background-color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(46, 125, 50, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.services-section .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-section .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.services-section .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.services-section .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.services-section .card:hover .card-img-top {
  transform: scale(1.05);
}

.services-section .card-body {
  padding: var(--spacing-md);
  text-align: center;
}

.services-section .card-title {
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.services-section .card-text {
  color: var(--text-medium);
}

/* Features Section */
.features-section {
  background-color: var(--neutral-light);
}

.features-section img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium);
}

.features-section img:hover {
  transform: scale(1.02);
}

.features-section .accordion-item {
  margin-bottom: var(--spacing-sm);
  border-radius: var(--border-radius-md) !important;
  overflow: hidden;
}

.features-section .accordion-button {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  background-color: var(--text-light);
  color: var(--text-dark);
  border: none;
  box-shadow: none;
}

.features-section .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(46, 125, 50, 0.05);
}

.features-section .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(46, 125, 50, 0.1);
}

.features-section .accordion-button::after {
  background-size: 1rem;
  transition: transform var(--transition-medium);
}

.features-section .accordion-body {
  padding: 1.5rem;
  background-color: var(--text-light);
}

.feature-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin-right: 10px;
}

/* Resources Section */
.resources-section {
  background-color: var(--text-light);
}

.resources-section .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resources-section .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.resources-section .card-body {
  padding: var(--spacing-md);
  text-align: center;
}

.resources-section .card-title {
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.resources-section .card-text {
  color: var(--text-medium);
  margin-bottom: var(--spacing-md);
}

.resources-section .btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.resources-section .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Projects Section */
.projects-section {
  background-color: var(--neutral-light);
}

.projects-section .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-section .card:hover {
  transform: translateY(-10px) rotate3d(1, 1, 0, 2deg);
  box-shadow: var(--shadow-lg);
}

.projects-section .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.projects-section .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.projects-section .card:hover .card-img-top {
  transform: scale(1.05);
}

.projects-section .card-body {
  padding: var(--spacing-md);
}

.projects-section .card-title {
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.projects-section .card-text {
  color: var(--text-medium);
  margin-bottom: var(--spacing-sm);
}

.badge {
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.5em 1em;
  border-radius: var(--border-radius-sm);
}

/* Sustainability Section */
.sustainability-section {
  background-color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.sustainability-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(46, 125, 50, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.sustainability-section img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium);
}

.sustainability-section img:hover {
  transform: scale(1.02);
}

/* Contact Section */
.contact-section {
  background-color: var(--neutral-light);
}

.contact-section .card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
}

.contact-section .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-section h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.contact-section .bi {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--neutral-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  z-index: 0;
}

.footer h3, .footer h4 {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-sm);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--text-light);
  text-decoration: none;
}

.footer .list-unstyled li {
  margin-bottom: var(--spacing-xs);
}

.footer .social-links a {
  display: inline-block;
  margin-right: var(--spacing-sm);
  transition: transform var(--transition-fast);
}

.footer .social-links a:hover {
  transform: translateY(-3px);
}

.footer hr {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-light);
}

.footer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer .form-control:focus {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(33, 37, 41, 0.95);
  color: white;
  padding: 15px;
  z-index: 9999;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0 15px 0 0;
  flex: 1;
}

.cookie-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.cookie-btn:hover {
  background-color: var(--primary-dark);
}

/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--neutral-light);
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: var(--spacing-lg);
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: var(--spacing-md);
}

/* Inner Pages (About, Privacy, Terms) */
.inner-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-xl);
}

.inner-page .container {
  max-width: 800px;
}

.inner-page h1 {
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
}

.inner-page h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.inner-page p {
  margin-bottom: var(--spacing-md);
  color: var(--text-medium);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Parallax Effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-form-top {
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .contact-form-top {
    padding-top: 90px;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .social-links {
    justify-content: center;
    margin-bottom: var(--spacing-md);
  }
  
  .inner-page {
    padding-top: 80px;
  }
}

@media (max-width: 576px) {
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .contact-form-top {
    padding-top: 80px;
  }
  
  .inner-page {
    padding-top: 70px;
  }
}

/* Utility Classes */
.bg-overlay {
  position: relative;
}

.bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.bg-overlay > * {
  position: relative;
  z-index: 2;
}

.text-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hover-scale {
  transition: transform var(--transition-medium);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.img-container {
  width: 100%;
  height: 0;
  padding-top: 66.67%; /* 3:2 Aspect Ratio */
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Read More Link Styles */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-right: 1.5rem;
  transition: all var(--transition-fast);
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
  padding-right: 1.75rem;
}

.read-more:hover::after {
  right: -0.25rem;
}
html,body{
  overflow-x: hidden;
}