/* Modern Certificate Gallery Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Header Styles */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-header h1 i {
    margin-right: 1rem;
    color: #ffd700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Grid Layout */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Certificate Card Styles */
.cert-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.cert-card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    transform: translateY(-10px) scale(1.02);
}

/* Image Container */
.cert-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(45deg, #f0f2f5, #e9ecef);
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-image img {
    transform: scale(1.1);
}

.cert-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.cert-overlay i {
    font-size: 1.5rem;
    color: #667eea;
}

/* Content Styles */
.cert-content {
    padding: 2rem;
}

.cert-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Details Section */
.cert-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-item i {
    color: #667eea;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.detail-item strong {
    color: #4a5568;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.detail-item p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cert-card {
        border-radius: 15px;
    }
    
    .cert-content {
        padding: 1.5rem;
    }
    
    .cert-content h3 {
        font-size: 1.3rem;
    }
    
    .cert-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .cert-content {
        padding: 1.2rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-item i {
        align-self: flex-start;
    }
}

/* Animation Classes */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

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

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .cert-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .cert-overlay {
        display: none;
    }
}