@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Inter:wght@100..900&family=Roboto:wght@100..900&display=swap');

:root {
    --bg-light: #F2F0EF;
    --bg-dark: #100E09;
    --text-dark: #000000;
    --text-light: #FFFFFF;
    --accent-gold: #f5b301;
    --font-main: "Montserrat", sans-serif;
    --nav-height: 80px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
button, input, select, textarea {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

.hidden { display: none !important; }
.shidden { display: none !important; }
.sohidden { display: none !important; }

.icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}

.icon svg {
    width: 100%;
    height: 100%;
}

#fbstop1, #fbstop2, #igstop1, #igstop2, #igstop3, #igstop4, #liBackground, #ytBackground {
    transition: stop-color 0.5s ease, fill 0.5s ease;
}

.fb:hover #fbstop1 { stop-color: #0062e0; }
.fb:hover #fbstop2 { stop-color: #19afff; }
.ig:hover #igstop1 { stop-color: #FEC053; }
.ig:hover #igstop2 { stop-color: #F2203E; }
.ig:hover #igstop3 { stop-color: #B729A8; }
.ig:hover #igstop4 { stop-color: #5342D6; }
.li:hover #liBackground { fill: #2867b2; }
.yt:hover #ytBackground { fill: #ed1f24; }

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    padding: 0 5%;
    z-index: 1000;
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

#navbar.transparent {
    background-color: rgba(242, 240, 239, 0.9);
    box-shadow: none;
}

.logo h1 {
    font-family: "Roboto", sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

nav button {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1002;
}

nav button img {
    height: 30px;
    width: auto;
}

.sections {
    display: flex;
    gap: 3rem;
    font-weight: 600;
    font-size: 1rem;
}

.sections li a {
    position: relative;
}

.sections li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--text-dark);
    transition: width 0.3s;
}

.sections li a:hover::after {
    width: 100%;
}

.socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lang-switch a {
    font-size: 1.5rem;
    text-decoration: none;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.2s;
    opacity: 0.7;
}

.lang-switch a:hover,
.lang-switch a.active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

#Home {
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: var(--text-light);
    padding: 2.5% 5%;
}

.homeBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.homeBackground video,
.homeBackground iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.homeText1 {
    z-index: 1;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 1rem;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.homeText1 h2 {
    text-align: left;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.homeText1 h3 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.5;
}

#Numbers {
    background: url('NumbersBackground.jpg') no-repeat center center/cover;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 4rem 5%;
    gap: 2rem;
    color: var(--text-light);
}

#Numbers::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

#Numbers > div {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

#Numbers span.counter {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff; 
}

#Numbers p {
    font-size: 1.1rem;
}

#Numbers b {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

#Products {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, #000000 100%);
    color: var(--text-light);
    padding: 4rem 0;
}

.carousel-section h2 {
    color: var(--text-light);
}

.video-container {
    display: flex;
    overflow-x: auto;
    gap: 3rem;
    padding: 2rem 5%;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
}

.video-container > div {
    flex: 0 0 95vw;
    width: 95vw;
    max-width: 1600px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-container > div h4 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-light);
    line-height: 1.2;
}

.video-container > div p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
}

.video-container > div > div {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; 
    user-select: none;
}

@media (min-width: 768px) {
    .video-container > div {
        flex: 0 0 75vw;
        width: 75vw;
    }
}

#Products-texts {
    display: flex;
    flex-wrap: wrap; 
    width: 100%;
}

.product-text {
    flex: 1 1 350px; 
    position: relative;
    min-height: 600px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    color: var(--text-light);
    overflow: hidden;
}

.product-text img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: transform 0.5s ease;
}

.product-text:hover img {
    transform: scale(1.05);
}

.product-text::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.95) 0%, 
        rgba(0,0,0,0.7) 40%, 
        rgba(0,0,0,0.3) 70%, 
        transparent 100%
    );
    z-index: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    
    -webkit-mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
    mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
}

.product-text h3, 
.product-text p, 
.product-text div {
    position: relative;
    z-index: 1;
	text-wrap: balance;
}

.product-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-text p {
    margin-bottom: 2rem;
    font-size: 1rem;
}
.product-text h3, 
.product-text p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    position: relative; /* Zajišťuje, že text bude nad gradientem */
    z-index: 1;
}

