/* Projects Page Specific Styles */

/* Projects Hero Section */
.projects-hero {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(84, 200, 237, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.projects-hero .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.projects-hero .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Filter Section */
.filter-section {
    padding: 40px 20px;
    background: var(--bg-dark-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
}

.filter-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-container::-webkit-scrollbar {
    height: 4px;
}

.filter-container::-webkit-scrollbar-track {
    background: rgba(84, 200, 237, 0.1);
}

.filter-container::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 2px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: rgba(84, 200, 237, 0.5);
    color: var(--primary-blue);
}

.filter-btn.active {
    background: var(--gradient-blue);
    color: white;
    border-color: transparent;
}

/* All Projects Section */
.all-projects {
    padding: 80px 20px;
    background: var(--bg-dark);
}

.projects-full-grid {
    display: grid;
    gap: 60px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Detailed Project Cards */
.project-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.project-detail-card.hidden {
    display: none;
}

.project-detail-card:hover {
    border-color: rgba(84, 200, 237, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.project-image-large {
    height: 400px;
    background: linear-gradient(135deg, rgba(84, 200, 237, 0.1) 0%, rgba(13, 17, 23, 0.9) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* Project Visualizations */
.dashboard-visualization {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 20px,
        rgba(84, 200, 237, 0.05) 20px,
        rgba(84, 200, 237, 0.05) 21px
    );
}

.automation-visualization {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(84, 237, 200, 0.2) 0%, transparent 50%);
    position: relative;
}

.automation-visualization::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary-blue);
    border-radius: 12px;
    animation: rotateSquare 10s linear infinite;
}

@keyframes rotateSquare {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.mediai-visualization {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(from 180deg at 50% 50%, rgba(84, 200, 237, 0.1) 0deg, transparent 120deg, rgba(84, 200, 237, 0.1) 240deg, transparent 360deg);
}

.cloud-visualization {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(84, 200, 237, 0.2) 0%, transparent 100%);
    position: relative;
}

.chatbot-visualization {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-radial-gradient(circle at center, transparent 0px, rgba(84, 200, 237, 0.1) 40px, transparent 80px);
}

/* Project Content */
.project-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
}

.project-full-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Project Metrics */
.project-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.metric {
    text-align: center;
    padding: 20px 10px;
    background: rgba(84, 200, 237, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(84, 200, 237, 0.2);
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Tech Stack */
.tech-stack h4 {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech {
    padding: 6px 12px;
    background: rgba(84, 200, 237, 0.1);
    border: 1px solid rgba(84, 200, 237, 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-light-gray);
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(84, 200, 237, 0.1) 0%, var(--bg-dark-secondary) 100%);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-detail-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .project-image-large {
        height: 250px;
    }
    
    .project-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 100px 20px 40px;
    }
    
    .filter-section {
        padding: 20px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .all-projects {
        padding: 40px 20px;
    }
    
    .projects-full-grid {
        gap: 30px;
    }
    
    .project-detail-card {
        padding: 20px;
    }
    
    .project-name {
        font-size: 1.5rem;
    }
    
    .project-full-description {
        font-size: 1rem;
    }
    
    .project-metrics {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .metric {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .cta-section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .projects-hero .hero-title {
        font-size: 2rem;
    }
    
    .projects-hero .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .project-image-large {
        height: 180px;
    }
    
    .tech-items {
        gap: 8px;
    }
    
    .tech {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}