/* Global styles */
:root {
    --hero-bg: #ffffff;
    --accent: #2c68be;
    --accent-rgb: 44, 104, 190;
    --glass: rgba(0, 0, 0, 0.03);
    /* Darker glass for white bg */
    --border: rgba(0, 0, 0, 0.05);
    --text-primary: #111111;
    --text-secondary: #555555;
    --celeste: #2c68be; /* Actualizado al azul de la Imagen 1 */
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #ffffff !important;
    color: var(--text-primary);
    background: radial-gradient(circle at 50% 0%, #f0f7ff 0%, #ffffff 100%) !important;
}

/* Hero Stacking Context Fix */
.hero-section .container-fluid {
    /* removed isolation to fix 3d visibility */
}

/* Toast notifications */
.app-toast {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    max-width: 420px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.app-toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.app-toast--success {
    background: var(--accent);
}

.app-toast--error {
    background: #d9534f;
}

.app-toast i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Page slide transitions */
.page-transition-wrap {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-entering .page-transition-wrap {
    transform: translateX(60px);
    opacity: 0;
}

body.page-entered .page-transition-wrap {
    transform: translateX(0);
    opacity: 1;
}

body.page-leaving .page-transition-wrap {
    transform: translateX(-60px);
    opacity: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
    /* Subtle texture */
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: 'Outfit', sans-serif;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1);
}

.ls-wide {
    letter-spacing: 0.2em;
}

.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Navbar */
.glass-nav {
    position: relative;
    top: 0;
    z-index: 2000;
    overflow: visible;
    background: transparent;
    border-bottom: 0;
    padding: 0.6rem 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.glass-nav.scrolled {
    padding: 0.3rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.glass-nav::after {
    display: none;
}

.glass-nav.scrolled::after {
    display: none;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #111111 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 82px;
    width: auto;
    transition: height 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.glass-nav.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 0.92;
}

.navbar-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #111111;
}

.navbar-brand-subtitle {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.84em;
    color: rgba(17, 17, 17, 0.7);
    text-transform: uppercase;
    display: inline-block;
    width: 100%;
    text-align: justify;
}

.navbar-brand-subtitle::after {
    content: '';
    display: inline-block;
    width: 100%;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: #444 !important;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.navbar-brand:hover {
    color: #111111 !important;
}

.navbar-brand:hover .navbar-brand-title {
    color: var(--accent);
}

@media (max-width: 991.98px) {
    .navbar-brand {
        gap: 0.55rem;
    }

    .navbar-brand img {
        height: 34px;
    }

    .navbar-brand-title {
        font-size: 1.05rem;
    }

    .navbar-brand-subtitle {
        font-size: 0.56rem;
        letter-spacing: 0.22em;
    }
}

.btn-quote {
    background: #000000;
    color: #ffffff !important;
    font-weight: 800;
    margin-left: 1.5rem;
    padding: 0.8rem 2rem !important;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.btn-quote:hover {
    transform: scale(1.05);
    background: var(--accent);
    color: #ffffff !important;
    box-shadow: 0 15px 40px -10px rgba(44, 104, 190, 0.5);
}

.scroll-top-btn {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    background: rgba(44, 104, 190, 0.95);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(44, 104, 190, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.25s ease;
    z-index: 2200;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #111111;
}

.scroll-top-btn i {
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    .scroll-top-btn {
        right: 18px;
        bottom: 18px;
        width: 48px;
        height: 48px;
    }
}

/* Color Override for Bootstrap Utilities - Reverting Yellow to Celeste as per user feedback */
.text-warning {
    color: var(--celeste) !important;
}

.bg-warning {
    background-color: var(--celeste) !important;
}

.border-warning-subtle {
    border-color: rgba(44, 104, 190, 0.3) !important;
}

.btn-warning {
    background-color: var(--celeste) !important;
    border-color: var(--celeste) !important;
    color: #ffffff !important;
}

.btn-warning:hover {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.btn-warning:focus-visible {
    background-color: var(--celeste) !important;
    border-color: var(--celeste) !important;
    box-shadow: 0 0 0 0.25rem rgba(44, 104, 190, 0.25) !important;
}

.hero-cta-btn-primary:focus,
.hero-cta-btn-primary:active,
.hero-cta-btn-primary.active,
.hero-cta-btn-primary:focus-visible {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(var(--accent-rgb), 0.3);
}

.hero-cta-btn-secondary:focus,
.hero-cta-btn-secondary:active,
.hero-cta-btn-secondary.active,
.hero-cta-btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(17, 17, 17, 0.12);
    color: #1c2430;
    box-shadow: 0 0 0 0.25rem rgba(var(--accent-rgb), 0.3);
}

/* Architectural 3D Design (Light Theme) */
:root {
    --arch-bg: #f8fbff;
    --arch-accent: #2c68be;
    --arch-accent-light: #e6f0ff;
    --arch-text: #1a2b4b;
    --arch-text-muted: #5a6b8b;
}

.hero-section {
    min-height: 100vh;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Subtle architectural texture */
    opacity: 0.03;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: #ffffff;
    border: 1px solid rgba(44, 104, 190, 0.1);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--arch-accent);
    box-shadow: 0 4px 12px rgba(44, 104, 190, 0.08);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--arch-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--arch-accent);
    animation: badge-pulse 2s infinite;
}

.hero-main-title {
    font-size: 5.5rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--arch-text);
}

.hero-main-title span.text-arch {
    color: transparent;
    background: linear-gradient(110deg,
            var(--arch-accent) 30%,
            #96c5ff 50%,
            var(--arch-accent) 70%);
    background-size: 2000px auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShimmer 4s linear infinite;
    filter: drop-shadow(0 12px 20px rgba(44, 104, 190, 0.35));
    position: relative;
    display: inline-block;
}

@keyframes textShimmer {
    0% {
        background-position: 2000px center;
    }

    100% {
        background-position: -2000px center;
    }
}

.hero-main-title span.text-arch::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(44, 104, 190, 0.1);
    z-index: -1;
}

.hero-desc-p {
    max-width: 540px;
    color: var(--arch-text-muted) !important;
    font-size: 1.25rem;
    line-height: 1.6;
}

.btn-nexus-primary {
    background: var(--arch-accent);
    color: #ffffff !important;
    padding: 1.1rem 2.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 12px 24px rgba(44, 104, 190, 0.2);
    border: none;
}

.btn-nexus-primary:hover {
    transform: translateY(-3px);
    background: #1e4a8a;
    box-shadow: 0 15px 30px rgba(44, 104, 190, 0.3);
}

.btn-nexus-outline {
    background: #ffffff;
    border: 1px solid rgba(44, 104, 190, 0.2);
    color: var(--arch-accent) !important;
    padding: 1.1rem 2.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn-nexus-outline:hover {
    background: var(--arch-bg);
    border-color: var(--arch-accent);
    transform: translateY(-3px);
}

/* El Contenedor que hará el Tilt */
.spline-container {
    width: 100%;
    height: 70vh;
    position: relative;
    left: -9%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    background: transparent;
    cursor: pointer;
    perspective: 1200px;
}

/* La Tarjeta que realmente tiene la imagen con Efecto Bezel (Marco Físico Redondeado) */
.hero-3d-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 38px;
    transform-style: preserve-3d;
    
    /* El truco del volumen: Múltiples capas de sombra con diferentes opacidades y offsets */
    /* Esto crea el "canto" redondeado y brillante de la referencia */
    box-shadow: 
        -1px -1px 0px 1px #ffffff, /* Brillo en el borde superior */
        1px 1px 0px 1px #f1f1f1,   /* Primer nivel de profundidad */
        2px 2px 0px 1px #e2e2e2,   /* Segundo nivel */
        4px 4px 0px 1px #d4d4d4,   /* Tercer nivel (más oscuro) */
        6px 6px 0px 1px #cccccc,   /* Cuarto nivel */
        8px 8px 0px 1px #c0c0c0,   /* Quinto nivel (base del grosor) */
        20px 20px 50px rgba(0, 0, 0, 0.15); /* Sombra proyectada al fondo */
    
    transform: rotateY(-22deg) rotateX(4deg);
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.8); /* Fino brillo perimetral */
}

