/* Custom styles for the About Us page, building upon index.css */
.hero-subpage {
  height: 550px;
  display: flex;
  flex-direction: column;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/page/img/o_nama_hero.jpg")
      center/cover no-repeat fixed;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  position: relative;
}

body.light-mode .hero-subpage {
  color: #ffffff;
  --text-gray: #a0a0a0;
}

.hero-subpage .hero-content {
  padding: 0 5%;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  display: block;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  font-weight: 600;
}

.hero-subpage h1 {
  font-size: var(--fs-h1-hero);
  margin-bottom: 25px;
  letter-spacing: -2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body.light-mode .hero-subpage h1 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subpage p {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--fs-body-lg);
  margin-bottom: 15px;
  max-width: 100%;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Novi Split Hero - Levo SVG, Desno Tekst */
.hero-split {
  min-height: 75vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 120px 5% 50px;
  background-color: var(--bg-main);
  position: relative;
  overflow: hidden;
}

.hero-split-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-split-left svg {
  width: 100%;
  max-width: 550px;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

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

.hero-split-right {
  text-align: left;
}

.hero-split-right h1 {
  font-size: var(--fs-h1-hero);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  color: var(--text-white);
}

.hero-split-right p {
  color: var(--text-gray);
  font-size: var(--fs-body-lg);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 90%;
}

.hero-split-right p:last-of-type {
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

body.light-mode .hero-split {
  background-color: #f9f9f9;
}

body.light-mode .hero-split-right h1 {
  color: #0a0a0a;
}

.story-section {
  padding: 120px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-content h2 {
  position: relative;
  font-size: var(--fs-h2-section);
  margin-bottom: 30px;
  padding-bottom: 15px;
  letter-spacing: -0.5px;
}

.story-content h2::after,
.about-text h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.about-text h2 {
  position: relative;
  padding-bottom: 15px;
}

.story-content p {
  color: var(--text-gray);
  font-size: var(--fs-body);
  margin-bottom: 20px;
  line-height: 1.8;
}

.story-image {
  position: relative;
}

.story-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  z-index: 0;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.story-reverse .story-image::before {
  left: 20px;
}

.story-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 0;
  filter: brightness(0.85);
}

/* Stats Section */
.stats-section {
  overflow: hidden;
  padding: 30px 5%;
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .stats-section {
  border-color: rgba(0, 0, 0, 0.1);
}

.stats-track {
  display: flex;
  width: 100%;
}

.stats-group {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}

.stats-group:last-child {
  display: none;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: var(--fs-h2-section);
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-item p {
  color: var(--text-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--fs-small);
}

/* Dodatak za naizmenični (reverse) grid - O nama sekcije */
.story-reverse .story-content,
.about-reverse .about-text {
  order: 2;
}

.story-reverse .story-image,
.about-reverse .about-images {
  order: 1;
}

/* Alternativna pozadina za razbijanje monotonije */
.bg-alt {
  background-color: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

body.light-mode .bg-alt {
  background-color: var(--bg-card);
  border-color: rgba(0, 0, 0, 0.05);
}

.bg-card-light {
  background-color: var(--bg-card-light);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

body.light-mode .bg-card-light {
  background-color: var(--bg-card-light);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Prelomna sekcija (SEO Banner) */
.seo-banner {
  background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.8)),
    url("/page/img/o_nama_seo_banner.jpg")
      center/cover no-repeat fixed;
  padding: 120px 5%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.light-mode .seo-banner {
  --text-white: #ffffff;
}

.seo-banner-content {
  max-width: 800px;
}

.seo-banner-content h2 {
  font-size: var(--fs-h2-section);
  margin-bottom: 20px;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.seo-banner-content p {
  font-size: var(--fs-body-lg);
  color: var(--text-white);
  line-height: 1.8;
}

@media (max-width: 1200px) {
  .hero-subpage {
    height: 480px;
  }
  .hero-split {
    padding: 110px 5% 40px;
    gap: 40px;
  }
  .story-section {
    padding: 100px 5%;
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .seo-banner {
    padding: 80px 5%;
  }
  .hero-subpage {
    height: 450px;
  }
  
  /* Stats Marquee under 1024px */
  .stats-section {
    padding: 20px 0;
  }

  .stats-track {
    width: max-content;
    animation: statsMarquee 25s linear infinite;
  }

  .stats-section:hover .stats-track {
    animation-play-state: paused;
  }

  .stats-group {
    width: auto;
    justify-content: flex-start;
  }

  .stats-group:last-child {
    display: flex;
  }

  .stat-item {
    display: flex;
    align-items: center;
    padding: 0 30px;
    position: relative;
    text-align: left;
  }

  .stat-item::after {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0.6;
  }

  .stat-item h3 {
    margin: 0 8px 0 0;
    font-size: 1.25rem;
    line-height: 1;
  }

  .stat-item p {
    margin: 0;
    font-size: 0.75rem;
    white-space: nowrap;
    line-height: 1;
  }
}

@keyframes statsMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hero-subpage {
    height: 400px;
    padding-top: 50px;
  }
  .hero-split {
    grid-template-columns: 1fr;
    padding-top: 100px;
    gap: 30px;
    min-height: auto;
  }
  .hero-split-left {
    order: 2;
  }
  .hero-split-left svg {
    max-width: 350px;
  }
  .hero-split-right {
    order: 1;
  }
  .hero-split-right p {
    max-width: 100%;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .story-section {
    grid-template-columns: 1fr;
    padding: 60px 5%;
  }
  .story-image {
    grid-row: 1;
    margin-bottom: 20px;
  }
  .story-image::before {
    top: 15px;
    left: -15px;
    border-width: 1px;
  }
  .story-reverse .story-image::before {
    left: -15px;
  }
  .story-reverse .story-content,
  .story-reverse .story-image,
  .about-reverse .about-text,
  .about-reverse .about-images {
    order: unset;
  }
  .about-text {
    text-align: left;
  }
  .seo-banner {
    padding: 60px 5%;
  }
  .eyebrow {
    font-size: var(--fs-eyebrow);
  }
}

@media (max-width: 500px) {
  .hero-subpage {
    height: 420px;
    padding-top: 40px;
  }
  .hero-split {
    padding: 90px 5% 40px;
    gap: 20px;
  }
  .hero-split-left svg {
    max-width: 260px;
  }
  .hero-split-right p {
    line-height: 1.7;
  }
  .story-section {
    padding: 50px 5%;
  }
  .seo-banner {
    padding: 50px 10px;
  }
  .seo-banner-content {
    width: 100%;
    max-width: 100%;
  }
  .eyebrow {
    letter-spacing: 2px;
    margin-bottom: 10px;
  }
}