@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #191912;
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    color: white;
    overflow-x: hidden;
}
        /* login and registration modals */

/* Styling for layout */
.container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

aside {
    width: 1200px;
    padding: 20px;
    border: 1px solid #ccc;
    margin-left: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#filterForm {
    display: flex;
    flex-wrap: wrap; /* Povolenie zalamovania filtrov na nový riadok, keď je to potrebné */
    gap: 20px; /* Medzera medzi filtrami */
    justify-content: center; /* Zarovnanie filtrov na stred */
}

#filterForm h2 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
}

#filterForm label {
    display: block;
    width: 200px; /* Nastavenie fixnej šírky pre každý filter */
    font-size: 1em;
}

select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#filterForm button {
    width: 100%;
    padding: 12px;
    background-color: #DEB36A;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

#filterForm button:hover {
    background-color: white;
    color: #DEB36A;
}

.list {
    flex-grow: 1;
    padding: 20px;
}

/* Styling for user cards */
.card {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    width: 200px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

        /* odkazy */
.navbar ul li a {
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
    color: #DEB36A;
}

.navbar ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white; /* Farba podčiarknutia */
    transform: scaleX(0); /* Počiarknutie je skrytá */
    transform-origin: bottom right;
    transition: transform 0.3s ease; /* Plynulá animácia počiarknutia */
}

a:hover {
    color: white; /* Zmena farby pri hover */
}

a:hover::before {
    transform: scaleX(1); /* Počiarknutie sa ukáže */
    transform-origin: bottom left; /* Počiarknutie sa objaví zľava */
}

header {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin-left: 11%;
    margin-top: 10px;
    align-items: center;
    padding: 20px;
    border-radius: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    z-index: 999;
}

.logo img {
    height: 50px;
}

.navbar ul {
    list-style-type: none;
    display: flex;
    gap: 50px;
}
        /* button */
.cta-button {
    background-color: #DEB36A;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 18px;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.3s ease;
    text-align: center;
} 

.cta-button:hover {
    background-color: white;
    color: #DEB36A;
}

#gap {
    width: 100%;
    height: 150px;
}

#gapjedna {
    width: 100%;
    height: 130px;
}

.hero {
    display: flex;
    justify-content: space-between;
    padding: 40px;
}

.hero-text {
    max-width: 50%;
}

.hero-text p {
    text-align: justify;
}

.hero-gif img {
    max-width: 100%;
}

.registration,
.galleri,
.contacts,
.company-info,
.portfolio {
    padding: 40px;
    margin: 20px 0;
}

.registration p {
    padding-bottom: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
}

.contact-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
}

.company-info h2 {
    padding-bottom: 10px;
}

.contact-info h3 {
    font-size: 18px;
}

.contact-info p {
    font-size: 14px;
    color: #666;
}

.contact-info a {
    text-decoration: underline;
    color: #DEB36A;
}

.company-info a {
    color: #DEB36A;
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 20px;
}

/* Generovanie lúčov svetla ako naklonený obdĺžnik */
body::before, body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 95%;
    width: 200px; /* Šírka lúčov */
    height: 100%; /* Výška lúčov na celú stránku */
    background: linear-gradient(to bottom, rgba(222, 179, 106, 0.3) 0%, transparent 90%); /* Gradient zhora nadol */
    transform: translateX(-50%) rotate(10deg); /* Naklonenie lúčov */
    animation: lightRayAnim 6s infinite;
    z-index: -1000;
  }
  
  /* Druhý lúč - posunutý mierne inak */
  body::after {
    transform: translateX(-50%) rotate(5deg); /* Uhol pre druhý lúč */
    animation: lightRayAnim 6s infinite 2s; /* Začína po malom oneskorení */
  }
  
  /* Tretí lúč - posunutý ešte viac */
  body::before {
    transform: translateX(-50%) rotate(15deg); /* Uhol pre tretí lúč */
    animation: lightRayAnim 6s infinite 4s; /* Začína po ešte väčšom oneskorení */
  }
  
  /* Animácia pre objavovanie a miznutie lúčov */
  @keyframes lightRayAnim {
    0% {
      opacity: 0;
      transform: translateX(-50%) rotate(0deg);
    }
    50% {
      opacity: 1;
      transform: translateX(-50%) rotate(5deg);
    }
    100% {
      opacity: 0;
      transform: translateX(-50%) rotate(10deg);
    }
  }

.hamburger-icon {
    display: none;
}

/* Hamburger ikona */
.hamburger-icon img {
    width: 55px;
    height: auto;
    cursor: pointer;
}

.hidden-text {
    display: block;
}

