@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', 'sans-serif';
}

:root {
    --bg-color: #000000;
    --second-bg-color: #161616;
    --text-color: #fff;
    --main-color: #7b4bb7;
}
html {
    font-size: 62.5%;
    overflow-x: hidden;
}
body {
    background: var(--bg-color);
    font-family: "Poppins", "sans-serif";
    color: var(--text-color);
}
html::-webkit-scrollbar {
    width: 0.8rem;
}
html::-webkit-scrollbar-track {
    background: var(--main-color);
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
}

a:hover {
    color: var(--main-color);
    cursor: pointer;
    text-decoration: underline;
}

/* Header */
header {
    position: fixed; /* Header kiinteäksi yläreunaan */
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    backdrop-filter: blur(15px);          /* Sumennustehoste */
    border-radius: 15px;                 /* Pyöristetyt kulmat */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Hienovarainen varjo */
    z-index: 3;                          /* Näkyy hero-kuvan päällä */
    background: none;                    /* Poistetaan taustaväri */
}


.navbar {
    width: 100%;
    height: 65px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    font-size: 3rem;
    font-weight: bold;
}

.navbar .links {
    display: flex;
    gap: 4rem;
}

.navbar .togle_btn {
	color: white;
	font-size: 2.5rem;
	cursor: pointer;
	display: none;
  text-size-adjust: 20rem;
}


.action_btn {
    background-color: var(--main-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 4rem;
    font-weight: bold;
    cursor: pointer;
    transition: scale 0.2 ease;
}

.action_btn:hover {
    scale: 1.05;
    color: rgb(255, 255, 255);
}

.action_btn:active {
    scale: 0.95;
}

/* DROPDOWN MENU */
.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0;
    width: 300px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(30px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 4; /* Näkyy hero-kuvan päällä */
}

.dropdown_menu.open {
    height: 246px;
}

.dropdown_menu li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown_menu .action_btn {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .navbar .links,
    .navbar .action_btn {
        display: none;
    }

    .navbar .togle_btn {
        display: block;
    }

    .dropdown_menu {
        display: block;
    }
    .toggle_btn {
        display: block;
        font-size: 2.5rem;
        cursor: pointer;
    }
}

@media (max-width: 576px) {
    .dropdown_menu {
        left: 2rem;
        width: unset;
    }
}


/* hero*/
section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: var(--bg-color);
}
.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}
span {
    color: var(--main-color);
}
.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.home-img {
    border-radius: 50%;
}
.home-img img {
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
}
.home-img img:hover{
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px var(--main-color));
}
.home-content p{
    font-size: 1.8rem;
    font-weight: 500;
}
.social-icon a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    font-size: 2rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}
.social-icon a:hover {
    color: white;
    transform: scale(1.3)translateY(-5px);
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--bg-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}
.btn:hover {
    transform: scale(1.03);
    background-color: var(--main-color);
    color: white;
    box-shadow: 0 0 25px var(--main-color);
}
.typing-text {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.typing-text span {
    position: relative;
}
.home-content p {
    font-size: 16px;
}
.typing-text span::before{
    content: 'osaamista';
    color: var(--main-color);
    animation: words 20s infinite;
}
@media (max-width:1000px) {
    .home {
        gap: 4rem;
    }
}
@media (max-width:995px) {
    .home {
        flex-direction: column;
        margin: 5rem 4rem;
    }
    .home .home-content h3 {
        font-size: 2.5rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
}

h2 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    margin-top: 3rem;
    text-align: center;
}
/* About */
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    max-width: 1200px;
    margin: auto;
}

.text-content {
    max-width: 600px;
}

.text-content h1 {
    font-size: 4.5rem;
    margin-bottom: 30px;
}

.text-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0px;
}

.image-container {
    max-width: 400px;
    margin-left: 20px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Pyöristetyt kulmat */
    border: 5px solid #fff; /* Valkoinen kehys */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Varjo kehykseen */
}

@media (max-width: 768px) {
  .about-section {
      flex-direction: column;
      text-align: center;
      padding: 20px; /* Vähennetään sisäistä täytettä mobiilissa */
  }

  .text-content {
      text-align: left; /* Asetetaan teksti vasemmalle */
      padding-left: 20px; /* Jätetään reunoille hieman tilaa */
      padding-right: 20px; /* Varmistetaan tasainen reuna */
  }

  .image-container {
      margin: 20px 0 0 0;
  }
}

/* saavutukset */

.acievents {
  align-items: center;
  max-width: 600px;
  margin: auto;
  text-align: center;
}

.acievents .text {
  max-width: 600px;
}

.acievents .text h2 {
  font-size: 4.5rem;
  margin-bottom: 30px;
}

