/* Hei näin kommentoit css:sää */
/* Laita tänne omat tyylittelyt :D */
/* Tyylittelyt täällä näin */

* {
  border: 0px solid #ff0000;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  color: #FFFCF3;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f3f3f3;
  font-family: sans-serif;
  font-size: 16px;
  background-color: #201F1E;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


.accentColor {
  color: #8DFF98;
}


.responsiveWidth {
  width: 65%;
}

.bigHeading {
  font-size: 4rem;
  margin: auto;
  padding: 2rem;
}

.centerText {
  text-align: center;
}

p.centerText {
  padding-bottom: 0;
}
nav {
  margin: 0rem;
  height: 4.5rem;
  position: fixed;
  width: calc(100vw - 3rem);
  background: linear-gradient(
    to bottom,
    rgba(32, 31, 30, 1) 0%,
    rgba(32, 31, 30, 0.68) 58%,
    rgba(32, 31, 30, 0) 100%
  );
  z-index: 100;
  top: 0;
  padding-bottom: 2rem;
}

.aboutLink {
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: #8DFF98;
  color:#161615;
  border-radius: 7px;
  border: 0;
  transition-duration: 0.3s;
  margin: 2rem 0rem;
}

.minOneWindow {
  min-height: calc(100vh - 8rem);
}

.aboutLink:hover {
  background-color: #72cd7b;
}

.nav-link {
  text-decoration: none;
  
  transition-duration: 0.2s;
}
.nav-link:hover {
  text-decoration: none;
  color: #8DFF98;
}


.nav-link:active {
  text-decoration: none;
  color: #8DFF98;
}

.icon {
  height: 1.8rem;
  padding-bottom: 0.3rem;
}

.navbar {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 1rem 1.5em;
}

.nav-item {
  float:left;
  display:inline;
  font-size: 1em;
}


.wrapper {
  width: 100%;
  max-width: 1000px;
  padding: 1.5rem 1.5rem 0 1.5rem;
  margin: auto;
  z-index: 10;
  align-self: center;
  box-sizing: border-box;
  
}

article {
  margin: 0 0.8rem;
}

.responsiveMargin {
  height: calc(75vh);
  padding-top: 3rem;
  display: flex;
}

.half {
  display: flex;
  justify-content: center;
  position: relative; /* ADDED THIS */
  width: 100%;
}

.backgroundElement {
  width: 100%;
  height: 100%; /* CRITICAL: Fills .half automatically */
  background: none;
  position: absolute;
  top: 0;
  z-index: -5;
  max-width: 1000px;
  pointer-events: none; /* Optimization */
}

.contentElement {
  background: none;
  position: relative; /* ADDED THIS */
  z-index: 2;         /* Ensures text is above the image */
  width: 100%;
}

.backgroundImageSticky {
  display: flex;
  width: 100%;
  height: 100%;
  padding-top: 0;  
  justify-content: right;
  max-width: 1000px;
}


.backgroundImage {
  z-index: -5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  margin-top: 0.5rem;
  height: 75vh;
  padding-top: 0;  
  justify-content: right;
  align-items: center;
  position: fixed;
  max-width: 1000px;
}

.imageBoxSticky {
  height: 100%;
  display: flex;
  position: sticky;
  justify-content: center;
  max-height: 74vh;
  top: 13vh;
  transition: opacity 0.5s ease-in;
  padding-right: 2rem;

}

.imageBox {
  width: 42%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-self: center;
  align-items: center;
  
  max-height: 80vh;
  
}

.centeredImage {
  /*max-width: 100%;*/
  height: 100%;
  margin-right: 0;
}

#konstanenImage1 {
    height: 150%;
}

.grayGradient1 {
  background: none;
}
.grayGradient2 {
  background: none;
}

.solidGrayDim {
  background: transparent;
}