.product-text p {
    color: #f2f0ef; /* Velmi světlá šedá/bílá, méně ostrá než čistá #fff */
    font-weight: 500; /* Lehké ztučnění pro lepší čitelnost */
}
.product-text button {
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.product-text button:hover {
    background: white;
    color: black;
}

#Reference {
    padding: 4rem 5%;
    text-align: center;
    background-color: var(--bg-light);
}

.reference-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    padding-bottom: 3rem; 
}

.ReferenceCarouselItem {
    flex: 0 0 100%; 
    background: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 750px;
}

@media (min-width: 768px) {
    .ReferenceCarouselItem { flex: 0 0 45%; }
}
@media (min-width: 1200px) {
    .ReferenceCarouselItem { flex: 0 0 30%; }
}

.ReferenceStar {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.ReferenceText {
    text-align: left;
    margin-bottom: 2rem;
    height: 100%;
    overflow-y: auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.ReferenceKdo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: auto;
}

.ReferenceKdoText { text-align: left; }
.ReferenceKdoJmeno { font-weight: 700; font-size: 1.2rem; }
.ReferenceKdoPredmet { font-size: 0.9rem; color: #666; }

.ReferenceKdoFoto img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

#openReferencePopupBtn {
    background: rgba(0,0,0,0.05);
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: all 0.3s;
    font-family: var(--font-main);
}

#openReferencePopupBtn:hover {
    background: var(--text-dark);
    color: white;
    transform: scale(1.05);
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    position: relative;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 3rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    color: var(--accent-gold);
}

.rating p {
    position: absolute;
    font-size: 0.8rem;
    bottom: -1.5rem;
    color: #666;
}
.rating p:first-child { left: 0; }
.rating p:last-child { right: 0; }

footer {
    background: url('ContactBackground.jpg') no-repeat center center/cover;
    position: relative;
    padding: 6rem 5% 3rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    min-height: 1250px;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.kontaktMain1, .kontaktMain2, .kontaktSocials {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 15px;
    color: white;
    width: 100%;
    max-width: 600px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    text-align: center;
}

.kontaktSocials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: fit-content;
}

.kontaktSocials a {
    width: 3rem;
    height: 3rem;
    transition: 0.5s all;
}

.legal-disclaimer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.5;
}

.mamZajem {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    color: white;
    
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    font-family: var(--font-main);
}

.mamZajem:hover {
    background: white;
    color: black;
    transform: scale(1.05);
}

.mamZajem svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: fill 0.3s;
}

.mamZajem:hover svg {
    fill: black;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.popup-content {
    background: var(--bg-light);
    
    width: 100%;
    max-width: 600px;
    
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .popup-content {
        padding: 3rem 2rem;
        max-width: 50dvw;
        min-width: 500px;
    }
}

#kontakt-dialog {
    margin: auto;
    border: none;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    width: 95%;
    max-width: 800px;
    background: var(--bg-light);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: fixed;
    inset: 0;
    height: fit-content;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 768px) {
    #kontakt-dialog {
        padding: 3rem;
        width: 90%;
    }
}

#kontakt-dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

#kontakt-dialog h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
}
@media (min-width: 768px) {
    #kontakt-dialog h2 { font-size: 2rem; }
}

#contact-form, #reference-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

#form-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    #form-wrap {
        flex-direction: row;
        gap: 1.5rem;
    }
    #contact-form, #reference-form {
        gap: 1.5rem;
    }
}

#form-control, .form-control-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    width: 100%;
}

.form-container {
    width: 100%;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

@media (min-width: 768px) {
    input, select, textarea {
        padding: 1rem;
    }
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--text-dark);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0.2rem;
}

#contact-button, 
button[type="submit"] {
    background: var(--text-dark);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1rem;
    align-self: center;
    transition: transform 0.2s, background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    #contact-button, 
    button[type="submit"] {
        width: auto;
        padding: 1rem 3rem;
        font-size: 1.1rem;
    }
}

#contact-button:hover,
button[type="submit"]:hover {
    background: #333;
    transform: scale(1.05);
}

#contact-button svg {
    fill: white;
    height: 1.2rem;
    width: auto;
}

