* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0f172a;
    font-family: Arial, sans-serif;
    color: #cbd5f5;
    min-height: 100vh;
}

/* ── Hero ── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 24px 48px;
    animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-align: center;
}

.tagline {
    margin-top: 16px;
    max-width: 560px;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #8b96b9;
}

.accent-line {
    margin-top: 24px;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #7e22ce, #22c55e);
}

/* ── Grid ── */
.projects {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Card ── */
.card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(126, 34, 206, 0.2);
}

.card-image {
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

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

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

.card-body {
    padding: 20px;
}

.card-body h3 {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.card-body p {
    color: #8b96b9;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Button ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg, #7e22ce, #9333ea);
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: scale(1.03);
}

.btn:active {
    transform: scale(0.97);
}

/* ── Animation ── */
@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero {
        padding: 40px 16px 32px;
    }
}
