:root {
  --purple: #5A2A82;     /* velvet purple */
  --plum: #3B0F5C;       /* deep plum */
  --lav: #A684E3;        /* lavender */
  --beige: #F5EFE6;      /* warm beige */
  --soft: #FBFBFD;       /* soft white */
  --ink: #1E1B2C;        /* text */
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--soft);
  color: var(--ink);
}

/* ----------------------------------------------------
   NAVBAR
---------------------------------------------------- */

.navbar {
  backdrop-filter: saturate(140%) blur(6px);
  background: rgba(90, 42, 130, 0.85) !important;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 600;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--beige) !important;
}

.navbar-brand img {
  height: 44px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  text-decoration: none;
}

.lang-toggle img {
  height: 18px;
  width: 24px;
  border-radius: 2px;
  object-fit: cover;
}

/* ----------------------------------------------------
   HERO
---------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--plum), var(--purple));
  color: #fff;
  padding: 6rem 0; /**/
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
}

.hero h1 {
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}

.hero p {
  opacity: .95;
  max-width: 56ch;
}

.hero .hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.25rem;
}

/* ----------------------------------------------------
   SECTIONS & CARDS
---------------------------------------------------- */

.section {
  padding: 4rem 0;
}

.section-title {
  color: var(--plum);
  font-weight: 700;
}

.card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  object-fit: cover;
  height: 220px;
}

.btn-primary {
  background: var(--purple);
  border-color: var(--purple);
}

.btn-primary:hover {
  background: var(--plum);
  border-color: var(--plum);
}

.badge {
  background: var(--lav);
}

/* ----------------------------------------------------
   MEMBERS
---------------------------------------------------- */

.member-card .avatar {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.member-card h5 {
  color: var(--plum);
  font-weight: 700;
}

.member-card .role {
  color: #4a4560;
}

/* ----------------------------------------------------
   VIDEO EMBEDS
---------------------------------------------------- */

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */

.footer {
  background: var(--plum);
  color: #fff;
  padding: 2.5rem 0;
}

.footer a {
  color: #fff;
}

.footer .item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.footer .icon {
  height: 20px;
  width: 20px;
  opacity: .9;
}

/* ----------------------------------------------------
   UTILITIES
---------------------------------------------------- */

.bg-beige {
  background: var(--beige);
}

.rounded-xxl {
  border-radius: 48px;
}

/* Accessible focus outline */
:focus-visible {
  outline: 3px solid var(--lav);
  outline-offset: 2px;
}
/* --- Project detail page --- */

.project_detail_page {
  background: #f8f8ff;
  padding-bottom: 60px;
}

/* Nazad na projekte */

.back_button_section {
  padding: 24px 0 0;
}

.back_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #5b1fa6;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: #f2e9ff;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.back_btn .arrow {
  font-size: 18px;
}

.back_btn:hover {
  background: #e5d5ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Naslov + cover */

.project_hero {
  padding: 16px 0 32px;
}

.project_title {
  font-size: 40px;
  font-weight: 700;
  color: #5b1fa6;
  margin-bottom: 24px;
}

.project_cover_wrapper {
  margin-bottom: 24px;
}

.project_cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.project_cover img {
  width: 100%;
  display: block;
}

/* General section padding */

.section_padding {
  padding: 24px 0 40px;
}

.section_title {
  font-size: 32px;
  font-weight: 700;
  color: #5b1fa6;
  margin-bottom: 24px;
}

/* Pregled projekta box */

.overview_box {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  padding: 32px 32px 28px;
  font-size: 18px;
  line-height: 1.7;
  color: #29323f;
}

/* Fajlovi / preuzimanja */

.project_files {
  padding-top: 16px;
}

.files_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 28px;
}

.file_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 28px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.file_item:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.12);
}

.file_icon_wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 20px;
  background: #f2e9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.file_info h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #2b2140;
}

.file_info p {
  margin: 0;
  font-size: 14px;
  color: #7a8190;
}

.file_download {
  margin-left: auto;
  font-size: 22px;
  color: #5b1fa6;
}

/* Galerija */

.project_gallery {
  padding-top: 8px;
}

.gallery_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery_item {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.gallery_img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */

@media (max-width: 767.98px) {
  .project_title {
    font-size: 28px;
  }

  .overview_box {
    padding: 22px 20px;
    font-size: 16px;
  }

  .file_item {
    padding: 16px 18px;
  }
}
/* Hover efekti */

a:hover {
  text-decoration: none;
}

/* Back dugme hover */
.back_btn {
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.back_btn:hover {
  background: #e7d8ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
/* Fade-in i slide animacija za sekcije */

.section_title,
.overview_box,
.files_grid,
.gallery_grid,
.project_cover {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeSlideIn 0.8s ease forwards;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Blago kašnjenje po sekcijama */
.project_overview .overview_box {
  animation-delay: 0.2s;
}

.project_files .files_grid {
  animation-delay: 0.3s;
}

.project_gallery .gallery_grid {
  animation-delay: 0.4s;
}
.file_icon_wrap {
  background: #efe6ff;
  color: #5b1fa6;
  font-size: 26px;
  border-radius: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.2s ease;
}

.file_item:hover .file_icon_wrap {
  background: #e3d4ff;
  transform: scale(1.05);
}
.file_item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.file_item:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 45px rgba(0,0,0,0.15);
}
.gallery_item {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery_item:hover {
  box-shadow: 0 28px 55px rgba(0,0,0,0.16);
  transform: translateY(-4px);
}

.gallery_img {
  transition: transform 0.35s ease;
}

.gallery_item:hover .gallery_img {
  transform: scale(1.06);
}
.project_cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.25s ease;
}

.project_cover:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 55px rgba(0,0,0,0.18);
}
 
/* PROJECTS */
.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