.read-more-btn {
    display: none; /* Skryjeme tlačidlo na desktop verzii */
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #DEB36A;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.read-more-btn:hover {
    background-color: white;
    color: #DEB36A;
}


  @media (max-width: 768px) {
    /* Zabezpečíme, že menu bude skryté na mobilných zariadeniach */
    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #191912;
        border-radius: 38px;
        position: absolute;
        top: 105px;
        left: 0;
        padding: 10px 0;
        z-index: 1000;
    }

    .hamburger-icon {
        display: block;
        position: relative;
        top: 4px;
        left: 25px;
    }

    #gap {
        width: 100%;
        height: 100px;
    }

    .hidden-text {
        display: none; /* Skrytý text */
    }

    .read-more-btn {
        display: block; /* Tlačidlo sa zobrazí len na mobile */
    }

    /* Aktivácia menu po kliknutí na hamburger ikonu */
    .navbar.active ul {
        display: flex;
    }
    
    .navbar ul li {
        text-align: center;
        width: 100%;
    }
    .navbar ul li a {
        padding: 10px 0;
        color: #DEB36A;
        text-decoration: none;
    }

    .navbar ul li a:hover {
        color: white;
    }

    header .cta-button {
        display: none;
    }

    /* Prispôsobenie hero sekcie pre mobil */
    .hero {
        flex-direction: column;
        align-items: center;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .hero-text p {
        text-align: justify;
    }

    .registration a {
        position: relative;
        top: -20px;
        left: 20px;
        padding: 10px;
    }

    .hero-gif {
        margin-bottom: 20px;
    }

    aside {
        width: 270px;
        padding: 20px;
        border: 1px solid #ccc;
        margin-left: 60px;
        border-radius: 10px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    #filterForm {
        display: flex;
        flex-wrap: wrap; /* Povolenie zalamovania filtrov na nový riadok, keď je to potrebné */
        gap: 20px; /* Medzera medzi filtrami */
        justify-content: center; /* Zarovnanie filtrov na stred */
    }
    
    #filterForm h2 {
        text-align: center;
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    #filterForm label {
        display: block;
        width: 200px; /* Nastavenie fixnej šírky pre každý filter */
        font-size: 1em;
    }
    
    select {
        width: 100%;
        padding: 8px;
        margin-top: 5px;
        font-size: 1em;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }
    
    #filterForm button {
        width: 100%;
        padding: 12px;
        background-color: #DEB36A;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1em;
        transition: background-color 0.3s ease;
        margin-top: 10px;
    }
    
    #filterForm button:hover {
        background-color: white;
        color: #DEB36A;
    }

    body {
        overflow-x: hidden;
    }
}

/* -------------------------- login & registration -------------------------- */

.wrapper {
    margin-left: 25%;
    box-sizing: border-box;
    text-align: center;
    height: auto;
    background-color: white;
    color: black;
    width: max(40%, 600px);
    padding: 10px;
    border-radius: 20px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wrapper h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.wrapper form {
    width: min(400px, 100%);
    margin-top: 20px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wrapper form > div {
    width: 100%;
    display: flex;
    justify-content: center;
}

.wrapper form label {
    flex-shrink: 0;
    height: 50px;
    width: 50px;
    background-color: #DEB36A;
    color: #FFFFFF;
    border-radius: 10px 0 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 500;
}

.wrapper form select {
    box-sizing: border-box;
    flex-grow: 1;
    min-width: 0;
    height: 50px;
    font: inherit;
    border-radius: 0 10px 10px 0;
    background-color: rgb(238, 238, 238);
    margin: 0;
}

.wrapper form input {
    box-sizing: border-box;
    flex-grow: 1;
    min-width: 0;
    height: 50px;
    padding: 1em;
    font: inherit;
    border-radius: 0 10px 10px 0;
    border: 2px solid rgba(238, 238, 238);
    border-left: none;
    background-color: rgb(238, 238, 238);
    transition: 150ms ease;
}

.wrapper form input:hover {
    border-color: #DEB36A;
}

.wrapper form input:focus {
    outline: none;
    border-color: #666;
}

.wrapper form div:has(input:focus) > label {
    background-color: #666;
}

.wrapper form input::placeholder {
    color: #666;
}

.wrapper form button {
    margin-top: 10px;
    border: none;
    border-radius: 18px;
    padding: 0.85em 4em;
    background-color: #DEB36A;
    color: #FFFFFF;
    font: inherit;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: 150ms ease;
}

.wrapper form button:hover {
    background-color: #666;
}

.wrapper form button:focus {
    outline: nones;
    background-color: #666;
}

.wrapper button {
    margin-top: 0;
    margin-bottom: 10px;
    border: none;
    border-radius: 18px;
    padding: 0.85em 4em;
    background-color: #DEB36A;
    color: #FFFFFF;
    font: inherit;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: 150ms ease;
}

.wrapper button:hover {
    background-color: #666;
}

.wrapper button:focus {
    outline: nones;
    background-color: #666;
}

@media (max-width: 1100px) {
    .wrapper {
        width: min(600px, 100%);
        border-radius: 0;
        margin-left: 0;
    }
}

.heading {
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 4rem;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	padding: 3.5rem 0;
	color: #1a1a1a;
}

.gallery-track {
  position: fixed;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.25rem;
  padding: 0.25rem;
  will-change: transform;
}

.cardo {
  height: 400px;
  overflow: hidden;

  & .card-image-wrapper {
    height: 135%;
    will-change: transform;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
} 

.card-image-wrapper img:hover {
transform: scale(1.15);
}

.card-image-wrapper img {
transition: transform 400ms ease-out;
object-position: center top;
}

@media (width < 800px) {
  .gallery-track {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (width < 550px) {
  .gallery-track {
    grid-template-columns: repeat(1,1fr);
  }
}

.portfolio {
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responzívna mriežka */
  gap: 20px;
}

/* Karta projektu */
.cardy {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 8px; /* Voliteľné: zaoblené rohy */
  background: #1a1a1a;
}

/* Obal pre médiá - základ pre CSS Parallax */
.cardy-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Plynulý efekt pri hoveri */
}

/* Video a Obrázok */
.cardy-image-wrapper img, 
.cardy-image-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Vždy zobrazuje hornú časť */
  display: block;
}

/* Efekt priblíženia pri prejdení myšou (nahrádza parallax bez JS) */
.cardy:hover .cardy-image-wrapper {
  transform: scale(1.1);
}

/* Informácie o projekte */
.cardy-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8)); /* Pre lepšiu čitateľnosť textu */
  color: white;
  z-index: 2;
  pointer-events: none; /* Klikanie prechádza na kartu */
}

.cardy-info h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 1px;
}