/* ===== CERTIFICATIONS PAGE STYLES ===== */
/* Hero Section */
.certs-hero {
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certs-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.certs-hero-content .main-name {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #0f0, #0ff, #f0f, #0ff, #0f0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
    font-weight: 800;
}

.certs-hero-content .role {
    font-size: 1.2rem;
    color: #0ff;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.certs-hero-content .role::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0f0, #0ff);
    animation: expandWidth 1.5s ease forwards;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 30px 0 20px;
}

.stat-item {
    text-align: center;
    background: rgba(0, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    min-width: 120px;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: default;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.08);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0ff;
    line-height: 1.2;
    transition: transform 0.2s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.stat-label {
    font-size: 0.85rem;
    color: #aaa;
}

.hero-decoration {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #0ff, #f0f);
    margin: 30px auto 0;
    animation: expandWidthDecoration 1.5s ease forwards;
}

/* Main Container */
.certs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px 80px;
}

/* Section Styles */
.certs-section {
    margin-bottom: 60px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 32px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.certs-section:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 255, 255, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header i {
    font-size: 2.5rem;
    color: #0ff;
    margin-bottom: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.section-header:hover i {
    transform: scale(1.1) rotate(3deg);
}

.section-header h2 {
    font-size: 1.8rem;
    color: #0ff;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #0ff, #f0f);
}

.section-header p {
    color: #888;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Certification Cards */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

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

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

.cert-card:hover {
    transform: translateY(-8px);
    border-color: #0ff;
    box-shadow: 0 10px 28px rgba(0, 255, 255, 0.2);
}

.cert-logo {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.cert-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #0ff;
    transition: all 0.3s ease;
}

.logo-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1.5px dashed rgba(0, 255, 255, 0.6);
    animation: rotateRing 12s linear infinite;
    pointer-events: none;
}

.cert-card:hover .cert-logo img {
    transform: scale(1.05);
    border-color: #f0f;
}

.cert-card:hover .logo-ring {
    border-color: #f0f;
    animation-duration: 3s;
}

.cert-info {
    flex: 1;
}

.cert-info h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.cert-card:hover .cert-info h3 {
    color: #0ff;
}

.cert-info p {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 8px;
}

.cert-date {
    font-size: 0.75rem;
    color: #0ff;
    font-family: monospace;
    display: inline-block;
    margin-right: 8px;
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.cert-badge {
    display: inline-block;
    background: rgba(0, 255, 255, 0.15);
    border: 1px solid #0ff;
    color: #0ff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.course-category {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 20px;
    border-left: 3px solid #0ff;
    transition: all 0.3s ease;
}

.course-category:hover {
    transform: translateX(5px);
    border-left-color: #f0f;
    background: rgba(0, 255, 255, 0.05);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.25);
}

.category-header i {
    font-size: 1.3rem;
    color: #0ff;
}

.category-header h3 {
    font-size: 1.2rem;
    color: #0ff;
    margin: 0;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.course-item:hover {
    background: rgba(0, 255, 255, 0.03);
    padding-left: 8px;
    border-bottom-color: rgba(0, 255, 255, 0.25);
}

.course-icon {
    width: 24px;
    color: #0ff;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.course-name {
    flex: 2;
    font-weight: 500;
    color: #fff;
    font-size: 0.88rem;
    line-height: 1.4;
}

.course-provider {
    flex: 1;
    color: #888;
    font-size: 0.75rem;
    text-align: right;
}

.course-year {
    color: #0ff;
    font-size: 0.7rem;
    font-family: monospace;
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    text-align: center;
    min-width: 45px;
}

/* Workshop Cards */
.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.workshop-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.workshop-card:hover {
    transform: translateY(-5px);
    border-color: #0ff;
    background: rgba(0, 255, 255, 0.05);
}

.workshop-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.workshop-card:hover .workshop-icon {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.05);
}

.workshop-icon i {
    font-size: 1.6rem;
    color: #0ff;
}

.workshop-info {
    flex: 1;
}

.workshop-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.workshop-card:hover .workshop-info h3 {
    color: #0ff;
}

.workshop-info p {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 8px;
}

.event-date {
    font-size: 0.7rem;
    color: #0ff;
    font-family: monospace;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

.event-date i {
    font-size: 0.65rem;
}

/* Animations */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes expandWidth {
    from { width: 0; opacity: 0; }
    to { width: 60px; opacity: 1; }
}

@keyframes expandWidthDecoration {
    from { width: 0; opacity: 0; }
    to { width: 100px; opacity: 1; }
}

/* ===== LIGHT MODE FIXES ===== */
body.light .certs-hero-content .main-name {
    background: linear-gradient(45deg, #1a1a1a, #0066ff, #ff00ff, #1a1a1a);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
}

body.light .certs-hero-content .role {
    color: #0066ff;
}

body.light .certs-section {
    background: rgba(245, 245, 245, 0.5);
    border-color: rgba(0, 102, 255, 0.15);
}

body.light .certs-section:hover {
    border-color: rgba(0, 102, 255, 0.3);
}

body.light .section-header i,
body.light .section-header h2 {
    color: #0066ff;
}

body.light .stat-item {
    background: rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.2);
}

body.light .stat-number {
    color: #0066ff;
}

body.light .stat-label {
    color: #555;
}

body.light .cert-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 102, 255, 0.2);
}

body.light .cert-info h3 {
    color: #1a1a1a;
}

body.light .cert-info p {
    color: #555;
}

body.light .cert-date {
    background: rgba(0, 102, 255, 0.1);
    color: #0066ff;
}

body.light .cert-badge {
    background: rgba(0, 102, 255, 0.1);
    border-color: #0066ff;
    color: #0066ff;
}

body.light .course-category {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: #0066ff;
}

body.light .category-header i,
body.light .category-header h3 {
    color: #0066ff;
}

body.light .course-name {
    color: #1a1a1a;
}

body.light .course-provider {
    color: #666;
}

body.light .course-year {
    background: rgba(0, 102, 255, 0.1);
    color: #0066ff;
}

body.light .workshop-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 102, 255, 0.2);
}

