/* ==========================================
   1. RESET & PODSTAWOWE STYLE
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none; 
}

body {
  background-color: #0f172a;
  color: #ffffff;
  font-family: 'Stack Sans Notch', sans-serif;
  overflow-x: hidden;
}

/* Wideo w tle & Overlay ogólny */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover; 
  z-index: -2; 
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5); 
  z-index: -1;
  pointer-events: none;
}
.span-blue {
  color: #38bdf8;
}

/* ==========================================
   2. NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
}

.logo span {
  color: #38bdf8;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 11;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  z-index: 9;
}

.nav-links.active {
  transform: translateX(0);
}

.nav-links a {
  color: #cbd5e1;
  font-size: 1.5rem;
}

/* ==========================================
   3. HERO (MOBILE-FIRST FLEXBOX)
   ========================================== */
.scroll-wrapper {
  min-height: 100vh;
  width: 100%;
  padding: 6rem 1.5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  will-change: transform, opacity;
}

.title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.title span {
  display: inline-block;
}

.span-title {
  color: #38bdf8;
  transform-origin: center center;
}

.subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  font-family: "Google Sans Flex", sans-serif;
}

.subtitle span {
  display: inline-block;
}

.arrow {
  display: inline-block;
  font-size: 3.5rem;
  color: #38bdf8;
  transform: rotate(90deg);
}

/* ==========================================
   4. HORIZONTAL SCROLL SECTION
   ========================================== */
.horizontal-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.container-videos {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  width: max-content;
  will-change: transform;
}

.video-item {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  will-change: transform;   
}

.video-overlay-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.665);
  z-index: 1;
  pointer-events: none;
}

.gallery-span, .about-span {
  color: #38bdf8;
}

.video-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  text-align: center;
  padding: 1.5rem;
}

.gallery-description {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;   
  will-change: transform, opacity;
}

.description-item {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-family: "Google Sans Flex", sans-serif;
  font-weight: 700;
  line-height: 1.5;
  width: 85%;
  max-width: 800px;
  color: #f1f5f9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* ==========================================
   5. MEDIA QUERIES (DESKTOP ENHANCEMENTS)
   ========================================== */
@media (min-width: 480px) {
  .description-item {
    font-size: 1.25rem;
    margin-top: 2.5rem;
  }
}

@media (min-width: 768px) {
  .scroll-wrapper {
    justify-content: flex-start;
    padding-left: 10%;
  }

  .container {
    align-items: flex-start;
    text-align: left;
  }

  .navbar {
    padding: 1.5rem 10%;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
  }

  .hamburger {
    display: none;
  }

  .nav-links {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    flex-direction: row;
    gap: 2.5rem;
    transform: none;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .title {
    font-size: 4.5rem;
  }

  .subtitle {
    font-size: 2rem;
  }

  .arrow {
    font-size: 4rem;
  }

  .gallery-description {
    font-size: 6rem; 
    padding: 2rem 4rem;
  }

  .description-item {
    font-size: 1.75rem;
    margin-top: 3.5rem;
    width: 70%;
  }
}

@media (min-width: 1200px) {
  .title {
    font-size: 5.5rem;
  }
  
  .gallery-description {
    font-size: 8rem;
  }

  .description-item {
    font-size: 2.25rem;
    margin-top: 4rem;
    width: 55%;
  }
}

/* ==========================================
   6. LENIS STYLES
   ========================================== */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ==========================================
   7. SECTION PROJECTS
   ========================================== */
.projects-title-wrapper, .about-me-wrapper {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background-color: #0f172a;
  position: relative;
  z-index: 2;
  overflow: hidden;
} 

.projects-title, .about-me {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  padding: 0 1.5rem;
  color: #ffffff;
  will-change: transform, opacity;
}

.projects-title span, .about-me span {
  display: inline-block;
  will-change: transform, opacity;
}

@media (min-width: 480px) {
  .projects-title, .about-me {
    font-size: 3.5rem;
  }
}

@media (min-width: 768px) {
  .projects-title, .about-me {
    font-size: 4.5rem;
  }
}

@media (min-width: 1200px) {
  .projects-title, .about-me {
    font-size: 5.5rem;
  }
}

/* ==========================================
   8. FULLSCREEN STACKED PROJECTS SECTION
   ========================================== */
.projects-section {
  position: relative;
  width: 100vw;
  background-color: #0f172a;
  z-index: 2;
}

.cards-container {
  position: relative;
  width: 100vw;
}

.project-card {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1.5rem;
  overflow: hidden;
  will-change: transform, filter;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.665);
}

.card-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
}

.card-number {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  font-family: "Google Sans Flex", sans-serif;
}

.number-font {
  font-family: "Google Sans Flex", sans-serif;
}

.card-content h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.card-content h3 {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-family: "Google Sans Flex", sans-serif;
  font-weight: 400;
}

.card-btn {
  margin-top: 2rem;
  display: inline-block;
  padding: 1rem 2rem;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.card-btn:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

@media (min-width: 768px) {
  .project-card {
    padding: 0 10%;
  }

  .card-content h2 {
    font-size: 5.5rem;
  }

  .card-content h3 {
    font-size: 1.75rem;
    width: 80%;
  }
}