/* ----- SERVICES ----- */

.services-section {
    position: relative;
    border-top: 1px solid var(--accent);
}

.services-dots-background-section {
    position: absolute;
    background-image:
        radial-gradient(rgba(204, 11, 13, 0.2) 1px, transparent 1px),
        linear-gradient(135deg, #131313, #111111);
    background-size: 20px 20px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.services-circles-background-section {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.5;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    will-change: transform;
}

.services-section #circle-1 {
    width: 24rem;
    height: 24rem;
}

.services-section #circle-2 {
    width: 16rem;
    height: 16rem;
}

.services-section #circle-3 {
    width: 18rem;
    height: 18rem;
}

.services-section #circle-4 {
    width: 12rem;
    height: 12rem;
}

.services-section #circle-5 {
    width: 8rem;
    height: 8rem;
}

.services-section #circle-6 {
    width: 10rem;
    height: 10rem;
}

.services-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    z-index: 10;
}


.services-header {
    position: relative;
    text-align: center;
    margin-bottom: 4rem;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: 0rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
}

/* TECH-LINE */

.services-tech-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(204, 11, 13, 0.5), transparent);
    width: 6rem;
    margin: 0 auto;
    margin: 1.5rem auto;
}

.services-description {
    margin: 4rem auto;
    /* text-align: center; */
}

.services-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.services-intro-badge,
.services-tag {
    display: inline-block;
    background: rgba(204, 11, 13, 0.1);
    border: 1px solid rgba(204, 11, 13, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    color: var(--accent);
    font-weight: 500;
}

.services-tag {
    padding: 0.25rem 0.75rem;
    margin-top: 1rem;
    text-align: center;
}

.services-process-card {
    min-height: 400px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.5) 0%, rgba(20, 20, 20, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    padding: 2rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.services-process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: borderFlow 3s infinite linear;
}

.service-card-button {
    margin: 1.75rem 0 auto;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    border-radius: 0.25rem;
    display: block;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes borderFlow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Glow effect on hover */
.services-process-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.25rem;
    background: radial-gradient(circle at center, rgba(204, 11, 13, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.services-process-card:hover::after {
    opacity: 1;
}


.services-process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(204, 11, 13, 0.2);
    border: 1px solid rgba(204, 11, 13, 0.3);
}

.services-process-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    filter: drop-shadow(0 0 5px rgba(204, 11, 13, 0.5));
    transition: all 0.4s ease;
}

.services-process-card:hover .services-process-icon {
    filter: drop-shadow(0 0 10px rgba(204, 11, 13, 0.8));
    transform: scale(1.1);
}



.services-icon-glow {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 3px rgba(204, 11, 13, 0.6));
}

.services-icon-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.services-icon-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(204, 11, 13, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.services-step-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, #561416 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--title-font);
    box-shadow: 0 0 15px rgba(204, 11, 13, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.services-card-description {
    flex-grow: 1;
    text-align: center;
}


/* Phone background color matching card background */
.services-phone-bg {
    fill: url(#phoneGradient);
}

/* Process flow container */
.services-process-flow {
    position: relative;
}

/* Process grid */
.services-process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

/* Tablet and Desktop layout */
@media (min-width: 1033px) {
    .services-process-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }
}

/* Animation keyframes */
@keyframes services-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes services-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Card hover effects */
.services-card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.services-card-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.services-hover-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--accent);
}

.services-hover-description {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.services-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}


.services-process-card:hover .services-card-content {
    opacity: 0;
    transform: translateY(-20px);
}

.services-process-card:hover .services-card-hover-content {
    opacity: 1;
    transform: translateY(0);
}



.services-cta {
    margin: 4rem auto;
    text-align: center;
}

.services-cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

/* BOTTOM CTA */

.services-section .btn {
    font-family: var(--title-font);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.services-section .btn-primary {
    background-color: var(--accent);
    color: #F0F0F0;
    border: none;
    position: relative;
    z-index: 1;
}

.services-section .btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    z-index: -1;
    border-radius: 0.25rem;
    background-size: 400%;
    animation: glowingBorder 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.services-section .btn-primary:hover::before {
    opacity: 1;
}

.services-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(204, 11, 13, 0.3);
}

.services-section .btn svg {
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
}

@keyframes glowingBorder {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

@media (min-width: 501px) {
    .services-hover-description {
        text-align: center;
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .services-container {
        padding: 2rem;
    }

    .services-process-card {
    min-height: auto;
    }

    .service-card-button {
        display: none;
    }
}

@media (min-width: 1024px) {
    .services-header {
        text-align: left;
    }

    .services-title::after {
        left: 0;
        transform: translateX(0);
    }

    .services-description {
        margin: 4rem 0;
        ;
    }
}