@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --kek1: rgb(52, 55, 76);
    --kek2: rgb(44, 46, 62);
    --piros: rgb(238, 43, 71);
    --feher: rgb(246, 246, 246);
    --font-family: "Poppins", serif;
    --font-weight: 600;
    --font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    
}

.body {
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-style: var(--font-style);
    background-color: var(--feher) !important;
}

.navbar {
    background: transparent;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    transition: background 0.3s ease-in-out;
}

/* New styles for navbar when page is scrolled */
.navbar.scrolled {
    background: var(--feher);
    box-shadow: 0 4px 6px var(--kek1); /* added blue shadow when scrolling */
}

.navbar.scrolled .navbar-menu li a {
    color: var(--kek1);
}

.navbar.scrolled .navbar-menu li a:hover {
    color: var(--piros);
}

.navbar.scrolled .hamburger span {
    background: var(--kek1);
}

.navbar.menu-open {
    background: var(--feher);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    width: 100%;
    z-index: 1001;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0 auto;
    /* Centering the navbar-menu items */
}

.navbar-menu li a {
    text-decoration: none;
    color: var(--piros);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-style: var(--font-style);
    transition: all 0.3s ease;
    position: relative; /* added for pseudo-element positioning */
}

/* Add hover animation for navbar items */
.navbar-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1%;
    width: 100%;
    background-color: var(--piros);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.navbar-menu li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--piros);
    transition: all 0.3s ease-in-out;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background: var(--feher);
        list-style: none;
        margin: 0;
        padding: 20px 0;
        text-align: center;
        transition: top 0.3s ease-in-out;
        z-index: 1000;
    }

    .mobile-menu.active {
        top: 60px;
        /* Adjust based on header height */
    }

    .mobile-menu-active .navbar{
        background-color: var(--feher);
    }

    .mobile-menu li {
        margin: 30px 0;
    }

    .mobile-menu li a {
        text-decoration: none;
        color: var(--kek2);
        color: var(--kek2);
        font-family: var(--font-family);
        font-weight: var(--font-weight);
        font-style: var(--font-style);
        font-size: 1.2rem;
    }

}

.landing {
    height: fit-content;
    width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(var(--kek1), var(--kek2));
    overflow: hidden;
}

.landing-szoveg {
    color: var(--feher);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-style: var(--font-style);
    padding-top: 20vh;
    overflow: hidden;
    text-align: start;
    margin-top: 50px;
    margin-left: 50px;
    margin-bottom: 100px;
}

.landing h1 {
    font-size: 4rem;
    overflow: hidden;
}

.landing h2 {
    font-size: 2rem;
    margin-top: 20px;
    font-weight: 100;
    letter-spacing: 4px;
    overflow: hidden;
}

.zarojel {
    color: var(--piros);
    overflow: hidden;
    font-weight: 100;
}

.landing img {
    position: relative;
    width: 100%;
    object-fit: cover;
    height: auto;
}

.gomb{
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 1.5rem;
    border: 2px solid var(--piros);
    color: var(--piros);
    background-color: transparent;
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-style: var(--font-style);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.gomb:hover {
    background-color: var(--piros);
    color: var(--feher);
}

@media screen and (max-width: 768px) {
    .landing {
        height: fit-content;
    }
    .landing h1 {
        font-size: 2.5rem;
    }
    .landing h2 {
        font-size: 1.5rem;
    }
    .landing-szoveg {
        padding-top: 10vh;
        margin-left: 20px;
    }
    
}

@media screen and (min-width: 992px) and (max-width: 1160px) {
    .landing img {
        margin-top: 250px; /* Adjust the value as needed */
    }
}

/* Services Section */
/*<a href="https://www.flaticon.com/free-icons/headlight" title="headlight icons">Headlight icons created by surang - Flaticon</a>*/
/*<a href="https://www.flaticon.com/free-icons/car" title="car icons">Car icons created by Freepik - Flaticon</a>*/
/*<a href="https://www.flaticon.com/free-icons/crack" title="crack icons">Crack icons created by Freepik - Flaticon</a>*/
.szolgaltatasok {
    height: fit-content;
    padding: 150px;
    background: var(--feher);
}

.szolgaltatasok h3 {
    color: var(--kek1);
    font-family: var(--font-family);
    font-weight: 100;
    font-style: var(--font-style);
    text-align: center;
    overflow: hidden;
    font-size: 60px;
}

.szolgaltatasok h3 span{
    font-weight: 1000;
    color: var(--piros);
}

.szolgaltatasok-kartya {
    overflow: hidden;
}

.szolgaltatas-kartya h2 {
    overflow: hidden;
    width: max-content;
    color: var (--kek1);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-style: var(--font-style);
    font-size: 30px;

}

.vonal {
    width: 20%;
    height: 2px;
    color: var(--piros);
    background-color: var(--piros);
    opacity: 1;
    margin: 0 auto;
    margin-bottom: 50px;
}

.services-container {
    display: flex;
    margin-top: 40px;
}
.services-tabs {
    flex: 3;
}
.services-tabs ul {
    list-style: none;
    padding: 0;
}
.services-tabs li {
    padding: 30px 0;
    border-bottom: 3px solid var(--piros);
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-style: var(--font-style);
    font-size: 25px;
    color: var (--kek1);
    transition: all 0.3s ease-in-out;
}
.services-tabs li img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}
.services-tabs li.active {
    color: var(--piros);
}


