/* ─────────────────────────────────────────────
   PORTFOLIO STYLES
───────────────────────────────────────────── */

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 12rem;
}

.portfolio-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(4rem, 8vw, 6rem);
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
    /* Optional: subtle text shadow to match premium vibe */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.project-section.reverse {
    flex-direction: row-reverse;
}

/* Image stacking effect */
.project-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    /* Tilt effect like in the screenshot */
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add a "Polaroid" white border for deeper aesthetic if desired, 
   but the screenshot shows a more modern clean stack. 
   I'll stick to a subtle border. */

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 3rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.rainbow-shine {
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.9) 50%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 100%),
        linear-gradient(to right,
            #00f2fe 0%,
            #7db9ff 20%,
            #ffffff 40%,
            #4facfe 60%,
            #00f2fe 80%,
            #7db9ff 100%);
    background-size: 200% auto, 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
    /* Slightly faster for more "energy" */
}

.project-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 500px;
}

/* Metric cards - Liquid Glass vibe */
.project-metrics {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.metric-glass {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    border-radius: 20px;

    /* Liquid Glass Core */
    background: linear-gradient(160deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 40%,
            rgba(6, 182, 212, 0.05) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.25);
}

.metric-val {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {

    .project-section,
    .project-section.reverse {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .project-desc {
        max-width: 100%;
        margin: 0 auto;
    }

    .project-metrics {
        justify-content: center;
    }

    .image-wrapper {
        transform: none;
    }
}