.infoItem {
  padding: 0;
  margin: 1.5rem 0rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

#projectsStartingpoint {
  padding-top: 4rem;
  padding-bottom: 0rem;
  line-height: 1.3;
}
#portfolioSection {
  padding: 0 1.5rem 2rem 1.5rem;
  box-sizing: border-box;
  max-width: 1250px;
  margin: auto;
}


#contactSection {
  padding-top: 4rem;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}



.tileContainer {
  
  display: flex;
  width: 100%;
  align-items: baseline;
  
  
  
}
.tileColumn1 {
  width: calc(50% - 6px);
  margin-right: 6px;
  align-self: flex-start;
  
}

.tileColumn2 {
  width: calc(50% - 6px);
  margin-left: 6px;
  align-self: flex-start;
  
}

.tile {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  border-radius: 16px;
  transition: transform 0.3s ease, filter 0.3s ease; 
  
}
video::-webkit-media-controls-panel {
  display: none !important;
  opacity: 1 !important;
}

.hoverableImage {
    width: 100%;
    transition: transform 0.3s ease, filter 0.3s ease; 
}

.hoverableImage img, video {
  width: 100%;
  transform: scale(1.04);
  object-fit: cover;
}

.tile:hover {
  transform: scale(0.99);
  
}

.tile:hover .hoverableImage {
  transform: scale(1.12);
  filter: brightness(50%) blur(4px);
  -webkit-filter: brightness(50%) blur(4px);
}

.textObject:hover {
  opacity: 1;
  
}

.textObject {
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: 0.3s ease;
  text-align: left;
  color: white;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 1.4rem;
  z-index: 5; 
}
.projectAttributes {
  padding: 0.3rem 0 0.6rem 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.projectDesc {
  padding: 0.3rem 0;
  font-weight: 600;
  font-size: 0.85rem;
  align-self: baseline;
}
.projectLink {
  text-decoration: none;
  font-size: 0.85rem;
  
}

.textObject h3 {
  
  padding: 0rem 0;
}

section {
  margin: 0;
}

h1 {
  font-size: 3em;
  text-align: center;
  margin: 0;
  padding: 1rem 0;
}

h2 {
  font-size: 2em;
  margin: 0;
  padding: 1rem 0;
}
h3 {
  font-size: 1.5em;
  margin: 0;
  padding: 1rem 0;
}

h4 {
  font-size: 1.2em;
  margin: 0;
  padding: 1rem 0;
}

p {
  font-size: 1em;
  margin: 0;
  padding: 1rem 0;
}


.mediumMarginTop {
  margin-top: 2rem;
}
.noMarginBottom {
  margin-bottom: 0rem;
}
.noPaddingTop {
  padding: 0;
}
#contactSection {
  margin: 0;
  max-width: 450px;
}
.contactForm {
  background: #161615;
  padding: 1.1rem;
  border-radius: 10px;
  
}
.contactOptions {
  display: flex;
  margin: 0rem 0 1rem 0;
  font-size: 0.9rem;
  justify-content: space-between;
  
  text-align: center;
}

.contactOptions2 {
  display: flex;
  flex-direction: column;
  margin: 0rem 0 1rem 0;
  font-size: 1.2rem;
  justify-content: space-between;
  
  text-align: left;
}
.contactOptions2 a {
  background: #161615;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  transition-duration: 0.5s;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;

}

.contactOptions2 a p {
  transition-duration: 0.4s;

}

.contactOptions2 a:hover {
  background: #111110;
  color: #bdbbb4;
}

.contactOptions2 a:hover p {
  background: #111110;
  color: #bdbbb4;
}
.contactOptions2 a:hover i {
  color: #bdbbb4;
}

.ikoni {
  font-size: 2rem;
  margin-right: 1.5rem;
  transition-duration: 0.3s;
}

.contactOptions a {
  background: #161615;
  padding: 1.5rem 0;
  border-radius: 10px;
  width: calc(33% - 0.7rem);
  transition-duration: 0.5s;
  text-decoration: none;
}

