/* Featured Project Advanced Animation CSS */

.featured-project-display {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    transition: all 0.5s ease;
}

.featured-project-display:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.featured-project-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        #4CAF50,
        #8BC34A,
        #CDDC39,
        #4CAF50
    );
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.featured-project-display::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--dark-color);
    border-radius: calc(var(--border-radius-lg) - 3px);
    z-index: 2;
}

.featured-content {
    position: relative;
    z-index: 3;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--text-light);
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.featured-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0.9;
}

/* 3D Rotating Model */
.model-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 15s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(76, 175, 80, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    border-radius: 10px;
}

.front {
    transform: translateZ(90px);
}

.back {
    transform: rotateY(180deg) translateZ(90px);
}

.right {
    transform: rotateY(90deg) translateZ(90px);
}

.left {
    transform: rotateY(-90deg) translateZ(90px);
}

.top {
    transform: rotateX(90deg) translateZ(90px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(90px);
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* Tech stack pills */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-pill {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s forwards;
    opacity: 0;
}

.tech-pill:nth-child(1) {
    animation-delay: 0.1s;
}

.tech-pill:nth-child(2) {
    animation-delay: 0.2s;
}

.tech-pill:nth-child(3) {
    animation-delay: 0.3s;
}

.tech-pill:nth-child(4) {
    animation-delay: 0.4s;
}

.tech-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.3);
}

/* Floating particles */
.featured-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.featured-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatParticle 8s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100%) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100%) translateX(20px);
        opacity: 0;
    }
}

/* View project button */
.view-project {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.view-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #8BC34A, #4CAF50);
    transition: all 0.5s ease;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
}

.view-project:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.view-project:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .featured-project-display {
        height: 350px;
    }
    
    .featured-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .featured-project-display {
        height: 300px;
    }
    
    .model-container {
        width: 150px;
        height: 150px;
    }
    
    .cube-face {
        font-size: 2.5rem;
    }
    
    .front, .back, .right, .left, .top, .bottom {
        transform-origin: center;
    }
    
    .front {
        transform: translateZ(75px);
    }
    
    .back {
        transform: rotateY(180deg) translateZ(75px);
    }
    
    .right {
        transform: rotateY(90deg) translateZ(75px);
    }
    
    .left {
        transform: rotateY(-90deg) translateZ(75px);
    }
    
    .top {
        transform: rotateX(90deg) translateZ(75px);
    }
    
    .bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }
}
