/*I want the image to appear on loading and the hero text to appear a bit later*/
/*Maybe on hover neon background appear behind the cursor*/
/*
.hero {
    height: calc(100vh - 60px);
    width: 100%;
    background-image: url(/src/images/markus-spiske-NsyU41QcsxM-unsplash.jpg?v=1);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    position: relative;
    overflow: hidden;
    z-index: -1;
}
*/
.hero {
    /*height: calc(100vh - 280px);*/
    height: calc(50vh);
    max-height: 100%;
    width: 100%;
    background-image: url(/src/images/christopher-gower-m_HRfLhgABo-unsplash.jpg?v=1);
    background-size: 110% auto;
    background-repeat: no-repeat;
    background-position: top center;
    position: relative;
    overflow: hidden;
    z-index: -1;
}
@media only screen and (max-width: 700px) {
    .hero {
        background-size: 180% auto;
    }
}
@media only screen and (max-width: 500px) {
    .hero {
        background-size: 240% auto;
    }
}
/*
.hero h1 {
    font-family: monospace;
    font-weight: bold;
    font-size: 3rem;
    position: relative;
    z-index: 1;
    margin: 20px 0;
    transition: color 0.3s ease;
    color: #fff;
}
.hero h1:nth-of-type(1) {
    position: absolute;
    top: 50px;
    left: 50px;
    color: #000
}
.hero h1:nth-of-type(2) {
    position: absolute;
    bottom: 50px;
    right: 50px;
}
*/
/*
.neon-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,255,0.5), transparent 60%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
    transition: opacity 0.3s ease;
    opacity: 0;
}
*/
@media only screen and (min-width: 1000px) {
    .hero h1 {
        font-size: 4rem;
    }
}



/*
.experience {
    background-color: rgba(255, 253, 248, 1);
}
.experience figure {
    display: flex;
    gap: 30px;
    white-space: nowrap;
    flex-wrap: wrap;
    justify-content: center;
    margin: 50px 0;
    padding: 10px 0;
    font-size: 1.25rem;
    background-color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
*/

.infobar {
    display: flex;
    padding: 0 60px 60px 40px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: -40px 0 0 0;
    z-index: 100;
}
.infobar > .design {
    background-color: rgba(50, 50, 50, 1);
    display: flex;
    flex-direction: column;
    padding: 10px;
    max-width: 300px;
    color: #fff;
    border-radius: 2px;
    position: relative;
}
.infobar img {
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto 10px;
}
.infobar .item:nth-of-type(2) img {
    height: 50px;
    margin: 0 auto;
}
@media only screen and (min-width: 1000px) {
    .infobar img {
        height: 100px;
    }
    .infobar .item:nth-of-type(2) img {
        height: 120px;
    }
}
.infobar h2 {
    text-align: center;
    margin-bottom: 7px;
}
@media only screen and (min-width: 1000px) {
    .infobar h2 {
        margin-bottom: 20px;
    }
}
.infobar p {
    text-align: center;
    line-height: 1.75;
}
.infobar a {
    text-align: center;
    margin-top: 7px;
    font-weight: bold;
    color: #8a2be2 !important;
}
.infobar a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    vertical-align: middle;
}
@media only screen and (min-width: 1000px) {
    .infobar > .design {
        font-size: 2rem;
        padding: 30px 30px 60px 30px;
        width: 100%;
    }
    .infobar a {
        position: absolute;
        bottom: 20px;
        left: 25%;
    }
}


/*
.gallery {
    border-bottom: solid 1px #777;
    overflow-x: auto;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    max-height: 350px;
    overflow-y: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 100%;
}
.gallery ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 10px;
    padding: 0;
    margin: 0;
    
    scroll-behavior: smooth;
}
.gallery li {
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    /*flex: 0 0 100vw;*//*
    height: 350px;
    
    flex: 0 0 100%;
}
.gallery img {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
    object-position: center;
}
.gallery::-webkit-scrollbar {
    display: none;
}
*/
/* SECTION (the scrollable element) */
.gallery {
    /*border-bottom: solid 1px #777;*/

    /* make the section the scroll container */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    max-height: 350px;
    overflow-y: hidden;
    width: 100%;

    /* remove centering flex behaviour so the UL starts at left
     (centering caused offsets interfering with scrollTo). */
    display: block;
    box-sizing: border-box;
}

/* TRACK */
.gallery ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 10px;            /* optional gap between slides */
    padding: 0;
    margin: 0;
}

/* SLIDES */
.gallery li {
    flex: 0 0 100%;       /* each slide takes full width of the section */
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    box-sizing: border-box;
}

/* IMAGES */
.gallery img {
    width: 100vw;
    /*height: 350px;*/
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 500px;
    max-width: 1000px;
}

/* hide scrollbar on WebKit */
.gallery::-webkit-scrollbar {
    display: none;
}






.about {
    background-color: rgba(50, 50, 50, 1);
    margin: 40px;
}
.about .item {
    display: flex;
    flex-direction: column;
}
.about .item .header {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.about .arrow {
    font-size: 24px;
    margin-right: 10px; 
    display: inline-block;
    transition: transform 0.2s ease-in;
}
.about .arrow.rotate {
    transform: rotate(90deg);
}
.about .item h2 {
    margin: 0;
}
.about .info {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    text-align: center;
    padding: 0 10px 20px 10px;
    margin-top: 10px;
    color: #fff;
    line-height: 1.5;
}
.about .info.show {
    opacity: 1;
    max-height: 500px;
}






.about_extra {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: auto;
    padding: 40px;
    position: relative;
}
.about_extra > .about_logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 15px;
    flex: 0;
    margin: auto;
}
.about_extra > .about_logo > p {
    font-weight: bold;
    transition: color 0.2s ease;
}
.about_extra > .about_logo:hover p:nth-of-type(1) {
    color: aqua;
    transition-delay: 0s;
}
.about_extra > .about_logo:hover p:nth-of-type(2) {
    color: lightgreen;
    transition-delay: 0.3s;
}
@media only screen and (min-width: 1000px) {
    .about_extra > .about_logo {
        font-size: 4rem;
    }
}
.about_extra figure {
    display: flex;
    flex-direction: column;
    gap: 20px;
    line-height: 1.75;
}
.about_extra img {
    position: absolute;
    top: 0;
    height: 300px;
    width: auto;
    left: 50%;
    transform: 
        rotate(180deg)
        translateX(50%);
    z-index: -1;
}






.contact_form form {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 50%;
    max-width: 500px;
    padding: 60px 0;
    gap: 20px;
}
.contact_form input,
.contact_form textarea {
    padding: 5px;
    border: none;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .5);
    border-radius: 5px;
    outline: none;
}
.contact_form textarea {
    height: 200px;
    resize: none;
}
.contact_form input[type="submit"] {
    cursor: pointer;
    font-weight: bold;
    background-color: rgba(50, 50, 50, 0.2);
    transition: background-color .15s ease;
}
.contact_form input[type="submit"]:hover {
    background-color: rgba(50, 50, 50, 0.1);
}


.form_message {
  margin: 20px auto;
  width: 50%;
  max-width: 500px;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.form_message.success {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #155724;
}

.form_message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #721c24;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

