:root {
    --brand-color: #e31c18;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    background-color: #f8f9fa;
    color: #222;
    margin-top: 90px;
}

.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin-right: 10px;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none;
}

.navbar-toggler-icon-custom {
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Elforgatás amikor a menü nyitva van */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom {
    transform: rotate(90deg);
}

/* Hover effekt (opcionális) */
.navbar-toggler:hover .navbar-toggler-icon-custom {
    opacity: 0.8;
}

.nav-item {
    transition: 0.1s;
}

.nav-item:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.041);
    background-color: #ffffff09;
}

.btn-sm {
    border-radius: 10px;
    padding: 4px;
    font-size: 15px;
}


section[id] {
    scroll-margin-top: 90px;
}

.brand-red {
    color: var(--brand-color);
}

.btn-brand {
    background-color: var(--brand-color);
    color: #fff;
    border: none;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: #b71c1c;
    color: #fff;
}

.hero-bg {
    background-color: #F5F5F5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800' preserveAspectRatio='none'%3E%3Cg%3E%3Cpolygon fill='%23e6e6e6' points='1600 160 0 460 0 350 1600 50'/%3E%3Cpolygon fill='%23d7d7d7' points='1600 260 0 560 0 450 1600 150'/%3E%3Cpolygon fill='%23c8c8c8' points='1600 360 0 660 0 550 1600 250'/%3E%3Cpolygon fill='%23b9b9b9' points='1600 460 0 760 0 650 1600 350'/%3E%3Cpolygon fill='%23AAAAAA' points='1600 800 0 800 0 750 1600 450'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: 110% 110%;
    background-repeat: no-repeat;
    background-position: center center;
    transition: background-position-y 0.3s ease-out;
}

.hero-picture {
    filter: drop-shadow(15px 10px 20px rgba(0, 0, 0, 0.3));
}

/* DAMOCLES SVG logó szöveges stílusa */
.damocles-logo-text {
    width: 90%;
}


.logo {
    max-height: 60px;
    margin-bottom: 1.5rem;
}


.laptop-container {
    position: relative;
    display: inline-block;
    transition: 1s;
}


.laptop-screen-overlay {
    position: absolute;
    top: 30%;
    left: 38.5%;
    width: 64%;
    height: 40%;
    display: flex;
    align-items: left;
    justify-content: left;
    transform: skew(0deg, 21.3deg);
    pointer-events: none;
}

.screen-text {
    color: #fc2320;
    font-family: 'Montserrat', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
    padding: 15px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-text .typing-char {
    opacity: 0;
    animation: typeIn 0.1s ease-in-out forwards;
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen-text .cursor {
    display: inline-block;
    background-color: var(--brand-color);
    width: 2px;
    height: 1.2em;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}


/* Responsive beállítások */
@media (max-width: 1399px) {
    .screen-text {
        font-size: 0.8rem;
        padding: 12px;
    }
}

@media (max-width: 1199px) {
    .screen-text {
        font-size: 0.68rem;
        padding: 10px;
    }
}

@media (max-width: 992px) {
    .screen-text {
        font-size: 0.5rem;
        padding: 7px;
    }
}

@media (max-width: 765px) {
    .screen-text {
        font-size: 0.9rem;
        padding: 15px;
    }
}

@media (max-width: 575px) {
    .screen-text {
        font-size: 2.5vw;
        padding: 2.5vw;
    }
}

@media (max-width: 767.98px) {
    .laptop-container {
        position: relative;
        z-index: 0 !important;
        margin-bottom: -24%;
        /* A laptop alsó része átfed */
    }

    .hero-content {
        position: relative;
        z-index: 1;
        padding-top: 20px;
        background: linear-gradient(transparent 0%, rgba(255, 255, 255, 0.9) 30%, white 60%);
        border-radius: 15px 15px 0 0;
    }

    .hero-text-container {
        z-index: 100 !important;
        border-style: solid;
        border-radius: 0.375rem;
        border-width: 1px;
        border-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        background: rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

        padding: 20px;
    }

    .hero-container {
        padding-top: 6vw;
        padding-bottom: 6vw;
    }
}



/* Dinamikus gomb stílusok */
.dynamic-btn {
    background-color: var(--brand-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 76, 76, 0.4);
    position: relative;
    overflow: hidden;
}

.dynamic-btn-hero {
    width: 90% !important;
}

.dynamic-btn:hover {
    background-color: #fa312d;
    color: white;
    box-shadow: 0 6px 12px rgba(224, 67, 67, 0.6);
    transform: translateY(-2px) scale(1.02);
}

.dynamic-btn:active {
    background-color: #b73737;
    box-shadow: 0 2px 4px rgba(183, 55, 55, 0.8);
    transform: translateY(0) scale(0.98);
}

.dynamic-btn:focus {
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 76, 76, 0.5);
}

/* Mobil nézet - teljes szélességű gomb */
@media (max-width: 991.98px) {
    .dynamic-btn {
        display: block;
        text-align: center;
        margin-top: 1rem;
        width: 100% !important;
    }

    .hero-title {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .damocles-logo-text {
        margin-right: 0 !important;
        width: 100%;
    }
}

/* Reszponzív címsor */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .damocles-logo-text {
        font-size: 1.5rem;
    }
}

/* Service card alapértelmezett stílusok */
.service-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
    height: auto;
    box-shadow: 0 0px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Service card hover effektusok */
.service-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    scale: 1.005;
}

