/* Global styles */
:root {
  --primary: #8A2BE2;
  --primary-light: #9370DB;
  --dark: #333;
  --light: #f9f9f9;
  --white: #fff;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
}

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

.section {
  padding: 80px 0;
}

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

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: var(--primary);
  font-size: 1.8rem;
  padding-left: 20px;
}

.logo span {
  color: var(--dark);
}

nav {
  display: flex;
  gap: 30px;
  padding-left: 20px;
}

nav a {
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

/* Hero section 
.hero {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}*/

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('images/pozadinaStop.png') center center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 60px 0;
  position: relative;
}

/**/
.hero-content h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* jaka sjenka za kontrast */
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: bold;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/* Content boxes */
.content-box {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-top: 30px;
}

/* Grid and cards */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(138, 43, 226, 0.2);
}

/* Research section */
.research-item {
  margin-bottom: 30px;
}

.research-item h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

/* Team section */
.team-card {
  text-align: center;
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-img-placeholder {
  width: 150px;
  height: 150px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0 auto 20px;
}

/* Contact section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.contact-info {
  padding: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #7B1FA2;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 30px 0;
  text-align: center;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 20px;
}

.naucni-rad {
  text-align: center;
  padding: 60px 20px;
  background-color: #f9defa;
}

.naucni-rad h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.naucni-rad h3 {
  font-size: 1.2rem;
  font-weight: normal;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.btn-preuzmi {
  display: inline-block;
  background-color: #cc3366;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-preuzmi:hover {
  background-color: #a32950;
}



/* Responsive design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }
}