/* Import custom fonts */
@font-face {
    font-family: 'Birthstone';
    src: url('../resources/fonts/Birthstone/Birthstone-Regular.woff2') format('woff2'),
         url('../resources/fonts/Birthstone/Birthstone-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dosis';
    src: url('../resources/fonts/Dosis/Dosis-Regular.woff2') format('woff2'),
         url('../resources/fonts/Dosis/Dosis-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --background: #000000;
    /*--logo-color: #D4AF37;*/
    --logo-color: #f5ed96;
    --brand-color: #f5ed96;
    --text-primary: #f5f5f5;
    --hover-color: #FFA500;
    --section-bg: #1a1a1a;
    --olsection-bg: #2d2d2d;
    --gold-accent: #CFB53B;
    --dark-gold: #996515;
    --card-bg: #2a2a2a;
  }

/* Zapobiega migotaniu podczas przejść */
html, body {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Dosis', sans-serif;
}

.header-color{
  color: #f5ed96 !important;
}

/* Złote nagłówki h2 w sekcjach */
.normal-section h2,
.fullwidth-bg h2,
.container h2 {
  color: var(--logo-color) !important;
  text-shadow: 0 0 10px rgba(245, 237, 150, 0.3);
  font-family: 'Birthstone', cursive;
}

/* Globalna reguła dla wszystkich H2 */
h2 {
  font-family: 'Birthstone', cursive;
  font-size: 2.5rem;
}

/* Złote spany dla słów kluczowych */
.gold-highlight {
  color: #c9af39;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(245, 237, 150, 0.3);
  position: relative;
}

/* Gold highlight w H2 zachowuje czcionkę Bonheur Royale */
h2 .gold-highlight {
  font-family: 'Birthstone', cursive;
}

.gold-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-color), transparent);
  opacity: 0.6;
}






/* Styl dla loadera */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Upewnij się, że Barba container ma odpowiednie style */
[data-barba="container"] {
    opacity: 1;
    transform: translateY(0);
}

/* Styl dla cząsteczek - optymalizacja */
.gold-particle {
    will-change: transform, opacity;
}








p, h1, a, span, btn{
  font-family: 'Dosis', sans-serif;
}

.label{
    font-family: 'Dosis', sans-serif;
    font-weight: bold;
}

  .span{
    color: var(--brand-color);
  }
  body{
    background-color: var(--section-bg);
    padding: 0;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    font-family: 'Dosis', sans-serif;
    color: var(--text-primary);


  }

  body.fade-in {
    opacity: 0;
    /*position: relative; */
    z-index: 0; /* niech nie wchodzi przed sticky */
    animation: fadeIn 0.6s ease-out forwards;
  }
  
  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  body.fade-out {
    opacity: 1;
    animation: fadeOut 0.8s ease-in forwards;
  }
  
  @keyframes fadeOut {
    0% {
      opacity: 1;
      transform: translateY(0);
    }
    100% {
      opacity: 0;
      transform: translateY(-10px);
    }
  }

.responsive-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

  
#nav-import {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #nav-import nav.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 2000 !important;
    background-color: #1a1a1a !important;
  }
  .navbar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030; /* Wyżej niż wszystko inne */
    
    background-color: var(--background);
    box-shadow: 0 2px 6px rgba(245, 237, 150, 0.3);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gold-accent);
  }
  
  .navbar-brand {
    color: var(--brand-color);
    font-weight: 700;
    font-size: 1.8rem;
    font-family: 'Birthstone', cursive;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px rgba(245, 237, 150, 0.5);
  }
  
  .navbar-brand span {
    font-family: 'Birthstone', cursive;
  }
  
  .navbar-brand:hover {
    color: var(--hover-color);
    text-decoration: none;
    text-shadow: 0 0 15px rgba(255, 165, 0, 0.7);
  }
  
  .navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-right: 1.5rem;
    transition: color 0.25s ease;
  }
  
  .nav-link.active
  {
    background-color: var(--brand-color) !important;
    border-color: black;
    border: 1px solid black;
    color: #000000 !important;
  }

  .navbar-nav .nav-link:hover {
    color: var(--brand-color);
    text-decoration: none;
    text-shadow: 0 0 8px rgba(245, 237, 150, 0.4);
  }
 

  .nav-link.active:hover {
    color: #000000 !important;
    text-shadow: none;
  }
  
  .navbar-toggler {
    border: none;
    font-size: 1.4rem;
    color: var(--brand-color);
  }
  
  .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }


  .hero-span{
    color: #c9af39;
    font-family: 'Birthstone', cursive;
  }

  .hero-title {
    font-family: 'Birthstone', cursive;
  }

  .normal-section{
    background-color: var(--section-bg);
    color: var(--text-primary);
  }

  .normal-section-2{
    background-color: var(--background);
    color: var(--text-primary);
  }

