/**
 * EDUCATION CERTIFICATES PAGE STYLES WITH COLORBLIND SUPPORT
 * Created: September 2, 2025
 * Updated: September 3, 2025 - Added Colorblind Support (Light/Dark Mode Removed)
 * Purpose: Dedicated CSS file for education-certificates.html page
 * Features: Glassmorphism design, responsive layout, certificate gallery styling, colorblind accessibility
 */

/* CSS Variables for Theme System */
:root {
    /* Light Theme (Default) */
    --bg-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    --bg-secondary: rgba(255, 255, 255, 0.1);
    --bg-card: rgba(255, 255, 255, 0.15);
    --text-primary: #333333;
    --text-secondary: #64748b;
    --text-accent: #0ea5e9;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-primary: #3b82f6;
    --accent-secondary: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Additional theme variables */
    --accent-border: rgba(59, 130, 246, 0.3);
    --accent-shadow: rgba(59, 130, 246, 0.2);
    --accent-bg: rgba(59, 130, 246, 0.1);
    --accent-active: rgba(59, 130, 246, 0.2);
    --accent-dark: #1d4ed8;
    --bg-light: #f8f9fa;
    --bg-muted: #e9ecef;
    --border-muted: #6c757d;
    
    /* Bubble Colors for Light Theme */
    --bubble-primary: rgba(59, 130, 246, 0.1);
    --bubble-secondary: rgba(99, 102, 241, 0.1);
    --bubble-tertiary: rgba(147, 197, 253, 0.1);
    
    /* Theme Toggle Button */
    --toggle-bg: rgba(255, 255, 255, 0.2);
    --toggle-border: rgba(255, 255, 255, 0.3);
    --toggle-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Colorblind Friendly Mode */
[data-colorblind="true"] {
    --accent-primary: #0066cc;
    --accent-secondary: #ff6600;
    --success-color: #009900;
    --warning-color: #ffcc00;
    --error-color: #cc0000;
    --text-accent: #0066cc;
    
    /* Colorblind-Friendly Bubble Colors */
    --bubble-primary: rgba(0, 102, 204, 0.1);
    --bubble-secondary: rgba(255, 102, 0, 0.1);
    --bubble-tertiary: rgba(0, 153, 0, 0.1);
}

/* Colorblind Toggle Button */
.colorblind-toggle {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--toggle-border);
    background: var(--toggle-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--toggle-shadow);
}

.colorblind-toggle {
    top: 20px;
    right: 20px;
}

.colorblind-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: var(--accent-primary);
    color: white;
}

.colorblind-toggle:active {
    transform: scale(0.95);
}

/* Responsive colorblind toggle */
@media (max-width: 768px) {
    .colorblind-toggle {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        top: 15px;
        right: 15px;
    }
}
@media (max-width: 768px) {
    .theme-toggle, .colorblind-toggle {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .theme-toggle {
        top: 15px;
        right: 15px;
    }
    
    .colorblind-toggle {
        top: 70px;
        right: 15px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Remove tap highlights globally */
    -webkit-tap-highlight-color: transparent;
}

/* Allow text selection for content elements */
p, li, span, h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent text selection for interactive elements */
button, a, .btn, .nav-link {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Add animated background bubbles with theme support */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, var(--bubble-primary) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--bubble-secondary) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, var(--bubble-tertiary) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
    transition: all 0.3s ease;
}

@keyframes backgroundFloat {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 
        0 20px 50px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    z-index: -1;
}

.header h1 {
    color: var(--text-accent);
    margin-bottom: 15px;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px var(--accent-shadow);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent-border);
    color: var(--text-accent);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-shadow);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.6s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.1);
}

/* REMOVE BLUE RECTANGULAR FOCUS HIGHLIGHTS */
.nav-link:focus {
    outline: none; /* Remove browser default blue rectangle */
    transform: translateY(-2px); /* Subtle visual feedback */
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); /* Enhanced glow instead */
    border-color: rgba(59, 130, 246, 0.7);
    background: rgba(59, 130, 246, 0.15);
}