/* Service card expanded állapot */
.service-card.expanded {
    transform: scale(1.02);
    z-index: 10;
    height: auto;
}

/* Service icon alapértelmezett és animációk */
.service-icon {
    transition: transform 0.2s ease-out;
}

.service-icon i {
    transition: color 0.2s ease, transform 0.3s ease;
}

.service-card:hover .service-icon i {
    color: var(--brand-color) !important;
    transform: scale(1.1);
}

.service-card.expanded .service-icon {
    transform: scale(0.8);
}

/* Service details alapértelmezett és expanded állapot */
.service-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card.expanded .service-details {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s ease-out 0.2s,
        transform 0.4s ease-out 0.2s;


}

/* Details content */
.details-content {
    padding-top: 20px;
    border-top: 1px solid rgba(108, 117, 125, 0.2);
    margin-top: 15px;
    transform: translateY(20px);
    transition: transform 0.3s ease-out;
}

.service-card.expanded .details-content {
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* Staggered animation for list items */
.service-details ul li {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease-out;
}

.service-card.expanded .service-details ul li {
    opacity: 1;
    transform: translateX(0);
}

/* Animált border indikátor */
.service-card:not(.expanded) {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
        linear-gradient(45deg, transparent, var(--brand-red), transparent) border-box;
    transition: all 0.4s ease !important;
}

.service-card:hover:not(.expanded) {
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
        linear-gradient(45deg, var(--brand-red), #fa312d, var(--brand-red)) border-box;
    animation: clickMe 1.1s ease-in-out infinite alternate;
}

@keyframes clickMe {
    0% {
        scale: 1;
    }

    15% {
        scale: 1.006;
    }

    80% {
        scale: 1.006;
    }

    100% {
        scale: 1;

    }
}

/* Grid beállítások */
.row.g-4 {
    transition: all 0.3s ease-out;
}

#services .row.g-4 {
    align-items: start;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card.expanded {
        transform: scale(1.01);
    }
}

.read-more-btn {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem;
    border-color: #6c757d;
    color: #6c757d;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: scale(0.99);
}


.modal-content {
    background: none;
    border-radius: 0px;
    border: none;
}

.modal-header {
    /* középszürke háttér */
    color: #ffffff;
    border-radius: 0.375rem 0.375rem 0 0;
    border-bottom: none;
    background-color: rgba(170, 170, 170, 0.75) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.99) !important;

    /* világos szürke háttér */
}

.modal-body h6 {
    color: var(--brand-color);
    /* piros címek */
    border-bottom: 2px solid var(--brand-color);
    /* piros aláhúzás */
    padding-bottom: 0.5rem;
}

.modal-body p {
    color: #343a40;
    /* sötétszürke szöveg */
}

.modal-body ul {
    padding-left: 1.2rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: #495057;
    /* középsötét szürke lista elemek */
}

.corner-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    font-size: 1.7rem;
    border-radius: 0.3rem;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-info {
    background-color: #e9ecef;
    /* világos szürke háttér */
    border: 1px solid #6c757d73;
    /* középszürke keret */
    border-radius: 10px;
    color: #343a40;
    /* sötétszürke szöveg */
}

.alert-info h6 {
    color: var(--brand-color);
    /* piros cím */
    border-bottom: none;
}

.modal-footer {
    border-top: 1px solid #6c757d;
    /* középszürke vonal */
    padding: 0.5rem;
    background-color: rgba(170, 170, 170, 0.75) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border-radius: 0 0 0.375rem 0.375rem;

}


/* Modal középre igazítás 570-770 px között */
@media (min-width: 570px) and (max-width: 770px) {
    .modal-dialog {
        margin: 1rem auto !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        max-width: 90vw;
        width: auto;
    }

    .modal {
        align-items: center !important;
        justify-content: center !important;
    }
}


/* Kisebb képernyőkre specifikus beállítás */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem auto;
        max-width: 95vw;
    }
}


.why-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 1rem;
}

.why-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 32px rgba(227, 28, 24, 0.10), 0 1.5px 4px rgba(0, 0, 0, 0.07);
}

.why-card img {
    filter: grayscale(1) brightness(0.8);
    transition: filter 0.2s;
}

.why-card:hover img {
    filter: none;
}

.stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    scale: 1.005;
}

