/* Certificates Page Styles - Matching about.css design system */
:root {
    --primary-color: #22c55e;
    --primary-dark: #16a34a;
    --secondary-color: #3b82f6;
    --accent-color: #1f2937;
    --dark-color: #111827;
    --light-color: #f8fafc;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { 
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #4b5563;
}

/* Header Styles */
.glass-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    padding: 0.75rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.category-btn {
    padding: 0.7rem 1.3rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.category-btn:hover {
    background: rgba(34, 197, 94, 0.1);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    margin-right: 12px;
}

.brand-names h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--dark-color);
}

.sub-brand {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.holographic-nav {
    transition: all 0.3s ease;
}

.holographic-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.holographic-nav a {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.holographic-nav a:hover,
.holographic-nav a.active {
    color: var(--primary-color);
    background: rgba(34, 197, 94, 0.1);
}

/* Certificates Page Specific Styles */
.certificates-page {
    margin-top: 70px;
}

.certificates-hero {
    text-align: center;
    padding: 5rem 5% 5rem;
    color: white;
    position: relative;
    background: 
        linear-gradient(135deg, 
            rgba(34, 197, 94, 0.85) 30%, 
            rgba(59, 130, 246, 0.85) 100%),
        url('https://images.unsplash.com/photo-1467232004584-a241de8bcf5d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.certificates-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 2;
}

.certificates-hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin: 0 auto;
    max-width: 700px;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    color: white;
}

.certificates-container {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(34, 197, 94, 0.1);
    cursor: pointer;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.certificate-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e5e7eb;
}

.certificate-content {
    padding: 1.5rem;
}

.certificate-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.certificate-issuer {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.certificate-date {
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
}

.modal-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-description {
    color: #4b5563;
    line-height: 1.6;
}

.modal-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer Styles */
.holographic-footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand .logo {
    width: 120px;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    color: #d1d5db;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.facebook { background: #1877f2; }
.instagram { background: #e4405f; }
.linkedin { background: #0077b5; }
.twitter { background: #1da1f2; }

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .glass-header {
        padding: 0.75rem 3%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .holographic-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--shadow);
        border-radius: 0 0 12px 12px;
    }

    .holographic-nav.active {
        display: block;
    }

    .holographic-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .holographic-nav li {
        margin: 0;
    }

    .holographic-nav a {
        display: block;
        padding: 0.75rem;
        border-radius: 8px;
        margin-bottom: 0.25rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
    }
    
    .certificates-hero {
        padding: 4rem 3% 2rem;
    }
    
    .certificates-container {
        padding: 2rem 3%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .social-icons {
        justify-content: left;
    }
}