.services-tabs li:hover {
    color: var(--piros);
}
.services-tabs li:last-child {
    border-bottom: none;
}
.services-content {
    flex: 6;
    padding: 30px;
}


.service-item h2 {
    color: var(--kek2);
    font-family: var(--font-family);
    font-weight: 800;
    font-style: var(--font-style);
    font-size: 30px;
    margin-bottom: 10px;
    overflow: hidden;
}
.service-item p {
    color: var(--kek2);
    font-family: var(--font-family);
    font-weight: 400;
    font-style: var (--font-style);
    font-size: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.service-item strong {
    color: var(--piros);
    font-family: var(--font-family);
    font-weight: 600;
    font-style: var(--font-style);
    font-size: 20px;
    bottom: 0;
    overflow: hidden;
}

.service-item {
    display: none;
}
.service-item.active {
    display: block;
}

/* Medium screens adjustments (768px to 992px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .services-tabs {
        /* Adjust flex ratio as needed */
        flex: 3;
    }
    .services-content {
        flex: 6;
    }
    .szolgaltatasok {
        padding: 50px;
    }
}

/* Small screens adjustments (below 768px) */
@media (max-width: 768px) {
    .services-container {
        display: block;
    }
    .services-tabs {
        width: 100%;
        margin-bottom: 20px; /* spacing between tabs and content */
    }
    .services-content {
        width: 100%;
        padding: 0;
    }
    .szolgaltatasok {
        padding: 20px;
        padding-top: 100px;
    }

    .szolgaltatasok h3 {
        font-size: 40px;
    }
    .services-tabs li {
        padding: 10px 0;
        font-size: 20px;
    }
}


.rolam {
    height: fit-content;
    width: 100%;
}

.rolam-kartya {
    display: flex;
    flex-direction: column;
    text-align: start;
    align-items: start;
    height: 630px;
    padding: 50px;
    background: var(--kek2);
}

.rolam-kartya h3 {
    color: var(--piros);
    font-family: var(--font-family);
    font-weight: 800;
    font-style: var(--font-style);
    font-size: 60px;
    margin-bottom: 20px;
    text-align: start;
    overflow: hidden;
}

.rolam-kartya span {
    color: var(--feher);
    font-weight: 100;
}

