/* ====================================================================
   PROJECTS DETAIL PAGE STYLES
   ==================================================================== */

/* Back to Home Button */
.back-to-home {
    position: relative;
    width: 90px;
    top: 8rem;
    left: 2rem;
    z-index: 999;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
    background: rgba(0, 238, 255, 0.1);
    border-color: var(--main-color);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 238, 255, 0.3);
}

.back-btn i {
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* Projects Detail Section */
.projects-detail {
    background: var(--bg-color);
    min-height: 100vh;
    padding: 12rem 9% 5rem;
    position: relative;
}

.projects-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.03), transparent);
    pointer-events: none;
}

.projects-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.projects-hero {
    margin-bottom: 8rem;
    text-align: center;
}

.projects-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
}

.hero-icon {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--main-color), #00d4ff);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 238, 255, 0.4);
    transition: all 0.3s ease;
}

.hero-icon:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 60px rgba(0, 238, 255, 0.6);
}

.hero-icon i {
    font-size: 8rem;
    color: var(--bg-color);
}

.hero-text {
    flex: 1;
    text-align: left;
    min-width: 400px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.title-highlight {
    color: var(--main-color);
    display: block;
}

.hero-subtitle {
    font-size: 2.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--main-color);
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-title i {
    font-size: 3rem;
    color: var(--main-color);
}

.section-description {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Section */
.filter-section {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(0, 238, 255, 0.05));
    border: 1px solid rgba(0, 238, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.search-group {
    grid-column: 1 / -1;
}

.filter-group,
.search-group {
    margin-bottom: 2rem;
}

.filter-group label,
.search-group label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 238, 255, 0.2);
    border-color: var(--main-color);
    color: var(--main-color);
    transform: translateY(-2px);
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 4rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 1.5rem;
    color: var(--text-color);
    font-size: 1.4rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.6rem;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Accessibility */
.filter-btn:focus,
.project-link:focus,
.btn:focus,
.back-btn:focus,
.modal-close:focus,
.slider-btn:focus {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .project-card {
        border: 2px solid var(--main-color);
    }
    
    .filter-btn,
    .project-link {
        border: 2px solid var(--main-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .project-card,
    .filter-btn,
    .project-link,
    .hero-icon,
    .category-icon,
    .stat-icon {
        animation: none;
        transition: none;
    }
    
    .project-card:hover {
        transform: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* Projects Grid Section */
.projects-grid-section {
    margin-bottom: 8rem;
}

/* Projects Actions */
.projects-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--second-bg-color), rgba(0, 238, 255, 0.05));
    border: 1px solid rgba(0, 238, 255, 0.1);
    border-radius: 1.5rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 0.8rem;
    color: var(--main-color);
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover,
.view-btn.active {
    background: rgba(0, 238, 255, 0.2);
    border-color: var(--main-color);
    transform: translateY(-2px);
}

.projects-tools {
    display: flex;
    gap: 1rem;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 1rem;
    color: var(--main-color);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: rgba(0, 238, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 238, 255, 0.2);
}

.tool-btn i {
    font-size: 1.4rem;
}

/* List View Styles */
.projects-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.projects-grid.list-view .project-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    height: auto;
}

.projects-grid.list-view .project-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 1.5rem 0 0 1.5rem;
}

.projects-grid.list-view .project-content {
    flex: 1;
    padding: 2rem;
}

.projects-grid.list-view .project-header {
    margin-bottom: 1rem;
}

.projects-grid.list-view .project-tech {
    margin-bottom: 1.5rem;
}

.projects-grid.list-view .project-links {
    margin-top: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(0, 238, 255, 0.05));
    border: 1px solid rgba(0, 238, 255, 0.1);
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: default;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 238, 255, 0.3);
    border-color: var(--main-color);
}

