@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

main {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

article {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--i);
}

.hero-info {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 8;
}

.hero-info h2 {
  font-size: clamp(2rem, 9vw, 5rem);
  line-height: clamp(2rem, 9vw, 5rem);
  text-transform: uppercase;
}

.hero-info h1 {
  color: var(--white);
  font-size: clamp(3.2rem, 10vw, 7rem);
  line-height: clamp(3.2rem, 10vw, 7rem);
  text-transform: uppercase;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

@supports (-webkit-text-stroke: 3px var(--pill)) {
  .hero-info h2 {
    color: var(--red);
    -webkit-text-stroke: 3px var(--white);
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5)
  }
}


.hero-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hi-1 {
  background-image: url("../comPhotos/resized/dolomiti-135_resized.webp");
}

.hi-2 {
  background-image: url("../comPhotos/resized/dolomiti-62_resized.webp");
}

.hi-3 {
  background-image: url("../comPhotos/resized/norsko-1-3_resized.webp");
}


.hi-4 {
  background-image: url("../comPhotos/resized/norsko-3-2_resized.webp");
}

.hi-5 {
  background-image: url("../comPhotos/resized/svatba_klarka_venca-384_resized.webp");
}

.recent{
    position: relative;
    bottom: 50px;
    opacity: 0;
    transition: all 0.5s ease;
}
.scroll-container {
    height: 2000px;
    
  }
.recent.visible {
  bottom: 0;
  opacity: 1;
  transition: all 0.5s ease;
}

.recentTitle {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 2.5em;
  margin-bottom: 2.5em;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  clip-path: ellipse(80% 100% at 50% 0%);
  color: var(--white);
  font-size: 28px; /* Increased size for emphasis */
  background: linear-gradient( rgba(8,8,9,0.8), rgba(20,20,22,1));
  flex-direction: column;
  cursor: pointer;
  transition: 0.3s ease-in; /* Smooth transition */
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3); /* Added shadow for depth */
  overflow: hidden;
  text-decoration: none;
}

.recentTitle:hover {
  transition: 0.3s ease-in; /* Smooth transition */
  transform: translateY(-5px); /* Lift effect on hover */
  color: white;
  background: linear-gradient(rgba(12,12,12,0.8), rgba(28,28,28,1)); /* Updated gradient */

}
.recentTitle p{
  font-size: 24px;
  padding-top: 0.5em;
}
.shadowTitle {
  filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.65));
}
.shadowTitle:hover {
  filter: drop-shadow(0px 12px 20px rgba(0, 0, 0, 0.85));
}

.card-container {
  padding: 2em;  /* Adjust the padding for breathing space */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

/* Style the individual cards */

.card {
    position: relative;
    overflow: hidden;
    flex: 1 1 calc(25% - 2em);;
    border: 1px solid var(--black);
    border-radius: 30px;
    box-shadow: 6px 6px 8px 7px rgba(0, 0, 0, 0.3);
    color: black; /* fill color */
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--black); /* outline color */
    font-size: 30px;
}
.card-normal,.card {
  height: 500px;
}
.card-large {
    flex: 2 2 calc(50% - 30px);
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease;
    text-align: center;
    opacity: 1.5;
}

.card:hover img{
    transform: scale(1.3);
}
.text-container {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 200;
    position: absolute;
    top: 50%; /* Positions the text container in the middle of the image vertically */
    left: 50%; /* Positions the text container in the middle of the image horizontally */
    transform: translate(-50%, -50%); /* Centers the text container on the image */
    z-index: 1; /* Puts the text container on top of the image */
    width: 100%;
    height: 100%;
    visibility: hidden; /* Hide text container by default */
    opacity: 0; /* Set initial opacity to 0 */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack child elements vertically */
    padding: 15px;
}

  .card:hover .text-container {
    visibility: visible; /* Show the text container on hover */
    opacity: 1; /* Increase the opacity to 1 on hover */
}
  
.text-container h2 {
    font-size: 2.5em;
    font-weight: 200;
    color: white;
    text-shadow: 2px 2px var(--black); /* Adds a text shadow for better visibility */
    text-align: center;
}
 
  
  .text-container p {
    font-size: 1.3em;
    color: white;
    text-shadow: 2px 2px var(--black); /* Adds a text shadow for better visibility */
    text-align: center;
    -webkit-text-stroke-width: 1px;
  }

  .contactForm {
    position: relative;
    bottom: 20px;
    opacity: 0;
    transition: all 0.5s ease;
  }
  
  .contactForm.visible {
    bottom: 0;
    opacity: 1;
    transition: 0.5s ease;
  }
  #emailForm {
    display: flex;
    flex-direction: column;  
    align-items: center;  
    justify-content: space-between; 
    padding: 3em;  /* Increased padding for a bigger form */
    border-radius: 20px;  /* Increased for a bigger form */
    background: linear-gradient(135deg, rgba(12,12,12,1) 0%, rgba(28,28,28,1) 100%);
    box-shadow: 6px 6px 8px 7px rgba(0, 0, 0, 0.3);
    max-width: 1100px;  /* Increased width for a bigger form */
    margin: 0 auto;
    margin-bottom: 60px; /* Separation from the footer */
    margin-top: 30px;
}

