/* Portfolio Section (Main Page Cover) */
.section--portfolio {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.4), rgba(183, 148, 244, 0.3));
}

.portfolio-cover {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    /* margin-top: 1rem; */
}

.portfolio-cover__content {
    flex: 1;
    z-index: 2;
}

.portfolio-cover__content h3 {
    font-size: clamp(28px, 4vw, 36px);
    margin-top: 0;
    margin-bottom: 1rem;
    background: var(--grad-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-cover__content p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-radius: 99px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.portfolio-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(183, 148, 244, 0.3);
    background: #fff;
}

.portfolio-btn i {
    transition: transform 0.3s ease;
}

.portfolio-btn:hover i {
    transform: translateX(5px);
}

.portfolio-cover__visual {
    flex: 1;
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.cover-icon {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.blob {
    position: absolute;
    filter: blur(40px);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.blob-2 {
    width: 180px;
    height: 180px;
    background: var(--accent);
    bottom: 10%;
    right: 20%;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@media (max-width: 768px) {
    .portfolio-cover {
        flex-direction: column;
        padding: 2rem;
    }

    .portfolio-cover__content p {
        margin-bottom: 2rem;
    }

    .portfolio-cover__visual {
        display: none;
    }
}

/* Portfolio Target Page Layout */
.section--portfolio-page {
    background: linear-gradient(180deg, rgba(228, 236, 236, 0.268), rgba(246, 247, 251, 1));
    min-height: calc(100vh - 120px);
    padding-top: 60px;
    padding-bottom: 80px;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 4rem;
}

.portfolio-header .section__title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 1rem;
    background: var(--grad-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-header .lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Project List (Vertical Layout) */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.project-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(183, 148, 244, 0.15);
}

/* Abstract Background accents inside cards */
.project-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.project-card__content {
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-weight: 700;
}

.project-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.project-tags .tag {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.3), rgba(183, 148, 244, 0.2));
    color: var(--text);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.project-images {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.project-images::-webkit-scrollbar {
    height: 8px;
}

.project-images::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.project-images::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.project-images::-webkit-scrollbar-thumb:hover {
    background: var(--iris);
}

.project-images img {
    height: 300px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    flex-shrink: 0;
    background: #fff;
}

.project-desc {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    white-space: pre-wrap;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pill-link:not(.disabled):hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 148, 244, 0.2);
}

.pill-link.disabled {
    background: rgba(200, 200, 200, 0.3);
    color: var(--muted);
    border-color: rgba(200, 200, 200, 0.4);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .project-card {
        padding: 2rem;
    }
}