@import url('https://fonts.googleapis.com/css?family=Inter:700|Inter:400');
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

:root {
    --darkerText: #767676;
    --text: #FFFFFF;
    --background: #010e0d;
    --box: #010e0d;
    --primary: #D8E35C;
    --secondary: #13a89e;
    --linearPrimarySecondary: linear-gradient(#D8E35C, #13a89e);
    --radialPrimarySecondary: radial-gradient(#D8E35C, #13a89e);
}

::selection {
    background: #1f200d;
}

* {
    cursor: none;
}

body {
  font-family: 'Lexend';
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  background-color: var(--background);
}

p {
    color: var(--text);
}

h1, h2, h3, h4, h5 {
  color: var(--text);
  font-family: 'Lexend';
  font-weight: 700;
}

html {
    font-size: 100%; /* 16px */
    scroll-behavior: smooth;
}

h1 {
    font-size: 4.210rem; /* 67.36px */
    color: var(--text);
}

h2 {
    font-size: 4.158rem; /* 50.56px */
    color: var(--text);
    text-align: center;
    margin: 0;
}

h3 {font-size: 2.369rem; /* 37.92px */}

h4 {font-size: 1.777rem; /* 28.48px */}

h5 {font-size: 1.333rem; /* 21.28px */}

small {font-size: 0.750rem;}

/* PRIMARY */
.primaryColor {
    color: var(--primary);
}

.line {
    content: " ";
    display: block;
    border-bottom: 1px solid #303030;
}

.line-anim {
    content: " ";
    display: block;
    border-bottom: 0.5px solid var(--primary);
    animation: 1s ease-in-out 0s 1 fadeIn_scaleIn2;
}

/* ANIMATIONS */
@keyframes scaleIn {
    0% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: .15; }
}
@keyframes fadeIn_scaleIn {
    0% {
        transform: scale(.8);
        opacity: 0;
      }
      100% {
        transform: scale(1);
        opacity: 1;
      }
  }

@keyframes fadeIn_scaleIn2 {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    1% {
      opacity: 1;
    }
    100% {
      transform: scale(1);
    }
}

@keyframes floating {
    0% { transform: translate(0,  0px); }
    50%  { transform: translate(0, 15px); }
    100%   { transform: translate(0, -0px); }
}

/* CUSTOM CURSOR */
.custom-cursor {
    position: fixed;
    opacity: 0;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999999999999999999999;
    border: 1px solid var(--primary);
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.custom-cursor.clickable-hover {
    transform: scale(4);
    background: transparent;
    border: 1px solid var(--primary);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 12px;
    height: 0px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    background-clip: padding-box;
}

/* Style the thumb on hover */
::-webkit-scrollbar-thumb:hover {
    border: 0;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* HEADER */
.header {
    overflow: hidden;
    margin: 0;
    padding: 90px;

    h1 {
        z-index: 1;
        position: relative;

        font-size: 400%;
        animation: 1s ease-in-out 0s 1 fadeIn_scaleIn;
        text-align: center;
        transition: all .55s ease;
    }
}

/* INFINITE SCROLL EFFECT */
.scrolling-container {
    display: flex;
    align-items: center;
    justify-items: center;
    padding-bottom: 35px;
    overflow: hidden;
}

.scrolling-text {
    white-space: nowrap;
    display: flex;
    animation: scrollText 40s infinite linear;

    p {
        font-size: 2em;
        color: var(--primary);
        font-weight: bold;
        margin-bottom: 10px;
        line-height: 10px;
    }
}

@keyframes scrollText {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-25%);
    }
}

/*@media screen and (max-width: 820px) {

    .header {
    background-color: var(--box);
    margin: 0;
    padding: 90px;

    h1 {
        scale: 1.2;
        animation: 1s ease-in-out 0s 1 fadeIn_scaleIn;
        text-align: center;
    }
    }
}*/

/* BEST DESIGNS CAROUSEL */
.best-designs {
    background-color: var(--box);
    padding: 20px;
}

.best-designs-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 50px;
}

.carousel {
    width: 700px;
    aspect-ratio: 16 / 9; /* 25/16 for better? */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.5s ease-in-out;
}

.slides a {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: block;

    img.slide {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease-in-out;
    }
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: 0;
}

.progress {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 3s linear;
}

.carousel-text {
    color: var(--text);
    max-width: 600px;
    line-height: 1.5;
    word-wrap: break-word;
    padding: 10px;
}


/* PhotoSwipe Gallery */
.ps_gallery {
    transform: translateX(20%);

    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 4px 4px;

    img {
        border-radius: 15px;
        margin: 8px;
        vertical-align: middle;
        transition: all .65s ease;
        opacity: 1;
    }
}

.ps_gallery:has(img:hover) img:not(:hover) {
    opacity: 0.5;
    filter: blur(1px);
    -webkit-filter: blur(1px)
}

.ps_gallery img {
    opacity: 1.0;
    filter: blur(0px);
    -webkit-filter: blur(0px)
}

#grid-big {
    img {
        width: 300px;
        height: auto;
    }

    img:hover {
        width: 340px;
        height: auto;
    }
}


#grid-medium {
    img {
        width: 230px;
        height: auto;
    }

    img:hover {
        width: 270px;
        height: auto;
    }
}

/* Portfolio */
.portfolio-text_area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-header{
    text-align: center;
    font-size: 55px;
    color: var(--text);
    padding: 1px;
    margin: auto;
    margin-top: 15px;
}

.section-subtext{
    text-align: center;
    color: var(--darkerText);
}

/* Kontakt */
.kontakt {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0;
}

/* Contact Me Button */
.contact-button {
    font-size: 16px;
    scale: 1.2;
    opacity: .8;
    font-weight: 200;
    padding: 10px 20px;
    background: transparent;
    color: var(--text);
    transition: all .4s ease;
    outline: none;
    margin: 20px;
    border: 2px solid var(--secondary);
    overflow: hidden;
    position: relative;
    z-index: 2;
    background-color: #031d1b;

    span {
        position: relative;
        z-index: 4;
    }
}

.contact-button::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 200%;
    transform: rotate(-10deg) translateY(-20px);
    top: 0;
    left: 0;
    z-index: 1;
    background: var(--secondary);
    transition: all .5s ease;
}

.contact-button:hover {
    opacity: 1;
    color: var(--text);
    scale: 1.3;
    font-weight: 700;
    transform: scale(1.05);
    transition: all .3s ease;
}

.contact-button:hover::before {
    opacity: 1;
    width: 120%;
}

/* FOOTER */
.footer {
    background-color: var(--box);
    text-align: center;
    padding: 10px;

    p {
        color: var(--darkerText);
    }
}