body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0F0F0F;
    color: #fff;
    line-height: 1.6;
}

.services-hero {
    padding: 8rem 2rem 4rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    min-height: 600px;
}

.services-hero-content {
    text-align: left;
    padding-right: 2rem;
    margin-top: 2rem;
}

/* .services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        transparent 30%,
        var(--primary-color) 50%,
        transparent 70%,
        transparent 100%
    ) 0 / 300% 100%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderAnimation 7s linear infinite alternate;
} */


.services-hero p {
    font-size: 1.1rem;
    
    margin-bottom: 2.5rem;

    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
    backdrop-filter: blur(5px);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}

.services-tags {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.service-tag {
    background: rgba(138, 43, 226, 0.08);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.service-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(138, 43, 226, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-tag::after {
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(45deg,
        transparent,
        rgba(138, 43, 226, 0.3),
        transparent
    );
    z-index: -2;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-tag:hover {
    color: var(--primary-color);
    border-color: rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
    letter-spacing: 2px;
}

.service-tag:hover::before {
    transform: translateX(100%);
}

.service-tag:hover::after {
    opacity: 1;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes lineWidth {
    0%, 100% {
        width: 100px;
    }
    50% {
        width: 200px;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    margin: 0 auto;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.service-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.service-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.services-hero-3d {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    min-height: 400px;
    margin-top: 2rem;
}

.hero-3d-element {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.cube-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotateCube 20s linear infinite;
}

.cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    background: rgba(138, 43, 226, 0.1);
    backface-visibility: visible;
}

.cube-face.front  { transform: translateZ(100px); }
.cube-face.back   { transform: translateZ(-100px) rotateY(180deg); }
.cube-face.right  { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
    0% {
        transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.float-element.e1 {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 20%;
    animation: float 8s ease-in-out infinite;
}

.float-element.e2 {
    width: 15px;
    height: 15px;
    top: 60%;
    right: 25%;
    animation: float 6s ease-in-out infinite 1s;
}

.float-element.e3 {
    width: 25px;
    height: 25px;
    bottom: 30%;
    left: 35%;
    animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
}

.services-projects {
    padding: 6rem 2rem 3rem;
    margin: 0 auto;
}

.section-header {
    text-align: left;
}

.section-header h2 {
    width: 100%;
    border-radius: 12px;
    height: 80px;
    background-color: rgba(20, 20, 20, 0.8);
    font-size: 1.7rem;
    font-weight: 700;
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    padding-left: 1.5rem;
    margin-bottom: 2rem;
         
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-category {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.8));
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.category-icon {
    display: flex;
    align-items: center;
    gap: 1rem;

    color: var(--primary-color);
    padding: 6px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.category-icon svg {
    width: 25px;
    height: 25px;
}

.project-category:hover .category-icon {
    transform: scale(1.1);
    background: rgba(138, 43, 226, 0.2);
}

.category-title h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.view-all {
    /* background-color: #1e1e1e; */
    color: #ffffff;
    
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.project-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.project-title {
    margin-bottom: 1.5rem;
}

.project-title h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.project-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: auto;
}

.price-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.discuss-btn {
    background-color: #1e1e1e;
    color: #ffffff;
    
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}



.discuss-btn:hover {
    background-color: #2a2a2a;
}



.project-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.project-price {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.project-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.example-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
}

.example-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.example-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.view-project {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: scale(1.02);
}

.example-card:hover img {
    transform: scale(1.1);
}

.example-card:hover .example-overlay {
    opacity: 1;
}

.example-card:hover .view-project {
    opacity: 1;
    transform: translateY(0);
}

.testimonials {
    padding: 3rem 2rem;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color),
        rgba(138, 43, 226, 0.3),
        var(--primary-color)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.3);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.3;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.author-position {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .services-hero {
        padding: 6rem 1rem 2rem;
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .category-title h3 {
        font-size: 1.3rem;
    }

    .project-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .project-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .view-all, .discuss-btn {
        font-size: 1rem;
        width: 100%;
        padding: 0.8rem 1.2rem;
        justify-content: center;
        box-sizing: border-box;
    }

    .testimonials {
        padding: 4rem 1rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-title {
        font-size: 1.2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .services-hero-content {
        padding: 0;
        text-align: left;
        margin-top: 1rem;
    }

    .services-hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .services-hero p {
        font-size: 0.9rem;
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
    }

    .services-tags {
        justify-content: flex-start;
        gap: 1rem;
    }

    .service-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .services-projects {
        padding: 2rem 1rem;
        margin: -1rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
        text-align: left;
        margin: 0 0 2rem 0;
        padding: 0 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-category {
        padding: 1.5rem;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .project-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .project-title h4 {
        font-size: 1.5rem;
    }

    .project-examples {
        grid-template-columns: 1fr;
    }

    .view-all {
        font-size: 1rem;
        width: 100%;
        padding: 0.8rem 1.2rem;
        justify-content: center;
        box-sizing: border-box;
    }

    .services-grid {
        padding: 1rem;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .services-tags {
        flex-direction: column;
        align-items: stretch;
    }

    .service-tag {
        text-align: center;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
    }

}

@media (max-width: 767px) {
    .services-hero-3d {
        display: none !important;
    }
}