.rolam-kartya p {
    color: var(--feher);
    font-family: var(--font-family);
    font-weight: 400;
    font-style: var(--font-style);
    font-size: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.rolam-kartya .gomb {

}

.rolam-kartya .vonal {
    width: 40%;
    opacity: 1;
    margin: 0;
    margin-bottom: 50px;
}

.rolam-kep {
    height: 630px;
    margin: 0;
    background: linear-gradient(to right, rgba(44, 46, 62, 1) 1%, rgba(44, 46,62, 0.8) 30%, rgba(0, 0, 0, 0.5) 100%), url(../images/rolam.jpg);
    background-size: cover;
    /* Changed background-position from center to right and added animation */
    background-position: right;
    background-repeat: no-repeat;
    padding: 0;
    animation: bgMove 30s linear infinite;
}

.rolam .row {
    margin: 0;
}
.rolam .col-lg-6,
.rolam .col-md-6,
.rolam .col-sm-12 {
    padding: 0;
}

/* Added keyframes animation to move background from right to left */
@keyframes bgMove {
    from {
        background-position: right;
    }
    to {
        background-position: left;
    }
}

/* Medium screens adjustments (768px to 992px) */
@media (max-width: 768px) {
    .rolam-kartya h3 {
        font-size: 40px;
    }
    .rolam-kartya {
        height: fit-content;
        padding: 20px;
        padding-top: 50px;
    }
    .rolam-kep {
        height: 300px;
        background: linear-gradient(to bottom, rgba(44, 46, 62, 1) 1%, rgba(44, 46,62, 0.8) 30%, rgba(0, 0, 0, 0.5) 100%), url(../images/rolam.jpg);
        background-position: center;
        animation: none;
        background-size: cover;
        background-repeat: no-repeat;
    }
}

/* Medium screens adjustments (768px to 992px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .rolam-kep {
        height: 700px;
    }
    .rolam-kartya {
        height: 700px;
    }
    .rolam-kartya h3 {
        font-size: 40px;
    }
    .rolam-kartya p {
        font-size: 18px;
    }
    
}

.elerhetosegeim {
    height: fit-content;
    padding: 150px;
    background: var(--feher);
}

.elerhetosegeim h3 {
    color: var(--kek1);
    font-family: var(--font-family);
    font-weight: 100;
    font-style: var(--font-style);
    text-align: center;
    overflow: hidden;
    font-size: 60px;
}

.elerhetosegeim h3 span{
    font-weight: 1000;
    color: var(--piros);
}

.elerhetosegeim .vonal {
    margin-bottom: 100px;
}

.elerhetosegeim .row {
    margin-top: 40px;
}

.elerhetosegeim i {
    display: inline-block;
    width: 30px;      /* fixed width */
    font-size: 25px;
    color: var(--piros);
}

.elerhetosegeim-kartya {
    color: var (--kek1);
    font-family: var(--font-family);
    font-weight: 400;
    font-style: var(--font-style);
    font-size: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Updating paragraph styling for contact info */
.elerhetosegeim-kartya p {
    text-align: start;
    display: flex;
    align-items: start;
}

.elerhetosegeim-kartya p a {
    margin-left: 10px;
    color: var(--piros);
    text-decoration: none;
}

iframe {
    /* Changed from fixed width to 100% */
    width: 100%;
}

/* Remove or disable previous .iframe-wrapper::before styling */
/* .iframe-wrapper::before { ... } */

/* New styles for the animated SVG border */
.iframe-wrapper {
    position: relative;
    display: block; /* changed from inline-block */
    width: 100%;
}
.animated-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.animated-border rect {
    fill: none;
    stroke: red;
    stroke-width: 0.5;
    /* Only a small segment (e.g., 20) is visible while the rest (380) stays hidden */
    stroke-dasharray: 20 380;
    stroke-dashoffset: 0;
    animation: dash 6s linear infinite;
}
@keyframes dash {
    to {
        stroke-dashoffset: 400;
    }
}

/* Medium screens adjustments (768px to 992px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .elerhetosegeim {
        padding: 50px;
    }
}

/* Small screens adjustments (below 768px) */
@media (max-width: 768px) {

    .elerhetosegeim {
        padding: 20px;
        padding-top: 100px;
    }

    .elerhetosegeim h3 {
        font-size: 40px;
    }
}

@media (max-width: 550px) {
    iframe {
        height: 200px;
    }
}

/* FAQ Section Styles */
.faq {
    padding: auto 0;
}
.faq .faq-item {
    border-bottom: 2px solid var(--piros);
    cursor: pointer;
    margin-bottom: 20px;
    padding: 10px 0;
}
.faq .faq-question {
    display: flex;              /* Use flex layout */
    align-items: center;        /* Vertically center children */
    justify-content: space-between; /* Space between text and icon */
    font-size: 25px;
    color: var(--kek1);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
}
.faq .faq-text {
    width: 80%;                 /* Text occupies 80% */
}
.faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    font-size: 20px;
    color: var (--kek2);
    font-family: var(--font-family);
    padding: 0 10px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq .faq-item.active .faq-answer {
    max-height: 200px; /* Adjust if needed */
    padding: 10px;
}

/* FAQ Section Icon styling */
.faq .faq-icon {
    /* Remove absolute positioning */
    margin: 0;
    margin-top: -15px;
    transition: transform 0.3s ease;
    font-size: 1em;
}

/* Optionally, you can add a rotation effect when active */
.faq-item.active .faq-icon {
    transform: rotate(90deg);
}

/* Responsive adjustments for FAQ */
@media (max-width: 768px) {
    .faq {
        padding-top: 100px;
    }
    .faq h3 {
        font-size: 40px;
    }
    .faq .faq-question {
        font-size: 20px;
    }
    .faq .faq-answer {
        font-size: 18px;
    }
}

.munkaim {
    height: fit-content;
    padding: 150px;
    background: var(--feher);
}


.munkaim h3 {
    color: var(--kek1);
    font-family: var(--font-family);
    font-weight: 100;
    font-style: var(--font-style);
    text-align: center;
    overflow: hidden;
    font-size: 60px;
}

.munkaim h3 span{
    font-weight: 1000;
    color: var(--piros);
}

@media (max-width: 1024px) and (min-width: 768px) {
    .munkaim {
        padding: 50px;
    }
}

@media (max-width: 768px) {
    .munkaim {
        padding: 20px;
        padding-top: 100px;
    }

    .munkaim h3 {
        font-size: 40px;
    }
}

.munkaim-kepek {
    display: flex;
    justify-content: center;
    align-items: stretch; /* updated: ensure all child elements stretch to the same height */
    border: 3px solid var(--piros);
    margin: 20px auto;

}
.munkaim-kepek .elotte,
.munkaim-kepek .utanna {
    flex: 1;
    margin: 0;
    overflow: hidden;

}
.munkaim-kepek img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease-in-out;
}

