/* ── Scroll to Top ── */
.scroll-to-top {
    width: 3.5rem !important;
    height: 3.5rem !important;
    background: rgba(30, 115, 190, 0.9) !important;
    color: white !important;
    border-radius: 50% !important;
    display: none !important; /* Changed from flex to avoid gap */
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.21, 0.47, 0.32, 0.98);
    box-shadow: 0 10px 30px rgba(30, 115, 190, 0.4);
}

.scroll-to-top.visible {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.scroll-to-top:hover {
    background: var(--apex-accent) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(30, 115, 190, 0.6) !important;
}

/* ── Contact Actions Group ── */
.contact-actions-group {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column; /* Changed from column-reverse */
    gap: 1rem;
    z-index: 9999;
}

.contact-action-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.21, 0.47, 0.32, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact-action-btn.whatsapp {
    background: #25D366 !important;
}

.contact-action-btn.phone {
    background: var(--apex-primary) !important;
}

.contact-action-btn i {
    width: 1.5rem;
    height: 1.5rem;
}

/* ── Legal Modals ── */
.modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.4s ease;
}

.modal-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-window {
    background: var(--apex-bg) !important;
    border: 1px solid var(--apex-border) !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 800px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    position: relative !important;
    transform: scale(0.9) !important;
    transition: all 0.4s cubic-bezier(0.21, 0.47, 0.32, 0.98) !important;
}

.modal-backdrop.active .modal-window {
    transform: scale(1) !important;
}

.modal-header {
    padding: 1.5rem 2rem !important;
    border-bottom: 1px solid var(--apex-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: sticky !important;
    top: 0 !important;
    background: var(--apex-bg) !important;
    z-index: 10 !important;
}

.modal-body {
    padding: 2rem;
    color: var(--apex-text);
    opacity: 0.7;
    line-height: 1.8;
}

.modal-close {
    cursor: pointer !important;
    color: rgba(255, 255, 255, 0.4) !important;
    transition: color 0.3s ease !important;
}

.modal-close:hover {
    color: var(--apex-primary) !important;
}

.footer-link {
    cursor: pointer !important;
    transition: color 0.3s ease !important;
}

.footer-link:hover {
    color: var(--apex-primary) !important;
}

/* ── Base Styles ── */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--apex-bg);
    color: var(--apex-text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
}

::selection {
    background: rgba(30, 115, 190, 0.3);
    color: white;
}

/* ── Utilities ── */
.glass-card {
    background: var(--apex-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--apex-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-nav {
    background: var(--apex-nav);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--apex-border);
    transition: all 0.5s ease;
}

.blue-border {
    border: 1px solid rgba(30, 115, 190, 0.2);
}

.blue-border-hover:hover {
    border-color: rgba(30, 115, 190, 0.5);
}

/* ── Fade-in Animation ── */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.21, 0.47, 0.32, 0.98),
        transform 0.9s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s cubic-bezier(0.21, 0.47, 0.32, 0.98),
        transform 0.9s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.9s cubic-bezier(0.21, 0.47, 0.32, 0.98),
        transform 0.9s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--apex-bg) 100%);
    opacity: 0.8;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.hero-blue-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(30, 115, 190, 0.08) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* ── Buttons ── */
.btn-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    background: linear-gradient(90deg, #80E5FF 0%, #66B2FF 100%);
    color: #1A1A1A;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-transform: none;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.21, 0.47, 0.32, 0.98);
    position: relative;
    overflow: hidden;
}

.btn-blue::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--apex-accent), var(--apex-primary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-blue:hover::before {
    opacity: 1;
}

.btn-blue span {
    position: relative;
    z-index: 1;
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 178, 255, 0.4);
    filter: brightness(1.05);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    background: transparent;
    color: var(--apex-text);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-transform: none;
    border: 2px solid #66B2FF;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

.dark .btn-outline {
    border: 1px solid rgba(30, 115, 190, 0.4);
}

.btn-outline:hover {
    background: rgba(30, 115, 190, 0.08);
    border-color: rgba(30, 115, 190, 0.7);
    transform: translateY(-2px);
}

/* ── Process Steps ── */
.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(30, 115, 190, 0.3), transparent);
}

