/* Modern Projects Styles */

/* Hero Section */
.projects-hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3b6fb7 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.projects-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tech-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23tech-grid)"/></svg>') repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Raleway', sans-serif;
}

.hero-subtitle {
    font-weight: 700;
    font-size: 3.2rem;
    display: block;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 2rem auto;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats-banner {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    display: inline-block;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Statistics Section */
.projects-stats-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.stat-monitor {
    perspective: 1000px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monitor-screen {
    width: 280px;
    height: 160px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 15px;
    padding: 20px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    border: 3px solid #3498db;
}

.monitor-screen::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    background: #34495e;
    border-radius: 5px;
}

.monitor-screen::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 15px;
    background: #2c3e50;
    border-radius: 0 0 10px 10px;
}

.stat-monitor:hover .monitor-screen {
    transform: rotateY(5deg) rotateX(5deg);
}

.monitor-content {
    text-align: center;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Projects Grid Section */
.projects-grid-section {
    background: white;
}

.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Project Cards */
.modern-project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-slide.active {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-project-card:hover .project-image {
    transform: scale(1.05);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image-container:hover .slider-controls {
    opacity: 1;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image-container:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: #3498db;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* Project Content */
.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.3;
}

.project-category {
    font-size: 0.85rem;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.project-meta {
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.meta-item i {
    color: #3498db;
    width: 12px;
}

.meta-label {
    color: #7f8c8d;
    font-weight: 500;
}

.meta-value {
    color: #2c3e50;
    font-weight: 400;
}

.project-description {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.project-footer {
    margin-top: auto;
}

.btn-details {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-details:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateX(5px);
}

.btn-details i {
    transition: transform 0.3s ease;
}

.btn-details:hover i {
    transform: translateX(3px);
}

/* Subcategories */
.subcategory-card {
    display: block;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.subcategory-image {
    height: 120px;
    overflow: hidden;
}

.subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subcategory-card:hover .subcategory-image img {
    transform: scale(1.05);
}

.subcategory-content {
    padding: 15px;
    text-align: center;
}

.subcategory-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Technologies Section */
.technologies-section {
    background: #f8f9fa;
}

.technologies-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tech-item {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 2.7rem;
    }

    .monitor-screen {
        width: 240px;
        height: 140px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 2.2rem;
    }

    .projects-hero-section {
        padding: 60px 0 40px;
    }

    .monitor-screen {
        width: 200px;
        height: 120px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

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

    .hero-subtitle {
        font-size: 2rem;
    }

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

    .projects-hero-section {
        padding: 50px 0 30px;
    }

    .projects-stats-section {
        padding: 40px 0;
    }

    .monitor-screen {
        width: 180px;
        height: 100px;
        padding: 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .technologies-grid {
        gap: 15px;
    }

    .tech-item {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.7rem;
    }

    .project-image-container {
        height: 200px;
    }

    .modern-project-card {
        margin-bottom: 20px;
    }

    .technologies-grid {
        flex-direction: column;
        align-items: center;
    }
}