/* Portfolio Section Styles */
.portfolio {
    padding: 100px 0;
    background-color: #050505;
    position: relative;
    overflow: hidden;
}

/* Optional background graphic */
.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(46, 204, 113, 0.03), transparent 70%);
    z-index: 0;
}

/* Project grid layout */
.portfolio-grid {
    position: relative;
    z-index: 1;
}

/* Project card styles */
.project-card {
    margin-bottom: 100px;
    background: rgba(15, 15, 15, 0.5);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:last-child {
    margin-bottom: 0;
}

/* Inner content layout */
.project-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    gap: 40px;
}

/* Alternate layout for second project */
.project-card.alt .project-content {
    flex-direction: row-reverse;
}

/* Project info section */
.project-info {
    flex: 1;
    max-width: 500px;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.project-category {
    font-size: 1.1rem;
    color: #2ecc71;
    margin-bottom: 20px;
    font-weight: 500;
}

.project-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Technology tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(46, 204, 113, 0.2);
    transform: translateY(-2px);
}

/* Project links */
.project-links {
    display: flex;
    gap: 15px;
}

/* Outline button specific to portfolio */
.btn-outline {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: #2ecc71;
    color: #2ecc71;
    transform: translateY(-2px);
}

.btn-outline svg {
    transition: transform 0.3s ease;
}

.btn-outline:hover svg {
    transform: translateX(3px);
}

/* Project image section */
.project-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Device mockup */
.device-mockup {
    position: relative;
    width: 280px;
    height: 570px;
    background: #000;
    border-radius: 36px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.project-card.alt .device-mockup {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg);
}

.device-mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.device-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #000;
    border-radius: 20px 20px 0 0;
    z-index: 2;
}

.device-mockup::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.device-mockup img {
    width: 100%;
    height: calc(100% - 30px);
    object-fit: cover;
    border-radius: 0 0 24px 24px;
    margin-top: 30px;
    position: relative;
}

/* Portfolio CTA section */
.portfolio-cta {
    margin-top: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .project-title {
        font-size: 1.8rem;
    }
    
    .device-mockup {
        width: 240px;
        height: 490px;
    }
}

@media (max-width: 768px) {
    .portfolio {
        padding: 70px 0;
    }
    
    .project-content {
        flex-direction: column !important;
        padding: 30px;
        gap: 30px;
    }
    
    .project-info {
        max-width: 100%;
        order: 2;
    }
    
    .project-image {
        order: 1;
    }
    
    .project-card {
        margin-bottom: 60px;
    }
    
    .portfolio-cta {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .portfolio {
        padding: 50px 0;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.6rem;
    }
    
    .project-category {
        font-size: 1rem;
    }
    
    .device-mockup {
        width: 200px;
        height: 410px;
    }
    
    .tech-tag {
        font-size: 0.75rem;
    }
}

/* Add to index.html file head section */
@keyframes float {
    0% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-8deg) rotateX(3deg) translateY(-10px);
    }
    100% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0);
    }
}

@keyframes floatAlt {
    0% {
        transform: perspective(1000px) rotateY(10deg) rotateX(5deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(8deg) rotateX(3deg) translateY(-10px);
    }
    100% {
        transform: perspective(1000px) rotateY(10deg) rotateX(5deg) translateY(0);
    }
}

.device-mockup {
    animation: float 6s ease-in-out infinite;
}

.project-card.alt .device-mockup {
    animation: floatAlt 6s ease-in-out infinite;
}

.device-mockup:hover {
    animation-play-state: paused;
}