/* =========================
   YLEISET
========================= */

html,
body {
    margin: 0;
    background: #f9f9f9;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000000, #838686, #000000);
    color: white;
}
* {
    box-sizing: border-box;
}


/* =========================
   HEADER
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-around;

    transition: 0.4s ease;
    z-index: 1000;
    background: transparent;
}

header img {
    border-radius: 50%;
    background: #ffffff26;
    backdrop-filter: blur(8px);
    padding: 5px;
    transition: transform 0.4s ease;
}

header.scrolled {
    background: #353434d9;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

header.scrolled img {
    transform: scale(0.85);
}

.nav {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    justify-content: space-around;
    width: 30%;
}

.navlink a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.2em;

    padding: 10px 20px;
    border-radius: 30px;

    background: #ffffff26;
    backdrop-filter: blur(8px);
    transition: 0.3s;
}

.navlink a:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    overflow: hidden;
    color: white;
    z-index: 0;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    filter: blur(6px) brightness(80%);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    animation: fadeIn 3s ease-in-out;
}

.hero-content h1 {
    font-size: 64px;
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   PALVELUT / KORTIT
========================= */

.services {
    background: linear-gradient(135deg, #3c3f3e, #838686, #3c3f3e);
    color: white;
    padding: 120px 20px;
    text-align: center;
}

.section-title {
    font-size: 40px;
    margin-bottom: 60px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card {
    background: rgba(255, 255, 255, 0.03); /* Erittäin läpinäkyvä */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Ohut reunaviiva tuo laatua */
    border-radius: 24px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.card p {
    font-size: 16px;
    line-height: 1.5;
    color: #ccc;
}

.card:hover {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-10px) scale(1.02);
}


/* =========================
   MODAL
========================= */

.modal-toggle {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.7);
    padding: 20px;

    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;

    z-index: 10000;
}

.modal-toggle:checked + .card + .modal {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(135deg, #3c3f3e, #838686, #65706b);
    padding: 30px 20px;
    border-radius: 20px;

    width: 100%;
    max-width: 500px;

    text-align: center;
    position: relative;

    transform: scale(0.7);
    opacity: 0;
    transition: 0.3s ease;
}

.modal-toggle:checked + .card + .modal .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;

    border-radius: 15px;
    margin-bottom: 20px;
}

.modal-content h3 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-content p {
    color: #fff;
    line-height: 1.5;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;

    font-size: 28px;
    color: #fffdfd;
    font-weight: bold;

    text-decoration: none;
    cursor: pointer;
}


/* =========================
   INFO BAR
========================= */

.info-bar {
    background: linear-gradient(135deg, #3c3f3e, #838686, #3c3f3e);
    padding: 120px 20px;
    text-align: center;
}

.info-content {
    max-width: 900px;
    margin: 0 auto;

    background: linear-gradient(135deg, #0f2027, #203a2e, #243029);
    padding: 60px;
    border-radius: 20px;

    backdrop-filter: blur(10px);
}
/* =========================
   FOOTER - KORJATTU
========================= */

.footer {
    /* Käytetään samaa tummanvihreää kuin muissa osioissa */
    background-color: #1a241d; 
    padding: 60px 20px;
    text-align: center;
    color: white; /* Teksti valkoiseksi */
    
    /* Poistetaan margin-top, jotta mustaa rakoa ei synny */
    margin: 0; 
    width: 100%;
    background: linear-gradient(135deg, #0f2027, #203a2e, #243029);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    /* Poistetaan mahdolliset taustavärit tai varjot, jotka tekevät "neliöitä" */
    background: transparent; 
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.social-link {
    font-size: 28px;
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2);
    color: #1abc9c; /* Vihreä korostus hoverissa */
}

.footer-bottom {
    font-size: 14px;
    opacity: 0.8;
    color: white;
    letter-spacing: 1px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

@media (max-width: 1000px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
    }
}
.services {
  padding: 100px 40px;
  background: #111;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.card-toggle {
  display: none;
}

.card {
  display: block;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.4s ease;
  color: white;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgb(83, 83, 83);
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 25px;
}

.more {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
}

.card-toggle:checked + .card .more {
  max-height: 200px;
  margin-top: 15px;
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}


/* Galleria */
.gallery {
  padding: 80px 40px;
  background-color: #111;
  color: white;
}

.gallery h2.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* Hover zoom ja kirkkaus */
.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Pieni tummennus overlay, jos haluat tekstille myöhemmin */
.gallery-item::after {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.gallery-item:hover::after {
  background: rgba(0,0,0,0.0);
}

/* Responsiivisuus */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}


/* ------------------ YLEISET ------------------ */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
}

.about-me-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ------------------ PROFIIILIKORTTI ------------------ */
.full-width-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: #1a241d;
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 4rem;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.full-width-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.profile-img-container {
  flex: 0 0 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #1abc9c;
}

.profile-img-container img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.full-width-card:hover .profile-img-container img {
  transform: scale(1.05);
}

.profile-details {
  flex: 1;
}

.profile-details h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.profile-details .role {
  display: block;
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 500;
}

.profile-details p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-tags span {
  background: #1abc9c;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.profile-tags span:hover {
  transform: scale(1.1);
}

/* ------------------ TIMELINE CARDS ------------------ */
.timeline-section {
  margin-bottom: 4rem;
}

.timeline-section h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.timeline-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.timeline-card {
  background: #fff;
  border-radius: 20px;
  flex: 1 1 300px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.timeline-card img {
  width: 100%;
  display: block;
  height: 180px;
  object-fit: cover;
}

.timeline-card .timeline-content {
  padding: 1rem 1.2rem;
}

.timeline-card h4 {
  margin: 0 0 0.5rem;
}

.timeline-card p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

/* ------------------ KALUSTO & TAIDOT ------------------ */
.equipment-section {
  margin-bottom: 4rem;
}

.equipment-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.equipment-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.equipment-card {
  background: #fff;
  border-radius: 20px;
  flex: 1 1 250px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.equipment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.equipment-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.equipment-card h4 {
  margin: 0.8rem 1rem 0.4rem;
}

.equipment-card p {
  margin: 0 1rem 1rem;
  color: #555;
  font-size: 0.9rem;
}

/* ------------------ HARRASTUKSET ------------------ */
.hobbies-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.hobbies-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hobbies-tags span {
  background: #3498db;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.3s;
}

.hobbies-tags span:hover {
  transform: scale(1.1);
  background: #2980b9;
}

.equipment-section .container {
    padding-top: 0;
}
.about-detail {
  padding: 80px 20px;
  background-color: #0b0b0b;
  color: #fff;
}

.about-detail .container {
  max-width: 1100px;
  margin: 0 auto;
}

.detail-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap; /* Puhelimella päällekkäin */
}

.detail-text {
  flex: 1;
  min-width: 300px;
}

.badge {
  color: #4CAF50;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.detail-text h2 {
  font-size: 2.5rem;
  margin: 15px 0;
  line-height: 1.2;
}

.detail-text p {
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 25px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.check-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list i {
  color: #4CAF50;
}

.detail-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #4CAF50;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.detail-btn:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

/* Oikean puolen kuva-asettelu */
.detail-image {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: visible; /* Jotta leijuva laatikko näkyy */
}

.image-wrapper img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Hieno leijuva laatikko (Glassmorphism) */
.floating-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.floating-box h4 {
  font-size: 1.8rem;
  margin: 0;
  color: #4CAF50;
}

.floating-box p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
.features {
  padding: 60px 20px;
  background-color: #111; /* Tumma tausta */
  text-align: center;
  color: #fff;
}

.features .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  flex: 1;
  min-width: 250px;
  margin: 20px;
  padding: 20px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
}

.feature-item i {
  font-size: 3rem;
  color: #4CAF50; /* Voit vaihtaa tämän brändiväriisi */
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-item p {
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.8;
}



.testimonials{
padding:140px 10%;
background:linear-gradient(180deg,#0b0b0b,#111);
text-align:center;
color:white;
}

.testimonial-slider{
display:flex;
align-items:center;
justify-content:center;
gap:30px;
margin-top:70px;
}

.testimonial-viewport{
  overflow:hidden;
  width:1100px;
  padding: 60px 0; /* lisää tilaa ylhäälle ja alhaalle */
  box-sizing: border-box;
}

.testimonial-track{
display:flex;
align-items:center;
}

.testimonial-card{
min-width:320px;
margin:0 20px;
background:rgba(255,255,255,0.05);
backdrop-filter:blur(10px);
border-radius:20px;
padding:35px;
transition:0.5s;
transform:scale(0.8);
opacity:0.4;
filter:blur(2px);
}

.testimonial-card.active{
  transform:scale(1.08);
  opacity:1;
  filter:none;
  box-shadow:0 25px 60px rgba(0,0,0,0.6);
  margin: 0 20px; /* keskikortin marginaali pysyy, ei leviä sivuille */
}

.testimonial-stars{
color:#FFD700;
margin-bottom:15px;
font-size:18px;
}

.testimonial-text{
color:#ddd;
margin-bottom:25px;
line-height:1.6;
}

.testimonial-user{
display:flex;
align-items:center;
gap:12px;
}

.user-avatar{
width:40px;
height:40px;
border-radius:50%;
background:#4CAF50;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
}

.testimonial-user span{
font-size:13px;
color:#aaa;
}

.slider-btn{
width:55px;
height:55px;
border-radius:50%;
border:none;
background:#4CAF50;
color:white;
font-size:18px;
cursor:pointer;
transition:0.3s;
}

.slider-btn:hover{
background:#3ea447;
transform:scale(1.1);
}

.process-modern{
padding:120px 20px;
background:#0f172a;
color:white;
text-align:center;
position:relative;
overflow:hidden;
}

.process-modern .section-title{
color:white;
margin-bottom:80px;
}

.process-steps{
display:flex;
justify-content:space-between;
max-width:1100px;
margin:auto;
position:relative;
z-index:2;
}

.process-line{
position:absolute;
top:41%;
left:50%;
transform:translate(-50%, -50%);
width:70%;
height:4px;
background:linear-gradient(90deg,#6366f1,#06b6d4);
border-radius:5px;
z-index:1;
}
.process-steps{
display:flex;
justify-content:space-between;
max-width:1100px;
margin:auto;
position:relative;
z-index:2;
align-items:center;
}

.step{
width:220px;
transition:0.3s;
}

.step:hover{
transform:translateY(-10px);
}

.step-circle{
width:70px;
height:70px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
margin:auto;
margin-bottom:20px;
background:linear-gradient(135deg,#6366f1,#06b6d4);
box-shadow:0 10px 30px rgba(0,0,0,0.4);
}

.step h3{
margin-bottom:10px;
}

.step p{
font-size:14px;
color:#cbd5f5;
}


/* CTA */

.cta{
padding:120px 10%;
background:linear-gradient(135deg,#0f2027,#203a43,#2c5364);
text-align:center;
color:white;
}

.cta h2{
font-size:40px;
margin-bottom:20px;
}

.cta p{
margin-bottom:30px;
font-size:18px;
color:#ddd;
}

.cta-button{
display:inline-block;
padding:15px 40px;
background:#4CAF50;
color:white;
text-decoration:none;
font-weight:600;
border-radius:50px;
transition:0.3s;
}

.cta-button:hover{
background:#09310b93;
transform:scale(1.05);
}