body.light .workshop-card:hover {
    border-color: #0066ff;
}

body.light .workshop-info h3 {
    color: #1a1a1a;
}

body.light .workshop-info p {
    color: #555;
}

body.light .workshop-icon {
    background: rgba(0, 102, 255, 0.1);
}

body.light .workshop-icon i {
    color: #0066ff;
}

body.light .event-date {
    background: rgba(0, 102, 255, 0.1);
    color: #0066ff;
}

body.light .back-to-top {
    background: rgba(0, 102, 255, 0.9);
    color: #ffffff;
}

body.light .back-to-top:hover {
    background: #0066ff;
}

/* ===== RESPONSIVE DESIGN (mobile friendly) ===== */
@media (max-width: 768px) {
    .certs-hero { padding: 80px 20px 40px; }
    .certs-hero-content .main-name { font-size: 2.5rem; }
    .certs-container { padding: 20px; }
    .certs-section { padding: 20px; }
    .cert-card { flex-direction: column; text-align: center; }
    .cert-logo { margin: 0 auto; }
    .courses-grid { grid-template-columns: 1fr; }
    .course-item { flex-wrap: wrap; gap: 5px; }
    .course-icon { width: 20px; font-size: 0.8rem; }
    .course-name { flex: 1 1 100%; margin-left: 30px; }
    .course-provider { text-align: left; margin-left: 30px; }
    .course-year { margin-left: 30px; align-self: flex-start; }
    .workshop-card { flex-direction: column; text-align: center; }
    .workshop-icon { margin-bottom: 10px; }
    .event-date { display: inline-flex; justify-content: center; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 1rem; }
}

@media (max-width: 600px) {
    .certs-hero { padding: 70px 15px 30px; }
    .certs-hero-content .main-name { font-size: 2rem; }
    .certs-hero-content .role { font-size: 0.9rem; }
    .stats-container { gap: 12px; margin: 20px 0; }
    .stat-item { padding: 10px 12px; min-width: 90px; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.7rem; }
    .certs-container { padding: 15px; }
    .certs-section { padding: 20px 15px; margin-bottom: 40px; }
    .section-header h2 { font-size: 1.4rem; }
    .section-header p { font-size: 0.8rem; }
    .cert-card { padding: 18px; gap: 15px; }
    .cert-logo { width: 70px; height: 70px; }
    .cert-info h3 { font-size: 1rem; }
    .courses-grid { gap: 20px; }
    .course-category { padding: 15px; }
    .course-item { gap: 6px; }
    .course-icon { width: 22px; font-size: 0.85rem; }
    .course-name { margin-left: 28px; font-size: 0.85rem; }
    .course-provider { margin-left: 28px; font-size: 0.7rem; }
    .course-year { margin-left: 28px; font-size: 0.65rem; }
    .workshop-grid { gap: 15px; }
    .workshop-card { padding: 15px; }
    .workshop-icon { width: 50px; height: 50px; }
    .workshop-icon i { font-size: 1.3rem; }
    .workshop-info h3 { font-size: 0.9rem; }
    .workshop-info p { font-size: 0.75rem; }
    .event-date { font-size: 0.65rem; padding: 2px 8px; }
    .back-to-top { bottom: 20px; right: 15px; width: 38px; height: 38px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .certs-hero-content .main-name { font-size: 1.8rem; }
    .stats-container { gap: 8px; }
    .stat-item { padding: 8px 10px; min-width: 80px; }
    .stat-number { font-size: 1.3rem; }
    .stat-label { font-size: 0.65rem; white-space: nowrap; }
    .cert-card { padding: 15px; }
    .cert-logo { width: 60px; height: 60px; }
    .cert-info h3 { font-size: 0.95rem; }
}

@media (max-width: 380px) {
    .certs-hero-content .main-name { font-size: 1.7rem; }
    .stat-item { padding: 6px 8px; min-width: 70px; }
    .stat-number { font-size: 1.2rem; }
    .stat-label { font-size: 0.6rem; }
    .cert-card { padding: 12px; }
    .cert-logo { width: 55px; height: 55px; }
    .cert-badge { font-size: 0.6rem; }
    .category-header h3 { font-size: 1rem; }
    .course-name { font-size: 0.8rem; }
}