/* ==========================================================================
   1. USTAWIENIA OGÓLNE
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0e0e0e;
  color: white;
}

section {
  scroll-margin-top: 80px;
  /* Wysokość menu navbar */
}

/* ==========================================================================
       2. NAWIGACJA (NAVBAR & DROPDOWN)
       ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: border-box;
  background: rgba(0, 0, 0, 0.0);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.social-icons,
.logo,
nav {
  flex: 1;
}

/* Logo */

.logo {
  display: flex;
  justify-content: center;
}

.logo img {
  height: auto;
  width: 5vw;
  max-width: 200px;
  display: block;
}

/* Ikony Social Media */

.social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  padding-left: 20px;
}

.social-icons a {
  color: white;
  font-size: 20px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: orange;
  transform: scale(1.1);
}

/* Menu Nawigacyjne */

nav {
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
}

.navbar nav a {
  margin-left: 25px;
  text-decoration: none;
  color: white;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s ease;
  letter-spacing: 1px;
}

.navbar nav a:hover {
  color: orange;
  transform: scale(1.1);
}

/* Dropdown */

.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #161616;
  min-width: 220px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  border-top: 2px solid orange;
  padding: 10px 0;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  text-align: left;
  transition: 0.3s;
  margin-left: 0 !important;
  /* Reset marginesu z navbar nav a */
}

.dropdown-content a:hover {
  background-color: #222;
  color: orange;
  padding-left: 25px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.fa-caret-down {
  font-size: 12px;
  margin-left: 5px;
}

/* ==========================================================================
       3. HERO SECTION
       ========================================================================== */

.hero {
  height: 45vh;
  position: relative;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, .8), rgba(0, 0, 0, .3));
}

.hero-content {
  position: absolute;
  left: 80px;
  bottom: 10%;
  transform: translateY(-50%);
}

.hero h1 {
  font-size: 64px;
}

.cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: orange;
  color: white !important;
  text-decoration: none !important;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  transition: 0.3s;
  margin-top: 20px;
}

.cta-button:hover {
  background-color: #e69500;
  transform: scale(1.05);
}

.cta-button:visited {
  color: white !important;
}

/* ==========================================================================
       4. REALIZACJE (PORTFOLIO GRID)
       ========================================================================== */

.realizacje {
  padding: 120px 80px;
}

.realizacje h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: orange;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center;
  align-content: center;
}

.card {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
  transition: transform .4s ease;
}

.card:hover {
  transform: scale(1.05);
}

.overlay-card {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .1));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: .4s;
  padding: 0 20px;
  text-align: center;
}

.card:hover .overlay-card {
  opacity: 1;
}

.play {
  font-size: 60px;
  margin-bottom: 10px;
}

.overlay-card span {
  font-size: 30px;
}

/* ==========================================================================
       5. USŁUGI (SERVICES)
       ========================================================================== */

.services {
  padding: 0px 0;
  background: #0e0e0e;
}

.service-item {
  display: flex;
  align-items: center;
  min-height: 400px;
}

.service-item:nth-child(even) {
  background: #141414;
}

.service-item.reverse {
  flex-direction: row-reverse;
}

.service-image {
  flex: 1;
  height: 400px;
  background-size: cover;
  background-position: center;
  filter: grayscale(30%);
  transition: 0.5s ease;
}

.service-item:hover .service-image {
  filter: grayscale(0%);
}

.service-text {
  flex: 1;
  padding: 0 80px;
}

.service-text h2 {
  font-size: 32px;
  color: orange;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.service-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #ccc;
}

@media (max-width: 768px) {

  /* Sprawia, że zdjęcie i tekst ustawiają się w pionie i mieszczą w ekranie */
  .service-item,
  .service-item.reverse {
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .service-image {
    width: 100% !important;
    /* Zdjęcie zajmuje całą szerokość telefonu */
    height: 250px !important;
    /* Stała wysokość na mobile, żeby nie było za wielkie */
    flex: none !important;
  }

  .service-text {
    width: 100% !important;
    padding: 30px 20px !important;
    /* Odpowiednie marginesy dla tekstu */
    flex: none !important;
  }
}

/* ==========================================================================
       6. KONTAKT & FORMULARZ
       ========================================================================== */

.contact-section {
  padding: 100px 80px;
  background: #0a0a0a;

}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.contact-info,
.contact-form {
  flex: 1;
}

.contact-info h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: white;
}

.contact-info p {
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 40px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 18px;
}

.detail-item i {
  color: orange;
  width: 25px;
}

.contact-form {
  background: #161616;
  padding: 40px;
  border-radius: 15px;
}

