/* Projects Page Specific Styles */

.projects-page {
    padding-top: 80px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-hero {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 100px 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-showcase {
    padding: 100px 0;
    background: var(--section-bg);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.projects-grid-detailed {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-detailed {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.project-detailed:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 30px 60px rgba(0, 212, 255, 0.2);
}

.project-detailed:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.project-detailed:nth-child(even) .project-showcase {
    order: 2;
}

.project-detailed:nth-child(even) .project-details {
    order: 1;
}

.project-showcase {
    background: #f8fafc;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-preview-large {
    width: 100%;
    height: 100%;
    max-height: 500px;
}

.browser-mockup-large {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.browser-header {
    height: 40px;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #e0e0e0;
}

.browser-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.browser-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close {
    background: #ff5f57;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #28ca42;
}

.browser-url {
    background: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    border: 1px solid #e0e0e0;
    flex: 1;
    max-width: 400px;
}

.browser-content-large {
    height: calc(100% - 40px);
    position: relative;
    overflow: hidden;
}

.browser-content-large iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(0.8);
    transform-origin: top left;
    width: 125%;
    height: 125%;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.project-detailed:hover .browser-content-large iframe {
    transform: scale(0.85);
}

.project-details {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.project-status {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.live {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge.featured {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.status-badge.government {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.status-badge.social {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.project-description {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.project-features {
    margin-bottom: 2rem;
}

.project-features h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-features ul {
    list-style: none;
    padding: 0;
}

.project-features li {
    color: #6b7280;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

.project-tech-stack {
    margin-bottom: 2rem;
}

.project-tech-stack h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.project-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
}

.metric-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0099cc, #007acc);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: white;
    transform: translateY(-2px);
}

.project-stats {
    padding: 100px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6b7280;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-showcase {
        padding: 80px 0;
    }

    .project-detailed {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .project-detailed:nth-child(even) .project-showcase,
    .project-detailed:nth-child(even) .project-details {
        order: initial;
    }

    .project-showcase {
        min-height: 400px;
        padding: 1.5rem;
    }

    .project-details {
        padding: 2.5rem;
    }

    .browser-content-large iframe {
        transform: scale(0.75);
        width: 133.33%;
        height: 133.33%;
    }
}

@media (max-width: 768px) {
    .projects-page {
        padding-top: 60px;
    }

    .page-hero {
        padding: 60px 0;
    }

    .page-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .page-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .projects-showcase {
        padding: 60px 0;
    }

    .projects-filter {
        margin-bottom: 3rem;
        padding: 0 20px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .projects-grid-detailed {
        gap: 3rem;
    }

    .project-detailed {
        margin: 0 20px;
        border-radius: 15px;
    }

    .project-showcase {
        min-height: 300px;
        padding: 1.5rem;
    }

    .project-details {
        padding: 2rem;
    }

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

    .project-header h2 {
        font-size: 1.6rem;
    }

    .project-description {
        font-size: 1rem;
    }

    .project-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .project-metrics {
        justify-content: space-around;
        gap: 1rem;
    }

    .metric {
        flex: 1;
        min-width: 80px;
    }

    .metric-value {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .stat-icon i {
        font-size: 1.5rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .browser-content-large iframe {
        transform: scale(0.65);
        width: 153.85%;
        height: 153.85%;
    }

    .tech-tags {
        gap: 0.4rem;
    }

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

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .projects-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .project-detailed {
        margin: 0 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-showcase {
        padding: 1rem;
        min-height: 250px;
    }

    .project-details {
        padding: 1.5rem;
    }

    .project-header h2 {
        font-size: 1.4rem;
    }

    .project-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .project-features li,
    .project-tech-stack h4,
    .project-features h4 {
        font-size: 0.9rem;
    }

    .project-metrics {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}