.close-btn, .closeForm {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.closeForm svg {
    width: 100%;
    height: 100%;
    fill: var(--text-dark);
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.2rem;
    margin: 1.5rem 0;
    position: relative;
    width: 100%;
}

.rating label {
    font-size: 2.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

@media (min-width: 768px) {
    .rating { gap: 0.5rem; }
    .rating label { font-size: 3rem; }
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    color: var(--accent-gold);
}

.rating p {
    position: absolute;
    font-size: 0.75rem;
    bottom: -1.2rem;
    color: #666;
    white-space: nowrap;
}
.rating p:first-child { left: 0; }
.rating p:last-child { right: 0; }

@media (min-width: 1024px) {
    nav button { display: none; }

    .sections {
        display: flex !important;
        flex-direction: row;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        background: none;
        width: auto;
        height: auto;
        padding: 0;
        gap: 2rem;
        white-space: nowrap;
    }

    .sections .closeForm {
        display: none !important;
    }

    .socials {
        display: flex !important;
        position: static;
        background: none;
        width: auto;
        height: auto;
        padding: 0;
        margin-left: auto; 
    }

    .lang-switch {
        margin-left: 2rem;
    }

    footer {
        align-items: flex-end;
        padding-right: 10%;
        background: url('ContactBackground.jpg') no-repeat center center/cover;
        background-position-x: right;
        background-position-y: bottom;
        min-height: 1000px;
        
    }
    .kontaktMain1, .kontaktMain2 { text-align: left; }
    .kontaktSocials {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1023px) {
    nav button { display: block; }

    .sections.shidden, .socials.sohidden {
        display: none;
    }

    #sectionsPopup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255,255,255,0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 1.5rem;
        z-index: 1100;
    }

    .sections .closeForm {
        display: block;
        top: 2rem;
        right: 2rem;
    }
    #Home{
        padding: 2.5% 0%;
    }
    .homeText1 {
        border-radius: 0;
    }
    .lang-switch {
        position: absolute;
        right: 70px;
        top: 0;
        bottom: 0;
        margin: auto;
        height: fit-content;
    }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.visible {
    animation: slideUp 0.8s ease-out forwards;
}

#popup .popup-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ffffff;
}

#popup h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-align: left;
    max-width: 90%;
    line-height: 1.2;
}

#popup hr {
    display: none;
}

#popup ol {
    list-style: none;
    counter-reset: steps;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

#popup li {
    position: relative;
    padding-left: 4rem;
    counter-increment: steps;
}

#popup li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background-color: var(--bg-dark);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

#popup li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.45rem;
    top: 3rem;
    bottom: -2rem;
    width: 2px;
    background-color: #ddd;
    z-index: 1;
}

#popup li strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

#popup li {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

#popup .mamZajem {
    width: 100%;
    justify-content: center;
    background-color: #ffffff;
    color: var(--bg-dark);
    border: none;
    font-size: 1.1rem;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#popup .mamZajem:hover {
    background-color: var(--text-dark);
    color: white;
    transform: translateY(-2px);
}

#popup .mamZajem svg {
    fill: var(--bg-dark);
}

#popup .mamZajem:hover svg {
    fill: white;
}

@media (max-width: 600px) {
    #popup li {
        padding-left: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    #popup li::before {
        position: relative;
        margin-bottom: 1rem;
    }
    
    #popup li::after {
        display: none;
    }
}

#Finance {
    background-color: #100E09;
    color: #ffffff;
    padding: 5rem 5%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

#Finance::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 50%;
    height: 200%;
    z-index: 0;
    pointer-events: none;
}

.finance-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.finance-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    color: #e0e0e0;
    font-weight: 700;
}

.finance-text {
    font-size: 1.2rem;  
    line-height: 1.8;
    margin-bottom: 3rem;
    color: #e0e0e0;
}

#Finance button {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #e0e0e0;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

#Finance button:hover {
    background: #e0e0e0;
    color: #000000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}
video::-webkit-media-controls {
    display: none !important;
}
video::-webkit-media-controls-panel {
    display: none !important;
}

.video-container, .reference-container {
    position: relative;
}

.carousel-section::after {
    content: '↔';
    position: absolute;
    left: calc(50% - 25px);
    bottom: 20px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    display: none;
}

#Reference.carousel-section::after {
    color: rgba(0, 0, 0, 1);
}

@media (min-width: 1024px) {
    .carousel-section::after {
        display: none;
    }
}
.closeBtn{
    background: rgba(0,0,0,0.05);
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: all 0.3s;
    font-family: var(--font-main);
}