/* Projects Showcase Styling */
.portfolio {
    padding: clamp(2rem, 5vw, 4rem) 8%;
    min-height: calc(100vh - 85px);
}

.projects-container {
    max-width: 1350px;
    margin: 0 auto;
}

.main-text {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sub-heading {
    display: inline-block;
    color: #0ef;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.main-text h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
}

.main-text h2 span {
    color: #0ef;
    text-shadow: 0 0 15px rgba(0, 238, 255, 0.4);
}

.section-intro {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

/* Project Card */
.project-card {
    position: relative;
    background: rgba(14, 34, 61, 0.65);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #0ef;
    box-shadow: 0 15px 35px rgba(0, 238, 255, 0.2);
    background: rgba(14, 34, 61, 0.9);
}

/* Featured Highlights */
.project-card.featured-highlight {
    border-color: rgba(0, 238, 255, 0.45);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.15);
}

.featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: rgba(5, 17, 41, 0.88);
    border: 1px solid #0ef;
    color: #0ef;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.featured-badge.gcp-flag {
    border-color: #4285f4;
    color: #4285f4;
}

.portfolio-row {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #051129;
}

.portfolio-row img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease, filter 0.5s ease;
    opacity: 0.9;
}

.project-card:hover .portfolio-row img {
    transform: scale(1.08);
    opacity: 1;
}

/* Hover overlay layer */
.layer {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 17, 41, 0.85) 0%, rgba(8, 27, 41, 0.98) 100%);
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.portfolio-row:hover .layer {
    transform: translateY(0);
}

.layer h5 {
    color: #0ef;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.layer p {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.card-tech-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.card-tech-pills span {
    background: rgba(0, 238, 255, 0.15);
    border: 1px solid rgba(0, 238, 255, 0.4);
    color: #0ef;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 600;
}

/* Card Footer */
.card-footer {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.project-card-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 16px;
    line-height: 1.4;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-card-live {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #0ef;
    color: #051129;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-card-live:hover {
    background: #38bdf8;
    color: #051129;
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.6);
}

.btn-card-details {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 238, 255, 0.3);
    color: #e2e8f0;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-card-details.full-width {
    flex: 100%;
}

.btn-card-details:hover {
    background: rgba(0, 238, 255, 0.15);
    color: #0ef;
    border-color: #0ef;
}

@media screen and (max-width: 768px) {
    .portfolio {
        padding-left: 5%;
        padding-right: 5%;
    }
    .portfolio-content {
        grid-template-columns: 1fr;
    }
}
