/* Modern Design Variables */
:root {
    --primary-bg: #0d1117;
    --surface-card: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #00e5ff;
    --accent-color-dark: #00b8d4;
    --accent-color-hover: #00c4e5;
    --primary-gradient: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    --shadow-color: rgba(0, 229, 255, 0.1);
}

/* Certificates Page Styles */
.cert-main-section {
    padding: 80px 0;
    background: linear-gradient(
        135deg,
        var(--primary-bg) 0%,
        rgba(17, 34, 64, 1) 100%
    );
}

/* Statistics Counter Styles */
.cert-stats {
    padding: 40px 0;
    background: rgba(17, 34, 64, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.stat-item {
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, var(--accent-color), #00e5ff);
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 25px 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Search Bar Styles */
.cert-search-container {
    margin-bottom: 30px;
    width: 100%;
}

.cert-search-input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cert-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.cert-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cert-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.cert-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--surface-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 3/2;
}

.cert-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 20px var(--shadow-color);
}

.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-item:hover img {
    transform: scale(1.1);
}

.cert-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cert-item:hover::after {
    opacity: 1;
}

/* Filter Panel Styles */
.cert-filter-panel {
    background: var(--surface-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
    position: sticky;
    top: 100px;
    min-width: 280px;
}

.cert-filter-section {
    margin-bottom: 25px;
    position: relative;
}

.cert-filter-section:last-child {
    margin-bottom: 0;
}

.cert-filter-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.cert-filter-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.cert-filter-section h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.cert-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cert-filter-option {
    flex: 0 0 calc(50% - 6px);
    padding: 10px 15px;
    background: var(--surface-hover);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-filter-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.cert-filter-option label {
    cursor: pointer;
    color: var(--text-secondary);
    order: 2;
    font-size: 0.95rem;
    white-space: nowrap;
}

.cert-filter-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    order: 1;
}

.cert-filter-option input[type="checkbox"]:checked {
    background: var(--accent-color);
}

.cert-filter-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: var(--primary-bg);
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cert-filter-option input[type="checkbox"]:hover {
    border-color: var(--accent-color-hover);
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.3);
}

.cert-select {
    width: 100%;
    padding: 8px 12px;
    background: var(--surface-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
}

.cert-select option {
    background: var(--primary-bg);
    color: var(--text-primary);
}

.cert-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.cert-filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cert-apply-btn, .cert-reset-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.cert-apply-btn {
    background: var(--accent-color);
    color: var(--primary-bg);
    flex: 2;
}

.cert-apply-btn:hover {
    background: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
}

.cert-reset-btn {
    background: var(--surface-hover);
    color: var(--text-primary);
    flex: 1;
}

.cert-reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Scrollbar Styles */
.cert-filter-panel::-webkit-scrollbar {
    width: 6px;
}

.cert-filter-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.cert-filter-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.cert-filter-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .header-wrapper {
        padding: 0 30px;
        gap: 40px;
    }
    
    .cert-counter {
        flex: 0 0 350px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .header-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .header-content {
        text-align: center;
        max-width: 100%;
    }

    .cert-counter {
        flex: 0 0 300px;
        height: 300px;
    }
    
    .cert-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .cert-filter-panel {
        position: relative;
        top: 0;
        margin-bottom: 30px;
        padding: 25px;
    }
    
    .cert-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .header-wrapper {
        padding: 0 20px;
    }
    
    .cert-counter {
        flex: 0 0 250px;
        height: 250px;
    }
    
    .counter-number {
        font-size: 3.5rem;
    }
    
    .counter-label {
        font-size: 1.2rem;
    }
    
    .cert-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Page Header Styles */
.page-header {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(17, 34, 64, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.header-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 25px auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.header-content {
    flex: 1;
    max-width: 700px;
}

.header-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.header-content .lead {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

/* Counter Styles */
.cert-counter {
    flex: 0 0 400px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-counter::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.cert-counter::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid rgba(0, 229, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.counter-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.counter-number {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.counter-label {
    font-size: 1.4rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

/* Certifications Page Styles */
.certifications-page {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(17, 34, 64, 0.98) 100%);
    min-height: calc(100vh - 300px);
    position: relative;
}

.certifications-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 10%, rgba(0, 229, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 229, 255, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.counter-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.counter-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.counter-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 992px) {
    .counter-number {
        font-size: 2.8rem;
    }
    
    .counter-label {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .counter-number {
        font-size: 2.2rem;
    }
    
    .counter-label {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
