/* ========== Portfolio Hero Section ========== */
.portfolio-hero-section {
    padding: 80px 0 40px;
    background: #ececec;
}

.portfolio-hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-hero-title {
    font-family: var(--primary-font);
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.accent-dot {
    color: var(--accent-orange);
}

.portfolio-hero-description {
    font-family: "Roboto Mono", monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
    max-width: 550px;
    margin: 0 auto;
}

/* ========== Timeline Portfolio Section ========== */
.timeline-portfolio-section {
    padding: 60px 0 100px;
    background: #ececec;
    position: relative;
    overflow-x: hidden;
}

.timeline-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical Timeline Line - Centered */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        var(--primary-color) 15%,
        var(--primary-color) 85%,
        rgba(0, 0, 0, 0.05) 100%
    );
    transform-origin: top;
}

/* Timeline Item */
.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

/* Left Side - Project Info */
.timeline-info {
    flex: 1;
    padding-right: 60px;
    text-align: right;
    position: relative;
}

.timeline-dot {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent-orange);
    border-radius: 50%;
    border: 2px solid #ececec;
    box-shadow: 0 0 0 3px rgba(206, 42, 29, 0.2);
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(206, 42, 29, 0.3);
}

.timeline-info-content {
    background: transparent;
    padding: 20px;
    transition: all 0.3s ease;
}

.timeline-project-title {
    font-family: var(--primary-font);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.timeline-project-client {
    font-family: "Roboto Mono", monospace;
    font-size: 0.85rem;
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.timeline-project-client i {
    font-size: 0.75rem;
}

.timeline-project-description {
    font-family: "Roboto Mono", monospace;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-project-type {
    display: inline-block;
    font-family: "Roboto Mono", monospace;
    font-size: 0.7rem;
    color: white;
    background: rgba(29, 29, 29, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Roboto Mono", monospace;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.timeline-project-link:hover {
    color: var(--accent-orange);
    gap: 12px;
    border-bottom-color: var(--accent-orange);
}

.timeline-project-link i {
    transition: transform 0.3s ease;
}

.timeline-project-link:hover i {
    transform: translateX(5px);
}

/* Right Side - Cover Image */
.timeline-image {
    flex: 1;
    padding-left: 60px;
}

.timeline-image-link {
    display: block;
    text-decoration: none;
}

.timeline-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-image-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.timeline-image-wrapper:hover .timeline-image-img {
    transform: scale(1.05);
}

.timeline-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 29, 29, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-image-wrapper:hover .timeline-image-overlay {
    opacity: 1;
}

.timeline-image-overlay span {
    font-family: "Roboto Mono", monospace;
    font-size: 0.9rem;
    color: white;
    letter-spacing: 0.5px;
}

.timeline-image-overlay i {
    color: white;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.timeline-image-wrapper:hover .timeline-image-overlay i {
    transform: translateX(5px);
}

/* Alternate Layout - For even items (image on left, info on right) */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-info {
    text-align: left;
    padding-right: 0;
    padding-left: 60px;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -6px;
}

.timeline-item:nth-child(even) .timeline-image {
    padding-left: 0;
    padding-right: 60px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-family: var(--primary-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-family: "Roboto Mono", monospace;
    color: #6c757d;
}

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

/* Tablet Landscape */
@media (max-width: 1024px) {
    .timeline-project-title {
        font-size: 1.3rem;
    }

    .timeline-project-description {
        font-size: 0.85rem;
    }

    .timeline-info {
        padding-right: 40px;
    }

    .timeline-image {
        padding-left: 40px;
    }

    .timeline-item:nth-child(even) .timeline-info {
        padding-left: 40px;
    }

    .timeline-item:nth-child(even) .timeline-image {
        padding-right: 40px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .portfolio-hero-section {
        padding: 60px 0 30px;
    }

    .portfolio-hero-title {
        font-size: 2.5rem;
    }

    .portfolio-hero-description {
        font-size: 0.9rem;
    }

    .timeline-portfolio-section {
        padding: 40px 0 60px;
    }

    .timeline-line {
        left: 30px;
        transform: translateX(0);
    }

    .timeline-item {
        flex-direction: column;
        margin-bottom: 50px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-info {
        width: 100%;
        padding-right: 0;
        padding-bottom: 20px;
        text-align: left;
        margin-left: 50px;
    }

    .timeline-dot {
        left: -20px;
        right: auto;
        top: 30px;
        transform: translateY(0);
    }

    .timeline-item:hover .timeline-dot {
        transform: scale(1.3);
    }

    .timeline-image {
        width: 100%;
        padding-left: 0;
        margin-left: 50px;
    }

    .timeline-item:nth-child(even) .timeline-info {
        padding-left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: -20px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-image {
        padding-right: 0;
    }

    .timeline-info-content {
        padding: 0;
    }

    .timeline-project-title {
        font-size: 1.2rem;
    }

    .timeline-project-description {
        font-size: 0.8rem;
    }

    .timeline-image-wrapper {
        aspect-ratio: 16/9;
    }
}

/* Mobile Landscape */
@media (max-width: 576px) {
    .portfolio-hero-title {
        font-size: 1.8rem;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-info {
        margin-left: 35px;
    }

    .timeline-image {
        margin-left: 35px;
    }

    .timeline-dot {
        left: -16px;
        width: 10px;
        height: 10px;
    }

    .timeline-project-title {
        font-size: 1rem;
    }

    .timeline-project-client {
        font-size: 0.75rem;
    }

    .timeline-project-description {
        font-size: 0.75rem;
    }

    .timeline-project-type {
        font-size: 0.6rem;
    }

    .timeline-project-link {
        font-size: 0.75rem;
    }

    .timeline-image-overlay span {
        font-size: 0.7rem;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .timeline-info {
        margin-left: 30px;
    }

    .timeline-image {
        margin-left: 30px;
    }

    .timeline-dot {
        left: -14px;
    }

    .timeline-project-title {
        font-size: 0.9rem;
    }

    .timeline-project-description {
        font-size: 0.7rem;
    }
}