.acievents .text p {
  font-size:  16px;
  line-height: 1.6;
  margin-bottom: 50px;
}
@media (max-width: 768px) {
  .acievents {
      text-align: left; /* Asetetaan teksti vasemmalle */
      padding-left: 20px; /* Jätetään reunoille hieman tilaa */
      padding-right: 20px; /* Varmistetaan tasainen reuna */
  }


}


.ag-format-container {
    width: 1142px;
    margin: 0 auto;
  }
  
  body {
    background-color: #000000;
  }
  .ag-courses_box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  
    padding: 50px 0;
  }
  .ag-courses_item {
    -ms-flex-preferred-size: calc(33.33333% - 30px);
    flex-basis: calc(33.33333% - 30px);
  
    margin: 0 15px 30px;
  
    overflow: hidden;
  
    border-radius: 28px;
  }
  .ag-courses-item_link {
    display: block;
    padding: 30px 20px;
    background-color: #121212;
  
    overflow: hidden;
  
    position: relative;
  }
  .ag-courses-item_link:hover,
  .ag-courses-item_link:hover .ag-courses-item_date {
    text-decoration: none;
    color: #FFF;
  }
  .ag-courses-item_link:hover .ag-courses-item_bg {
    -webkit-transform: scale(10);
    -ms-transform: scale(10);
    transform: scale(10);
  }
  .ag-courses-item_title {
    min-height: 87px;
    margin: 2 2 25px;
    overflow: hidden;
  
    font-weight: bold;
    font-size: 30px;
    color: #FFF;
  
    z-index: 2;
    position: relative;
  }
  .ag-courses-item_date-box {
    font-size: 18px;
    color: #FFF;
  
    z-index: 2;
    position: relative;
  }
  .ag-courses-item_date {
    font-weight: bold;
    color: var(--main-color);
  
    -webkit-transition: color .5s ease;
    -o-transition: color .5s ease;
    transition: color .5s ease
  }
  .ag-courses-item_bg {
    height: 128px;
    width: 128px;
    background-color: var(--main-color);
  
    z-index: 1;
    position: absolute;
    top: -75px;
    right: -75px;
  
    border-radius: 50%;
  
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
  }
  .ag-courses_item:nth-child(2n) .ag-courses-item_bg {
    background-color: var(--main-color);
  }
  .ag-courses_item:nth-child(3n) .ag-courses-item_bg {
    background-color: var(--main-color);
  }
  .ag-courses_item:nth-child(4n) .ag-courses-item_bg {
    background-color: var(--main-color);
  }
  .ag-courses_item:nth-child(5n) .ag-courses-item_bg {
    background-color: var(--main-color);
  }
  .ag-courses_item:nth-child(6n) .ag-courses-item_bg {
    background-color: var(--main-color);
  }
  
  
  
  @media only screen and (max-width: 979px) {
    .ag-courses_item {
      -ms-flex-preferred-size: calc(50% - 30px);
      flex-basis: calc(50% - 30px);
    }
    .ag-courses-item_title {
      font-size: 24px;
    }
  }
  
  @media only screen and (max-width: 767px) {
    .ag-format-container {
      width: 96%;
    }
  
  }
  @media only screen and (max-width: 639px) {
    .ag-courses_item {
      -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
    }
    .ag-courses-item_title {
      min-height: 72px;
      line-height: 1;
  
      font-size: 24px;
    }
    .ag-courses-item_link {
      padding: 22px 40px;
    }
    .ag-courses-item_date-box {
      font-size: 16px;
    }
    .text p {
      text-align: left;
      padding-left: 20px; /* Jätetään reunoille hieman tilaa */
      padding-right: 20px; /* Varmistetaan tasainen reuna */
      font-size: 16px;
      line-height: 1.6;
      margin-bottom: 20px;
    }
  }

/* Goals*/

.goals-section {
    text-align: center;
    padding: 50px 20px;
}

.goals-section h2 {
    color: #ffffff;
    font-size: 4rem;
    margin-bottom: 25px;
    font-weight: bold;
    text-align: center;
}

.goals-section p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 70px;
}

.goals-grid {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(2, 1fr); /* 2 saraketta */
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.goal-card {
    position: relative;
    width: 600px;
    height: 400px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.goal-card:hover {
    transform: scale(1.05);
}

.goal-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: brightness(1.2);
}

.goal-card h3 {
    position: relative;
    color: #fff;
    font-size: 1.5rem;
    z-index: 1;
}
@media only screen and (max-width: 639px) {
    .goals-section p {
        margin-left: 0;
        text-align: left;
        padding-left: 20px; /* Jätetään reunoille hieman tilaa */
        padding-right: 20px; /* Varmistetaan tasainen reuna */
        text-align: left;
        margin-left: 20px;
    }
}

/* Sponsor */
.sponsor-logo body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #000;
  color: white;
  text-align: center;
}
h2 {
  margin-bottom: 20px;
  font-size: 3.8rem;
}
.sponsor-logo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 900px;
  justify-content: center;
}
.sponsor-logo img {
  width: 100%;
  height: auto;
  max-width: 150px;
  filter: grayscale(100%);
  transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
  display: block;
  margin: auto;
}
.sponsor-logo img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}
.thank-you {
  margin-top: 30px;
  background-color: #444;
  padding: 15px;
  border-radius: 10px;
  display: inline-block;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s;
}
.thank-you:hover {
  background-color: #666;
}
@media (max-width: 600px) {
  .sponsor-logo {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
  }
  .sponsor-logo img {
      max-width: 120px;
  }
}
.sponsor body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
.sponsor {
  padding: 80px 20px;
  text-align: center;
  background: #222222;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sponsor h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.sponsor p {
  font-size: 14px;
  margin: 0 auto 40px;
  max-width: 900px;
  line-height: 1.8;
  opacity: 0.9;
}

