/* Lisätään piilotusluokka */
.hide-on-start {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Animointi luokat */
.animate__zoomIn,
.animate__zoomInUp,
.animate__fadeInUp,
.animate__lightSpeedInLeft,
.animate__lightSpeedInRight {
  opacity: 1;
  visibility: visible;
}

p {
  text-align: left;
}

/* Fonttien muotoilut */
.black {
  color: #000000;

}

.white{
	color: #FFFFFF;

}

.blue {
	color: #3494BA;

}

@media (max-width: 381px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1rem; }
}

/* Nav-bar muotoilut */
.navbar {
  height: var(--nav-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: top 0.3s;
  z-index: 100;
}

.navbar-collapse {
  justify-content: center;
}

/*------------------------*/

.section {
  width: 100%;
  height: 100%;
}

/* Rajataan kunkin osion sisältö max 1400px ja pienemmillä ruuduilla 100% */
.section-container {
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

/* Section1 sisällön muotoilut */
#section1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2e3435;
  min-height: 810px;
  color: white;
}

.with-background-image {
  background-image: url('../images/Assasin2.png');
  background-repeat: no-repeat;
  background-position: center right;
  flex: 1;
  height: 810px;
}

.intro-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(52, 148, 186, 0.7);
  max-width: 500px;
  height: 80%;
  margin-top: 50px;
  margin-left: 5%;
  overflow: hidden;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 2s ease-in-out; 
}

.intro-text-container {
  text-align: center;
  margin: 5%;
}

.name {
  width: 80%;
}

.first-name {
  display: block;
}

.last-name {
  display: block;
  position: relative;
  left: 20%;
}

.intro-text {
  margin-top: 10%;
}

@media (max-width: 555px) {
  .intro-container{max-width: 100%; margin-left: 0; }
}

/* Section2 sisällön muotoilut */
#section2 {
  background-color: #3494BA;
  height: 810px;
  color: black;
}

.goals-container {
  display: flex; 
  height: 810px;
  max-width: 1000px;
  margin-right: 5%;
  margin-left: 5%;
}

.goals-title-container {
  display: flex;
  flex: 1;
  justify-content: center;
  margin-top: 10%;
}

.what-i-seek-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 10%;
}

.btn-black {
  background-color: black !important;
  border-color: white !important;
}

@media (max-width: 400px) {
  .goals-container {flex-direction: column; height: 600px;}
  #section2 {height: 600px;}
}

@media (max-width: 600px) {
  .what-i-seek-container {flex: 3}
}



/* Section3 sisällön muotoilut */
#section3 {
  background-color: #2e3435;
  height: auto;
  color: white;
}

#section3 .section-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.introduction-container {
  display: flex;
  flex-direction: column;
  margin-top: 10%;
  margin-bottom: 10%;
}

.introduction-title {
  display: flex;
  justify-content: center;
}

.introduction-text {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.hobbies-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hobbies-container h2 {
  text-align: right;
  width: 100%;
}

.hobbies-group {
  display: flex;
}

@media (min-width: 1001px) {
  .hobbies-group {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
  }

  .hobby-item {
    flex: 1;
  }
}


.airsoft, .investment {
  background-color: #3494BA;
}

.videogames, .electronics {
  border-bottom: 2px solid #3494BA;
  border-top:  2px solid #3494BA;
}

.electronics {
  border-right:  2px solid #3494BA;
}

.hobby-item {
  display: flex;
  width: 25%;
  padding: 40px;
  flex-direction: column;
  align-items: center;
}

.hobby-item h4 {
  margin-bottom: 5%;
}

.hobby-item p {
  margin-top: 5%;
}

.hobby-icon {
  width: 5rem;
  height: 5rem;
  margin-bottom: 10%;
}

.hobby-icon-white {
  filter: invert();
}

@media (max-width: 1000px) {
  .hobbies-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hobby-item {
    width: 48%;
  }

  .videogames {order: 2; border-left: 2px solid #3494BA; margin-bottom: 1%; margin-left: 1%;}
  .airsoft { order: 1; margin-bottom: 1%; margin-right: 1%;}
  .electronics { order: 3; margin-top: 1%; margin-right: 1%;}
  .investment { order: 4; margin-top: 1%; margin-left: 1%;}
}

@media (max-width: 368px) {
  .hobby-icon {
    width: 3rem;
    height: 3rem;
  }
}

/* Section4 sisällön muotoilut */
#section4 {
  background-color: #000000;
  height: auto;
  color: black;
}

#section4 .section-container {
  display: flex;
  position: relative;
}

.left-section, .right-section {
  width: 49%;
  margin-top: 10%;
  margin-bottom: 10%;
  margin-left: 2.5%;
  margin-right: 2.5%;
  height: auto;
}

.experience-group, .education-group {
  display: flex;
  flex-direction: row;
  min-height: 250px;
  gap: 3em;
}

.job-details, .education-details {
  display: flex;
  width: 60%;
  flex-direction: column;
  gap: 0.5em;
}

.job-description, .study-description {
  width: 40%;
}

