@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #0B0B0F;
    --primary: #7F3DFF;
    --primary-dim: #5c24c9;
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --card-height-mobile: 450px;
    --card-height-desktop: 600px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    padding: 20px 0 50px 0;
}

/* === Structure === */
.showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Intro === */
.intro {
    text-align: center;
    padding: 40px 0 60px 0;
}

.intro h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.intro .dot {
    color: var(--primary);
}

.intro .subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 5px;
}

/* === Grid === */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Removed media query for 2 columns since we want a vertical stack */

/* === Project Card === */
.project-card {
    display: block;
    position: relative;
    height: 500px;
    /* Consistent Height */
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background-color: #1a1a20;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1;
}

/* Background Image Context (Pseudo-element for Zoom) */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center top;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

/* Real Project Images applied to ::before */
.bg-gradient-1::before {
    background-image: url('../images/renata.png');
}

.bg-gradient-2::before {
    background-image: url('../images/personal.png');
    background-position: center 20%;
}

.bg-gradient-3::before {
    background-image: url('../images/instituto.png');
}

.bg-gradient-4::before {
    background-image: url('../images/construtora.png');
}


/* Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Stronger gradient at bottom for text readability */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(11, 11, 15, 0.8) 60%, rgba(11, 11, 15, 1) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.project-card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(11, 11, 15, 0.9) 60%, #000 100%);
}

/* Content */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px;
    z-index: 2;
    transform: translateY(0);
    /* Always visible */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* Typography */
.niche {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #BFBFFF;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.niche svg {
    opacity: 0.8;
}

.project-card h2 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    color: #FFFFFF;
}

/* CTA Button - Replaces Arrow */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(90deg, #7F3DFF 0%, #6128D8 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: capitalize;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 61, 255, 0.3);
}

.cta-button .icon {
    margin-left: 8px;
    font-size: 1.1rem;
    line-height: 1;
}

.project-card:hover .cta-button {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 61, 255, 0.5);
    background: linear-gradient(90deg, #8F52FF 0%, #7036E6 100%);
}

/* === Interactions (Hover on Card) === */
.project-card:hover {
    border-color: rgba(127, 61, 255, 0.3);
    /* Removed large shadow on card itself to keep focus on image/content */
}

/* Zoom Background on Hover */
.project-card:hover::before {
    transform: scale(1.08);
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .project-card {
        height: 450px;
    }

    .project-card h2 {
        font-size: 1.8rem;
    }

    .showcase-container {
        padding: 0 15px;
    }

    .card-content {
        padding: 25px;
    }
}