:root {
    --primary-color: #8b81fa;
    --secondary-color: #f853a6;
    --tertiary-color: #6070fd;
    --quaternary-color: #5bbdff;
    --text-color: white;
    --background-blur: rgba(139, 129, 250, 0.1);
}

.hero2 {
    margin: 0 auto;
    max-width: 1200px;
    padding: 40px 20px;
}
.hero2-info {
    text-align: center;
    margin-bottom: 20px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 20px;
    justify-items: center;
}

.proj-card {
    background: rgba(139, 129, 250, 0.15);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    height: auto;
}

.proj-card:hover {
    transform: translateY(-8px);
    background: rgba(139, 129, 250, 0.25);
}

.proj-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.3s;
}
.proj-header h2:hover {
    color: #8b81fa;
}
.proj-body p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--tertiary-color), var(--quaternary-color), var(--primary-color));
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

.projects h2 {
    color: var(--primary-color);
}

.projects a {
    color: var(--primary-color);
}

.projects a:hover {
    animation: color-change 0.2s ease-in-out;
    color: var(--text-color);
}

@keyframes color-change {
    0% {
        color: var(--primary-color);
    }
    100% {
        color: var(--text-color);
    }
}

.hero2-info a {
    text-decoration: none;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .projects {
        grid-template-columns: 1fr;
    }
}