.sponsor button {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: #222222;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
  margin-bottom: 15rem;
}

.sponsor button:hover {
  transform: scale(1.03);
    background-color: var(--main-color);
    color: white;
    box-shadow: 0 0 25px var(--main-color);
}


@media (max-width: 768px) {
  .sponsor h2 {
    font-size: 2.5rem;
  }
  .sponsor p {
    font-size: 1.2rem;
  }
}
html, body {
  background: #000000; /* Sama väri kuin sectionin gradientin alku */
}
/* Contact */
.contact {
  padding: 80px 20px;
  text-align: center;
  background: #000000;
  color: #ffffff;
  text-align: center;
}
.contact h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 35px;
  letter-spacing: 1px;
}
.contact h4 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.8;
}
.contact p {
  font-size: 1.5rem;
  margin: 0 auto 80px;
  max-width: 900px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 5rem;
}
.kangas p {
  margin-bottom: 20rem;
}
.sponsor, .contact, .sponsor-logo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  height: auto; /* Varmistaa, että korkeus määräytyy sisällön mukaan */
}


.sponsor, .contact {
  min-height: auto; /* Poistaa tarpeettoman venytyksen */
  min-width: 100%;
}


/* footer */
footer{
  position: relative;
  width: 100%;
  background: #252525;
  min-height: 100px;
  padding: 20px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

footer .social_icon,
footer .menu
{
  position: relative;
  display: flex;
  justify-content: center;
  margin: 10px 0;
  flex-wrap: wrap;

}

footer .social_icon li,
footer .menu li
{
  list-style: none;
}

footer .social_icon li a
{
  font-size: 3em;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
}

footer .social_icon li a:hover
{
  transform: translateY(-10px);
}

footer .menu li a
{
  font-size: 1.8em;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  text-decoration: none;
  opacity: 0.75;
}
footer .menu li a:hover{
  opacity: 1;

}

footer p
{
  color: #000000;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.2em;

}

footer .wave
{
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url(/asseets/images/wave.png);
  background-size:1000px 100px;
}

footer .wave#wave1
{
  z-index: 1000;
  opacity: 1;
  bottom: 0;
  animation: animateWave 4s linear infinite;

}

footer .wave#wave2
{
  z-index: 999;
  opacity: 0.5;
  bottom: 10px;
  animation: animateWave_02 4s linear infinite;
}

@keyframes animateWave 
{
  0%{
      background-position-x: 1000px;
  }
  100%{
      background-position-x: 0px;
  }
}

@keyframes animateWave_02
{
  0%{
      background-position-x: 0px;
  }
  100%{
      background-position-x: 1000px;
  }
}





/* Taustapeite (wrapper), jos haluat tumman läpinäkyvän taustan */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

/* Varsinainen popup */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgb(0, 0, 0); /* musta tausta */
  padding: 3.5rem;
  border: 1px solid #7b4bb7;
  border-radius: 20px;
  z-index: 9999;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  max-height: 90vh;
  max-width: 600px;
  overflow-y: auto; /* scrollataan vain popupin sisältö */
  box-sizing: border-box;
  color: white; /* tekstin väriksi valkoinen, koska tausta musta */
}

/* Sisältödiv, jos haluat erillisen sisällön rajaamisen */
.popup-content {
  /* Voit halutessasi käyttää tätä, mutta tässä popup on jo rajattu */
}

/* Otsikot */
.popup h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 1rem;
}

.popup h2 {
  text-align: left;
  font-size: 30px;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Linkit */
.popup a {
  font-size: 10px;
  margin-top: 10px;
  color: #7b4bb7;
  text-decoration: underline;
}

/* Sulje-painike */
.close-btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: transparent;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #7b4bb7;
  border: 2px solid #7b4bb7;
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
  margin-top: 20px;
  margin-left: 25%;
}

.close-btn:hover {
  transform: scale(1.03);
  background-color: #7b4bb7;
  color: white;
  box-shadow: 0 0 25px #7b4bb7;
}
