/* ==========================================================================
   Forge & Finite - Our Services Section Stylesheet
   ========================================================================== */

.our-services-section {
    position: relative;
    overflow: hidden;
    background-image: 
        radial-gradient(at 0% 100%, hsla(253, 16%, 97%, 1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(225, 39%, 70%, 0.15) 0, transparent 50%), 
        radial-gradient(at 50% 50%, hsla(339, 49%, 70%, 0.1) 0, transparent 50%);
    background-color: #ffffff;
    transition: background-color 0.5s ease, background-image 0.5s ease;
}

.dark-mode .our-services-section {
    background-image: 
        radial-gradient(at 0% 100%, hsla(253, 16%, 7%, 1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(225, 39%, 30%, 0.1) 0, transparent 50%), 
        radial-gradient(at 50% 50%, hsla(339, 49%, 30%, 0.08) 0, transparent 50%);
    background-color: #0a0a0a !important;
}

/* Section Header */
.our-services-header {
    position: relative;
    z-index: 10;
}

.our-services-badge {
    background: rgba(79, 70, 229, 0.08);
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(79, 70, 229, 0.15);
    transition: all 0.3s ease;
}

.dark-mode .our-services-badge {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.our-services-badge-line {
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    width: 3px;
    height: 16px;
    border-radius: 9999px;
}

.our-services-badge-text {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dark-mode .our-services-badge-text {
    color: #a78bfa;
}

.our-services-title {
    background: linear-gradient(135deg, var(--color-text-dark, #111827), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.dark-mode .our-services-title {
    background: linear-gradient(135deg, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.our-services-description {
    color: var(--color-text-light);
    max-width: 38rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.dark-mode .our-services-description {
    color: #9ca3af;
}

/* Service Buttons */
.our-services-buttons {
    position: relative;
    z-index: 10;
}

.our-services-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.02);
}

.dark-mode .our-services-button {
    background: rgba(17, 24, 39, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.15);
}

.our-services-button:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.08), 0 8px 10px -6px rgba(79, 70, 229, 0.08);
}

.dark-mode .our-services-button:hover {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.our-services-button.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: transparent;
    box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.35);
    transform: translateY(-4px);
}

.dark-mode .our-services-button.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 20px 30px -10px rgba(124, 58, 237, 0.45);
}

.our-services-button-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-mode .our-services-button-icon {
    color: #a78bfa;
}

.our-services-button:hover .our-services-button-icon {
    transform: scale(1.1) rotate(3deg);
}

.our-services-button.active .our-services-button-icon {
    color: #ffffff;
    transform: scale(1.15);
}

.our-services-button-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-dark, #111827);
    transition: color 0.3s ease;
}

.dark-mode .our-services-button-title {
    color: #e5e7eb;
}

.our-services-button.active .our-services-button-title {
    color: #ffffff;
}

/* Service Content */
.our-services-content {
    position: relative;
    min-height: 480px;
    z-index: 10;
}

.our-services-content-wrapper {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(229, 231, 235, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.04);
    transition: all 0.5s ease;
}

.dark-mode .our-services-content-wrapper {
    background: rgba(17, 24, 39, 0.45);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.our-services-content-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}

.our-services-content-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    display: block;
    position: relative;
    animation: fadeInUpPremium 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUpPremium {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.our-services-content-item:not(.active) {
    animation: fadeOutDownPremium 0.4s ease forwards;
}

@keyframes fadeOutDownPremium {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
}

.our-services-content-title {
    color: var(--color-text-dark, #111827);
    font-size: 2.25rem !important;
    font-weight: 800;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.dark-mode .our-services-content-title {
    color: #ffffff;
}

.our-services-content-title::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: 9999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.our-services-content-item.active .our-services-content-title::after {
    transform: scaleX(1);
}

.our-services-content-description {
    line-height: 1.7;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.dark-mode .our-services-content-description {
    color: #9ca3af;
}

/* Features List */
.our-services-features {
    margin: 2rem 0;
}

.our-services-feature {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    background: rgba(79, 70, 229, 0.04);
    border: 1px solid rgba(79, 70, 229, 0.08);
    border-radius: 0.875rem;
    color: var(--color-text-dark, #111827);
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.dark-mode .our-services-feature {
    background: rgba(167, 139, 250, 0.03);
    border-color: rgba(167, 139, 250, 0.06);
    color: #e5e7eb;
}

.our-services-feature i {
    font-size: 1.25rem;
    color: #10b981;
    transition: transform 0.3s ease;
}

.our-services-feature:hover {
    transform: translateX(4px) !important;
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.15);
}

.dark-mode .our-services-feature:hover {
    background: rgba(167, 139, 250, 0.07);
    border-color: rgba(167, 139, 250, 0.15);
}

.our-services-feature:hover i {
    transform: scale(1.2);
}

.our-services-content-item.active .our-services-feature {
    opacity: 1;
    transform: translateX(0);
}

.our-services-feature:nth-child(1) { transition-delay: 0.1s; }
.our-services-feature:nth-child(2) { transition-delay: 0.2s; }
.our-services-feature:nth-child(3) { transition-delay: 0.3s; }
.our-services-feature:nth-child(4) { transition-delay: 0.4s; }
.our-services-feature:nth-child(5) { transition-delay: 0.5s; }

/* Service Image */
.our-services-image {
    height: 420px;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 6px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-mode .our-services-image {
    border-color: rgba(31, 41, 55, 0.5);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.our-services-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.our-services-image:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 30px 60px -20px rgba(79, 70, 229, 0.2);
}

.dark-mode .our-services-image:hover {
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.our-services-image:hover img {
    transform: scale(1.06);
}

/* Learn More Button */
.our-services-learn-more {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff !important;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 6px 20px -4px rgba(79, 70, 229, 0.3);
}

.dark-mode .our-services-learn-more {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 6px 20px -4px rgba(124, 58, 237, 0.4);
}

.our-services-learn-more:hover {
    transform: translateY(-3px) translateX(2px);
    box-shadow: 0 12px 25px -6px rgba(79, 70, 229, 0.45);
    filter: brightness(1.05);
}

.our-services-learn-more i {
    transition: transform 0.3s ease;
}

.our-services-learn-more:hover i {
    transform: translateX(6px);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    .our-services-section {
        padding: 5rem 2rem;
    }

    .our-services-title {
        font-size: 2.75rem !important;
    }

    .our-services-content {
        min-height: 440px;
    }

    .our-services-image {
        height: 380px;
    }

    .our-services-button {
        padding: 1.75rem 1rem;
    }

    .our-services-button-icon {
        font-size: 1.75rem;
    }

    .our-services-button-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .our-services-section {
        padding: 4rem 1.5rem;
    }

    .our-services-title {
        font-size: 2.25rem !important;
    }

    .our-services-description {
        font-size: 1rem !important;
    }

    .our-services-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .our-services-content {
        min-height: auto;
    }

    .our-services-content-item {
        position: relative;
    }

    .our-services-content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .our-services-image {
        height: 300px;
        order: -1;
    }

    .our-services-button {
        padding: 1.5rem 1rem;
    }

    .our-services-button-icon {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .our-services-button-title {
        font-size: 0.95rem;
    }
}

/* 
   Exact Preserved Circular Button Design for Mobile 
   ========================================================================== */
@media (max-width: 480px) {
    .our-services-section {
        padding: 2.5rem 1rem;
    }

    .our-services-title {
        font-size: 1.75rem !important;
    }

    .our-services-description {
        font-size: 0.9375rem !important;
    }

    .our-services-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
        margin-top: 2rem;
    }

    .our-services-button {
        padding: 0.75rem;
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(83, 235, 37, 0.05);
        border: 1px solid rgba(83, 235, 37, 0.1);
        transition: all 0.3s ease;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .our-services-button:hover {
        transform: translateY(-2px);
        background: rgba(83, 235, 37, 0.1);
        border-color: rgba(83, 235, 37, 0.15);
        box-shadow: none;
    }

    .our-services-button.active {
        background: linear-gradient(
            45deg,
            var(--color-primary),
            var(--color-primary-light)
        );
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
        transform: translateY(-2px);
    }

    .our-services-button-icon {
        font-size: 1.25rem;
        margin: 0;
        color: var(--color-primary);
    }

    .our-services-button.active .our-services-button-icon {
        color: var(--color-background);
        transform: none;
    }

    .our-services-button-title {
        display: none;
    }

    .our-services-content {
        min-height: auto;
    }

    .our-services-image {
        height: 200px;
    }

    .our-services-feature {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem;
    }

    .our-services-learn-more {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .our-services-content-wrapper {
        padding: 2rem 0;
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }
}

@media (max-width: 350px) {
    .our-services-button {
        padding: 0.75rem;
        width: 3rem;
        height: 3rem;
    }
    .our-process-title {
        font-size: 27px !important;
    }
    .our-process-step-inner {
        padding: 10px;
    }
    .our-process-step-number span {
        font-size: 1.7rem;
        display: none;
    }
    .our-process-step-icon > div{
        height: 40px;
        width: 40px;
    }
}
