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

body {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  background-color: #e9e9e9;
}

html {
  scroll-behavior: smooth;
}

/* Navigation bar — transparent, floats over the hero */
.navbar {
  position: absolute;          /* float over the carousel */
  top: -50px;
  left: 0;
  width: 100%;
  z-index: 100;

  display: flex;
  align-items: top;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 80px);

  background: transparent;     /* no white bar */
  padding: 0 clamp(20px, 6vw, 140px);
}

/* Logo sits in the middle — slightly bigger */
.logo img {
    /* Bigger max value so it continues scaling on large screens */
  height: clamp(180px, 23vw, 480px);
  width: auto;
  display: block;
  position: relative;
  z-index: 3;
}

/* Left/right link groups share equal space so logo stays centered */
.nav-links {
  display: flex;
  align-items: center;
  /* MORE space between links — scales with viewport width */
  gap: clamp(22px, 4vw, 70px);
  flex: 1 1 0;
}

/* extra breathing room between the link groups and the logo */
.nav-left {
  justify-content: flex-end;
  padding-right: clamp(20px, 3vw, 80px);
}

.nav-right {
  justify-content: flex-start;
  padding-left: clamp(20px, 3vw, 80px);
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #595959;               /* white text over the image */
  font-size: clamp(10px, 1.9vw, 25px);
  white-space: nowrap;
  padding-bottom: 4px;
  transition: color 0.3s ease;

  /* Bigger max value so text scales up on large screens */
  font-size: clamp(16px, 1.9vw, 34px);
}

/* Underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #e2001a;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e2001a;
}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 150%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

/* Mobile hero is hidden on desktop */
.mobile-hero {
  display: none;
}

/* ===== MOBILE LAYOUT (screens <= 768px) ===== */
@media (max-width: 768px) {
  /* Hide desktop header + carousel */
  .navbar,
  .carousel {
      display: none;
  }

  /* Show the full-screen hero */
  .mobile-hero {
      display: block;
      position: relative;
      width: 100%;
      height: 100vh;   /* fill the whole screen */
      overflow: hidden;
  }

  /* Background image covers the whole screen */
  .mobile-hero-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
  }

  .mobile-hero-logo {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: clamp(80px, 40vw, 300px);
    width: auto;
    z-index: 2;
}
}

/* ===== O NAS SECTION ===== */
.about {
  background-color: #d3162a;      /* red band */
  color: #ffffff;
  text-align: center;
  padding: clamp(30px, 5vw, 60px) 20px;
}

.about-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.about-text {
  font-size: clamp(22px, 1.6vw, 20px);
  line-height: 1.6;
  max-width: 700px;               /* keeps text nicely centered/narrow */
  margin: 0 auto;                 /* centers the paragraph block */
}

#o-nas {
  scroll-margin-top: 0px;   /* roughly your navbar height */
}

/* ===== ČLANI SECTION (modern overlay design) ===== */
.members {
  background-color: #efefef;
  padding: clamp(50px, 6vw, 90px) clamp(20px, 5vw, 60px);
}

.members-title {
  text-align: center;
  font-size: clamp(30px, 4vw, 48px);
  color: #595959;;
  margin-bottom: clamp(40px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* One card per row, stacked vertically */
.members-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 50px);
  max-width: 1000px;      /* big cards, but centered */
  margin: 0 auto;
}

.member-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;            /* wide, so the full image is clearly seen */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out,
              box-shadow 0.4s ease;
}

.member-card.visible {
  opacity: 1;
  transform: none;
}

.member-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.member-photo {
  width: 100%;
  height: 189%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

/* Subtle zoom on hover */
.member-card:hover .member-photo {
  transform: scale(1.05);
}

/* Special adjustment just for Žiga (he's taller) */
.member-ziga .member-photo {
  height: 220%;                    /* override the 189% height */
}

/* Name overlay at the TOP */
.member-name {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 26px clamp(20px, 4vw, 40px) 60px;
  color: #414141;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 2;
}

/* Role overlay just BELOW the name */
.member-role {
  position: absolute;
  top: clamp(60px, 8vw, 90px);   /* sits under the name */
  left: 0;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 40px);
  color: #414141;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 400;
  z-index: 2;
}

/* ===== NAŠA GLASBA (VIDEO) SECTION ===== */
.videos {
  background-color: #595959;      /* dark grey band */
  padding: clamp(40px, 5vw, 70px) clamp(20px, 5vw, 60px);
}

.videos-title {
  text-align: center;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(30px, 4vw, 50px);
}

.videos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 3vw, 50px);
  max-width: 1000px;
  margin: 0 auto;
}

.video-card {
  /* base width ~ half the row; wraps to full width on small screens */
  flex: 1 1 420px;
  max-width: 480px;

  /* Responsive 16:9 video wrapper */
  position: relative;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.video-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#glasba {
  scroll-margin-top: 0px;
}

/* ===== KONTAKT SECTION ===== */
.contact {
  background-color: #e6e3df;      /* light band */
  text-align: center;
  padding: clamp(40px, 5vw, 70px) 20px;
}

.contact-title {
  font-size: clamp(28px, 4vw, 44px);
  color: #1a1a1a;
  margin-bottom: clamp(25px, 3vw, 40px);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  margin-bottom: clamp(25px, 3vw, 40px);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: clamp(22px, 1.4vw, 18px);
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: #e2001a;
}

.contact-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 50px);   /* space between the icons */
}

.contact-socials a {
  color: #1a1a1a;
  display: inline-flex;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Make the social media icons bigger */
.contact-socials a svg,
.contact-socials a img {
  width: clamp(32px, 4vw, 56px);   /* adjust min / max sizes as you like */
  height: clamp(32px, 4vw, 56px);
}

.contact-socials a:hover {
  color: #e2001a;
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
  background-color: #4d4d4d;      /* dark grey bar */
  text-align: center;
  padding: clamp(15px, 2vw, 22px) 20px;
}

.footer p {
  color: #ffffff;
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.5px;
}

.about-title,
.members-title,
.videos-title,
.contact-title {
    font-weight: 600;   /* try 500–900 for the Fraunces look */
}