/* Wrapper para permitir el efecto de "slide" interno sin desbordar la tarjeta */
.hero-img-wrapper {
    position: absolute;
    inset: 12px; /* Espacio para el marco (bisel) */
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 26px; /* Radio ajustado al receso */
    overflow: hidden;
    transform: translateZ(5px);
    background: #ffffff; /* Fondo blanco para las tarjetas */
    
    /* Sombra interna para efecto de hundimiento real */
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.05),
        0 0 0 2px rgba(0,0,0,0.05);
    z-index: 2;
}

/* Service Card Hero Styling */
.hero-service-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.service-card-hero {
    position: absolute;
    inset: 0;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 10% 10%, #ffffff 0%, #f4f7fa 100%);
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Malla arquitectónica MUCHO más visible */
.service-card-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.15) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    opacity: 0.8;
    pointer-events: none;
}

/* Añadimos esquinas tipo "visor" para el look técnico */
.service-card-hero::after {
    content: "";
    position: absolute;
    inset: 2rem;
    border: 2px solid rgba(44, 104, 190, 0.1);
    pointer-events: none;
    mask-image: radial-gradient(circle at 0 0, black 100px, transparent 110px),
                radial-gradient(circle at 100% 0, black 100px, transparent 110px),
                radial-gradient(circle at 0 100%, black 100px, transparent 110px),
                radial-gradient(circle at 100% 100%, black 100px, transparent 110px);
    /* Solo mostramos las esquinitas */
    clip-path: polygon(0 0, 20% 0, 20% 2px, 2px 2px, 2px 20%, 0 20%,
                       80% 0, 100% 0, 100% 20%, calc(100% - 2px) 20%, calc(100% - 2px) 2px, 80% 2px,
                       0 100%, 0 80%, 2px 80%, 2px calc(100% - 2px), 20% calc(100% - 2px), 20% 100%,
                       100% 100%, 80% 100%, 80% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 80%, 100% 80%);
}