.divider {
  background-color: #3494BA;
  position: absolute;
  top: 7.5%;
  bottom: 7.5%;
  width: 3px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 600px) {
  .experience-group, .education-group { flex-direction: column; gap: 1em; }
  .job-details, .job-description, .education-details, .study-description { width: 100%; }
}

@media (max-width: 1090px) {
  .divider { display: none; }
  #section4 .section-container { flex-direction: column; align-items: center; }
  .left-section { width: 90%; margin-top: 0%; margin-right: 5%; margin-left: 5%; }
  .right-section { width: 90%; margin-bottom: 0%; margin-left: 5%; margin-right: 5%; }
}

.experience-title, .education-title {
  font-weight: bold;
}

.job-title, .degree-title {
  font-weight: bold;
}

.job-company, .school-name {
  font-style: italic;
}

.job-duration, .study-duration {
  margin-bottom: 0.5rem;
}

.job-description {
  margin-bottom: 1.5rem;
}


/* Section5 sisällön muotoilut */
#section5 {
  background-color: #2e3435;
  height: auto;
  color: white;
}

.skills-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  margin-top: 10%;
  margin-bottom: 10%;
  margin-left: 5%;
  margin-right: 5%;
}

.skills-group-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: auto;
  width: 80%;
  min-width: 240px;
  gap: 2em;
  background-color: rgba(52, 148, 186, 0.5);
  flex-wrap: wrap;
  padding: 10%;
}

.skills-description {
  margin-left: 5%;
  margin-right: 5%;
}

.skills-group-container .icon {
  min-width: 20%;

}

.icon-size {
  width: 5em;
  height: 5em;
  fill: black;
  transition: fill 0.5s;
}

.js:hover {
  fill: #F7DF1E; /* JavaScriptin keltainen väri */
}
.html:hover {
  fill: #E34F26; /* HTML:n oranssi väri */
}
.css:hover {
  fill: #1572B6; /* CSS:n sininen väri */
}
.jquery:hover {
  fill: #0769AD; /* JQueryn sininen väri */
}
.c_sharp:hover {
  fill: #239120; /* C# vihreä väri */
}
.node:hover {
  fill: #43853D; /* Node.js vihreä väri */
}
.react:hover {
  fill: #61DAFB; /* Reactin vaaleansininen väri */
}
.php:hover {
  fill: #777BB4; /* PHP:n vaaleansininen väri */
}
.mysql:hover {
  fill: #4479A1; /* MySQL sininen väri */
}
.adobe:hover {
  fill: #FF0000; /* Adoben punainen väri */
}

@media (max-width: 800px) {
  .icon-size {width: 5rem; height: 5rem;}
}

@media (max-width: 767px) {
  .skills-container { margin-left: 0; margin-right: 0;}
}

@media (max-width: 649px) {
  .icon-size {min-width: 5rem; min-height: 5rem;}
}

/* Section6 sisällön muotoilut */
#section6 {
  background-color: #000000;
  min-height: auto;
  color: #FFFFFF;
}

.projects-container {
  text-align: center;
  margin-top: 10%;
  margin-bottom: 10%;
}

.projects-title-container {
  margin-bottom: 5%;
  margin-top: 10%;
}

.project-name {
  color: #FFFFFF;
  text-align: center;
  font-size: 24px; 
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-shadow: 0 0 5px #3494BA, 0 0 10px #3494BA, 0 0 20px #3494BA, 0 0 30px #3494BA;
}

.carousel-item img {
  width: 60%;
  height: 600px;
  object-fit: cover;
  object-position: left top;
  margin: auto;
  border: 3px solid #3494BA;
}

.carousel-caption {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.carousel-control-prev, .carousel-control-next {
  z-index: 10;
}

.carousel-caption button{
  background-color: #3494BA;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

@media (max-width: 767px) {
.carousel-control-prev, .carousel-control-next { display: none; }
.carousel-inner { width: 100%; }
.carousel-item img { width: 100%; }
.project-button-mobile { display: block; }
.carousel-caption { display: none; }
}

.project-button-mobile {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.modal-backdrop.show {
  opacity: 0.85;
}

body.modal-open .modal {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  height: 100vh;
}

/* Section7 sisällön muotoilut */
#section7 {
  background-color: #2e3435;
  min-height: auto;
  color: white;
}

.contact-container {
  margin-top: 10%;
  margin-bottom: 10%;
}

.contact-container img {
  min-height: 422px;
}

@media (max-width: 767px) {
  .contact-container { max-width: 400px; min-height: auto; margin: 10% auto;}
  .contact-container img { height: auto; min-height: auto; }
  #contact-form { text-align: left; /* Aseta lomake vasempaan laitaan */ }
  #form-response-message { text-align: center; /* Keskitä vastausviesti */ }
}

#form-response-message {
  color: green;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}


/* Footer muotoilut */
.footer {
  display: flex;
  justify-content: center !important;
  padding: 20px 0;
}

.footer-privacy-policy {
  position: absolute;
  bottom: 0;
  width: 100%;
}

@media screen and (max-width: 1000px) {
  .footer-privacy-policy {
    position: static;
  }
}

body {
  position: relative;
  min-height: 96.3vh;
}

.footer-icon-size {
  width: 2em;
  height: 2em;
}

#privacy-policy, .section {
  flex-grow: 1;
}