.stat-card img {
    filter: grayscale(1) brightness(0.85);
    transition: filter 0.2s;
}

.stat-card:hover img {
    filter: none;
}

.display-5 {
    font-size: 2.5rem;
}

.star-rating {
    font-size: 1.5rem;
    color: var(--brand-color);
    letter-spacing: 0.1em;
    display: inline-block;
}

/* Vélemények interaktív slider stílusok */

.testimonials-container {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 20px 15px;
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
}


.testimonials-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 350px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.1) !important;
    z-index: 10;
    position: relative;
}

.testimonial-card blockquote {
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Fade overlay-k */
/* Fade overlay-k CSS mask-kel */
/* Fade overlay-k CSS mask-kel */
.fade-overlay {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.fade-left {
    left: 0;
    background: rgba(248, 249, 250, 0.8);
    mask-image: linear-gradient(to right,
            black 0%,
            black 20%,
            rgba(0, 0, 0, 0.8) 40%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            black 0%,
            black 20%,
            rgba(0, 0, 0, 0.8) 40%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 100%);
}

.fade-right {
    right: 0;
    background: rgba(248, 249, 250, 0.8);
    mask-image: linear-gradient(to left,
            black 0%,
            black 20%,
            rgba(0, 0, 0, 0.8) 40%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to left,
            black 0%,
            black 20%,
            rgba(0, 0, 0, 0.8) 40%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 100%);
}

/* Responsive beállítások */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 280px;
        height: 220px;
    }

    .fade-overlay {
        width: 100px;
    }
}



blockquote {
    quotes: "“" "”" "“" "”";
}

blockquote:before {
    content: open-quote;
    color: var(--brand-color);
    font-size: 2rem;
    vertical-align: -0.4em;
    margin-right: 0.1em;
}

.team-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 1rem;
}

.team-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 32px rgba(227, 28, 24, 0.08), 0 1.5px 4px rgba(0, 0, 0, 0.07);
}

.team-avatar {
    object-fit: cover;
    border: 3px solid #ddddddb2;
    background: #fff;
}

.team-photo {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(227, 28, 24, 0.08), 0 1.5px 4px rgba(0, 0, 0, 0.07);
}

/* GYIK hover effektusok */
.accordion-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Kérdés hover effektus */
.accordion-item h5 {
    transition: color 0.3s ease;
    position: relative;
}

.accordion-item:hover h5 {
    color: var(--brand-color);
}

/* Ikon hover animáció */
.accordion-item .fas {
    transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-item:hover .fas {
    transform: rotate(180deg);
    color: var(--brand-color);
}

/* Collapse tartalom hover effektus */
.accordion-item .collapse {
    transition: all 0.3s ease;
}

.accordion-item:hover .collapse.show {
    background-color: rgba(214, 214, 214, 0.05);
    border-left: 3px solid #e31b18d5;
    padding-left: 1rem;
}

.accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: #e31b18d5;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(227, 28, 24, 0.15);
}




.contact-form input,
.contact-form textarea {
    border-radius: 0.5rem;
    border: 1.5px solid #e4e4e4;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 0.15rem rgba(227, 28, 24, 0.10);
}

.contact-info h5 {
    color: var(--brand-color);
}

.contact-info a:hover {
    color: var(--brand-color);
}

#contact .container {
    overflow-x: hidden;
    overflow-y: hidden;
}

.counter {
    font-size: 40;
}

.references {
    background-color: #dddddd;
}

.glass {
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.glass-light {
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    background: rgba(228, 228, 228, 0.6) !important;
}

.glass-red {
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    background: rgba(255, 0, 0, 0.6) !important;
}

.glass-dark {
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

.glass-gray {
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    background: rgba(184, 184, 184, 0.322) !important;
}

.dropdown-item :hover {
    background: rgba(0, 0, 0, 0);
}

body {
    position: relative;
}

.navbar-nav .nav-item:has(.nav-link.active) {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.041);
    background-color: #ffffff09;
    border-radius: 10px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Szekciók padding-ja a fix navbar miatt */
section {
    scroll-margin-top: 80px;
}

/* Back to top gomb */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--brand-color);
    color: white;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    font-size: 18px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(227, 28, 24, 0.3);
    transition: all 0.3s ease;
}

.btn-back-to-top:hover {
    background-color: #fa312d;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(227, 28, 24, 0.5);
}

.btn-back-to-top:active {
    transform: translateY(-1px) scale(1.05);
}

.btn-back-to-top i {
    transition: transform 0.3s ease;
}

.btn-back-to-top:hover i {
    transform: translateY(-2px);
}

/* Fade animáció */
.btn-back-to-top.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.btn-back-to-top.hide {
    animation: fadeOutDown 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Mobil responsive */
@media (max-width: 768px) {
    .btn-back-to-top {
        display: none !important;
    }
}

.basin-recaptcha-v2-container{
    display: none !important;
}