* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #0b1220;
  color: #e5e7eb;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px; /* Zbalansowany padding dla eleganckiego paska */
  background: rgba(11, 18, 32, 0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-size: 24px; /* Optymalna wielkość napisu na komputerach */
  font-weight: 800;
  letter-spacing: 1px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 12px; /* Odpowiedni odstęp między grafiką a tekstem */
}

/* KONTROLA ROZMIARU LOGO DESKTOP */
.logo-img {
  height: 42px; /* Zbalansowana wysokość logo */
  width: auto;
  object-fit: contain;
}

/* DESKTOP NAV */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 2px;
  background: white;
  transition: 0.3s ease;
}

/* ================= HERO ================= */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden; /* Zapobiega wychodzeniu rozmytych krawędzi poza sekcję */
}

/* Pozycjonowanie i zmniejszone rozmycie obrazu img wstawionego z poziomu HTML */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Wypełnia całą przestrzeń bez zniekształcania obrazu */
  filter: blur(3px); 
  transform: scale(1.03); /* Lekkie powiększenie niweluje białe krawędzie wywołane blurem */
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,18,32,0.7),
    rgba(11,18,32,0.95)
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: 800px;
  padding: 20px;
  animation: fadeUp 1s ease-out;
  z-index: 3; /* Treść ląduje na samej górze nad tłem i pozostaje ostra */
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 30px;
}

/* buttons */

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn.primary {
  background: #38bdf8;
  color: #0b1220;
}

.btn.primary:hover {
  transform: translateY(-2px);
  background: #0ea5e9;
}

.btn.secondary {
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

.btn.secondary:hover {
  background: #38bdf8;
  color: #0b1220;
}

/* ================= SECTIONS ================= */

.section {
  padding: 100px 60px;
}

.section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: #38bdf8;
}

.section.dark {
  background: #0f172a;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 15px;
  opacity: 0.8;
  line-height: 1.6;
}

/* stats */

.stats {
  display: grid;
  gap: 20px;
}

.stat {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(56,189,248,0.1);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15); /* Subtelny blask pod statystykami */
}

.stat h3 {
  font-size: 28px;
  color: #38bdf8;
}

/* SERVICES */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 12px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  background: rgba(56,189,248,0.1);
}

.card h3 {
  margin-bottom: 10px;
  color: #38bdf8;
}

/* PORTFOLIO */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.item {
  height: 200px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 12px;
  transition: 0.3s ease;
  overflow: hidden; /* Ścina rogi zdjęcia/wideo wewnątrz kafelka */
}

/* Neonowa poświata wokół odtwarzanego filmu na komputerach */
.item:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.25);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85; /* Lekkie przyciemnienie na starcie */
  transition: opacity 0.3s ease;
}

.item:hover .portfolio-img {
  opacity: 1; /* Pełna wyrazistość po najechaniu */
}

/* STEPS */

.steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step {
  padding: 15px 25px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

/* ================= CONTACT ================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form input,
.form textarea {
  padding: 12px;
  border: 1px solid transparent; /* Dodana ramka bazowa */
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: white;
  resize: none;
  transition: 0.3s ease;
  outline: none;
}

/* Efekt po kliknięciu myszką w pole formularza (Focus) */
.form input:focus,
.form textarea:focus {
  background: rgba(11, 18, 32, 0.8);
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.form textarea {
  height: 120px;
}

/* Układ i wygląd pola wyboru RODO */
.rodo-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.rodo-checkbox input {
  margin-top: 3px;
  accent-color: #38bdf8; /* Zmienia kolor ptaszka na błękitny */
}

.rodo-checkbox span {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.7;
}

.form button {
  padding: 12px;
  border: none;
  background: #38bdf8;
  color: #0b1220;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.form button:hover {
  background: #0ea5e9;
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

/* Styling dla ikon społecznościowych */
.contact-info .social-icons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.contact-info .social-icons a {
  color: #38bdf8;
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.contact-info .social-icons a:hover {
  transform: translateY(-3px);
  color: #0ea5e9;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 30px;
  background: #0b1220;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ================= ANIMATIONS ================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SMOOTH SCROLL */
html {
  scroll-behavior: smooth;
}

/* ================= POPRAWIONY DESIGN MOBILNY ================= */

@media (max-width: 900px) {

  .navbar {
    padding-left: 24px !important;
    padding-right: 40px !important;
    height: 75px;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    box-sizing: border-box !important;
  }

  .logo {
    font-size: 21px; 
    gap: 10px;
  }

  .logo-img {
    height: 36px;
  }

  .burger {
    display: flex;
    z-index: 1001;
    position: relative;
    margin-right: 15px !important;
  }

  .burger.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5deg, 5deg);
  }
  .burger.toggle span:nth-child(2) {
    opacity: 0;
  }
  .burger.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5deg, -5deg);
  }

  .nav-links {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    height: auto; 
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(11, 18, 32, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); 
    box-sizing: border-box !important;
    
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    max-height: 400px;
    opacity: 1;
  }

  .nav-links a {
    font-size: 18px;
    width: 100%;
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    box-sizing: border-box !important;
  }

  .hero h1 {
    font-size: 32px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .btn {
    text-align: center;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .section {
    padding: 60px 24px;
  }
  
  .steps {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .step {
    text-align: center;
  }
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 28px;
  }

  .cards,
  .gallery {
    grid-template-columns: 1fr;
  }
}