/* TOUCH DEVICE SPECIFIC STYLING */
@media (pointer: coarse) {
    .nav-link {
        padding: 14px 28px; /* Larger touch targets for mobile */
        min-height: 48px; /* Ensure minimum touch target size */
        min-width: 48px;
    }
    
    .nav-link:focus {
        outline: none; /* Definitely no blue rectangles on touch devices */
        transform: translateY(-1px); /* Subtle feedback for touch */
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    }
    
    .nav-link:active {
        transform: translateY(1px); /* Pressed effect for touch feedback */
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        background: rgba(59, 130, 246, 0.2);
        transition: all 0.1s ease; /* Quick response for touch */
    }
}

/* SURFACE/TOUCH LAPTOP SPECIFIC OPTIMIZATIONS */
@media (pointer: fine) and (hover: hover) {
    /* For laptops with touchscreens like Surface */
    .nav-link:focus {
        outline: none;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }
    
    .nav-link:focus:not(:hover) {
        /* When focused but not hovered (keyboard/touch focus) */
        background: rgba(59, 130, 246, 0.08);
        border-color: rgba(59, 130, 246, 0.5);
    }
}

/* ACCESSIBILITY - KEYBOARD NAVIGATION SUPPORT */
.nav-link:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.8); /* Visible outline for keyboard users */
    outline-offset: 2px;
}

/* GENERAL BUTTON FOCUS REMOVAL FOR ALL BUTTONS */
button:focus,
.btn:focus,
a:focus {
    outline: none !important; /* Remove all default focus outlines */
    -webkit-tap-highlight-color: transparent; /* Remove webkit tap highlight */
    -webkit-touch-callout: none; /* Remove callout on iOS */
    -webkit-user-select: none; /* Prevent text selection */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.certificates-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.certificates-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
    z-index: -1;
}

.section-title {
    color: var(--text-accent);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    text-shadow: none;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certificate-card {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 
        0 15px 35px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(99, 102, 241, 0.02) 100%);
    z-index: -1;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px rgba(59, 130, 246, 0.25),
        0 0 0 1px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
}

.certificate-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.certificate-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin-right: 20px;
    box-shadow: 0 8px 20px var(--accent-shadow);
}

.certificate-title {
    flex: 1;
}

.certificate-title h3 {
    color: var(--text-accent);
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-shadow: none;
}

.certificate-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.certificate-details {
    margin-bottom: 20px;
}

.certificate-details ul {
    list-style: none;
    padding: 0;
}

.certificate-details li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.certificate-details li:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    min-width: 120px;
    flex-shrink: 0;
}

.value {
    color: var(--text-primary);
    text-align: right;
    flex-grow: 1;
    word-wrap: break-word;
    line-height: 1.5;
}

.certificate-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px var(--accent-shadow);
}

.btn-secondary {
    background: var(--accent-bg);
    color: var(--text-accent);
    border: 1px solid var(--accent-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ENHANCED BUTTON TOUCH RESPONSIVENESS */
@media (pointer: coarse) {
    .btn {
        padding: 12px 24px; /* Larger touch targets */
        min-height: 48px; /* Ensure minimum touch target size */
        font-size: 1rem; /* Slightly larger text for mobile */
    }
    
    .btn:active {
        transform: translateY(1px); /* Pressed effect */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.1s ease; /* Quick touch response */
    }
    
    .btn-primary:active {
        background: linear-gradient(135deg, var(--accent-secondary), var(--accent-dark)); /* Darker when pressed */
    }
    
    .btn-secondary:active {
        background: var(--accent-active); /* More opaque when pressed */
    }
}

.pdf-viewer-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pdf-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Optimized PDF Embed Styling */
.pdf-embed {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
    /* Performance optimizations */
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Mobile PDF Preview Styles */
.mobile-pdf-preview {
    display: none;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-muted) 100%);
    border-radius: 10px;
    border: 2px dashed var(--border-muted);
}

.pdf-preview-header h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.pdf-preview-header p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.pdf-preview-thumbnail {
    position: relative;
    display: inline-block;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.certificate-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(20%) contrast(90%);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.preview-text {
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Desktop PDF specific styles */
.desktop-pdf {
    display: block;
}

/* Mobile PDF button enhancement */
.mobile-pdf-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-pdf-btn:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-dark)) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-shadow);
}