.contact-form h3 {
  margin-bottom: 25px;
  font-size: 24px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group input,
.input-group option,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px;
  background: #222;
  border: 1px solid #333;
  color: white;
  border-radius: 5px;
  outline: none;
  transition: 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.input-group option:focus,
.input-group textarea:focus {
  border-color: orange;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: orange;
  border: none;
  color: black;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 5px;
}

.submit-btn:hover {
  background: #ffae00;
  transform: translateY(-2px);
}

/* Zdjecie kontakt */

/* ===== ULTRA PREMIUM FORM ===== */

.contact-form {
  background: linear-gradient(160deg, #161616, #101010);
  border-radius: 18px;
  padding: 45px;
  border: 1px solid rgba(255, 165, 0, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* delikatny glow */

.contact-form::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 165, 0, 0.35), transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

/* nagłówek */

.contact-form h3 {
  font-size: 26px;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* inputy */

.input-group input,
.input-group select,
.input-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 14px;
  border-radius: 8px;
  transition: 0.3s ease;
}

/* hover */

.input-group input:hover,
.input-group select:hover,
.input-group textarea:hover {
  border-color: rgba(255, 165, 0, 0.4);
}

/* focus */

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: orange;
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

/* przycisk */

.submit-btn {
  margin-top: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, orange, #ffb733);
  box-shadow: 0 15px 40px rgba(255, 165, 0, 0.4);
  color: black;
  letter-spacing: 1px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(255, 165, 0, 0.6);
}

/* placeholder premium */

::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
       7. MODAL, STOPKA & ELEMENTY UI
       ========================================================================== */

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal iframe {
  width: 80%;
  height: 80%;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 30px;
  cursor: pointer;
}

/* Footer */

.site-footer {
  padding: 60px 20px;
  background: #080808;
  text-align: center;
  border-top: 1px solid #1a1a1a;
}

.footer-navigation {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-navigation a {
  color: #888;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.footer-navigation a:hover {
  color: orange;
}

.footer-navigation .sep {
  color: #333;
  font-size: 12px;
}

.copyright {
  color: #555;
  font-size: 14px;
  margin-bottom: 15px;
}

.recaptcha-legal {
  color: #333;
  font-size: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.recaptcha-legal a {
  color: #444;
  text-decoration: underline;
}

/* Back to Top */

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #161616;
  color: orange;
  border: 1px solid #333;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background-color: orange;
  color: black;
  transform: translateY(-5px);
}

/* Animacje Reveal */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.grecaptcha-badge {
  visibility: hidden;
}

/* ==========================================================================
     8. RESPONSYWNOŚĆ (POPRAWIONA DLA IPHONE / MOBILE)
     ========================================================================== */

/* Dla tabletów i małych laptopów */

@media (max-width: 1024px) {
  .realizacje {
    padding: 80px 40px;
    /* Zmniejszamy marginesy boczne */
  }

  .hero h1 {
    font-size: 48px;
  }
}

/* GŁÓWNA NAPRAWA DLA TELEFONÓW (PIONOWO) */

/* Ukrycie burgera na komputerze */

.burger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 10px 20px;
    background: transparent !important;
    /* Usuwamy ciemne tło */
    backdrop-filter: 10px !important;
    /* Opcjonalnie usuwamy rozmycie */
  }

  .social-icons {
    flex: 1;
    gap: 15px;
  }

  .logo {
    flex: 1;
    justify-content: center;
  }

  .logo img {
    width: 40px !important;
    /* Mniejsze logo, by nie pchało elementów */
  }

  .burger {
    display: block;
    /* Pokazujemy burgera */
    flex: 1;
    text-align: right;
  }

  /* Menu mobilne - teraz jako pionowy panel */
  nav#nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: center !important;
    position: fixed;
    top: 0;
    right: -100%;
    /* Ukryte za prawą krawędzią */
    width: 80%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    padding-top: 80px;
    transition: 0.4s ease;
    z-index: 1000;
  }

  nav#nav-menu.active {
    right: 0;
    /* Wysuwa się po kliknięciu */
  }

  .navbar nav a {
    margin: 20px 0 !important;
    font-size: 22px !important;
    width: 100%;
    text-align: center;
  }

  /* Ukrywamy dropdown na mobile dla uproszczenia lub przerabiamy na listę */
  .dropdown-content {
    position: static;
    display: none;
    /* Możesz zmienić na block, jeśli chcesz widzieć podmenu */
    background: none;
    box-shadow: none;
  }

  /* 2. Przesunięcie treści Hero w dół */
  .hero {
    padding-top: 80px;
    /* To stworzy miejsce na navbar i "wypchnie" napis niżej */
    height: auto;
    /* Pozwalamy sekcji dopasować się do nowej wysokości */
    min-height: 50vh;
  }

  .hero-content {
    position: relative !important;
    /* Zmieniamy z absolute, żeby nie nakładało się na sztywno */
    bottom: 0 !important;
    transform: none !important;
    left: 0 !important;
    padding: 40px 20px;
    width: 100% !important;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: 28px !important;
    margin-bottom: 20px;
  }
}

