*,
*::before,
*::after { box-sizing: border-box; }
html,body
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;

}
/* Main content styles */
main {
    width: 90%;
    color: #000000;
    display: flex;
    flex-direction: column;
    gap: 10%;
    margin: auto;
    margin-bottom: 3rem;
}

/* Headers within the main content */
main h1, main h2, main h3 {
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Paragraphs in main */
main p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Images in main */
main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}
main .hero {
    display: flex;
    align-items: center;
    justify-content: space-around   ;
    padding: 40px 0;
    margin: 10% 0 5% 0;
}
main .hero_image
{
    width: 25%;

}
main .hero_text {
    max-width: 30%;
    text-align: center;

}

/* Links in main */
main a {
    color: #007acc;
    text-decoration: none;
}

img {
  user-select: none;        /* prevent text selection */
  -webkit-user-drag: none;  /* prevent drag */
  pointer-events: none;     /* make it not clickable (optional) */
}
main a:hover {
    text-decoration: underline;
}
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  margin: clamp(2rem, 8vw, 6rem) 0;
}
.highlights .text {
  text-align: center;
  max-width: 52ch;
  justify-self: center;
background-color: transparent;
}
.highlights .text h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: clamp(.5rem, 2vw, 1rem);
}
.highlights button {
  background-color: #A6CFD5;
  color: #000;
  border: 0;
  padding: clamp(.6rem, 1.8vw, .9rem) clamp(1.2rem, 3vw, 2rem);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  border-radius: 4px;
  cursor: pointer;
    display: inline-block;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  margin-right: .5rem;
  margin-bottom: .5rem;
  background: #A6CFD5;
  color: #000;
    
}
.highlights button:hover { transform: translateY(-1px); 
text-decoration: none;}
.cards {
  width: min(100%, 680px);               
  aspect-ratio: 16 / 12;                 
  overflow: hidden;
  border: none;
  border-radius: 5px;
  /* box-shadow: 0px 0px 30px 15px rgba(200, 30, 30, 0.192); */
  justify-self: center; 

}
.wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: inherit;
  overflow: hidden;
}

.sshow {
    position:absolute; 
    inset:0;
  width:100%; height:100%;
  object-fit: cover;          
  opacity:0;
  border-radius: inherit;
  animation: fade 20s infinite;
  animation-timing-function: linear; /* ← smooth */
  animation-fill-mode: both;         /* ← fără flash inițial */
  will-change: opacity;  
}
.sshow:nth-child(1){ animation-delay: 0s; }
.sshow:nth-child(2){ animation-delay: 4s; }
.sshow:nth-child(3){ animation-delay: 8s; }
.sshow:nth-child(4){ animation-delay: 12s; }
.sshow:nth-child(5){ animation-delay: 16s; }

@keyframes fade{
  0%   { opacity: 0; }
  5%   { opacity: 1; } /* quick fade in */
  30%  { opacity: 1; } /* stay visible */
  35%  { opacity: 0; } /* fade out */
  100% { opacity: 0; }
}


@media (max-width: 1000px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }
    main .hero_image {
        width: 50%;
        order: 1;
        margin-bottom: 40px;
    }
    main .hero_text {
        
        max-width: 50%;
    }
      .highlights {
    grid-template-columns: 1fr;
    /* text under the slideshow (column-reverse effect) */
    grid-auto-flow: dense;
  }
  .cards { order: 1; }
  .highlights .text { order: 2; }
}

    

@media (max-width: 480px) {

    main .hero_image {
        width: 80%;
    }
    main .hero_text {
        margin-bottom: 40px;
        max-width: 80%;
    }
    main .hero_text h1{
        font-size: 1.5rem;
    }
    main .hero_text p{
        font-size: 1.0rem;
    }
   .cards { border-width: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .sshow { animation: none; opacity: 1; }
  .wrapper { background: #000; }
}
.download-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 4rem;

}


.download-btn {
  display: inline-block;
  background-color: #A6CFD5;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.download-btn:hover {
  background-color: #96c5cc;
  text-decoration: none;
  color: #000;
}
.contact-actions{
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: clamp(1rem, 3vw, 1.25rem);
  display: flex;
  justify-content: center;

}

.contact-actions h3,
.site-author h3 { margin-top: 0; text-align: center; font-size: 2rem ;}

.btn {
  display: inline-block;
  padding: .7rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  margin-right: .5rem;
  margin-bottom: .5rem;
  background: #A6CFD5;
  color: #000;
}

.btn:hover { transform: translateY(-1px); 
text-decoration: none;}

.btn.outline {
  background: transparent;
  border-color: #A6CFD5;
  color: inherit;
}
