/* Project-specific styles that extend the main style.css */

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: var(--space-2xl);
    transition: gap var(--transition-fast);
    font-weight: var(--standard-font-weight);
}

.back-link:hover {
    gap: var(--space-md);
    color: var(--color-primary-dark);
}

/* Project Hero */
.project-hero {
    background: linear-gradient(to bottom, var(--color-lavender), var(--color-white));
    text-align: center;
    /* border: 1px solid black; */
    padding: calc(80px + var(--space-2xl)) var(--space-lg) 0 var(--space-lg);
}

.back-link-container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 var(--space-2xl);
    text-align: left;
    margin-bottom: var(--space-xl);
}

.project-hero h1 {
    font-size: 3rem;
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
    font-family: "Outfit", sans-serif;
    font-weight: var(--outfit-font-weight);
}

.project-hero .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-3xl);
}

/* Project Overview */
.project-overview {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-4xl);
    align-items: start;
    /* border: 1px solid black; */
    padding: var(--space-2xl) 0;
}

.app-showcase {
    text-align: center;
    position: sticky;
    /* border: 1px red solid; */
}

.app-icon {
    width: 210px;
    height: 210px;
    margin: 0 auto var(--space-xl);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-weight: var(--standard-font-weight);;
    font-size: 16px;
    text-align: center;
    line-height: 1.2;
}

.app-store-badge {
    margin-top: var(--space-2xl);
    margin-bottom: 0px;
    padding: 0px;
}

.app-store-badge img {
    height: 60px;
    width: auto;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.app-store-badge img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.project-details h2 {
    font-size: 2rem;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: var(--space-2xl);
    font-family: "Outfit", sans-serif;
    font-weight: var(--outfit-font-weight);
}

.project-details h3 {
    font-size: 1.3rem;
    color: var(--color-text-dark);
    margin: var(--space-3xl) 0 var(--space-lg) 0;
    font-weight: var(--standard-font-weight);
}

.project-details p {
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.tech-tag {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    padding: var(--space-xs) var(--space-lg);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: var(--standard-font-weight);
}

/* Banner */

.banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
    margin-bottom: var(--space-xl);
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}


/* Screenshots */
.screenshots {
    /* border-top: 1px solid black; */
    background: var(--color-white);
    border-bottom: 3px solid var(--color-lavender-medium);
}

.screenshots h3 {
    font-size: 1.3rem;
    color: var(--color-text-dark);
    padding-bottom: 0;
    font-weight: var(--standard-font-weight);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.screenshot {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.screenshot:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Screenshots */
.mobile-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.mobile-screenshot {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
    max-width: 250px;
    margin: 0 auto;
}

.mobile-screenshot:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mobile-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Skeleton Loaders */
.skeleton-screenshot {
    min-height: 200px;
    border-radius: var(--radius-lg);
}

.skeleton-banner {
    min-height: 400px;
    border-radius: var(--radius-lg);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: var(--space-sm);
    transition: color var(--transition-fast);
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    padding: var(--space-lg) var(--space-md);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    z-index: 10001;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-primary);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}


/* How it Works */
.steps {
    background: var(--color-lavender-medium);
}

.steps-title {
    margin-bottom: var(--space-md);
}

.steps-list {
    background: transparent;
    border-radius: var(--radius-lg);
    padding: 0 var(--space-2xl);
    /* padding: var(--space-2xl); */
}

.steps-list h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
    font-size: 1.5rem;
    text-align: center;
    font-weight: var(--standard-font-weight);
}

.steps-list ol {
    list-style: none;
    counter-reset: step;
}

.steps-list li {
    counter-increment: step;
    padding-top: 3px;
    margin-bottom: var(--space-lg);
    padding-left: var(--space-3xl);
    position: relative;
    line-height: 1.6;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--outfit-font-weight);
    font-size: 0.9rem;
}

/* Feature Cards */
.features {
    background: var(--color-lavender-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.feature-card h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
    font-weight: var(--outfit-font-weight);
}

.feature-card p {
    color: var(--color-text-light);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}



/* Team Section */
.team {
    background: transparent;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
}

.team-member {
    text-align: center;
    padding: var(--space-lg);
    transition: transform var(--transition-fast);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-lg);
    object-fit: cover;
    border: 4px solid var(--color-primary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.team-member:hover .team-photo {
    border-color: var(--color-primary-dark);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.team-member h4 {
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
    font-weight: var(--outfit-font-weight);
}

.team-member .role {
    color: var(--color-text-dark);
    font-size: 0.95rem;
    font-weight: var(--standard-font-weight);
    margin: 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    text-align: center;
    padding: var(--space-4xl) 0;
}

.cta h3 {
    font-size: 2.2rem;
    font-family: "Outfit", sans-serif;
    font-weight: var(--outfit-font-weight);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
}

.cta .btn {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    font-weight: var(--standard-font-weight);
}

.cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--color-lavender-light);
}

.expandable-design {
    position: relative;
}

.design-preview {
    position: relative;
    overflow: hidden;
    max-height: 400px;
    transition: max-height 0.5s ease-in-out;
}

.design-preview.expanded {
    max-height: none;
}

.design-preview .screenshot {
    margin-bottom: 0;
}

.design-preview .screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.fadeout-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.fadeout-overlay.hidden {
    opacity: 0;
}

/* Mobile Responsive - Project-specific overrides */
@media (max-width: 768px) {
    .project-details h2 {
        margin-top: var(--space-3xl);
    }

    .back-link-container {
        padding: 0 var(--space-lg);
    }

    .project-overview {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .app-showcase {
        position: static;
        order: -1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .design-preview {
        max-height: 300px;
    }
    
    .fadeout-overlay {
        height: 80px;
    }
    
/* Mobile Responsive - Team */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-member h4 {
        font-size: 1rem;
    }
    
    .team-member .role {
        font-size: 0.85rem;
    }
}

    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }

    /* Mobile Responsive - Lightbox */
    .lightbox-prev {
        left: 10px;
        font-size: 1.5rem;
        padding: var(--space-md) var(--space-sm);
    }

    .lightbox-next {
        right: 10px;
        font-size: 1.5rem;
        padding: var(--space-md) var(--space-sm);
    }

    .lightbox-close {
        top: -40px;
        font-size: 1.5rem;
    }

    .lightbox-counter {
        bottom: 10px;
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-md);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}