/* =====================================
   Projects Page - Lume Design System
   ===================================== */

.projects-page {
    background: #ffffff;
    --projects-muted: #495066;
    --projects-soft: #f7f8fc;
    --projects-border: rgba(14, 19, 55, 0.08);
    --projects-card-shadow: 0 20px 50px rgba(14, 19, 55, 0.08);
}

/* =====================================
   Hero Section
   ===================================== */

.projects-hero {
    position: relative;
    padding: 140px 0 100px;
    background: var(--lume-bg-light);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(14, 19, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 19, 55, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(77, 142, 255, 0.08) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--lume-border);
    border-radius: 100px;
    color: var(--lume-dark);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge svg {
    color: #fbbf24;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--lume-dark);
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--lume-dark) 0%, #4d8eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--projects-muted);
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 24px 40px;
    background: #ffffff;
    border: 1px solid var(--projects-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(14, 19, 55, 0.08);
    max-width: fit-content;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--lume-dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--projects-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--projects-border);
}

/* =====================================
   Featured Projects Section
   ===================================== */

.featured-projects {
    padding: 100px 0;
    background: var(--projects-soft);
}

.project-showcase {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
    background: #ffffff;
    border: 1px solid var(--projects-border);
    border-radius: 32px;
    padding: 48px;
    box-shadow: var(--projects-card-shadow);
    position: relative;
    overflow: hidden;
}

.project-showcase:last-child {
    margin-bottom: 0;
}

.project-showcase.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.project-showcase.reverse .project-visual {
    order: 2;
}

.project-showcase.reverse .project-info {
    order: 1;
}

/* Project Visual */
.project-visual {
    position: relative;
    padding: 12px;
}

.project-mockup {
    position: relative;
}

.mockup-frame {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-showcase:hover .mockup-frame {
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 12px 48px rgba(0, 0, 0, 0.12);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
}

.mockup-dots span:nth-child(1) { background: #ff5f56; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #27c93f; }

.mockup-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.mockup-content {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-float-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid var(--lume-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    font-size: 13px;
    color: var(--lume-dark);
}

.project-float-badge svg {
    width: 18px;
    height: 18px;
    color: var(--lume-dark);
}

/* Project Info */
.project-info {
    position: relative;
    padding: 20px 0;
}

.project-number {
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 140px;
    font-weight: 900;
    color: rgba(14, 19, 55, 0.03);
    line-height: 1;
    z-index: 0;
    user-select: none;
}

.project-category {
    font-size: 13px;
    font-weight: 600;
    color: var(--lume-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.project-name {
    font-size: 40px;
    font-weight: 700;
    color: var(--lume-dark);
    margin-bottom: 16px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.project-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--lume-text-light);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--lume-text);
    font-weight: 500;
}

.highlight-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #10b981;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.tech-tag {
    padding: 6px 14px;
    background: var(--lume-bg-light);
    border: 1px solid var(--lume-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lume-text);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: var(--lume-dark);
    color: #ffffff;
    border-color: var(--lume-dark);
}

.project-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--lume-dark);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 19, 55, 0.2);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-primary:hover svg {
    transform: translateX(2px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--lume-dark);
    border: 2px solid var(--lume-dark);
}

.btn-secondary svg {
    width: 16px;
    height: 16px;
}

.btn-secondary:hover {
    background: var(--lume-dark);
    color: #ffffff;
    border-color: var(--lume-dark);
}

.btn-secondary:hover svg {
    color: #ffffff;
}

/* =====================================
   CTA Section
   ===================================== */

.projects-cta-section {
    position: relative;
    padding: 80px 0;
    background: var(--lume-bg-light);
    border-top: 1px solid var(--lume-border);
}

.cta-background {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.cta-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(14, 19, 55, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 19, 55, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--lume-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--lume-text-light);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-btn-primary,
.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-btn-primary {
    background: var(--lume-dark);
    color: #ffffff;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(14, 19, 55, 0.2);
}

.cta-btn-primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.cta-btn-primary:hover svg {
    transform: translateX(2px);
}

.cta-btn-secondary {
    background: #ffffff;
    color: var(--lume-dark);
    border: 2px solid var(--lume-dark);
}

.cta-btn-secondary:hover {
    background: var(--lume-dark);
    color: #ffffff;
    border-color: var(--lume-dark);
}

/* =====================================
   Responsive Design
   ===================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 52px;
    }

    .project-showcase {
        gap: 48px;
        margin-bottom: 100px;
    }

    .project-name {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px 24px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .featured-projects {
        padding: 80px 0;
    }

    .project-showcase,
    .project-showcase.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 80px;
        direction: ltr;
    }

    .project-number {
        font-size: 60px;
        margin-bottom: -30px;
    }

    .project-name {
        font-size: 32px;
    }

    .project-excerpt {
        font-size: 15px;
    }

    .project-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
        width: 100%;
    }

    .projects-cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-description {
        font-size: 15px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .project-number {
        font-size: 48px;
    }

    .project-name {
        font-size: 28px;
    }

    .project-excerpt {
        font-size: 14px;
    }

    .project-float-badge {
        bottom: 12px;
        right: 12px;
        padding: 10px 16px;
        font-size: 12px;
    }

    .cta-title {
        font-size: 26px;
    }

    .cta-description {
        font-size: 14px;
    }
}
