:root {
    --dark-bg: #0f172a;
    --dark-bg-light: #1e293b;
    --primary-blue: #6366f1;
    --orange: #f59e0b;
    --text-light: #c9d1d9;
    --text-muted: #a0a8b7;
    --shadow-glow: rgba(99, 102, 241, 0.5);
    --border-radius: 16px;
    --btn-bg: #1e293b;
    --btn-hover-bg: #334155;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black;
    color: var(--text-light);
}

.certifications-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.certifications-section .container {
    /* background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%); */
    background-color: #121b2f;
    background-size: 200% 200%;
    border-radius: var(--border-radius);
    padding: 32px 40px;
    box-shadow: 0 0 20px var(--shadow-glow);
     box-shadow: 0 0 20px #6366f1;
    animation: containerFlow 4s ease-in-out infinite;
}

@keyframes containerFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.certifications-section .label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-blue);
    background-color: var(--dark-bg-light);
    padding: 6px 14px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 8px var(--shadow-glow);
    width: fit-content;
    margin: 0 auto 16px auto;
}

.certifications-section .label i {
    font-size: 1.1rem;
}

.certifications-section h2 {
    font-weight: 400;
    font-size: 2.8rem;
    margin: 0 0 12px 0;
    text-align: center;
    color: var(--text-light);
}

.certifications-section h2 span {
    font-weight: 700;
    color: var(--primary-blue);
}

.certifications-section p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 32px auto;
    text-align: center;
}

.certifications-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.certification-card {
    background: linear-gradient(135deg, var(--dark-bg-light) 0%, #334155 50%, var(--dark-bg-light) 100%);
    background-size: 200% 200%;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(99, 102, 241, 0.1);
    width: 320px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease-in-out;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-play-state: paused;
    position: relative;
    overflow: hidden;
}

.certification-card:nth-child(1) { animation-delay: 0.15s; }
.certification-card:nth-child(2) { animation-delay: 0.3s; }
.certification-card:nth-child(3) { animation-delay: 0.45s; }

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

.certification-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px var(--shadow-glow);
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.certification-card:hover::before {
    left: 100%;
}

.cert-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.cert-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--shadow-glow);
    flex-shrink: 0;
}

.cert-icon.elite {
    background: linear-gradient(135deg, var(--orange) 0%, #f59e0b 100%);
}

.cert-icon i {
    font-size: 1.5rem;
    color: white;
}

.cert-title h3 {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-light);
}

.cert-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange) 0%, #f59e0b 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.cert-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cert-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cert-meta i {
    font-size: 0.8rem;
}

.cert-description {
    margin-bottom: 16px;
    flex-grow: 1;
}

.cert-description ul {
    margin: 0;
    padding-left: 16px;
}

.cert-description li {
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cert-description li:last-child {
    margin-bottom: 0;
}

.cert-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.tag {
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 8px;
    background-color: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 8px var(--shadow-glow);
}

.tag.java { color: #facc15; border-color: rgba(250, 204, 21, 0.3); }
.tag.mysql { color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.tag.dsa { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.tag.oop { color: #a78bfa; border-color: rgba(167, 139, 250, 0.3); }
.tag.collections { color: #34d399; border-color: rgba(52, 211, 153, 0.3); }
.tag.jdbc { color: #fb7185; border-color: rgba(251, 113, 133, 0.3); }
.tag.multithreading { color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }
.tag.nptel { color: #60a5fa; border-color: rgba(96, 165, 250, 0.3); }
.tag.html { color: #e34c26; border-color: rgba(227, 76, 38, 0.3); }
.tag.css { color: #264de4; border-color: rgba(38, 77, 228, 0.3); }
.tag.js { color: #facc15; border-color: rgba(250, 204, 21, 0.3); }
.tag.nodejs { color: #68a063; border-color: rgba(104, 160, 99, 0.3); }
.tag.mongodb { color: #4db33d; border-color: rgba(77, 179, 61, 0.3); }
.tag.react { color: #61dafb; border-color: rgba(97, 218, 251, 0.3); }
.tag.api { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.3); }

/* Responsive Design */
@media (max-width: 768px) {
    .certifications-section {
        padding: 20px 10px;
    }

    .certifications-section .container {
        padding: 24px 20px;
    }

    .certifications-section h2 {
        font-size: 2.2rem;
    }

    .certifications-container {
        gap: 16px;
    }

    .certification-card {
        width: 100%;
        max-width: 400px;
        padding: 20px;
    }

    .cert-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cert-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .certifications-section h2 {
        font-size: 1.8rem;
    }

    .certifications-section p {
        font-size: 0.9rem;
    }

    .certification-card {
        padding: 16px;
    }

    .cert-icon {
        width: 50px;
        height: 50px;
    }

    .cert-icon i {
        font-size: 1.2rem;
    }

    .cert-title h3 {
        font-size: 1.1rem;
    }

    .cert-description li {
        font-size: 0.85rem;
    }
}

/* Scroll animations */
.certification-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.certification-card.animate {
    opacity: 1;
    transform: translateY(0);
}