.project-card:active {
    transform: translateY(-8px) scale(1.01);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.project-card:hover .project-image {
    transform: scale(1.05);
    filter: brightness(1);
}

.project-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.project-status {
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-in-progress {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-featured {
    background: rgba(0, 238, 255, 0.2);
    color: var(--main-color);
    border: 1px solid rgba(0, 238, 255, 0.3);
}

.project-category {
    font-size: 1.2rem;
    color: var(--main-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 238, 255, 0.1);
    color: var(--main-color);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 1rem;
    color: var(--main-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(0, 238, 255, 0.2);
    transform: translateY(-2px);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 4rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, var(--main-color), #00d4ff);
    color: var(--bg-color);
    border: none;
    border-radius: 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.4);
}



/* Timeline Section */
.timeline-section {
    margin-bottom: 8rem;
}

.project-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.project-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--main-color), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 1rem;
    width: 16px;
    height: 16px;
    background: var(--main-color);
    border-radius: 50%;
    border: 4px solid var(--second-bg-color);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.5);
}

.timeline-content {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(0, 238, 255, 0.05));
    border: 1px solid rgba(0, 238, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--main-color);
    box-shadow: 0 10px 25px rgba(0, 238, 255, 0.2);
}

.timeline-date {
    font-size: 1.2rem;
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.timeline-description {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}


/* Statistics Section */
.statistics-section {
    margin-bottom: 8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(0, 238, 255, 0.05));
    border: 1px solid rgba(0, 238, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 238, 255, 0.2);
    border-color: var(--main-color);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 238, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: rgba(0, 238, 255, 0.2);
    transform: scale(1.1);
}

.stat-icon i {
    font-size: 3rem;
    color: var(--main-color);
}

.stat-content h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.stat-content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Enhanced Statistics Visualizations */
.stat-progress {
    width: 100%;
    height: 6px;
    background: rgba(0, 238, 255, 0.2);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--main-color), #00d4ff);
    border-radius: 3px;
    transition: width 2s ease;
    animation: progressFill 2s ease;
}

@keyframes progressFill {
    from { width: 0%; }
}

.stat-chart {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 30px;
    margin-top: 1rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--main-color), #00d4ff);
    border-radius: 2px;
    min-height: 4px;
    animation: chartGrow 1.5s ease;
}

@keyframes chartGrow {
    from { height: 0; }
}

.satisfaction-stars {
    display: flex;
    gap: 2px;
    margin-top: 1rem;
    font-size: 1.6rem;
    color: #ffd700;
}

.satisfaction-stars i {
    animation: starTwinkle 2s ease infinite;
}

.satisfaction-stars i:nth-child(1) { animation-delay: 0.1s; }
.satisfaction-stars i:nth-child(2) { animation-delay: 0.2s; }
.satisfaction-stars i:nth-child(3) { animation-delay: 0.3s; }
.satisfaction-stars i:nth-child(4) { animation-delay: 0.4s; }
.satisfaction-stars i:nth-child(5) { animation-delay: 0.5s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.trend-arrow {
    font-size: 1.8rem;
    color: #4caf50;
    font-weight: bold;
}

.trend-text {
    font-size: 1.2rem;
    color: #4caf50;
    font-weight: 500;
}


/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(0, 238, 255, 0.1));
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 2rem;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 3rem;
    border-radius: 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: transparent;
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border-color: var(--main-color);
}

.btn-secondary:hover {
    background: rgba(0, 238, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.2);
}

.btn i {
    font-size: 1.8rem;
}

/* Modal styles removed - now using centralized project-modal.css */



/* Loading Placeholder */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem;
    text-align: center;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 238, 255, 0.3);
    border-top: 4px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-placeholder p {
    color: var(--main-color);
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0;
}

/* Error Placeholder */
.error-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem;
    text-align: center;
    grid-column: 1 / -1;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 82, 82, 0.1);
    border-radius: 50%;
}

.error-icon i {
    font-size: 4rem;
    color: #ff5252;
}

.error-placeholder h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.error-placeholder p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--main-color), #00d4ff);
    color: var(--bg-color);
    border: none;
    border-radius: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 238, 255, 0.4);
}

/* No Projects Placeholder */
.no-projects-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem;
    text-align: center;
    grid-column: 1 / -1;
}

.no-projects-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 238, 255, 0.1);
    border-radius: 50%;
}

.no-projects-icon i {
    font-size: 4rem;
    color: var(--main-color);
}

.no-projects-placeholder h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.no-projects-placeholder p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Export and Share Modals */
.export-modal,
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-content,
.share-content {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(0, 238, 255, 0.05));
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 2rem;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 10002;
}