.contactOptions a:hover {
  background: #111110;
  color: #bdbbb4;
}
.contactOptions a i {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  transition-duration: 0.5s;
}
.contactOptions a:hover i {
  color: #bdbbb4;
}

.contactForm h3, h4 {
  margin: 0;
  padding: 0;
}
.contactForm input {
  background: #201F1E;
  margin: 1rem 0 0 0;
  padding: 0.4rem;
  border-radius: 7px;
  width: calc(100% - 0.8rem);
  font-size: 16px;
}

textarea {
  background: #201F1E;
  margin: 1rem 0 0 0;
  padding: 0.4rem;
  border-radius: 7px;
  width: calc(100% - 0.8rem);
  font-size: 16px;
  resize: vertical;
}

#submitButton {
  border-radius: 7px;
  color: #161615;
  background: #8DFF98;
  width: 100%;
  padding: 0.6rem;
  font-size: 1.1rem;
  transition-duration: 0.3s;
  
}
#submitButton:hover {
  background: #72cd7b;
  
  
}

footer {
  margin-top: 2rem;
  background: #161615;
  padding: 2rem 0
}
footer p {
  
  text-align: center;
  padding: 0.2rem 0;
}

footer h5 {
  color: #c1c0be;
  text-align: center;
  padding: 0.25rem 0;
  margin: 0;
  
}



#scroll-dot-container {
  position: fixed;
  right: 16px;
  top: 0;
  width: 16px;
  height: 100vh;
  display: flex;
  gap: 6px;
  z-index: 50000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  
}

.scroll-dot {
  width: 16px;
  height: 16px;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid #FFFCF3;
  transition: 0.3s;
  background: #161615;
}

.scroll-dot.active {
  background-color: #8DFF98;
}




@media (max-width: 800px) {
  .tileContainer {
    display: inline;
    width: 100%;
  }
  .tileColumn1 {
    width: 100%;
    max-width: 600px;
    margin: auto;
  }
  .tileColumn2 {
    width: 100%;
    max-width: 600px;
    margin: auto;
  }



}


@media (max-width: 650px) {
  .grayGradient1 {
  background: linear-gradient(0deg, rgba(32,31,30,0.4) 0%, rgba(32,31,30,0) 60%);
  }
  .grayGradient2 {
    background: linear-gradient(0deg, rgba(32,31,30,0.65) 49%, rgba(32,31,30,0.4) 100%);
  }
  
  .responsiveWidth {
    width: 100%;
  }
  .imageBox {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
  }

  .imageBoxSticky {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    padding-right: 0rem;
  }

  .backgroundImageSticky {
    justify-content: center;
  }

  .imageBoxSticky {
    width: 100% !important;
    height: 100%;
    display: flex;
    justify-content: center;
  }
  .solidGrayDim {
    background: rgba(32,31,30,0.65);
  }
  .backgroundImage {
    justify-content: center;
    
  }
  .centeredImage {
    margin-right: 0;
  }

  .bigHeading {
    font-size: 3rem;
  }
  #contactSection {
    margin: auto;
    margin-top: -2rem;
    
  }
  .infoItem {
    font-size: 1.2rem;
  }

  #projectsStartingpoint {
    padding-bottom: 2rem;
  }
  
}


@media (max-width: 450px) {
  .textObject h3 {
    font-size: 1.15rem;
  }
  .projectAttributes {
    font-size: 0.9rem;
  }
  .projectDesc {
    font-size: 0.8rem;
  }

  
}

@media (max-width: 400px) {
  .wrapper {
    padding: 0.8rem 0.8rem 0 0.8rem;
  }

  #portfolioSection {
    padding: 0 0.8rem 1rem 0.8rem;
  }

  .navbar {
    padding: 0 1.2rem 1rem 1.2rem;
    width: calc(100vw - 2.4rem);
  }
  .textObject {
    padding: 1rem;
  }
  

  
  


}
@media (max-width: 350px) {
  .nav-item {
  
  
  font-size: 0.9em;
  }
}