/* Mobil nézet stílusok */

html {
    scroll-snap-type: none;
}

#wpadminbar {
    position: fixed !important;
    top: 0px;
    left: 0px;
    right: 0px;
}

.section {
    height: unset;
}

.section-max {
    min-height: unset;
    height: unset;
}

.container {
    width: 90%;
    padding-block: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#slogan-section {
    min-height: unset
}

#slogan-content p {
    text-align: center;
}

#contact-information-container {
    border-radius: 0;
    background-color: unset;
}

#contact-information {
    height: 100%;
    width: 90%;
    background-color: unset;
    color: unset;
}

#contact-form-container {
    flex: 1;
    padding: unset;
}

#contact-form {
    width: 90% !important;
}

#contact-information ul li::marker {
    color: unset;
}

/* Alapbeállítások a navigációhoz */
.header-nav {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    /* border-bottom: 1px solid var(--secondary); */
    /* border-bottom-right-radius: 25%;
    border-bottom-left-radius: 25%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); */
}

.header {
    height: 5rem;
}

.section:has(.header-menu.active) {
    padding-top: 5rem;
}

.header:has(.header-menu.active) {
    background-color: var(--primary);
    position: fixed !important;
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 1000;
}

.admin-bar .header:has(.header-menu.active) {
    top: 46px;
}

.header-logo {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

/* A menü konténerének alapállapota: 3D-s fordulatban, láthatatlan */
.header-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    color: var(--secondary);
    transform: perspective(600px) rotateX(-90deg);
    transform-origin: top;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
    z-index: 1000;
    overflow: hidden;
    padding: 10px 0;
}

/* Aktív állapotban a menü visszafordul és megjelenik */
.header-menu.active {
    transform: perspective(600px) rotateX(0deg);
    opacity: 1;
    border-bottom-right-radius: 15%;
    border-bottom-left-radius: 15%;
    /* border-top: 1px solid var(--secondary);
    border-bottom: 1px solid var(--secondary); */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Menüelemek alapállapota: eltolva, áttetszőek */
.header-menu .menu-item {
    text-align: center;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.header-menu.active .menu-item a {
    color: var(--secondary);
}

/* Staggered animáció: a menüpontok egymás után jelennek meg */
.header-menu.active .menu-item:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.header-menu.active .menu-item:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.header-menu.active .menu-item:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.header-menu.active .menu-item:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.header-menu.active .menu-item:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.header-menu.active .menu-item:nth-child(6) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

.header-menu.active .menu-item:nth-child(7) {
    transition-delay: 0.7s;
    opacity: 1;
    transform: translateY(0);
}

/* Menü kapcsoló gomb stílusai */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5em;
    cursor: pointer;
}

.header-menu a::after {
    display: none;
}

.header-menu a:hover::after {
    display: none;
}

#slogan {
    flex-direction: column-reverse;
}

#slogan #slogan-content h1 {
    display: inline-block;
    text-align: center;
}

#slogan #slogan-content {
    text-align: center;
    width: 100%;

}

.reference-container {
    gap: 10px;
}

.hero-image {
    width: 100%;
}

.reference-gallery {
    display: flex;
    flex: unset;
    height: unset;
    gap: unset;
    min-width: 0;
    flex-wrap: unset;
    min-height: 200px;
    padding-block: .5rem;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reference-gallery::-webkit-scrollbar {
    display: none;
}

.reference-gallery-group {
    flex: unset;
    height: unset;
    min-width: unset;
}

.reference-gallery-group img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 30px;
    animation: zoom-in-zoom-out .5s ease;
    transition: transform .5s ease-in-out;
    padding: 5px;

    min-width: 200px;
}

.reference-gallery-group img:hover {
    transform: scale(1.05);
}

#reference-gallery-group-1 {
    display: flex;
    flex-direction: unset;
    justify-content: unset;
    gap: unset;
    align-items: unset;
    flex: unset;
}

#reference-gallery-group-2 {
    display: flex;
    flex-direction: unset;
    justify-content: unset;
    gap: unset;
    flex: unset;
}

#reference-gallery-group-3 {
    display: flex;
    flex-direction: unset;
    justify-content: unset;
    gap: unset;
    flex: unset;
}

#reference-gallery-group-2-1 {
    display: flex;
    gap: unset;
    height: unset;
    align-items: unset;
    justify-content: unset;
}

#reference-gallery-group-2-2 {
    display: flex;
    gap: unset;
    height: unset;
    align-items: unset;
    justify-content: unset;
}

#reference-gallery-group-1 .gallery-item {
    width: unset;
    height: unset;
}

#reference-gallery-group-3 .gallery-item {
    width: unset;
    height: unset;
}

.gallery-item {
    width: 100px;
    height: 100px;
    border-radius: 30px;
}

#reference-gallery-group-2-1 .gallery-item:first-child {
    flex: unset;
}

#reference-gallery-group-2-1 .gallery-item:last-child {
    flex: unset;
}

#reference-gallery-group-2-2 .gallery-item:first-child {
    flex: unset;
}

#reference-gallery-group-2-2 .gallery-item:last-child {
    flex: unset;
}

.reference-stuffs {
    min-width: 0;
    align-items: center;
}

.service-box {
    width: 100%;
}

.service-btn {
    width: 100%;
}

#contact {
    width: unset;
}

#contact-form {
    width: 80%;
}

#contact-information-container {
    background-color: var(--secondary) !important;
    color: var(--primary) !important;
}

#contact-information {
    background-color: var(--secondary) !important;
    color: var(--primary) !important;
}

.quote-container ul li::before {
    color: var(--primary) !important;
}

section:nth-child(odd) #contact-information-container {
    background-color: var(--primary) !important;
    color: var(--secondary) !important;
}

section:nth-child(odd) #contact-information {
    background-color: var(--primary) !important;
    color: var(--secondary) !important;
}

section:nth-child(odd) .quote-container ul li::before {
    color: var(--secondary) !important;
}

.contact-form-btn {
    width: 100%;
}

.about-content {
    flex-direction: column-reverse !important;
}

.about-p,
.about-img {
    flex: 1 1 100%;
}

.about-img {
    margin-top: 1rem;
    justify-content: center;
}

.about-content:nth-child(odd) .about-img {
    justify-content: center;
}