/* =============================================
   IdanAI Portfolio - Project-Specific Styles
   Only styles that extend or override main.css
   ============================================= */

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border-radius: 50px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    border-color: rgba(124, 58, 237, 0.4);
    color: var(--primary);
    background: #f5f3ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
    transform: translateY(-2px);
}

/* Fullscreen Button */
.fullscreen-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.fullscreen-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.15), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.fullscreen-btn:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(236, 72, 153, 0.05));
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.fullscreen-btn:active {
    transform: scale(0.98);
}

/* Fullscreen Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.fullscreen-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.fullscreen-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-fullscreen-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.close-fullscreen-btn:hover {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.fullscreen-content {
    flex: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.fullscreen-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Problem Highlight Box */
.problem-highlight {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(236, 72, 153, 0.06));
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.problem-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.problem-highlight .highlight-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.problem-highlight p {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.problem-highlight strong {
    color: var(--primary);
}

/* Section Description */
.section-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Demo CTA Box */
.demo-cta {
    text-align: center;
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(236, 72, 153, 0.04));
    border-radius: var(--radius-2xl);
    border: 2px dashed rgba(124, 58, 237, 0.25);
    position: relative;
    overflow: hidden;
}

.demo-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.demo-cta p {
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.demo-cta .btn {
    position: relative;
    z-index: 1;
}

/* Testimonial Section */
.testimonial-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f5f3ff 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.testimonial-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 50% 50% at 50% 100%, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.testimonial-card {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    padding: 56px;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 80px rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-quote {
    font-size: 7rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.25;
    position: absolute;
    top: 15px;
    right: 35px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.35rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: 3px solid white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.author-info {
    text-align: right;
}

.author-info strong {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Enhanced CTA Section - Project Page */
.cta-content {
    max-width: 750px;
    margin: 0 auto;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 36px 0;
    flex-wrap: wrap;
}

.cta-benefit {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.cta-buttons {
    margin-bottom: 28px;
}

.cta-note {
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 500;
}

/* More Projects Section */
.more-projects-section {
    padding: 100px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f5f3ff 100%);
    position: relative;
}

.more-projects-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.more-projects-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--text-primary);
}

/* Related Project Cards */
.related-project-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: block;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.related-project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.related-project-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.12);
}

.related-project-card:hover::before {
    opacity: 1;
}

.related-project-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.related-project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Values Section Enhancement */
.values-section .value-item {
    position: relative;
    overflow: hidden;
}

.values-section .value-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.values-section .value-item:hover::before {
    transform: scaleX(1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .fullscreen-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    /* .fullscreen-btn-text {
        display: none;
    } */

    .testimonial-card {
        padding: 36px 24px;
    }

    .testimonial-text {
        font-size: 1.15rem;
    }

    .testimonial-quote {
        font-size: 4rem;
        top: 10px;
        right: 15px;
    }

    .cta-benefits {
        flex-direction: column;
        gap: 12px;
    }

    .cta-benefit {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .more-projects-section {
        padding: 60px 24px;
    }

    .more-projects-section h2 {
        font-size: 1.6rem;
    }

    .problem-highlight {
        padding: 20px 24px;
    }

    .demo-cta {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .problem-highlight {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .author-info {
        text-align: center;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 12px;
    }

    .related-project-card {
        padding: 20px;
    }
}