.certificate-viewer {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.certificate-viewer h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.certificate-viewer .pdf-embed {
    height: 600px;
}

.certificate-actions-center {
    text-align: center;
    margin-top: 15px;
}

.download-section {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 
        0 20px 50px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.download-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certificate-card {
        padding: 20px;
    }
    
    /* Optimized PDF viewer styling - No media queries needed (handled by JS) */
    .mobile-pdf-notice {
        text-align: center;
        padding: 40px 20px;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1), 
            rgba(255, 255, 255, 0.05));
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin: 20px 0;
    }
    
    .mobile-pdf-notice h4 {
        color: #00d4ff;
        font-size: 1.3rem;
        margin-bottom: 15px;
        font-weight: 600;
    }
    
    .mobile-pdf-notice p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .mobile-pdf-notice .mobile-pdf-btn {
        display: inline-block;
        background: linear-gradient(135deg, #00d4ff, #0099cc);
        color: white;
        padding: 12px 25px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        border: none;
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    }
    
    .mobile-pdf-notice .mobile-pdf-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
        background: linear-gradient(135deg, #0099cc, #007799);
    }
    
    .mobile-pdf-fallback {
        margin-top: 20px;
        padding: 15px;
        background: rgba(255, 193, 7, 0.1);
        border-radius: 8px;
        border-left: 4px solid #ffc107;
    }
    
    .mobile-pdf-fallback p {
        margin-bottom: 10px;
        color: var(--text-secondary);
        font-size: 0.9rem;
    }
    
    .direct-pdf-link {
        display: inline-block;
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white !important;
        padding: 10px 20px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
    }
    
    .direct-pdf-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
        background: linear-gradient(135deg, #20c997, #17a2b8);
    }
    
    .pdf-open-link-container {
        text-align: center;
        margin-bottom: 15px;
        padding: 10px;
        background: rgba(59, 130, 246, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    .pdf-open-link {
        display: inline-block;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white !important;
        padding: 10px 20px;
        border-radius: 6px;
        text-decoration: none !important;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
    }
    
    .pdf-open-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
        background: linear-gradient(135deg, #1d4ed8, #1e40af);
        text-decoration: none !important;
    }
    
    .certificate-viewer .pdf-embed {
        height: 400px;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .pdf-embed {
        height: 400px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .certificates-section {
        padding: 25px;
    }
    
    .certificate-actions {
        flex-direction: column;
    }
    
    /* Mobile alignment adjustments */
    .certificate-details li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .value {
        text-align: left;
        padding-left: 15px;
        font-size: 0.95rem;
    }
    
    .pdf-embed {
        height: 500px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .nav-links,
    .certificate-actions,
    .download-section {
        display: none;
    }
    
    .certificates-section,
    .certificate-card {
        background: white;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Additional styles for elements with inline CSS */
.certificate-description {
    text-align: center;
    margin-bottom: 30px;
    color: #64748b;
    font-style: italic;
}

.gallery-description {
    text-align: center;
    margin-bottom: 30px;
    color: #64748b;
}

.gallery-item h3,
.gallery-item-title {
    text-align: center;
    margin-bottom: 20px;
    color: #1e40af;
}

.gallery-item .pdf-actions,
.pdf-actions {
    text-align: center;
    margin-top: 15px;
}

.professional-certs-description {
    text-align: center;
    margin-bottom: 30px;
    color: #64748b;
}

.professional-item h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1e40af;
}

.professional-item .cert-actions {
    text-align: center;
    margin-top: 15px;
}

.download-description {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.bulk-download-section {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.bulk-download-section p {
    margin-bottom: 15px;
    color: #475569;
    font-weight: 500;
}

.linkedin-link {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    margin-right: 10px;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: none;
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
