:root {
    --primary: #1d1d1f;
    --primary-glow: rgba(29, 29, 31, 0.4);
    --bg: #ffffff;
    --card-bg: rgba(245, 245, 247, 1);
    --text: #000000;
    --text-muted: #1a1a1a;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

.header {
    text-align: center;
    padding: 6rem 1rem 4rem 1rem;
}

.header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary);
    letter-spacing: -1px;
}

.header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.card-footer {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-footer svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.card:hover .card-footer svg {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.8rem;
    }

    .container {
        padding: 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

.header-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-reels {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    background: var(--primary);
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(84, 159, 249, 0.3);
    transition: transform 0.3s;
}

.btn-reels:hover {
    transform: scale(1.05);
}