/* Copyright (c) 2026 OblivRuinDev. All rights reserved. */
@import url("var.css");

.projects-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    text-align: center;
}

.projects-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.projects-header p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.projects-showcase {
    padding: 80px 0;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-feature {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    gap: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.project-feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-feature:nth-child(even) {
    flex-direction: row-reverse;
}

.project-image {
    flex: 1;
    min-width: 300px;
    border-radius: 20px;
    height: auto;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(58, 12, 163, 0.1));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.project-feature:hover .project-image::before {
    opacity: 1;
}

.project-feature:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    flex: 1;
    min-width: 300px;
}

.project-number {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.project-number::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
}

.project-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-color);
    line-height: 1.3;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--light-text);
    margin-bottom: 25px;
}

.project-features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.feature-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-text {
    color: var(--text-color);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.project-tag {
    display: inline-block;
    padding: 6px 15px;
    background-color: var(--light-bg);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.project-tag.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.project-stats {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    padding: 40px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.project-timeline {
    padding: 80px 0;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-marker {
    width: 60px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-content {
    flex: 1;
    padding-left: 30px;
}

.timeline-date {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.timeline-description {
    color: var(--light-text);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .projects-header h1 {
        font-size: 2.5rem;
    }

    .project-feature {
        flex-direction: column !important;
        gap: 40px;
        margin-bottom: 80px;
    }

    .project-image, .project-content {
        width: 100%;
    }

    .project-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .projects-header {
        padding: 80px 0 40px;
    }

    .projects-header h1 {
        font-size: 2.2rem;
    }

    .projects-header p {
        font-size: 1.1rem;
    }

    .projects-showcase {
        padding: 60px 0;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .project-description {
        font-size: 1rem;
    }

    .timeline-container::before {
        left: 25px;
    }

    .timeline-marker {
        width: 50px;
    }

    .timeline-content {
        padding-left: 25px;
    }

    .timeline-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .projects-header h1 {
        font-size: 2rem;
    }

    .projects-header p {
        font-size: 1rem;
    }

    .project-number {
        font-size: 1.1rem;
    }

    .project-title {
        font-size: 1.6rem;
    }

    .feature-item {
        padding-left: 25px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-marker {
        width: 40px;
    }

    .timeline-content {
        padding-left: 20px;
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
    }
}