/* Projects Page Specific Styles */

/* Projects Hero Section */
.projects-hero {
    background: #2c3e50 url('https://images.unsplash.com/photo-1699891730676-037bed3c1bed?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8d2Vic2l0ZSUyMGJhY2tncm91bmR8ZW58MHx8MHx8fDA%3D&fm=jpg&q=60&w=3000') center/cover no-repeat;
    color: #ffffff;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 0;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.projects-hero h1 {
    font-size: 3.5rem;
    margin: 0 0 1.5rem 0;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    font-family: 'Merriweather', serif;
    letter-spacing: -1px;
}

.projects-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Project Sections */
.project-section {
    padding: 5rem 0;
    scroll-margin-top: 6rem;
}

.project-section:nth-child(even) {
    background: #f8f9fa;
}

.project-section:nth-child(odd) {
    background: white;
}

.project-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 900;
    font-family: 'Merriweather', serif;
    letter-spacing: -1px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Project Cards */
.project-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-col);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 10;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.2);
}

/* Project Header */
.project-header {
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.project-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

/* Slideshow Styles */
.project-slideshow {
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    background: #1a1a1a;
    aspect-ratio: 16 / 9;
}

.slide {
    display: none;
    position: relative;
    height: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* PixiPainter slideshow - show full image */
#pixi-slideshow .slide img {
    object-fit: contain;
}

/* Slideshow Navigation */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.9);
    color: #ffffff;
    border: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.slide-btn svg {
    width: 18px;
    height: 18px;
}

.slide-btn:hover {
    background: rgba(41, 128, 185, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slide-btn.prev {
    left: 15px;
}

.slide-btn.next {
    right: 15px;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.indicator.active {
    background: var(--accent-col);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Project Content */
.project-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content p {
    color: var(--text-col);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Project Links */
.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.project-link {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.project-link.primary {
    background: var(--accent-col);
    color: #ffffff;
}

.project-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-link:not(.primary) {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-col);
    border: 2px solid var(--accent-col);
}

.project-link:not(.primary):hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Project Highlights and Features */
.project-highlights,
.project-features {
    margin-top: 2rem;
}

.project-highlights h4,
.project-features h4 {
    color: var(--text-col);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.project-highlights ul,
.project-features ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-col);
}

.project-highlights li,
.project-features li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 968px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .project-link {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .projects-hero h1 {
        font-size: 2.5rem;
    }

    .projects-subtitle {
        font-size: 1.1rem;
    }

    .projects-hero {
        padding: 4rem 1.5rem;
    }

    .project-section h2 {
        font-size: 2.25rem;
    }

    .project-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .project-content {
        padding: 1.5rem;
    }

    .slide img {
        height: 250px;
    }

    .slide-btn {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .projects-hero {
        padding: 2rem 1rem;
    }

    .project-content {
        padding: 1rem;
    }

    .slide img {
        height: 200px;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .slide-btn {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .slide-btn.prev {
        left: 5px;
    }

    .slide-btn.next {
        right: 5px;
    }
}