.export-content h3,
.share-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.export-content p,
.share-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    text-align: center;
}

.export-options {
    margin-bottom: 2rem;
}

.export-format,
.export-filters {
    margin-bottom: 1.5rem;
}

.export-format label,
.export-filters label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.export-format select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 0.8rem;
    color: var(--text-color);
    font-size: 1.4rem;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: normal;
    cursor: pointer;
}

.filter-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--main-color);
}

.export-actions,
.share-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 1rem;
    color: var(--main-color);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(0, 238, 255, 0.2);
    transform: translateY(-2px);
}

.share-btn i {
    font-size: 1.6rem;
}
@media (max-width: 1200px) {
    .projects-detail {
        padding: 12rem 5% 5rem;
    }
    
    .hero-text {
        min-width: 350px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .back-to-home {
        top: 7rem;
        left: 1rem;
    }
    
    .back-btn {
        padding: 0.8rem 1.2rem;
        font-size: 1.2rem;
    }
    
    .projects-detail {
        padding: 10rem 3% 3rem;
    }
    
    .projects-hero-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text {
        min-width: auto;
        text-align: center;
    }
    
    .hero-icon {
        width: 150px;
        height: 150px;
    }
    
    .hero-icon i {
        font-size: 6rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.6rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
    
    .filter-section {
        padding: 3rem 2rem;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-description {
        font-size: 1.4rem;
    }
    
    .cta-content h2 {
        font-size: 2.8rem;
    }
    
    .cta-content p {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 2rem;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 2rem;
    }
    
    .modal-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .featured-project-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Improve touch targets for mobile */
    .filter-btn,
    .project-link,
    .tech-tag {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for mobile */
    .project-content {
        padding: 2rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .projects-detail {
        padding: 9rem 2% 2rem;
    }
    
    .hero-icon {
        width: 120px;
        height: 120px;
    }
    
    .hero-icon i {
        font-size: 5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .filter-section {
        padding: 2rem 1.5rem;
    }
    
    .project-content {
        padding: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .cta-section {
        padding: 3rem 2rem;
    }
    
    .cta-content h2 {
        font-size: 2.4rem;
    }
    
    .project-timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-content {
        padding: 2rem;
    }
}
/* Fieldset and Legend styling for accessibility */
.filter-group fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.filter-group legend {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    padding: 0;
    display: block;
    width: 100%;
}
/* Back to Home Button - Complete Styling */
.back-to-home {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    animation: slideInLeft 0.8s ease-out;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    background: rgba(0, 238, 255, 0.1);
    color: var(--bg-color);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 238, 255, 0.3);
}

.back-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====================================================================
   Case Study Modal Styles
   ==================================================================== */

.modal-section {
    margin-bottom: 2.5rem;
}

.modal-section h3, 
.modal-section h4 {
    color: var(--main-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-section h3 {
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(0, 238, 255, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.modal-section p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

/* Grid Layout */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

/* Problem & Solution Boxes */
.problem-box, 
.solution-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-box:hover, 
.solution-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 238, 255, 0.3);
}

.problem-box h4 i, 
.solution-box h4 i {
    margin-right: 0.5rem;
}

.problem-box h4 {
    color: #ff6b6b; /* Soft Red for problem */
}

.solution-box h4 {
    color: #4ecdc4; /* Soft Teal for solution */
}

/* Role Badge */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.1), rgba(0, 238, 255, 0.05));
    border: 1px solid var(--main-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.2);
}

/* Contribution List */
.contribution-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.contribution-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.8rem;
    border-left: 3px solid var(--main-color);
}

.contribution-list li i {
    color: var(--main-color);
    margin-top: 0.3rem;
}

/* Product Demo Image */
.product-demo-image {
    width: 100%;
    border-radius: 1rem;
    border: 2px solid rgba(0, 238, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    transition: all 0.5s ease;
}

.product-demo-image:hover {
    transform: scale(1.02);
    border-color: var(--main-color);
    box-shadow: 0 15px 50px rgba(0, 238, 255, 0.2);
}

.demo-caption {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Outcome Box */
.outcome-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), transparent);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.outcome-box h3 {
    color: #4caf50;
    border-bottom: none;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.outcome-box p {
    font-size: 1.1rem;
    font-weight: 500;
}