.munkaim-kepek img:hover {
    transform: scale(1.1);
}

.elotte {
    border-right: 5px solid var(--piros);
}

@media (max-width: 768px) {
    .munkaim-kepek {
        flex-direction: column;
    }
    .elotte {
        border-right: none;
        border-bottom: 5px solid var(--piros);
    }
}

/* Gallery Filter Styles */
.gallery-filter ul {
    display: flex;
    justify-content: flex-end; /* align items to the right */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px; /* space between filter items */
}
.gallery-filter ul li {
    position: relative; /* ensure pseudo-element is positioned correctly */
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    color: var(--kek1);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-style: var(--font-style);
    transition: all 0.3s ease;
}

.gallery-filter ul li.active,
.gallery-filter ul li:hover {
    color: var(--piros);
}
.munkaim-gep {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;

}

.munkaim-telefon {
    display: none;
    margin: 50px 0;
}

/* Pseudo-element for active state with animation */
.gallery-filter ul li.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--piros);
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    animation: slideIn 0.5s forwards;
}

/* Keyframes for the slide-in animation */
@keyframes slideIn {
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 768px) {
    .gallery-filter ul {
        justify-content: center;
    }

    .munkaim-gep {
        display: none;
    }

    .munkaim-telefon {
        display: block;
    }
}

.nyitvatartas {
    margin: 20px 0;
    background: transparent;
}
.nyitvatartas h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--piros);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-style: var(--font-style);
    overflow: hidden;
}
.nyitvatartas ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nyitvatartas ul li {
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-style: var(--font-style);
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--kek1);
}

footer {
    padding: 20px;
    background: var(--kek1);
    text-align: center;
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-style: var(--font-style);
}
footer p {
    margin: 10px 0;
    color: var(--feher);
}
footer a {
    color: var(--piros);
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    text-decoration: underline;
}

.joginyilatkozat {
    height: fit-content;
    padding: 150px 0;
    text-align: start;
}
.joginyilatkozat h4 {
    color: var(--kek1);
    font-family: var(--font-family);
    font-weight: 700;
    font-style: var(--font-style);
    text-align: start;
    overflow: hidden;
    font-size: 40px;
    margin-top: 30px;
}

.joginyilatkozat strong {
    color: var(--piros);
    font-family: var(--font-family);
    font-weight: 800;
    font-style: var(--font-style);
    font-size: 20px;
    overflow: hidden;
}

.joginyilatkozat li {
  list-style: none;
  position: relative;
  padding-left: 15px;
}
.joginyilatkozat li::before {
  content: "•";
  color: var(--piros);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
    .joginyilatkozat {
        padding: 100px 20px;
    }
    .joginyilatkozat h4 {
        font-size: 27px;
    }
    .joginyilatkozat strong {
        font-size: 18px;
    }
}
