/* Fontit & perusasetukset */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.6;
  text-align: center;
}

h1, h2, h3 {
  margin-bottom: 1rem;
  font-weight: 700;
}

a {
  color: #4caf50;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: #2196f3;
}

/* Navigaatio */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #111;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.navbar .logo {
  font-size: 1.5rem;
}
.nav-list {
  background: #111;
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
.nav-list a {
  padding: 0.5rem;
  border-radius: 6px;
}
.nav-list a:hover {
  background: rgba(76,175,80,0.2);
}
/* Hamburger menu (mobile) */
.hamburger {
  background: rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  color: #00000080;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* When active (X-shape) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Overlay-tausta */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hero */
.hero {
  padding: 4rem 2rem;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
}
.hero-content {
  max-width: 800px;
  margin: auto;
  padding: auto;
}
.hero h2 span {
  color: #4caf50;
}

.hero-img {
  margin-top: 1.5rem;
  height: 200ox;
  width: 200px;
  max-width: auto;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Yleiset osiot */
.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}
.alt-bg {
  background: #111;
}

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.about-img {
  width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.about-text {
  flex: 1;
  text-align: left;
}

/* Taidot */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.skills-list li {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: 0.3s;
}
.skills-list li:hover {
  border: 1px solid #4caf50;
}

/* Palvelut */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border: 1px solid #4caf50;
}
.card ul {
  list-style: none;
  padding-left: 0;
}

.card li {
  padding: 0.3rem 0;
}
.price {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #2196f3;
}

/* Portfolio */
.portfolio-img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Testimonials */
.testimonials blockquote {
  background: #1a1a1a;
  border-left: 4px solid #4caf50;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 700px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Yhteystiedot */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}
.contact-form input, .contact-form textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
}
.contact-form button {
  background: #4caf50;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  background: #2196f3;
}
.contact-info {
  margin-top: 2rem;
}

/* Footer */
footer {
  background: #111;
  padding: 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

/* Responsiivisuus */
@media(max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }
  .about-text {
    text-align: center;
  }
 .hamburger {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 70px;
    right: 0;
    background: #1a1a1a;
    width: 220px;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li a {
    font-size: 1rem;
    color: var(--text-color);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
