/*---------------------------------------------------------------------*/
/* Performance & Lenis
/*---------------------------------------------------------------------*/
html.lenis, html.lenis body {
    height: auto;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    margin: 0;
}

body {
    overflow-x: hidden;
    overflow-y: hidden;
    margin: 0;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Optimize animations */
.reveal {
    will-change: transform, opacity;
}

/* Variables y estilos generales
/*---------------------------------------------------------------------*/
:root {
    --primary-color: #0c0c0c;
    --secondary-color: #fff;
    --accent-color: #f7d400;
    --secondary-text-color: #f2f2f2;
}

body.light-mode {
    --primary-color: #fff;
    --secondary-color: #000;
    --accent-color: #f7d400;
    --secondary-text-color: #555;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
}

.text-section {
    color: var(--secondary-text-color);
}

.text-color {
    color: var(--secondary-color) !important;
}

.text-secondary {
    color: var(--secondary-text-color) !important;
}

.bg-black-krosa {
    background-color: var(--primary-color) !important;
}

.border-color {
    border-color: var(--accent-color) !important;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
}

/*---------------------------------------------------------------------*/
/* Loader de página
/*---------------------------------------------------------------------*/
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* Follow the leader animation */
@keyframes follow-the-leader {
    0% {
        transform: rotate(0deg) translateY(-200%);
    }

    60%,
    100% {
        transform: rotate(360deg) translateY(-200%);
    }
}

.follow-the-leader-line {
    height: 18px;
    position: relative;
    width: 18px;
    margin-bottom: 2.5rem;
}

.follow-the-leader-line div {
    animation: follow-the-leader 1.25s infinite backwards;
    background-color: var(--accent-color);
    border-radius: 100%;
    height: 100%;
    width: 100%;
    position: absolute;
}

.follow-the-leader-line div:nth-child(1) {
    animation-delay: 0.15s;
    opacity: 1;
}

.follow-the-leader-line div:nth-child(2) {
    animation-delay: 0.3s;
    opacity: 0.8;
}

.follow-the-leader-line div:nth-child(3) {
    animation-delay: 0.45s;
    opacity: 0.6;
}

.follow-the-leader-line div:nth-child(4) {
    animation-delay: 0.6s;
    opacity: 0.4;
}

.follow-the-leader-line div:nth-child(5) {
    animation-delay: 0.75s;
    opacity: 0.2;
}

.loader-info {
    text-align: center;
}

.loader-text {
    color: var(--secondary-color);
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
    opacity: 0.7;
}

.loader-percentage {
    color: var(--accent-color);
    font-family: 'Oswald', sans-serif;
    font-size: 4.5rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

/* Normalización del scrollbar gruesa y sin doble línea */
html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

html::-webkit-scrollbar-thumb:hover {
    background: #e5c100;
}

/* Firefox */
html {
    scrollbar-width: auto;
    scrollbar-color: var(--accent-color) transparent;
}

/*---------------------------------------------------------------------*/
/* Barra de navegación
/*---------------------------------------------------------------------*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: transparent;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: transparent;
}

.container-navbar-glass {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 0;
    transition: background-color 0.3s ease;
}

body.light-mode .container-navbar-glass {
    background: rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-container img {
    width: 70px;
    height: auto;
}

.nav-controls {
    display: flex;
    align-items: center;
    height: 100%;
}

.theme-toggle {
    display: none;
}

.hamburger-menu {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    margin-left: 1.5rem;
    position: relative;
    z-index: 1001;
}

.hamburger-menu .bar {
    background-color: var(--secondary-color);
    height: 3px;
    width: 100%;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/*---------------------------------------------------------------------*/
/* Menú de pantalla completa (móvil)
/*---------------------------------------------------------------------*/
.full-screen-menu {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--primary-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, top 0.5s ease;
}

body.light-mode .full-screen-menu {
    background-color: var(--primary-color);
}

.full-screen-menu.active {
    top: 80px;
    opacity: 1;
    visibility: visible;
}

.nav-links {
    list-style: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav-links li {
    margin: 1rem 0;
}

.nav-links a {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover:not(.btn-krosa-nav),
.nav-links a.active:not(.btn-krosa-nav) {
    color: var(--accent-color);
}

.nav-links a:not(.btn-krosa-nav)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover:not(.btn-krosa-nav)::after,
.nav-links a.active:not(.btn-krosa-nav)::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/*---------------------------------------------------------------------*/
/* Hero Section
/*---------------------------------------------------------------------*/
.hero-section {
    position: relative;
    height: 90vh; /* Se mantiene en 90vh para que el video tenga buen impacto */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 5rem;
    overflow: hidden;
    background-color: var(--primary-color);
}

.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.02); /* Escala 1.02 para evitar líneas en los bordes por subpíxeles */
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.scroll-down-arrows {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
}

.scroll-down-arrows i {
    font-size: 3em;
    animation: bounce 2s infinite;
}

.scroll-down-arrows i:nth-child(2) {
    animation-delay: -0.2s;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}


/*---------------------------------------------------------------------*/
/* Estilos de secciones
/*---------------------------------------------------------------------*/
.about-section,
.services-section,
.projects-section,
.contact-section {
    padding: 80px 0;
}


/*---------------------------------------------------------------------*/
/* Botones
/*---------------------------------------------------------------------*/
.btn-krosa {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-krosa::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-krosa:hover {
    color: var(--primary-color);
}

.btn-krosa:hover::before {
    left: 0;
}

.btn-krosa-nav {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-krosa-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/*---------------------------------------------------------------------*/
/* Loader de formulario
/*---------------------------------------------------------------------*/
.loader-form {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/*---------------------------------------------------------------------*/
/* Carruseles (Swiper)
/*---------------------------------------------------------------------*/
.swiper-obras-publicas .swiper-button-next,
.swiper-obras-publicas .swiper-button-prev,
.swiper-maquinaria .swiper-button-next,
.swiper-maquinaria .swiper-button-prev,
.swiper-slitter .swiper-button-next,
.swiper-slitter .swiper-button-prev {
    display: none !important;
}

.swiper-public-works {
    width: 100%;
    max-width: 300px;
    height: 220px;
    margin: 0 auto;
    position: relative;
}

.swiper-public-works .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-public-works .swiper-button-next,
.swiper-public-works .swiper-button-prev,
.swiper-residential .swiper-button-next,
.swiper-residential .swiper-button-prev,
.swiper-industrial .swiper-button-next,
.swiper-industrial .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease;
}

.swiper-public-works .swiper-button-next:hover,
.swiper-public-works .swiper-button-prev:hover,
.swiper-residential .swiper-button-next:hover,
.swiper-residential .swiper-button-prev:hover,
.swiper-industrial .swiper-button-next:hover,
.swiper-industrial .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
}

.swiper-public-works .swiper-button-next::after,
.swiper-public-works .swiper-button-prev::after,
.swiper-residential .swiper-button-next::after,
.swiper-residential .swiper-button-prev::after,
.swiper-industrial .swiper-button-next::after,
.swiper-industrial .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 900;
}


/*---------------------------------------------------------------------*/
/* Tarjetas de proyectos y servicios
/*---------------------------------------------------------------------*/
.card-project,
.hover-effect {
    transition: transform 1s ease;
}

.card-project .card-text-details {
    font-size: 0.9rem;
    color: #000;
    padding: 0 1rem;
}

.swiper-industrial .card-project {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.swiper-industrial .card-project .card-img-top {
    height: 75%;
    object-fit: cover;
    width: 100%;
}

.swiper-industrial .card-project .card-body {
    height: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.swiper-residential .card-project {
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.swiper-residential .card-project .card-img-top {
    height: 65%;
    object-fit: cover;
    width: 100%;
}

.swiper-residential .card-project .card-body {
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-grid {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
}

.service-card-text h3 {
    color: var(--accent-color);
}

.service-card-text p {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.service-image-grid .col-6 img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image-grid .col-6 img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.process-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.process-icon i {
    font-size: 3rem;
    color: var(--accent-color);
}

.process-card h3 {
    color: var(--secondary-color);
}

.process-card p {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
}


/*---------------------------------------------------------------------*/
/* Sección de clientes
/*---------------------------------------------------------------------*/
#nuestros-clientes {
    background-color: var(--primary-color);
}

.swiper-clients .swiper-wrapper {
    align-items: center;
    cursor: grab;
}

.client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.client-logo img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.client-logo img:hover {
    opacity: 1;
    transform: scale(1.2);
}

/*---------------------------------------------------------------------*/
/* Sección de contacto
/*---------------------------------------------------------------------*/
.contact-card-glass-new {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: var(--secondary-color);
    border-radius: 1rem;
    overflow: hidden;
}

.contact-info-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    justify-content: center;
}

.contact-info-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 0.8rem;
}

.btn-whatsapp-contact {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #25D366;
    color: #fff;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.btn-whatsapp-contact i {
    margin-right: 0.5rem;
}

.btn-whatsapp-contact:hover {
    transform: translateY(-3px);
    background-color: #128C7E;
    color: #fff;
}

.contact-divider {
    border-top: 1px solid var(--accent-color);
    opacity: 0.5;
    width: 80%;
    margin: 0 auto;
}

.specialties-container .row {
    justify-content: center;
}

.specialty-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.specialty-card:hover {
    background: rgba(0, 0, 0, 0.9);
}

.specialty-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.specialty-card span {
    font-weight: bold;
    font-size: 1rem;
    color: var(--secondary-color);
}


/*---------------------------------------------------------------------*/
/* Footer
/*---------------------------------------------------------------------*/
.footer-section {
    background-color: var(--primary-color);
    color: var(--secondary-text-color);
    border-top: 5px solid var(--accent-color);
    transition: background-color 0.3s ease;
}

.expandable-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.4s ease;
}

.expandable-card.active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-visible h5 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.expand-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.expand-btn:hover {
    background: #fff;
}

.card-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin-top 0.5s ease-out;
}

.expandable-card.active .card-hidden {
    max-height: 300px;
    margin-top: 1.5rem;
}

.card-hidden h6 {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: bold;
}

.card-hidden .contact-info {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.card-hidden .scope-text {
    font-size: 1rem;
    font-style: italic;
}

/*---------------------------------------------------------------------*/
/* Títulos de sección y animaciones
/*---------------------------------------------------------------------*/
h2.display-4 {
    position: relative;
    padding-bottom: 0.6em;
}

h2.display-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/*---------------------------------------------------------------------*/
/* Media Queries (diseño responsivo)
/*---------------------------------------------------------------------*/
@media (min-width: 1281px) {
    .container-navbar-glass {
        width: 70%;
        margin: 0 auto;
        padding: 1rem 2rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
    }

    .hamburger-menu {
        display: none;
    }

    .nav-links li a {
        font-size: 1rem;
        font-weight: normal;
    }

    .full-screen-menu {
        position: static;
        display: flex;
        opacity: 1;
        visibility: visible;
        background-color: transparent;
        width: auto;
        height: auto;
        z-index: auto;
        padding-top: 0;
    }

    .full-screen-menu ul {
        display: flex;
        margin-bottom: 0;
        align-items: center;
        flex-direction: row;
        justify-content: flex-end;
    }

    .full-screen-menu ul li {
        margin: 0 1rem;
    }

    .full-screen-menu a.btn-krosa-nav {
        background-color: var(--accent-color);
        margin-left: 1rem;
    }

    body.light-mode .full-screen-menu a.btn-krosa-nav {
        background-color: var(--accent-color);
    }

    .full-screen-menu a:not(.btn-krosa-nav) {
        background: transparent;
    }

    .full-screen-menu a:not(.btn-krosa-nav)::after {
        background-color: var(--secondary-color);
    }

    body.light-mode .full-screen-menu a:not(.btn-krosa-nav)::after {
        background-color: var(--secondary-color);
    }

    .nav-links a:hover:not(.btn-krosa-nav),
    .nav-links a.active:not(.btn-krosa-nav) {
        color: var(--accent-color);
    }
}

@media (max-width: 991px) {
    .full-screen-menu {
        padding-top: 2rem;
        height: calc(100vh - 80px);
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    .hero-content p {
        font-size: 1.25rem !important;
    }

    .navbar {
        padding: 0;
    }

    .container-navbar-glass {
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    .service-image-grid .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .service-image-grid .col-6:nth-child(3),
    .service-image-grid .col-6:nth-child(4) {
        display: none;
    }

    .service-card-text {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/*---------------------------------------------------------------------*/
/* Chatbot Font Fix & Size Refinement
/*---------------------------------------------------------------------*/
/* Force standard font for chatbot buttons/chips */
.blaj-chip,
.blaj-chip:hover {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 13px !important;
    /* Increased from 11px */
}

/* Increase general text size */
.blaj-message {
    font-size: 16px !important;
    /* Increased from 14px */
}

.blaj-chat-input {
    font-size: 16px !important;
    /* Increased from 14px */
}

/*---------------------------------------------------------------------*/
/* Floating CTA
/*---------------------------------------------------------------------*/
.floating-cta {
    position: fixed;
    bottom: 20px;

    /* Desktop: Center horizontally */
    left: 50%;
    transform: translateX(-50%) translateY(20px);

    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    /* Below loader, above other content */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;

    /* Animation state: initially hidden */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
    /* Maintain horizontal centering when visible */
    transform: translateX(-50%) translateY(0);
}

.floating-cta i {
    font-size: 1.5rem;
}

.floating-cta:hover {
    background-color: #fce54a;
    /* Slightly lighter yellow */
    /* Maintain horizontal centering on hover */
    transform: translateX(-50%) translateY(-3px);
    color: var(--primary-color);
}

/* Pulse animation for mobile (or always active if desired) */
@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(247, 212, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(247, 212, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(247, 212, 0, 0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .floating-cta {
        /* Mobile: Shift slightly right as requested (moving away from left edge) */
        left: 40px;
        bottom: 20px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;

        /* Reset transform for mobile (remove centering) and apply hiding offset */
        transform: translateY(20px);

        /* Pulse animation always on for mobile */
        animation: pulse-yellow 2s infinite;
    }

    .floating-cta.visible {
        /* Only translateY needed since left is fixed */
        transform: translateY(0);
    }

    .floating-cta i {
        font-size: 1.2rem;
    }

    .floating-cta span {
        white-space: nowrap;
    }

    /* Don't apply hover pulse/transform on touch devices */
    .floating-cta:hover {
        transform: translateY(0);
    }
}

/*---------------------------------------------------------------------*/
/* Hero Section Redesign
/*---------------------------------------------------------------------*/
.hero-content {
    /* Ensure content is centered and readable */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    /* OPTIONAL: Shift visual center down */
    padding-top: 10vh;
}

/* Position scroll arrows at the absolute bottom */
.scroll-down-arrows-link {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-text-container {
    margin-bottom: 2rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    line-height: 1;
}

.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    letter-spacing: 4px;
    /* Wide tracking for elegance */
    border-bottom: none;
    /* Reset distinct style if inherited */
}

.hero-tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.hero-actions {
    margin-bottom: 3rem;
}

.btn-hero-custom {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    /* Fully rounded */
    box-shadow: 0 4px 15px rgba(247, 212, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-hero-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(247, 212, 0, 0.6);
}

/* Responsive Adjustments for Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .btn-hero-custom {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}