/* Portfolio Page Styles */
.portfolio-hero {
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: transparent;
}

.portfolio-hero .hero-contentss {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-hero h1 {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: transparent; /* Gradient text will be applied by other styles */
    margin-bottom: 20px;
}



.portfolio-hero .hero-description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-projects {
    position: relative;
    overflow: hidden;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 80px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
}

.project-item.right-aligned {
    flex-direction: row-reverse;
}

.project-content {
    flex: 1;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.project-item:hover .project-content {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 245, 255, 0.2);
    border-color: rgba(0, 245, 255, 0.5);
}

.project-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
    position: relative;
}

.project-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.project-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    z-index: 1;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-item::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.left-aligned::before {
    right: -50px;
    bottom: -50px;
}

.right-aligned::before {
    left: -50px;
    bottom: -50px;
}

.portfolio-cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-cta .cta-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.portfolio-cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #00f5ff, #667eea);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 3s ease-in-out infinite;
}

.portfolio-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Animations for Portfolio Page */
.project-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-item:nth-child(1) { transition-delay: 0.2s; }
.project-item:nth-child(2) { transition-delay: 0.4s; }
.project-item:nth-child(3) { transition-delay: 0.6s; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .project-item,
    .project-item.right-aligned {
        flex-direction: column;
    }

    .project-content {
        width: 100%;
    }

    .project-item::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        height: 70vh;
        min-height: 500px;
    }

    .projects-grid {
        gap: 60px;
    }

    .project-content {
        padding: 30px;
    }

    .portfolio-cta .cta-content {
        padding: 40px 20px;
    }
}