* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Manrope', sans-serif;
  overflow: auto; /* <- muutettu: ei estä sivun skrollausta */
  -webkit-overflow-scrolling: touch;
}

.slider-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* slider ei aiheuta sivun vierimistä */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.left-text {
  margin-left: 20%;
}

.left-text h1 {
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 10rem;
  font-weight: 800;
}

.right-text {
  margin-right: 20%;
}

.right-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.8rem;
  font-style: italic;
  max-width: 300px;
  font-weight: 300;
}

.person-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 50%;
  z-index: 3;
  pointer-events: none;
  object-fit: contain;
}

.hero-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: white;
  text-decoration: none;
  background: transparent;
  border: 2px solid white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.hero-link:hover {
  background: white;
  color: #111;
}

/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 0;
  z-index: 999;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 100%;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar-text-page {
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-text-page .logo {
  color: #222;
}

.navbar-text-page .logo:hover {
  opacity: 0.7;
}

.navbar-text-page .hamburger span {
  background: #222;
}

.navbar-text-page .nav-link {
  color: #222;
}

.navbar-text-page .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Facebook icon — kaksinkertainen koko ja riittävä painotus navissa */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* varmistetaan svg-skaalaus (desktop + mobiili) */
.nav-icon svg {
  width: 40px;
  height: 40px;
  color: inherit; /* perii nav-link värin */
}

/* haluttaessa pienennetään mobiilissa hieman */
@media (max-width: 480px) {
  .nav-icon svg {
    width: 32px;
    height: 32px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    gap: 0;
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
    padding-top: 1rem;
  }

  .nav-link {
    display: block;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    border-radius: 0;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .nav-wrapper {
    padding: 1rem 1.5rem;
  }

  .overlay {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    padding: 2rem;
  }
  
   .right-text {
    margin:0;
  }
  
   .left-text {
    margin:5% 0;
  }


  .left-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    max-width: none;
 
  }

  .right-text p {
        font-size: 1rem;
        max-width: none;
    font-weight:bold;
    }

  .person-image {
    height: 50%;
  }

  .logo {
    font-size: 1.5rem;
  }

  

  /* Mobiilissa kaikilla sivuilla valkoinen teksti valikossa */
  .navbar-text-page .nav-link {
    color: white;
  }

  .navbar-text-page .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 480px) {
  .nav-wrapper {
    padding: 0.8rem 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-link {
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
  }
}