.service-hero-icon-box {
    width: 70px;
    height: 70px;
    background: #ffffff;
    color: #111111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    /* Efecto de luz más intenso */
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.08),
        0 0 40px rgba(44, 104, 190, 0.2);
}

.service-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.service-hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-hero-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #444;
}

.service-hero-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-card-hint {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: #111111; /* Texto de ayuda en Negro */
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    white-space: nowrap;
}

.hero-3d-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Efecto de brillo dinámico (mejorado para efecto cristal) */
.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 10; /* Por encima de todo */
    pointer-events: none;
    border-radius: 30px;
    transform: translateZ(20px);
    opacity: 0;
}

.spline-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(1.05);
    /* Slight brightness boost for light theme */
}

spline-viewer {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    /* Sits on top of fallback */
    visibility: visible !important;
}

@media (max-width: 991.98px) {
    .display-1 {
        /* font-size handled by bootstrap responsive type or simpler rem */
    }

    .hero-main-title {
        margin-bottom: 1.5rem;
    }

    .hero-section {
        padding-top: 80px;
        padding-bottom: 60px;
        text-align: center;
        min-height: auto !important;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .hero-desc-p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        max-width: 90%;
    }

    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .spline-container {
        height: 450px;
        perspective: 1000px;
    }

    .hero-3d-card {
        padding: 0; /* Let border handle it */
        border-width: 10px; /* Thinner border for mobile */
        border-radius: 28px;
    }

    .hero-img-wrapper {
        inset: 8px;
        width: calc(100% - 16px);
        height: calc(100% - 16px);
    }

    /* Adjust Service Card Content for Mobile */
    .service-card-hero {
        padding: 2rem 1.5rem !important;
    }

    .service-hero-title {
        font-size: 1.5rem !important;
    }

    .service-hero-desc {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .service-hero-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }

    .service-hero-list li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

.project-showcase {
    background: #f0f7ff;
    margin-top: 0;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .hero-section {
        background-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg,
                rgba(188, 218, 251, 0.92) 0%,
                rgba(214, 233, 254, 0.84) 38%,
                rgba(255, 255, 255, 0.12) 100%);
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .hero-cta-btn {
        min-width: 0;
        width: 100%;
        min-height: 64px;
        font-size: 0.98rem;
        padding: 0.95rem 1.25rem !important;
    }
}

/* Sections */
section {
    position: relative;
    background: transparent !important;
    /* Allow body gradient to show */
}

/* Showcase v2 Responsiveness */
    .project-swiper-v2 {
        padding: 0;
        overflow: visible !important;
    }

.v2-slide {
    width: 80% !important;
    opacity: 1; /* Aumentado de 0.3 para asegurar visibilidad */
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    filter: grayscale(100%);
}

@media (max-width: 991.98px) {
    .v2-slide {
        width: 88% !important;
    }
}

.swiper-slide-active.v2-slide {
    opacity: 1;
    filter: grayscale(0%);
    z-index: 10;
}

.project-container {
    min-height: 550px;
    position: relative;
    z-index: 1;
}

.v2-card {
    display: flex;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(44, 104, 190, 0.10), 0 8px 24px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
    .v2-card {
        flex-direction: column;
        height: auto;
        min-height: 520px; /* Reducido de 650px */
    }
}

/* Trusted Partners Section */
.partner-logo {
    height: 70px; /* Scaled down slightly */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-logo--active {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 767.98px) {
    .partner-logo {
        height: 45px;
    }
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

.v2-img-wrap {
    flex: 1.2;
    overflow: hidden;
    background: #f8f9fa;
}

@media (max-width: 991.98px) {
    .v2-img-wrap {
        flex: none;
        height: 220px; /* Reducido de 280px */
        width: 100%;
    }
}

.v2-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
    opacity: 0.9;
}

/* Split Image Effect */
.v2-img-wrap.split-effect {
    position: relative;
    display: block;
}

/* Synchronized Split Effect with Separation */
.v2-img-wrap.split-effect {
    position: relative;
    background: #ffffff;
    /* This creates the color of the separation line */
}

.split-side {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Diagonal Gap Logic */
.side-top {
    clip-path: polygon(0 0, 0% 100%, 97.5% 0);
    z-index: 2;
}

.side-bottom {
    clip-path: polygon(100% 100%, 2.5% 100%, 100% 2.5%);
    z-index: 1;
}

.split-side img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.v2-img-wrap.split-effect .img-base {
    opacity: 1;
}

.v2-img-wrap.split-effect .img-reveal {
    opacity: 0;
}

/* Synchronized Hover Swapping */
.v2-img-wrap.split-effect:hover .img-base {
    opacity: 0;
}

.v2-img-wrap.split-effect:hover .img-reveal {
    opacity: 1;
}

.v2-img-wrap.split-effect:hover .side-top {
    transform: translate(-3px, -3px);
}

.v2-img-wrap.split-effect:hover .side-bottom {
    transform: translate(3px, 3px);
}

.swiper-slide-active .v2-img-wrap img:not(.img-base):not(.img-reveal) {
    transform: scale(1.1);
    opacity: 1;
}

.v2-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: #ffffff;
    color: var(--text-primary);
}

@media (max-width: 991.98px) {
    .v2-content {
        padding: 2rem 1.5rem;
        height: auto;
    }
}

.v2-num {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(44, 104, 190, 0.12);
}

@media (max-width: 991.98px) {
    .v2-num {
        font-size: 4rem;
        top: 1rem;
        right: 1rem;
    }
}

.v2-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (max-width: 991.98px) {
    .v2-title {
        font-size: 1.8rem;
    }
}

.v2-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.v2-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding-top: 0;
    border-top: none;
    flex-wrap: wrap;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(44, 104, 190, 0.15);
    background: rgba(44, 104, 190, 0.06);
    font-size: 0.85rem;
    font-weight: 600;
    color: #111111;
}

.stat-item span {
    display: inline;
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0;
    font-weight: 700;
}

.v2-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    background: var(--accent);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(44, 104, 190, 0.25);
}