#emailForm h1 {
    color: var(--white);
    text-align: center;  
    font-size: 3em;  /* Increased font size for a bigger form */
    margin-bottom: -0.3em;
}

.form-content {
    display: flex;
    width: 100%;
    justify-content: space-between;  /* Added to ensure space between left and right side */
}

.left-side, .right-side {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    width: 45%;
    padding: 0 1em;  /* Added padding to ensure space on both sides of the content */
}

#emailForm label {
    font-weight: 500;
    color: var(--white);
}

#emailForm input, #emailForm textarea {
    width: 100%;
    padding: 1em;  /* Increased padding for a bigger form */
    border: none;
    border-radius: 15px;  /* Increased for a bigger form */
    background: rgba(255, 255, 255, 0.08); 
    color: var(--white);
    font-size: 1em;  /* Increased font size for a bigger form */
    margin-top: 0.5em;
}

#emailForm textarea {
    flex-grow: 1;
    padding: 1.5em;  /* Increased padding for a bigger form */
    resize: none;  /* Disabling the resizing of the textarea */
}

#emailForm input::placeholder, #emailForm textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#emailForm input[type="submit"] {
    align-self: flex-end;
    background: var(--red);
    cursor: pointer;
    transition: background 0.3s ease;
    width: max-content;
    margin-top: 1em;
    padding: 0.8em 1.5em;  /* Increased padding for a bigger button */
    border-radius: 30px;  /* Increased for a more rounded button */
    font-size: 1.1em;  /* Increased font size for a bigger button */
}

#emailForm input[type="submit"]:hover {
    background: rgba(255, 0, 0, 0.8);
}

.hr-divider {
  width: 100%;
  height: 2px;  /* Defining a specific height for the hr */
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);  /* Adding a gradient for a faded effect */
  border: none;  /* Removing the default border */
  margin: 3em 0;  /* Space above and below the hr */
}
.divider {
  display: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5);
  width: 100%;
  margin: 3em;
}

@media screen and (max-width: 768px) {
    #emailForm {
      padding: 2em;
      max-width: 95%;
  }

  .form-content {
      flex-direction: column;
      align-items: center;
  }

  .left-side, .right-side {
      width: 100%;
      padding: 0;
      margin-bottom: 1.5em;
  }

  #emailForm h1 {
      font-size: 1.5em;
  }

  #emailForm input, #emailForm textarea {
      font-size: 0.9em;
      padding: 0.8em;
  }

  #emailForm label {
      font-size: 0.9em;
  }

  #emailForm input[type="submit"] {
      padding: 0.7em 1.2em;
      font-size: 1em;
      width: 100%;
  }
  .divider {
    display: block;
  }

  .hero-info h2{
    -webkit-text-stroke: 1px var(--white);
  }

  .hero-info h1{
    -webkit-text-stroke: 1px var(--black);
  }
  .hero-info h1{
    text-shadow: none;
  }
  .hero-info h2{
    text-shadow: none;
  }
}


@media screen and (max-width: 1000px) and (min-width: 561px) {
  .card {
      flex: 1 1 calc(50% - 2em);
  }

  .text-container h2 {
      font-size: 2em;
  }

  .text-container p {
      font-size: 1.1em;
  }
}
@media screen and (max-width: 560px) {
  .card {
      flex: 1 1 100%;  /* 1 card per row on very small screens */
  }

  #emailForm input[type="submit"] {
    width: 100%; /* Full width minus the padding on both sides */
    align-self: center; /* Align to the center to ensure it doesn't stick to the side */
    margin-top: 1em;
  }
}

@media (hover: none) {
  #hero-1 {
    opacity: 1;
    display: block;
    transition: opacity 1s ease;
  }
  #hero-1 h1, #hero-1 h2 {
      opacity: 1;
      transition: opacity 1s ease;
  }

  #hero-2, #hero-3, #hero-4, #hero-5 {
      opacity: 0;
      display: block;
      transition: opacity 1s ease;
  }
  #hero-2 h1, #hero-2 h2,
  #hero-3 h1, #hero-3 h2,
  #hero-4 h1, #hero-4 h2,
  #hero-5 h1, #hero-5 h2 {
      opacity: 0;
      transition: opacity 1s ease;
  }
  *{
    animation: none !important;
  }
  .card, #emailForm, .shadowTitle:hover, .shadowTitle, .recentTitle:hover, .recentTitle {
    box-shadow: none !important;
    filter: none !important;  /* Remove drop-shadow filter */
    transition: none !important;  /* Remove transitions */
    transform: none !important;  /* Remove transforms */
  }
  .card .text-container {
    visibility: visible; 
    opacity: 1;
  }

  .card .text-container {
    visibility: visible; 
    opacity: 1;
    transition: none; /* Remove transition effects */
  }

  .card:hover img {
    transform: none; /* Removes the scale effect on hover */
  }
}