/* ==================== App Showcase (Minimal) ==================== */
.app-showcase-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background-color: #0c0c0e;
    /* Slightly lighter than pure black */
}

/* Background Grid Pattern */
.app-showcase-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

/* Featured Ambient Glow */
.app-showcase-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.showcase-header {
    text-align: center;
    margin-bottom: 80px;
}

.showcase-eyebrow {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3b82f6;
    display: block;
    margin-bottom: 10px;
}

.showcase-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.showcase-title span {
    color: #71717a;
    /* Zinc 500 */
}

/* Container */
.app-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Project Item - Minimal Grid */
.app-showcase-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.app-showcase-item.reverse {
    flex-direction: row-reverse;
}

/* Visual Side */
.app-visual {
    flex: 1;
    position: relative;
}

.floating-screen-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Clean shadow instead of glow */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    background: #18181b;
    /* Zinc 900 */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease;
}

.floating-screen img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.app-showcase-item:hover .floating-screen-wrapper {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Content Side */
.app-content {
    flex: 0.8;
}

.app-number {
    font-size: 14px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 20px;
    display: block;
    opacity: 0.8;
}

.app-name {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.app-description {
    font-size: 16px;
    line-height: 1.7;
    color: #a1a1aa;
    /* Zinc 400 */
    margin-bottom: 30px;
}

/* Tech Stack Pills */
.app-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tech-pill {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 13px;
    color: #d4d4d8;
    transition: all 0.3s ease;
}

.app-showcase-item:hover .tech-pill {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #fff;
}

/* Button */
.app-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #3b82f6;
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.app-detail-btn:hover {
    gap: 15px;
    color: #3b82f6;
}

/* Secondary Projects Grid */
.secondary-showcase-container {
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
}

.secondary-header {
    text-align: center;
    margin-bottom: 40px;
}

.secondary-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.secondary-project-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.secondary-project-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
}

.secondary-card-img {
    aspect-ratio: 16/10;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #000;
}

.secondary-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.secondary-project-card:hover .secondary-card-img img {
    transform: scale(1.05);
}

.secondary-card-content {
    padding: 16px;
}

.secondary-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hide description for minimalism */
.secondary-card-desc {
    display: none;
}

.secondary-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.secondary-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    transition: all 0.3s;
}

.secondary-project-card:hover .secondary-link {
    background: #3b82f6;
    color: #fff;
}

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

    .app-showcase-section {
        padding: 60px 0;
    }

    .app-showcase-item,
    .app-showcase-item.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .app-visual,
    .app-content {
        width: 100%;
    }

    /* Fix image sizing on mobile */
    .app-visual .floating-screen-wrapper {
        height: auto !important;
        aspect-ratio: auto !important;
        max-height: none !important;
    }

    .app-visual img {
        height: auto !important;
        width: 100%;
        max-height: 400px;
        object-fit: contain !important;
    }

    .app-name {
        font-size: 28px !important;
    }

    .app-description {
        font-size: 15px !important;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .showcase-title {
        font-size: 36px !important;
    }

    .app-showcase-section {
        padding: 40px 0 !important;
    }

    .app-showcase-container {
        padding: 0 16px !important;
    }

    .secondary-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 16px !important;
    }

    .app-name {
        font-size: 24px !important;
        margin-bottom: 16px !important;
    }

    .app-tech-stack {
        margin-bottom: 30px !important;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .showcase-header {
        margin-bottom: 40px !important;
    }

    .showcase-eyebrow {
        font-size: 12px !important;
    }

    .showcase-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .app-showcase-section {
        padding: 30px 0 !important;
    }

    .app-showcase-item {
        margin-bottom: 40px !important;
    }

    .app-number {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }

    .app-name {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }

    .app-description {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    .tech-pill {
        font-size: 11px !important;
        padding: 5px 12px !important;
    }

    .app-detail-btn {
        font-size: 14px !important;
    }

    .secondary-projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 16px;
    }

    /* Center the 3rd card if there are 3 cards */
    .secondary-project-card:nth-child(3):last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .secondary-project-card {
        height: auto;
        min-height: 200px;
    }

    .floating-screen-wrapper {
        height: 140px;
    }

    .secondary-card-content {
        padding: 10px !important;
    }

    .secondary-card-title {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    .secondary-card-tags {
        gap: 4px !important;
    }

    .secondary-card-tag {
        font-size: 9px !important;
        padding: 3px 8px !important;
    }

    .secondary-card-content {
        padding: 12px !important;
    }

    .secondary-card-title {
        font-size: 14px !important;
    }

    .floating-screen-wrapper {
        border-radius: 16px !important;
    }
}