/* ==========================================================================
     STATYSTYKI (COUNTERS)
     ========================================================================== */

.stats-section {
  padding: 80px 0;
  background: #0e0e0e;
  width: 100%;
  overflow: hidden;
}

.stats-full-wrapper {
  display: flex;
  width: 100%;
  padding: 0 2%;
  /* Minimalne marginesy boczne */
  justify-content: space-between;
  align-items: center;
}

.stat-card {
  position: relative;
  flex: 1;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* To zapobiega nachodzeniu liczb na sąsiednie kolumny */
}

/* Wielkie liczby w tle - pełne, nie outline */

.stat-bg-text {
  position: absolute;
  font-size: clamp(100px, 12vw, 340px);
  /* Skaluje się dynamicznie */
  font-weight: 900;
  color: #ffa500;
  opacity: 0.08;
  /* Subtelne wypełnienie */
  z-index: 1;
  line-height: 1;
  white-space: nowrap;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: -5px;
  user-select: none;
}

/* Główne liczby na wierzchu - teraz większe */

.stat-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.stat-number-main {
  font-size: clamp(40px, 6vw, 85px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-number {
  color: orange;
}

.stat-card p {
  font-size: clamp(12px, 1.2vw, 18px);
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
}

/* Responsywność dla mobile */

@media (max-width: 768px) {
  .stats-full-wrapper {
    flex-direction: column;
  }

  .stat-card {
    width: 100%;
    height: 200px;
  }

  .stat-bg-text {
    font-size: 180px;
  }
}

/* Sekcja Slider */

.logos-section {
  padding: 80px 0;
  background: #0e0e0e;
  overflow: hidden;
}

.logos-header {
  text-align: center;
  margin-bottom: 40px;
}

.logos-header h2 {
  font-size: 28px;
  color: orange;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Slider */

.logos-slider {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  background: #0e0e0e;
}

.logos-track {
  display: flex;
  gap: 80px;
  /* Odstęp między logotypami */
  width: max-content;
  will-change: transform;
  /* Optymalizacja dla płynności */
}

.logo-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-slide img {
  height: 50px;
  filter: grayscale(1) brightness(0.6);
  transition: 0.3s ease;
}

.logo-slide img:hover {
  filter: grayscale(0) brightness(1.2);
  transform: scale(1.1);
}

/* ===== GLOBAL PREMIUM LOOK ===== */

/* tło całej strony */

body {
  background: radial-gradient(circle at top, #141414, #080808);
  color: #f1f1f1;
}

/* sekcje – oddech i separacja */

section {
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 165, 0, 0.02), transparent 30%);
  pointer-events: none;
}

/* nagłówki */

h1,
h2,
h3 {
  letter-spacing: 1px;
}

/* karty (realizacje, formularz itd.) */

.contact-form {
  background: linear-gradient(160deg, #161616, #101010);
  border-radius: 16px;
  border: 1px solid rgba(255, 165, 0, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* hover na kartach */

.card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* przyciski */

.cta-button,
.submit-btn {
  background: linear-gradient(135deg, orange, #ffb733);
  box-shadow: 0 10px 25px rgba(255, 165, 0, 0.35);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  background: linear-gradient(135deg, orange, #ffb733);
  border: none;
  color: black;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 25px rgba(255, 165, 0, 0.35);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #ffae00, #ffc44d);
  /* WAŻNE */
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 165, 0, 0.5);
}

.submit-btn:focus {
  outline: none;
}

/* inputy */

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* focus */

input:focus,
select:focus,
textarea:focus {
  border-color: orange;
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.15);
}

/* navbar premium */

.navbar {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

/* linki */

a {
  transition: 0.3s ease;
}

/* stopka */

.site-footer {
  background: linear-gradient(to top, #0a0a0a, #050505);
}

/* ===== ORANGE GLOW ON PORTFOLIO CARDS ===== */

.card {
  position: relative;
  transition: transform .4s ease, box-shadow .4s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.6), 0 0 30px rgba(255, 165, 0, 0.35);
}