/* ====================================================
   HEADER SECTION
==================================================== */
header.glass-header {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  font-size: 2rem;
  text-shadow: 1px 1px 2px black;
  border-bottom: 10px solid transparent;
  border-image: linear-gradient(to right, var(--primary-color), var(--secondary-color)) 1;
  padding: 92px 20px 20px; /* top: 80px nav + 20px */
}

/* Tło obrazu nagłówka */
.header-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.header-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zawartość nagłówka */
/* Hero header override — larger size than other pages */
header.glass-header .header-content h1 {
  font-size: 4.5rem;
}

header.glass-header .header-content p {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

@media (max-width: 768px) {
  header.glass-header .header-content h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 480px) {
  header.glass-header .header-content h1 {
    font-size: 1.9rem;
  }
}

/* ====================================================
   NAWIGACJA (NAVIGATION)
==================================================== */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--spacing-medium);
  margin-top: 5vh;
}

nav ul li a {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-small);
  color: #fff;
  text-decoration: none;
  font-size: var(--font-size-large);
  padding: 15px 25px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

nav ul li a.active {
  background-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

nav ul li a:not(.snake-button)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ====================================================
   LOGO
==================================================== */
.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100px;
  height: auto;
  animation: fadeIn 2s forwards, float 3s ease-in-out infinite;
  transition: all 0.4s ease;
}

/* ====================================================
   FOOTER SECTION
==================================================== */
footer {
  background: linear-gradient(135deg, var(--footer-bg-color) 0%, #2a1a0f 100%);
  color: var(--light-text-color);
  padding: var(--spacing-large) 0;
  margin-top: var(--spacing-xl);
  border-top: 8px solid transparent;
  border-image: linear-gradient(to right, var(--secondary-color), var(--primary-color)) 1;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-large);
  max-width: 1400px;
  margin: 0 auto var(--spacing-large);
  padding: 0 var(--spacing-medium);
  position: relative;
  z-index: 1;
}

.footer-section {
  padding: var(--spacing-large);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  text-align: center;
}

.footer-section:hover {
  transform: translateY(-5px) rotateX(5deg) rotateY(-1deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.footer-section h3 {
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--spacing-medium);
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-small);
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 3px;
  background: var(--secondary-color);
  transition: width 0.2s ease;
}

.footer-section p,
.footer-section ul {
  line-height: 1.6;
  font-size: 0.95rem;
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.social-links a:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
  position: relative;
  padding-top: var(--spacing-large);
  margin-top: var(--spacing-xl);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 15px auto 0;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .author-info {
  font-style: normal;
  position: relative;
  cursor: pointer;
  color: var(--secondary-color);
}

/* ====================================================
   SCROLL TO TOP BUTTON
==================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  transform: scale(0);
}

.scroll-to-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.scroll-to-top:hover {
  background-color: rgba(255, 204, 0, 0.8);
}

/* ====================================================
   GLOBAL SELECTION
==================================================== */
::selection {
  background-color: #ffcc00;
  color: black;
}

/* ====================================================
   RESPONSYWNOŚĆ / MEDIA QUERIES
==================================================== */

/* Dostosowanie nagłówka dla urządzeń mobilnych */
/* Dostosowanie układu stopki dla tabletów i mniejszych urządzeń */
@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-section {
    text-align: center;
    padding: var(--spacing-medium) 0;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom {
    text-align: center;
    align-items: center;
  }
}

/* Dostosowanie elementów mobilnych (nagłówek, nawigacja, projekty, galeria, itd.) */
@media (max-width: 968px) {
  /* Projekty i Galeria */
  .project-section h2 {
    font-size: 1.5rem;
  }
  
  .project-section p {
    font-size: var(--font-size-small);
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    margin-bottom: var(--spacing-medium);
  }
  
  #caption {
    font-size: 1rem;
  }
  
  .scroll-to-top {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
  
  .slider-container {
    padding: var(--spacing-small);
  }
  
  .close,
  .prev,
  .next {
    font-size: 1.5rem;
    width: 2rem;
    height: 2rem;
  }
  
  .counter {
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Stopka – układ kolumnowy */
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-section {
    flex: 1 1 100%;
    text-align: center;
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
  }
  
  .social-links a {
    padding: 10px;
  }
  
  .footer-bottom .author-info {
    display: block;
    margin-top: 10px;
    text-align: center;
  }
}

@keyframes jump {
  0% { transform: translateY(0); }
  30% { transform: translateY(-15px); }
  50% { transform: translateY(0); }
  70% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* Klasa, która uruchamia animację */
.jump {
  animation: jump 3.6s ease-out;
}
nav ul li a:not(.snake-button):hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--secondary-color);
    transform: translateY(-5px);
}



/* ====================================================
   SEKCJA GŁÓWNA + ZAMÓWIEŃ – ujednolicona szerokość
==================================================== */
#main,
#custom-order,
#cta {
  max-width: 1100px;
  text-align: center;
}

#custom-order > p {
  max-width: 640px;
  margin: 0 auto var(--spacing-xl);
  font-size: 1.15rem;
  color: #666;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-large);
  margin-top: var(--spacing-large);
  text-align: left;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: var(--spacing-large);
  box-shadow: 0 2px 16px rgba(92, 64, 51, 0.08);
  border-top: 3px solid var(--secondary-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(92, 64, 51, 0.14);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-color), #8b6355);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-medium);
}

.service-icon i {
  color: var(--secondary-color);
  font-size: 1.4rem;
}

.service-card h3 {
  font-family: var(--font-family-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-small);
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================================
   LISTA FUNKCJI (sekcja główna)
==================================================== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: var(--spacing-large);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(92, 64, 51, 0.07);
  border-top: 2px solid rgba(212, 175, 55, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(92, 64, 51, 0.13);
  border-top-color: var(--secondary-color);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: #fdf7f2;
  border: 2px solid rgba(92, 64, 51, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.feature-item:hover .feature-icon {
  background: rgba(92, 64, 51, 0.08);
  border-color: var(--primary-color);
}

.feature-icon i {
  color: var(--primary-color);
  font-size: 1.4rem;
}

/* Number badge for process steps */
.feature-step-num {
  color: var(--primary-color);
  font-family: var(--font-family-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

/* Center lone last card in 2-col grid */
.feature-list .feature-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 10px);
  margin-inline: auto;
}

.feature-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-body h3 {
  font-family: var(--font-family-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.feature-body h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.feature-body h3 a:hover {
  color: #8b6355;
  text-decoration: underline;
}

.feature-body p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

@media (max-width: 640px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
  .feature-list .feature-item:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: 100%;
    margin-inline: 0;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.8rem;
  }
  header p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 400px) {
  .feature-item {
    padding: 20px 16px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .feature-icon i {
    font-size: 1.2rem;
  }
}
