body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0F0F0F;
    color: #fff;
    line-height: 1.6;
}

.works-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;
}

.works-hero-content {
    text-align: left;
    padding-right: 2rem;
    margin-top: 2rem;
}

/* .works-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;
} */

.works-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);
}

.works-tags {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.works-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;
}

.works-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;
}

.works-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;
}

.works-tag:hover {
    color: var(--primary-color);
    border-color: rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
    letter-spacing: 2px;
}

.works-tag:hover::before {
    transform: translateX(100%);
}

.works-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;
    }
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    margin: 0 auto;
}

.works-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.works-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.works-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.works-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.works-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.works-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.works-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;
}

.works-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.works-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;
}

.tetrahedron-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotateTetrahedron 20s linear infinite;
}

.tetrahedron {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(-20deg);
}

.tetrahedron-face {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173.2px solid rgba(138, 43, 226, 0.1);
    transform-origin: 50% 100%;
    backface-visibility: visible;
}

.tetrahedron-face::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 200px;
    height: 173.2px;
    background: linear-gradient(45deg, 
        rgba(138, 43, 226, 0.2) 0%,
        rgba(138, 43, 226, 0.1) 50%,
        rgba(138, 43, 226, 0.2) 100%
    );
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
}

.tetrahedron-face.front {
    transform: translateZ(81.65px) rotateX(19.47deg);
}

.tetrahedron-face.right {
    transform: rotateY(120deg) translateZ(81.65px) rotateX(19.47deg);
}

.tetrahedron-face.left {
    transform: rotateY(-120deg) translateZ(81.65px) rotateX(19.47deg);
}

.tetrahedron-face.bottom {
    transform: rotateX(180deg) translateY(-81.65px);
}

@keyframes rotateTetrahedron {
    0% {
        transform: translate(-50%, -50%) rotateX(0) rotateY(0) rotateZ(0);
    }
    100% {
        transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@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);
    }
}

.works-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-color: rgba(20, 20, 20, 0.8);
    
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.category-title h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 1px;
}

.view-all {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        rgba(138, 43, 226, 0.1) 0%,
        rgba(138, 43, 226, 0.05) 100%
    );
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(138, 43, 226, 0.2),
        transparent
    );
    transition: 0.6s;
}

.view-all:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 43, 226, 0.4);
}

.view-all:hover::before {
    left: 100%;
}

.project-info {
    margin-bottom: 2rem;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.project-title h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.discuss-btn {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(138, 43, 226, 0.8) 0%,
        rgba(138, 43, 226, 0.6) 100%
    );
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1.5px;
    overflow: hidden;
}

.discuss-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.6s;
}

.discuss-btn:hover {
    transform: translateY(-2px);
}

.discuss-btn:hover::after {
    left: 100%;
}

.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;
    margin-top: 2rem;
}

.example-card {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.example-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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) {
    .works-hero {
        padding: 6rem 1rem 2rem;
        grid-template-columns: 1fr;
        gap: 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 {
        width: auto;
        white-space: nowrap;
    }

    .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;
    }

    .works-hero-content {
        padding: 0;
        text-align: left;
        margin-top: 1rem;
    }

    .works-hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .works-hero p {
        font-size: 0.9rem;
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
    }

    .works-tags {
        justify-content: flex-start;
        gap: 1rem;
    }

    .works-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .works-projects {
        padding: 4rem 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;
        font-size: 1rem;
    }

    .project-title h4 {
        font-size: 1.5rem;
    }

    .project-examples {
        grid-template-columns: 1fr;
    }

    .view-all {
        margin-top: 0.5rem;
    }

    .works-grid {
        padding: 1rem;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .works-tags {
        flex-direction: column;
        align-items: stretch;
    }

    .works-tag {
        text-align: center;
    }

    .works-header {
        flex-direction: column;
        text-align: center;
    }

}