/* ── CARD 5: HACKATHON ── */

#card-5 { background: transparent; }



.hackathon-main-card {

    max-width: 780px;

    background: var(--glass-bg);

    backdrop-filter: blur(12px);

    border-radius: 32px;

    padding: 52px 48px;

    position: relative;

    overflow: hidden;

    border: 1px solid transparent;

    background-clip: padding-box;

    cursor: pointer;

    transition: transform 0.4s ease, box-shadow 0.4s ease;

}



.hackathon-main-card:hover {

    transform: translateY(-12px) scale(1.02) !important;

    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.3);

}



.hackathon-main-card::before {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: 32px;

    padding: 1px;

    background: linear-gradient(135deg, var(--purple), var(--cyan));

    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);

    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask-composite: exclude;

    pointer-events: none;

}



.hack-badge {

    background: rgba(124,58,237,0.15);

    border: 1px solid var(--purple);

    color: var(--text-white);

    font-size: 12px;

    font-weight: 600;

    padding: 6px 14px;

    border-radius: 99px;

    display: inline-block;

    margin-bottom: 24px;

    position: relative;

    z-index: 1;

}



.hack-watermark {

    position: absolute;

    right: -20px;

    top: -30px;

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: 180px;

    font-weight: 800;

    color: var(--text-white);

    opacity: 0.04;

    pointer-events: none;

    z-index: 0;

    line-height: 1;

}



.hack-title   { font-size: 44px; margin-bottom: 12px; position: relative; z-index: 1; padding-right: 170px; }



.hack-desc {

    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 36px;

    position: relative;

    z-index: 1;

    padding-right: 170px;

}



.stats-row { display: flex; gap: 24px; position: relative; z-index: 1; }



.stat-box {

    background: rgba(255,255,255,0.05);

    border: 1px solid var(--glass-border);

    border-radius: 14px;

    padding: 18px 24px;

    flex: 1;

    text-align: center;

}



.stat-value { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 28px; color: var(--cyan); }

.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }



.hack-glow-circle {

    position: absolute;

    right: 48px; top: 52px;

    width: 120px; height: 120px;

    border-radius: 50%;

    border: 2px solid transparent;

    background: linear-gradient(var(--bg-deep), var(--bg-deep)) padding-box,

                linear-gradient(135deg, var(--purple), var(--cyan)) border-box;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 0 30px rgba(0, 229, 255,0.3);

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: 22px;

    font-weight: 800;

    color: var(--text-white);

    z-index: 1;

}



/* ── PREMIUM ACHIEVEMENTS & CERTS ── */

.achievement-featured {

    width: 100%;

}

.hackathon-card.active {

    background: rgba(124, 58, 237, 0.1);

    border: 1px solid rgba(124, 58, 237, 0.3);

    border-radius: 24px;

    padding: 35px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 0 20px rgba(124, 58, 237, 0.1);

    position: relative;

    overflow: hidden;

}

.hackathon-card.active::before {

    content: "";

    position: absolute;

    top: -50%;

    left: -50%;

    width: 200%;

    height: 200%;

    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, transparent 70%);

    pointer-events: none;

}

.hackathon-content { flex: 2; z-index: 1; }

.hackathon-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }

.status.pulse {

    background: rgba(34, 197, 94, 0.2);

    color: #22c55e;

    padding: 4px 12px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    animation: pulseGlow 2s infinite;

}

@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.hackathon-title { font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800; margin-bottom: 12px; }

.hackathon-desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; max-width: 600px; }

.hackathon-tags { display: flex; gap: 10px; flex-wrap: wrap; }

.htag { background: rgba(255,255,255,0.05); padding: 5px 12px; border-radius: 8px; font-size: 12px; color: white; border: 1px solid rgba(255,255,255,0.1); }

.view-btn { padding: 15px 30px; background: var(--purple); color: white; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 14px; transition: all 0.3s; box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3); white-space: nowrap; }

.view-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(124, 58, 237, 0.5); }



/* CERT GRID */

.section-subtitle { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: white; margin-bottom: 25px; }

.cert-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

}

.cert-card {

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 18px;

    padding: 18px 24px;

    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 20px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    cursor: pointer;

    position: relative;

    overflow: hidden;

}

.cert-card:hover {

    background: rgba(255, 255, 255, 0.06);

    border-color: rgba(0, 229, 255, 0.3);

    transform: translateX(10px);

}

.cert-icon { font-size: 28px; flex-shrink: 0; }

.cert-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }

.cert-name { font-size: 16px; font-weight: 700; color: white; margin: 0; }

.cert-org { font-size: 12px; color: var(--text-muted); font-weight: 500; margin: 0; }

.cert-status { font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; letter-spacing: 0.5px; white-space: nowrap; }

.cert-status.completed { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }

.cert-status.in-progress { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.2); }



@media (max-width: 992px) {

    .cert-grid { grid-template-columns: repeat(2, 1fr); }

    .hackathon-card.active { flex-direction: column; text-align: center; }

    .hackathon-tags { justify-content: center; }

}

@media (max-width: 600px) {

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

    .hackathon-title { font-size: 26px; }

    .category-title { font-size: 16px; }

}



/* ── 7. ACHIEVEMENT CARD — gold glow pulse + entrance ── */

.cs-card.achievement-card-anim {

    animation: achieveFlyIn 0.7s cubic-bezier(0.34,1.56,0.64,1) forwards;

}

@keyframes achieveFlyIn {

    from { transform: translateX(100px) scale(0.9); opacity: 0; }

    to   { transform: translateX(0)      scale(1);   opacity: 1; }

}



@keyframes goldPulse {

    0%, 100% { box-shadow: 0 0 20px rgba(255,215,0,0.25), 0 0 40px rgba(255,215,0,0.1); }

    50%       { box-shadow: 0 0 35px rgba(255,215,0,0.55), 0 0 70px rgba(255,165,0,0.25); }

}

.winner-card-glow {

    animation: goldPulse 2s ease-in-out infinite;

}



/* Gold particle burst */

.gold-particle {

    position: absolute;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #ffd700;

    pointer-events: none;

    z-index: 9999;

    opacity: 1;

}



/* ── FIX 3: Achievement Cards — 3D tilt base styles ── */

/* Winner card (#card-5 .cs-card) */

#card-5 .cs-card,

#card-5 .cert-card {

    transform-style: preserve-3d;

    will-change: transform;

    transition: transform 0.4s cubic-bezier(0.25,1,0.5,1), box-shadow 0.4s ease !important;

}



/* Gold border pulse on winner card hover */

@keyframes goldBorderPulse {

    0%, 100% { box-shadow: 0 0 20px rgba(255,215,0,0.25), 0 0 40px rgba(255,215,0,0.1), inset 0 0 0 1px rgba(255,215,0,0.2); }

    50%       { box-shadow: 0 0 40px rgba(255,215,0,0.65), 0 0 80px rgba(255,165,0,0.35), inset 0 0 0 1px rgba(255,215,0,0.6); }

}

.gold-pulse-hover {

    animation: goldBorderPulse 0.8s ease-in-out infinite !important;

}



