/* Projects Section Redesign - Modern Card Layout */

/* Override parent container to allow full width */
.projects-section {
    max-width: 100% !important;
    padding: 60px 2rem !important;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.project-card-modern {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.project-card-modern:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card-modern:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card-modern:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(20, 157, 221, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(20, 157, 221, 0.4);
    box-shadow:
        0 15px 40px rgba(20, 157, 221, 0.25),
        0 0 50px rgba(20, 157, 221, 0.15);
}

.project-card-modern:hover::before {
    opacity: 1;
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.project-card-modern:hover .project-image-container img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #149ddd;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.project-card-modern:hover .project-info h3 {
    color: #1db4ff;
}

.project-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin-bottom: 1.2rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(20, 157, 221, 0.1);
    border: 1px solid rgba(20, 157, 221, 0.3);
    border-radius: 8px;
    color: #149ddd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-btn:hover {
    background: #149ddd;
    color: white;
    border-color: #149ddd;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(20, 157, 221, 0.3);
}

.project-btn::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.project-btn:hover::after {
    transform: translateX(3px);
}

/* Light theme compatibility */
.light-theme .project-card-modern {
    background: rgba(20, 157, 221, 0.05);
    border-color: rgba(20, 157, 221, 0.15);
}

.light-theme .project-card-modern:hover {
    background: rgba(20, 157, 221, 0.08);
    border-color: rgba(20, 157, 221, 0.4);
}

.light-theme .project-info p {
    color: #555;
}

.light-theme .project-btn {
    background: rgba(20, 157, 221, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .project-image-container {
        height: 160px;
    }

    .project-info {
        padding: 1.2rem;
    }
}