/* ===== Projects Section ===== */
.projects {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    padding: 1.5rem 0 5rem 0;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-red) 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(20px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.project-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.5) 0%, rgba(17, 22, 41, 0.5) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(131, 56, 236, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.2), inset 0 0 20px rgba(0, 217, 255, 0.05);
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.9) 0%, rgba(17, 22, 41, 0.9) 100%);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card h3 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: auto;
    padding-bottom: 1.5rem;
}

.project-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.project-link:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background: linear-gradient(135deg, #ff006e, #8338ec);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 12px;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
    text-align: center;
    min-width: 150px;
    height: 48px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1;
}

.project-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8338ec, #00d9ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.4), 0 4px 8px rgba(131, 56, 236, 0.2);
}

.project-btn:hover::before {
    opacity: 1;
}

.project-btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.project-btn-group .project-btn {
    flex: 1;
}

.project-btn-group .project-btn:hover {
    box-shadow: 0 10px 25px rgba(255, 0, 110, 0.4);
}
