/* ========================================
   PROJECT DETAILS - LEFT-RIGHT LAYOUT
   Clean Image Slider + Organized Content
   ======================================== */

/* === PAGE CONTAINER === */
.project-details-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* === BACK BUTTON === */
.back-section {
    padding: 2rem 0 1.5rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    color: white;
}

.back-button i {
    font-size: 1.25rem;
}

/* === MAIN LAYOUT === */
.details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* === LEFT COLUMN === */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* === IMAGE SLIDER === */
.image-slider-section {
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Controls */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #667eea;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-control:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
    left: 1.5rem;
}

.slider-control.next {
    right: 1.5rem;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* === CATEGORIES SECTION === */
.categories-section,
.summary-section,
.about-section,
.links-section,
.date-section {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.25rem 0;
}

.section-title i {
    font-size: 1.375rem;
    color: #667eea;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-badge {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* === SUMMARY SECTION === */
.summary-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #4b5563;
    margin: 0;
}

/* === ABOUT SECTION === */
.description-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
}

/* === DATE SECTION === */
.date-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* === LINKS SECTION === */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* === RIGHT COLUMN === */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 2rem;
}

/* === PROJECT LINKS === */
.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.link-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.link-content i {
    font-size: 1.75rem;
}

.link-content span {
    font-size: 1rem;
    font-weight: 600;
}

.project-link i:last-child {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.project-link:hover i:last-child {
    transform: translateX(5px);
}

.project-link.github {
    color: #24292e;
}

.project-link.github:hover {
    background: linear-gradient(135deg, #24292e 0%, #1a1e22 100%);
    color: white;
    border-color: #24292e;
    box-shadow: 0 4px 16px rgba(36, 41, 46, 0.3);
}

.project-link.live {
    color: #667eea;
}

.project-link.live:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .details-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .right-column {
        position: static;
    }

    .slider-container {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .project-details-page {
        padding: 0 1rem 2rem;
    }

    .back-section {
        padding: 1.5rem 0 1rem;
    }

    .back-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .details-container {
        gap: 1.5rem;
    }

    .left-column {
        gap: 1.5rem;
    }

    .slider-container {
        height: 280px;
        border-radius: 16px;
    }

    .slider-control {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .slider-control.prev {
        left: 1rem;
    }

    .slider-control.next {
        right: 1rem;
    }

    .slider-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 24px;
    }

    .categories-section,
    .summary-section,
    .about-section,
    .links-section,
    .date-section {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .right-column {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 220px;
    }

    .category-badge {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

    .summary-text,
    .description-text {
        font-size: 1rem;
    }
}