/* Projects Section - Professional Design */

.ProjectsSection {
    padding: 120px 0;
    background: linear-gradient(135deg, #30465f 0%, #273a50 100%);
    position: relative;
    overflow: hidden;
}

.ProjectsSection::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.ProjectsSection .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}


/* Section Header */

.ProjectsSection .section-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.ProjectsSection .section-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ProjectsSection .title-line {
    display: block;
    position: relative;
    overflow: hidden;
}

.ProjectsSection .title-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    transition: width 1s ease;
}

.ProjectsSection .title-line.animate::after {
    width: 100%;
}

.ProjectsSection .title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    margin: 0 auto;
    border-radius: 2px;
    transform: scaleX(0);
    animation: expandWidth 1.5s ease 0.5s forwards;
}


/* Projects Grid */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 40px;
    position: relative;
}


/* Project Card */

.project-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease forwards;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.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:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.3);
}


/* Card Image */

.project-card .card-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.15);
}

.project-card .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.8), rgba(245, 87, 108, 0.8));
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.project-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0) rotate(180deg);
    transition: transform 0.6s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-icon svg {
    width: 40px;
    height: 40px;
    color: #f093fb;
}

.project-card:hover .project-icon {
    transform: scale(1) rotate(0deg);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.3);
    z-index: 2;
}


/* Card Content */

.project-card .card-content {
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 35px !important;
    position: relative;
    line-height: 1.2;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f093fb, #f5576c);
    border-radius: 2px;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #5a6c7d;
    margin-bottom: 30px;
    font-weight: 400;
}


/* Project Stats */

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat:hover {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #f093fb;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5a6c7d;
    transition: color 0.3s ease;
}

.stat:hover .stat-number,
.stat:hover .stat-label {
    color: #ffffff;
}


/* Project Features */

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-features .feature {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(240, 147, 251, 0.3);
}

.project-features .feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}


/* Animations */

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    to {
        transform: scaleX(1);
    }
}


/* Responsive Design */

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .ProjectsSection {
        padding: 80px 0;
    }
    .section-title {
        font-size: 3rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .card-content {
        padding: 30px;
    }
    .project-title {
        font-size: 2rem;
    }
    .project-description {
        font-size: 1rem;
    }
    .project-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .stat {
        padding: 12px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .card-content {
        padding: 25px;
    }
    .project-title {
        font-size: 1.8rem;
    }
    .project-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    .project-features {
        flex-direction: column;
    }
}


/* Loading Animation */

.project-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}


/* Parallax Effect */

.project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card .card-image {
    transform: translateZ(20px);
}

.project-card .card-content {
    transform: translateZ(10px);
}


/* Hover Effects Enhancement */

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1), rgba(245, 87, 108, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 25px;
}

.project-card:hover::before {
    opacity: 1;
}


/* Floating Elements */

.project-card::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.project-card:hover::after {
    opacity: 0.6;
    transform: scale(1.5);
}


/* Text Animation */

.project-title,
.project-description,
.stat,
.feature {
    /* opacity: 0; */
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-title,
.project-card:hover .project-description,
.project-card:hover .stat,
.project-card:hover .feature {
    opacity: 1;
    transform: translateY(0);
}

.stat:nth-child(1) {
    transition-delay: 0.1s;
}

.stat:nth-child(2) {
    transition-delay: 0.2s;
}

.stat:nth-child(3) {
    transition-delay: 0.3s;
}

.feature:nth-child(1) {
    transition-delay: 0.4s;
}

.feature:nth-child(2) {
    transition-delay: 0.5s;
}

.feature:nth-child(3) {
    transition-delay: 0.6s;
}


/* Category Colors */

.project-card[data-category="telecom"] .project-badge,
.project-card[data-category="telecom"] .feature {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.project-card[data-category="electrical"] .project-badge,
.project-card[data-category="electrical"] .feature {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.project-card[data-category="it"] .project-badge,
.project-card[data-category="it"] .feature {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.project-card[data-category="smart-city"] .project-badge,
.project-card[data-category="smart-city"] .feature {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}


/* Stats Animation */

.stat-number {
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}