/* Root Variables */
:root {
  /* Primary Triadic Color Scheme */
  --primary-color: #2e58ff;
  --secondary-color: #ff2e7a;
  --tertiary-color: #7aff2e;
  
  /* Darker Variants */
  --primary-dark: #1a3db8;
  --secondary-dark: #d01e60;
  --tertiary-dark: #5ec01e;
  
  /* Lighter Variants */
  --primary-light: #7a94ff;
  --secondary-light: #ff7aa6;
  --tertiary-light: #a6ff7a;
  
  /* Neutral Colors */
  --dark: #222222;
  --dark-gray: #444444;
  --medium-gray: #777777;
  --light-gray: #eeeeee;
  --white: #ffffff;
  
  /* Font Families */
  --heading-font: 'Roboto', sans-serif;
  --body-font: 'Lato', sans-serif;
  
  /* Shadow & Effects */
  --neo-shadow: 5px 5px 0px rgba(0,0,0,0.8);
  --card-shadow: 0 4px 20px rgba(0,0,0,0.15);
  --transition-speed: 0.3s;
  --border-radius: 4px;
  --brutalist-border: 3px solid var(--dark);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
  padding-top: 0px !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 4rem 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar Styles */
.navbar {
  transition: all var(--transition-speed);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-item {
  transition: color var(--transition-speed);
}

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

.navbar-burger {
  transition: all var(--transition-speed);
}

.navbar-burger:hover {
  background-color: var(--light-gray);
}

/* Neo-Brutalist Button Styles */
.button {
  position: relative;
  transition: all 0.3s ease;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--heading-font);
  letter-spacing: 0.5px;
}

.button.is-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 3px solid var(--primary-color);
  box-shadow: var(--neo-shadow);
  transform: translate(-2px, -2px);
}

.button.is-primary:hover, .button.is-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translate(0, 0);
  box-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

.button.is-light {
  border: 3px solid var(--dark);
  box-shadow: var(--neo-shadow);
  transform: translate(-2px, -2px);
}

.button.is-light:hover, .button.is-light:focus {
  background-color: var(--light-gray);
  transform: translate(0, 0);
  box-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

.button.is-outlined {
  border: 2px solid currentColor;
}

.button.is-outlined:hover {
  text-decoration: underline;
}

.button.is-large {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

/* Hero Section */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-body {
  display: flex;
  align-items: center;
  position: relative;
}

.hero .title, .hero .subtitle, .hero p {
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .buttons {
  margin-top: 2rem;
}

/* Sections Styling */
.section {
  position: relative;
}

.section .title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section .title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background-color: var(--primary-color);
}

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

.section.has-background-primary .title {
  color: var(--white);
}

.section.has-background-primary .title::after {
  background-color: var(--white);
}

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

/* Card Styling */
.card {
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: var(--brutalist-border);
  box-shadow: var(--neo-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--white);
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0px rgba(0,0,0,0.8);
}

.card-image {
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  transition: transform var(--transition-speed);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content .title {
  margin-top: 0;
}

.card-content .button {
  margin-top: auto;
  align-self: flex-start;
}

/* Box Styling */
.box {
  border: var(--brutalist-border);
  box-shadow: var(--neo-shadow);
  transition: all var(--transition-speed);
  padding: 2rem;
  height: 100%;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0px rgba(0,0,0,0.8);
}

.box.has-background-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.box.has-background-primary .title {
  color: var(--white);
}

/* Timeline Styling */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50px;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 100%;
  margin-bottom: 30px;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border: 4px solid var(--white);
  border-radius: 50%;
  left: 50px;
  margin-left: -10px;
  z-index: 1;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--white);
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-left: 20px;
  border: var(--brutalist-border);
}

/* Statistics Section */
.section#statistika .box {
  text-align: center;
  padding: 2rem;
}

.section#statistika .title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Form Styling */
.field {
  margin-bottom: 1.5rem;
}

.label {
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--dark);
}

.input, .textarea, .select select {
  background-color: var(--white);
  border: 2px solid var(--dark);
  border-radius: var(--border-radius);
  padding: 0.8rem;
  width: 100%;
  transition: border-color var(--transition-speed);
  font-family: var(--body-font);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(46, 88, 255, 0.2);
  outline: none;
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input {
  margin-right: 0.5rem;
}

/* Footer Styling */
.footer {
  padding: 3rem 0;
}

.footer .title {
  margin-bottom: 1.5rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

.footer .has-text-centered {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

/* Cookie Popup */
#cookie-popup {
  transition: all var(--transition-speed);
}

#cookie-popup button {
  margin-left: 1rem;
  cursor: pointer;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
  border: var(--brutalist-border);
  box-shadow: var(--neo-shadow);
  padding: 3rem;
  background-color: var(--white);
}

.success-icon {
  font-size: 5rem;
  color: var(--tertiary-color);
  margin-bottom: 1rem;
}

/* Terms & Privacy Pages */
.terms-page, .privacy-page {
  padding-top: 100px;
}

.terms-page .content, .privacy-page .content {
  background-color: var(--white);
  padding: 2rem;
  border: var(--brutalist-border);
  box-shadow: var(--neo-shadow);
}

/* About Page */
.about-page {
  padding-top: 100px;
}

.about-team .card {
  text-align: center;
}

.about-team .card-image {
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-team .card-image img {
  object-position: center;
}

/* Contacts Page */
.contacts-page {
  padding-top: 100px;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-map {
  height: 400px;
  width: 100%;
  border: var(--brutalist-border);
}

/* 3D Effects and Animations */
[data-aos] {
  transform-style: preserve-3d;
  perspective: 1000px;
}

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

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Special Section Styles */
.section#zajednica {
  color: var(--white);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Read More Links */
a.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: all var(--transition-speed);
}

a.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: margin var(--transition-speed);
}

a.read-more:hover {
  color: var(--primary-dark);
}

a.read-more:hover::after {
  margin-left: 0.8rem;
}

/* Media Queries */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
  }
  
  .navbar-item {
    color: var(--dark);
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
  }
  
  .timeline-marker {
    left: 30px;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  .hero-body {
    padding: 6rem 1.5rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  .section .title {
    font-size: 1.75rem;
  }
  
  .timeline-content {
    padding: 15px;
  }
  
  .button.is-large {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  section {
    padding: 2rem 0;
  }
  
  .hero-body {
    padding: 4rem 1rem;
  }
  
  .section .title {
    font-size: 1.5rem;
  }
  
  .button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .timeline::after {
    left: 21px;
  }
  
  .timeline-marker {
    left: 20px;
    width: 15px;
    height: 15px;
    margin-left: -7.5px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 30px;
  }
}