.hero-section {
  background: var(--background);
  font-family: 'Birthstone', cursive;
    padding-top: 100px; /* albo 5rem */
  
}

/* Wszystkie elementy tekstowe w hero section */
.hero-section h1,
.hero-section p,
.hero-section span,
.hero-section a {
  font-family: 'Birthstone', cursive !important;
  font-weight: bold !important;
}

/* Rozmiary czcionek w hero section */
.hero-section p.lead {
  font-size: 1.8rem !important; /* "Wyjątkowe chwile zasługują na wyjątkową oprawę" */
}

.hero-section div[style*="font-size: 1.2rem"] span {
  font-size: 1.6rem !important; /* Fotobudki, Dekoracje, etc. */
}

/* Globalne style dla wszystkich buttonów */
.btn, button, a.btn {
  transition: all 0.3s ease !important;
}

.btn:hover, button:hover, a.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(245, 237, 150, 0.4);
}

/* Przycisk w hero - normalna czcionka */
.hero-section .btn {
  font-family: 'Dosis', sans-serif !important;
  font-size: 1.2rem !important;
  transition: all 0.3s ease !important;
}

/* Hover dla przycisku w hero */
.hero-section .btn:hover {
  background-color: #e6d680 !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(245, 237, 150, 0.4);
}

/* Pozostałe elementy */
.hero-section span:not(.hero-span),
.hero-section a:not(.btn) {
  font-size: 1.4rem !important;
}



  /* Wave-section tło identyczne z wypełnieniem fali */
  .wave-section {
    padding: 0;
    margin: 0;
    position: relative;
    background-color: var(--background); /* głęboka szarość */
    
  }

    /* Wave-section tło identyczne z wypełnieniem fali */
    .wave-section-2 {
        padding: 0;
        margin: 0;
        position: relative;
        background-color: var(--section-bg); /* głęboka czerń */
        
      }

  

  .wave-section svg {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
    
  }


.fullwidth-bg {
  width: 100vw;           /* pełna szerokość viewportu */
  position: relative;
  left: 50%;              /* żeby nie przesunęło sekcji poza ekran */
  right: 50%;
  margin-left: -50vw;     /* wyciąga na pełną szerokość */
  margin-right: -50vw;
  background-color: var(--background); /* głęboka szarość */
  /*padding: 2rem 0;*/
}

.nav-link.active {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.dlaczego-my-section {
  background: var(--background);
  position: relative;
  overflow: hidden;
}

.glass-card {
  background: rgba(191, 153, 88, 0.1);
  border: 1px solid rgba(190, 165, 106, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
}

.icon {
  font-size: 2.5rem;
}

.highlight {
  color: var(--brand-color);
  text-shadow: 0 0 5px rgba(245, 237, 150, 0.3);
}

.dlaczego-my-section {
  background: var(--background);
  position: relative;
  overflow: hidden;
}

.glass-card {
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid rgba(245, 237, 150, 0.3);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(245, 237, 150, 0.1);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-color);
  box-shadow: 0 8px 30px rgba(245, 237, 150, 0.2);
}



.social-icon {
  margin: 0 20px;
  display: inline-block;
  transition: all 0.3s ease;
  will-change: transform;
}

.social-icon:hover {
  transform: scale(1.2);
}

.social-icon i {
  transition: all 0.3s ease;
}

.social-icon:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(245, 237, 150, 0.6));
}

/* ===== BARBA.JS STYLES - ZAPOBIEGANIE MIGANIU ===== */

/* Kontener Barba - optymalizacja dla przejść */
[data-barba="container"] {
    opacity: 1;
    transform: translateY(0);
    min-height: 100vh;
    will-change: opacity, transform; /* Optymalizacja renderowania */
}

/* Overlay dla przejść */
.barba-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, 
        rgba(245, 237, 150, 0.4) 0%,
        rgba(245, 237, 150, 0.3) 30%,
        rgba(184, 134, 11, 0.2) 50%,
        rgba(0, 0, 0, 0.85) 80%,
        rgba(0, 0, 0, 0.95) 100%);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Dym dla przejść */
.barba-smoke {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Loader - stylem opisany wcześniej ale wzmocniony */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: none; /* Domyślnie ukryty */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Wyższy niż overlay */
    color: var(--brand-color);
    font-size: 1.5rem;
    font-family: 'Dosis', sans-serif;
}

/* Animacja loadera */
#page-loader::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top: 3px solid var(--brand-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== BARBA.JS SMOOTH TRANSITIONS ===== */
[data-barba="container"] {
    transition: opacity 0.7s ease-in-out;
}

/* Preload hint dla szybszego ładowania */
a[href] {
    transition: color 0.2s ease;
}

/* Zmniejsz layout shift podczas ładowania */
main {
    min-height: 60vh;
}

/* Smooth scroll enhancement */
html {
    scroll-behavior: smooth;
}