.v2-link:hover {
    color: #ffffff;
    background: #111111;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.v2-nav {
    display: none !important;
}

.v2-btn-next,
.v2-btn-prev {
    display: none !important;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 24px rgba(44, 104, 190, 0.3);
    pointer-events: auto;
    /* Re-enables clicking on the actual circles */
}

.v2-btn-next:hover,
.v2-btn-prev:hover {
    background: #111111;
    transform: scale(1.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Filters */
.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 0.6rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Forms */
.glass-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.custom-input {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    padding: 1.2rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-input::placeholder {
    color: #aaa;
}

.custom-input:focus {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(44, 104, 190, 0.05);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
    letter-spacing: 0.5px;
}

.form-select.custom-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232c68be' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

#submitBtn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* Hero Image Enhancement */
.service-hero-img-container {
    width: 100%;
    margin-top: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    aspect-ratio: 16 / 9;
}

.service-hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-hero-img-container:hover img {
    transform: scale(1.05);
}

/* Projects Detailed Page - Mobile Recovery */
@media (max-width: 991.98px) {
    .projects-carousel-sticky {
        position: relative;
        top: 0;
        height: auto;
    }
    
    .projects-view {
        overflow: hidden;
        height: calc(100vh - 92px);
    }
    
    .detailed-projects-swiper {
        width: 100%;
        height: 100%;
    }
    
    .projects-view-inner {
        display: flex;
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 2rem;
        width: 100%;
        transform: none;
    }
    
    .project-detail-card {
        width: 100%;
        margin-right: 0;
        flex-shrink: 0;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    #projectsScrollSpacer {
        min-height: 0;
        height: auto;
    }
}

.dropdown-menu.glass-panel {
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8) !important;
}

.dropdown-item:hover {
    background: rgba(44, 104, 190, 0.1) !important;
    color: var(--celeste) !important;
    padding-left: 1.5rem;
}

.fs-small {
    font-size: 0.8rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(44, 104, 190, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}


/* Project Detail Cards Layout */
.project-detail-card {
    background: #ffffff;
    margin-bottom: 4rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.project-info-box {
    padding: 3rem 4rem;
    border-right: 1px solid rgba(0,0,0,0.05);
    background: #fcfcfc;
}

.project-detail-card.is-even .project-info-box {
    border-right: none;
    border-left: 1px solid rgba(0,0,0,0.05);
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: rgba(44, 104, 190, 0.05);
    padding: 4px 12px;
    border-radius: 4px;
}

/* Gallery Thumbnails Fix */
.gallery-thumb-container {
    height: 80px;
    width: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.gallery-thumb-container:hover {
    transform: scale(1.05);
    z-index: 2;
}

.gallery-thumb-container img, 
.gallery-thumb-container video {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

/* Meta Grid */
.project-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.meta-item label {
    display: block;
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-detail-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover !important;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .project-info-box {
        padding: 2.5rem 1.5rem;
        border: none !important;
    }
    
    .project-detail-img {
        height: 350px;
        min-height: auto;
    }
    
    .project-meta-grid {
        gap: 1rem;
    }
}

/* Custom Swiper Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent) !important;
    background: transparent;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .display-1 {
        font-size: 3.5rem;
    }

    .project-slide {
        width: 95% !important;
    }
}

/* Social Links */
.social-link {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.05);
}

.social-link:hover {
    background: var(--accent);
    color: #ffffff !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44, 104, 190, 0.25);
    border-color: var(--accent);
}

.social-link i {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.social-link:hover i {
    transform: scale(1.1);
}