@media (min-width: 768px) {
    .process-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.process-step {
    position: relative;
    padding-left: 72px;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .process-step {
        padding-left: 0;
        width: 50%;
        margin-bottom: 2rem;
    }

    .process-step:nth-child(odd) {
        padding-right: 60px;
        text-align: right;
        margin-left: 0;
    }

    .process-step:nth-child(even) {
        padding-left: 60px;
        margin-left: 50%;
    }
}

.process-number {
    position: absolute;
    left: 8px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 115, 190, 0.1);
    border: 1px solid rgba(30, 115, 190, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--apex-primary);
}

@media (min-width: 768px) {
    .process-step:nth-child(odd) .process-number {
        left: auto;
        right: -20px;
    }

    .process-step:nth-child(even) .process-number {
        left: -20px;
    }
}

/* ── Service Cards ── */
.service-card {
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.21, 0.47, 0.32, 0.98);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 115, 190, 0.3);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(30, 115, 190, 0.08);
    border: 1px solid rgba(30, 115, 190, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: rgba(30, 115, 190, 0.15);
    border-color: rgba(30, 115, 190, 0.4);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 115, 190, 0.25);
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(30, 115, 190, 0.3);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 0.75rem;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--apex-primary);
}

/* ── Section Divider ── */
.section-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--apex-primary), transparent);
    margin: 0 auto 2rem auto;
}

.section-divider-left {
    margin: 0 0 2rem 0;
}

/* ── Feature Items ── */
.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(30, 115, 190, 0.03);
}

.feature-icon-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(30, 115, 190, 0.08);
    border: 1px solid rgba(30, 115, 190, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon-circle {
    background: rgba(30, 115, 190, 0.15);
    border-color: rgba(30, 115, 190, 0.4);
}

/* ── CTA Section ── */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(11, 11, 11, 0.95) 0%,
            rgba(15, 61, 62, 0.3) 50%,
            rgba(11, 11, 11, 0.95) 100%);
    z-index: 1;
}

.cta-blue-accent {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(30, 115, 190, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Stats ── */
.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--apex-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3.5rem;
    }
}

.stat-label {
    font-size: 0.85rem;
    color: #888888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Scroll Indicator ── */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(30, 115, 190, 0.6), transparent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ── Logo Mark ── */
.logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-diamond {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--apex-primary);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-diamond-inner {
    width: 8px;
    height: 8px;
    background: var(--apex-primary);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-section {
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 100px;
        padding-bottom: 60px;
        height: auto;
    }

    .hero-section > .relative {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: auto 0;
        width: 100%;
    }
}

/* ── Contact Form ── */
.apex-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--apex-card);
    border: 1px solid rgba(30, 115, 190, 0.2);
    border-radius: 12px;
    color: var(--apex-text);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .apex-input {
    border-color: rgba(255, 255, 255, 0.12);
}

.apex-input::placeholder {
    color: var(--apex-text);
    opacity: 0.4;
}

.apex-input:hover {
    border-color: rgba(30, 115, 190, 0.4);
    background: var(--apex-bg);
}

.dark .apex-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.apex-input:focus {
    outline: none;
    border-color: var(--apex-primary);
    background: var(--apex-bg);
    box-shadow: 0 0 0 4px rgba(30, 115, 190, 0.12);
    transform: translateY(-1px);
}

/* ── Carousel Utilities ── */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    transition: transform 0.5s cubic-bezier(0.21, 0.47, 0.32, 0.98);
    user-select: none;
    -webkit-user-drag: none;
}

.carousel-item:hover {
    transform: scale(1.02);
}

#results-carousel {
    cursor: grab;
    user-select: none;
}

#results-carousel.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

#results-carousel.dragging .carousel-item {
    transform: none;
    pointer-events: none;
}


/* -- CTA Section Redesign -- */
.cta-section {
    position: relative;
    background: var(--apex-bg);
    border-top: 1px solid var(--apex-border);
    border-bottom: 1px solid var(--apex-border);
}

.dark .cta-section {
    background: #0d0f12;
}

.cta-spotlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 115, 190, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.cta-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s ease;
}

.cta-feature:hover {
    transform: translateY(-5px);
}

.cta-feature-icon {
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(30, 115, 190, 0.05);
    border: 1px solid rgba(30, 115, 190, 0.15);
    color: var(--apex-primary);
    transition: all 0.4s ease;
}

.cta-feature:hover .cta-feature-icon {
    background: rgba(30, 115, 190, 0.1);
    border-color: rgba(30, 115, 190, 0.3);
    box-shadow: 0 0 20px rgba(30, 115, 190, 0.1);
}


