/* ============================================================
   ZYRIXTEC — Additional CSS Utilities & Enhancements
   ============================================================ */

/* ---- SELECTION ---- */
::selection {
    background: rgba(108, 92, 231, 0.35);
    color: #fff;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.5);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 92, 231, 0.8);
}

/* ---- FOCUS VISIBLE ---- */
*:focus-visible {
    outline: 2px solid rgba(108, 92, 231, 0.7);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- SMOOTH SECTION TRANSITIONS ---- */
.section {
    position: relative;
}

/* ---- ABOUT LEFT TITLE ANIMATION ---- */
.about-left .section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    text-align: left;
    margin-bottom: 0;
}

/* ---- HERO CANVAS OVERLAY ---- */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--clr-bg), transparent);
    pointer-events: none;
    z-index: 2;
}

/* ---- SECTION TITLES LEFT-ALIGNED ---- */
.about-left .section-badge {
    text-align: left;
    display: inline-block;
}

/* ---- NUMBER COUNTER GLOW ---- */
.stat-number {
    text-shadow: 0 0 30px rgba(108, 92, 231, 0.4);
}

/* ---- PORTFOLIO CARD HOVER OVERLAY ---- */
.portfolio-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* ---- BUTTON ACTIVE STATE ---- */
.btn:active {
    transform: scale(0.97);
}

/* ---- PROCESS STEP HOVER ---- */
.process-step:hover .step-dot {
    transform: scale(1.4);
    transition: transform 0.3s ease;
}

.process-step:hover .step-icon {
    background: rgba(108, 92, 231, 0.2);
    border-color: rgba(108, 92, 231, 0.5);
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* ---- FORM SUBMIT LOADING STATE ---- */
.btn.loading .btn-text::after {
    content: '...';
    animation: dotsBlink 1.2s infinite;
}

@keyframes dotsBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.btn.loading svg {
    animation: spinBtn 1s linear infinite;
}

@keyframes spinBtn {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ---- ACCESSIBILITY: Skip Link ---- */
.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 99999;
    background: var(--clr-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transform: translateY(-200%);
    transition: transform 0.2s;
}

.skip-link:focus {
    transform: translateY(0);
}

/* ---- FLOATING CTA (optional mobile sticky) ---- */
.float-cta {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 800;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.float-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

/* ---- TESTIMONIAL CARD INNER QUOTE MARK ---- */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 6rem;
    font-family: serif;
    color: rgba(108, 92, 231, 0.1);
    line-height: 1;
    pointer-events: none;
}

.testimonials-slider {
    position: relative;
}

.testimonial-card {
    position: relative;
}

/* ---- GRADIENT TEXT UTILITY ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- SECTION GLOW DIVIDERS ---- */
.section-dark {
    position: relative;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.4), transparent);
}

/* ---- WHY CARD HOVER ICON GLOW ---- */
.why-card:hover .why-icon {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(0, 206, 201, 0.2));
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ---- CONTACT FORM TEXTAREA MIN HEIGHT ---- */
.form-group textarea {
    min-height: 120px;
}

/* ---- RESPONSIVE: PROCESS VERTICAL ON MOBILE ---- */
@media (max-width: 640px) {
    .process-step {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.5rem;
        text-align: left;
    }

    .step-track {
        flex-direction: column;
        width: auto;
        height: auto;
        align-items: center;
        margin-bottom: 0;
        padding-top: 0.25rem;
    }

    .step-dot {
        margin: 0;
    }

    .step-line {
        display: none;
    }

    .step-content {
        padding: 0;
    }

    .step-icon {
        margin: 0 0 0.75rem 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .about-graphic {
        width: 180px;
        height: 180px;
    }
}

/* ---- PRINT STYLES ---- */
@media print {

    .navbar,
    .loader,
    .cursor,
    .cursor-follower,
    .hero-canvas,
    .float-cta {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section-title,
    .hero-title {
        color: black !important;
    }
}