    /* ====== BASE STYLES ====== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: #0f0f1e;
            color: #ffffff;
            line-height: 1.6;
            overflow-x: hidden;
        }

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

        /* ====== HEADER ====== */
        .nav-header {
            background: rgba(15, 15, 30, 0.95);
            backdrop-filter: blur(10px);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            padding: 20px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            color: #ffffff;
            text-decoration: none;
        }

        .logo span {
            color: #7c4dff;
        }

        .nav-links {
            display: flex;
            gap: 35px;
        }

        .nav-link {
            color: #b0b0d0;
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            transition: color 0.3s ease;
            padding: 8px 0;
            position: relative;
        }

        .nav-link:hover {
            color: #7c4dff;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: #7c4dff;
            transition: width 0.3s ease;
        }

        .nav-link:hover::after {
            width: 100%;
        }

        /* ====== HERO SECTION ====== */
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            padding-top: 100px;
            background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
            overflow: hidden;
        }

        .hero-content {
            width: 100%;
            text-align: center;
            padding: 60px 0;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .hero-title span {
            background: linear-gradient(45deg, #7c4dff, #5e35b1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-subtitle {
            font-size: 1.2rem;
            color: #b0b0d0;
            max-width: 600px;
            margin: 0 auto 50px;
            line-height: 1.6;
        }

        /* ====== SEARCH BAR ====== */
        .search-container {
            max-width: 600px;
            margin: 0 auto 40px;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 15px 50px 15px 20px;
            border-radius: 50px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.05);
            color: white;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: #7c4dff;
            background: rgba(255, 255, 255, 0.08);
        }

        .search-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #7c4dff;
            font-size: 1.2rem;
        }

        /* ====== CERTIFICATES SECTION ====== */
        .section-padding {
            padding: 100px 0;
        }

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

        .section-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 15px;
            color: #ffffff;
        }

        .section-subtitle {
            font-size: 1.1rem;
            color: #b0b0d0;
            max-width: 600px;
            margin: 0 auto;
        }

        /* ====== FILTERS ====== */
        .filters-container {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #b0b0d0;
            padding: 12px 25px;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
        }

        .filter-btn:hover {
            background: rgba(124, 77, 255, 0.1);
            border-color: rgba(124, 77, 255, 0.3);
            color: #ffffff;
            transform: translateY(-2px);
        }

        .filter-btn.active {
            background: #7c4dff;
            border-color: #7c4dff;
            color: white;
            box-shadow: 0 5px 20px rgba(124, 77, 255, 0.3);
        }

        .filter-count {
            background: rgba(0, 0, 0, 0.3);
            padding: 3px 8px;
            border-radius: 10px;
            font-size: 0.8rem;
            margin-left: 5px;
        }

        /* ====== CERTIFICATES GRID ====== */
        .certificates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .certificate-card {
            background: linear-gradient(145deg, #1a1a2e, #161625);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.4s ease;
            border: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .certificate-card:hover {
            transform: translateY(-10px);
            border-color: rgba(124, 77, 255, 0.3);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .certificate-image {
            width: 100%;
            height: 200px;
            overflow: hidden;
            position: relative;
        }

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

        .certificate-card:hover .certificate-image img {
            transform: scale(1.05);
        }

        .certificate-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 0%, rgba(15, 15, 30, 0.9) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .certificate-card:hover .certificate-overlay {
            opacity: 1;
        }

        .certificate-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(15, 15, 30, 0.9);
            color: #7c4dff;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .certificate-content {
            padding: 25px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .certificate-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: #ffffff;
            line-height: 1.4;
        }

        .certificate-issuer {
            color: #7c4dff;
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .certificate-description {
            color: #b0b0d0;
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 20px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
        }

        .certificate-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 15px;
            margin-top: auto;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .certificate-date,
        .certificate-duration {
            color: #8888aa;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .certificate-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .action-btn {
            flex: 1;
            padding: 10px;
            border-radius: 10px;
            border: none;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .view-btn {
            background: #7c4dff;
            color: white;
        }

        .download-btn {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .view-btn:hover {
            background: #6a3dc9;
        }

        .download-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* ====== NOTIFICATION ====== */
        .notification {
            position: fixed;
            top: 100px;
            right: 20px;
            padding: 15px 25px;
            border-radius: 10px;
            background: linear-gradient(145deg, #1a1a2e, #161625);
            border: 1px solid rgba(124, 77, 255, 0.3);
            color: white;
            z-index: 3000;
            opacity: 0;
            transform: translateX(400px);
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .notification.show {
            opacity: 1;
            transform: translateX(0);
        }

        .notification-success {
            border-color: #4caf50;
        }

        .notification-error {
            border-color: #f44336;
        }

        .notification-warning {
            border-color: #ff9800;
        }

        /* ====== RESULTS & PAGINATION ====== */
        .page-info {
            text-align: center;
            color: #8888aa;
            margin-bottom: 30px;
            font-size: 0.95rem;
        }

        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin-top: 50px;
            flex-wrap: wrap;
        }

        .pagination-btn {
            min-width: 45px;
            height: 45px;
            padding: 0 15px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.05);
            color: #b0b0d0;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 500;
        }

        .pagination-btn:hover:not(.disabled) {
            background: rgba(124, 77, 255, 0.1);
            border-color: rgba(124, 77, 255, 0.3);
            color: white;
        }

        .pagination-btn.active {
            background: #7c4dff;
            border-color: #7c4dff;
            color: white;
            box-shadow: 0 5px 15px rgba(124, 77, 255, 0.3);
        }

        .pagination-btn.disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        /* ====== CONTACT SECTION ====== */
        #contact {
            background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin-top: 40px;
        }

        .social-link {
            width: 55px;
            height: 55px;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #b0b0d0;
            font-size: 1.3rem;
            transition: all 0.3s ease;
            text-decoration: none;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .social-link:hover {
            background: #7c4dff;
            color: white;
            transform: translateY(-5px);
            border-color: #7c4dff;
            box-shadow: 0 10px 20px rgba(124, 77, 255, 0.2);
        }

        /* ====== FOOTER ====== */
        .footer {
            background: rgba(15, 15, 30, 0.95);
            padding: 40px 0;
            margin-top: 80px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .footer-content {
            text-align: center;
        }

        .footer-logo {
            margin-bottom: 18px;
            justify-content: center;
        }

        .footer-text {
            color: #8888aa;
            font-size: 0.9rem;
        }

        /* ====== MODAL ====== */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(5px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            padding: 20px;
        }

        .modal-content {
            background: linear-gradient(145deg, #1a1a2e, #161625);
            border-radius: 25px;
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            border: 1px solid rgba(124, 77, 255, 0.2);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            z-index: 10;
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            background: rgba(124, 77, 255, 0.5);
            transform: rotate(90deg);
        }

        .modal-header {
            padding: 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .modal-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: white;
        }

        .modal-subtitle {
            color: #b0b0d0;
            font-size: 1.1rem;
        }

        .modal-body {
            padding: 30px;
        }

        .modal-image {
            width: 100%;
            height: 300px;
            border-radius: 15px;
            overflow: hidden;
            margin-bottom: 30px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .modal-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .detail-group h4 {
            color: #7c4dff;
            font-size: 1.1rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .detail-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .detail-label {
            color: #8888aa;
            font-size: 0.9rem;
        }

        .detail-value {
            color: white;
            font-weight: 500;
            font-size: 0.9rem;
        }

        .modal-skills {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }

        .skill-tag {
            background: rgba(124, 77, 255, 0.1);
            color: #7c4dff;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .modal-description {
            color: #b0b0d0;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        /* ====== SCROLLBAR ====== */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
        }

        ::-webkit-scrollbar-thumb {
            background: #7c4dff;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #6a3dc9;
        }

        /* ====== RESPONSIVE ====== */
        @media (max-width: 992px) {
            .certificates-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
            
            .hero-title {
                font-size: 2.8rem;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .hero-title {
                font-size: 2.3rem;
            }
            
            .filters-container {
                gap: 10px;
            }
            
            .filter-btn {
                padding: 10px 20px;
                font-size: 0.9rem;
            }
            
            .certificates-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }
        }

        @media (max-width: 576px) {
            .hero-section {
                min-height: auto;
                padding: 80px 0 50px;
            }
            
            .section-padding {
                padding: 60px 0;
            }
            
            .modal-details {
                grid-template-columns: 1fr;
            }
            
            .modal-header, .modal-body {
                padding: 20px;
            }
            
            .modal-image {
                height: 200px;
            }
            
            .social-links {
                gap: 15px;
            }
            
            .social-link {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }
        }

        /* ====== ANIMATIONS ====== */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* ====== FLUID GLASS + LED ENHANCEMENTS ====== */
        :root {
            --bg-primary: #0f0f1e;
            --bg-secondary: #161625;
            --bg-glass: rgba(24, 24, 42, 0.62);
            --bg-glass-strong: rgba(24, 24, 42, 0.86);
            --text-primary: #ffffff;
            --text-muted: #b0b0d0;
            --text-soft: #8888aa;
            --accent: #7c4dff;
            --accent-strong: #9b75ff;
            --accent-deep: #5e35b1;
            --cyan-led: #00d5ff;
            --pink-led: #ff4fd8;
            --glass-line: rgba(255, 255, 255, 0.14);
            --glass-line-strong: rgba(124, 77, 255, 0.42);
            --motion-smooth: cubic-bezier(0.22, 1, 0.36, 1);
            --glow-soft: 0 0 18px rgba(124, 77, 255, 0.32);
            --glow-strong: 0 0 28px rgba(124, 77, 255, 0.52), 0 0 54px rgba(0, 213, 255, 0.16);
        }

        body {
            background:
                radial-gradient(circle at 15% 8%, rgba(124, 77, 255, 0.22), transparent 34vw),
                radial-gradient(circle at 85% 0%, rgba(0, 213, 255, 0.12), transparent 30vw),
                linear-gradient(135deg, var(--bg-primary) 0%, #111124 48%, #0a0a14 100%);
            min-height: 100vh;
            scroll-behavior: smooth;
            isolation: isolate;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 72px 72px;
            mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 82%);
        }

        body::after {
            content: '';
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background: linear-gradient(115deg, transparent 0 38%, rgba(124, 77, 255, 0.08) 46%, transparent 54% 100%);
            animation: ledSweep 14s var(--motion-smooth) infinite;
        }

        .nav-header {
            background: rgba(15, 15, 30, 0.72);
            backdrop-filter: blur(18px) saturate(135%);
            -webkit-backdrop-filter: blur(18px) saturate(135%);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            border-bottom-color: var(--glass-line);
            box-shadow: 0 8px 35px rgba(0, 0, 0, 0.22);
        }

        .logo {
            text-shadow: 0 0 20px rgba(124, 77, 255, 0.25);
            display: inline-flex;
            align-items: center;
            font-weight: 900;
            line-height: 1;
            letter-spacing: 0;
            transition: transform 0.35s var(--motion-smooth), text-shadow 0.35s var(--motion-smooth);
        }

        .logo .logo-image {
            display: block;
            width: clamp(40px, 5vw, 60px);
            height: auto;
            object-fit: contain;
            filter:
                drop-shadow(0 0 8px rgba(124, 77, 255, 0.82))
                drop-shadow(0 0 18px rgba(124, 77, 255, 0.38));
            transition: filter 0.35s var(--motion-smooth);
        }

        .logo .logo-mark,
        .logo .logo-slash,
        .search-icon {
            filter: drop-shadow(0 0 8px rgba(124, 77, 255, 0.72));
        }

        .logo .logo-mark,
        .logo .logo-slash {
            color: var(--accent-strong);
            text-shadow:
                0 0 8px rgba(124, 77, 255, 0.95),
                0 0 18px rgba(124, 77, 255, 0.55);
        }

        .logo .logo-mark {
            transform: translateY(-1px);
        }

        .logo .logo-slash {
            display: inline-block;
            margin: 0 -1px 0 2px;
            font-size: 1.32em;
            font-weight: 900;
            line-height: 0.78;
            transform: translateY(2px) skewX(-8deg);
        }

        .logo:hover {
            transform: translateY(-1px) scale(1.04);
            text-shadow: 0 0 26px rgba(124, 77, 255, 0.45);
        }

        .logo:hover .logo-image {
            filter:
                drop-shadow(0 0 10px rgba(124, 77, 255, 0.95))
                drop-shadow(0 0 26px rgba(124, 77, 255, 0.52));
        }

        .nav-link {
            transition: color 0.35s var(--motion-smooth), text-shadow 0.35s var(--motion-smooth);
        }

        .nav-link:hover {
            color: var(--accent-strong);
            text-shadow: 0 0 18px rgba(124, 77, 255, 0.58);
        }

        .nav-link::after {
            background: linear-gradient(90deg, var(--cyan-led), var(--accent), var(--pink-led));
            box-shadow: var(--glow-soft);
            transition: width 0.35s var(--motion-smooth);
        }

        /* ====== SHARED PORTFOLIO HEADER ====== */
        #main-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            border-bottom: 1px solid var(--glass-line);
            background: linear-gradient(180deg, rgba(10, 10, 26, 0.88), rgba(10, 10, 26, 0.68));
            backdrop-filter: blur(18px) saturate(135%);
            -webkit-backdrop-filter: blur(18px) saturate(135%);
            box-shadow: 0 8px 35px rgba(0, 0, 0, 0.22);
        }

        #main-header nav.container {
            max-width: 1400px;
        }

        .site-logo {
            display: inline-flex;
            align-items: center;
            line-height: 1;
            letter-spacing: 0;
            text-decoration: none;
            transition: transform 0.35s var(--motion-smooth), text-shadow 0.35s var(--motion-smooth);
        }

        .site-logo .logo-image {
            display: block;
            width: clamp(40px, 5vw, 60px);
            height: auto;
            object-fit: contain;
            filter:
                drop-shadow(0 0 8px rgba(124, 77, 255, 0.82))
                drop-shadow(0 0 18px rgba(124, 77, 255, 0.38));
            transition: filter 0.35s var(--motion-smooth);
        }

        .site-logo:hover {
            transform: translateY(-1px) scale(1.04);
        }

        .site-logo:hover .logo-image {
            filter:
                drop-shadow(0 0 10px rgba(124, 77, 255, 0.95))
                drop-shadow(0 0 26px rgba(124, 77, 255, 0.52));
        }

        #main-header .nav-link {
            color: #b0b0d0;
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            padding: 8px 0;
        }

        #main-header .nav-link:hover,
        #main-header .nav-link.active {
            color: #ffffff;
            text-shadow: 0 0 18px rgba(124, 77, 255, 0.58);
        }

        #main-header .nav-link.active::after {
            width: 100%;
        }

        #main-header .glass {
            background: rgba(15, 15, 30, 0.74);
            border: 1px solid rgba(255, 255, 255, 0.14);
            box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32), 0 0 22px rgba(124, 77, 255, 0.14);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }

        .btn {
            position: relative;
            overflow: hidden;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 28px;
            border-radius: 18px;
            border: 2px solid transparent;
            font-weight: 700;
            text-decoration: none;
            transition: transform 0.3s var(--motion-smooth), box-shadow 0.3s var(--motion-smooth);
        }

        .btn-primary {
            color: #ffffff;
            background: linear-gradient(135deg, var(--accent), var(--accent-deep));
            box-shadow: 0 6px 24px rgba(124, 77, 255, 0.35);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(124, 77, 255, 0.6), 0 0 0 2px rgba(124, 77, 255, 0.3);
        }

        .hero-section {
            background:
                radial-gradient(circle at 50% 35%, rgba(124, 77, 255, 0.22), transparent 30%),
                linear-gradient(135deg, rgba(15, 15, 30, 0.2) 0%, rgba(26, 26, 46, 0.78) 100%);
            isolation: isolate;
        }

        .hero-section::before,
        .hero-section::after {
            content: '';
            position: absolute;
            pointer-events: none;
            border-radius: 999px;
            filter: blur(12px);
            opacity: 0.7;
            z-index: 0;
        }

        .hero-section::before {
            width: 42vw;
            height: 42vw;
            min-width: 300px;
            min-height: 300px;
            top: 12%;
            left: -14%;
            background: radial-gradient(circle, rgba(124, 77, 255, 0.32), transparent 64%);
            animation: floatGlow 9s var(--motion-smooth) infinite alternate;
        }

        .hero-section::after {
            width: 34vw;
            height: 34vw;
            min-width: 260px;
            min-height: 260px;
            right: -10%;
            bottom: 5%;
            background: radial-gradient(circle, rgba(0, 213, 255, 0.18), transparent 66%);
            animation: floatGlow 11s var(--motion-smooth) infinite alternate-reverse;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero-title {
            text-wrap: balance;
        }

        .hero-title span {
            background: linear-gradient(110deg, var(--cyan-led), var(--accent-strong), var(--pink-led), var(--accent));
            background-size: 240% 240%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradientFlow 6s ease infinite;
            filter: drop-shadow(0 0 22px rgba(124, 77, 255, 0.42));
        }

        .search-container {
            isolation: isolate;
        }

        .search-container::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: 50px;
            background: linear-gradient(115deg, rgba(0, 213, 255, 0.5), rgba(124, 77, 255, 0.2), rgba(255, 79, 216, 0.34));
            opacity: 0;
            filter: blur(10px);
            transition: opacity 0.35s var(--motion-smooth);
            z-index: -1;
        }

        .search-container:focus-within::before {
            opacity: 0.9;
        }

        .search-input,
        .filter-btn,
        .pagination-btn,
        .social-link,
        .modal-content,
        .notification {
            backdrop-filter: blur(18px) saturate(128%);
            -webkit-backdrop-filter: blur(18px) saturate(128%);
        }

        .search-input {
            background: rgba(255, 255, 255, 0.07);
            border-color: var(--glass-line);
            transition: border-color 0.35s var(--motion-smooth), background 0.35s var(--motion-smooth), box-shadow 0.35s var(--motion-smooth);
        }

        .search-input:focus {
            border-color: var(--glass-line-strong);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), var(--glow-soft);
        }

        .section-title {
            text-shadow: 0 0 28px rgba(124, 77, 255, 0.16);
        }

        .filter-btn {
            position: relative;
            overflow: hidden;
            border-color: var(--glass-line);
            background: rgba(255, 255, 255, 0.065);
            transition: transform 0.35s var(--motion-smooth), border-color 0.35s var(--motion-smooth), background 0.35s var(--motion-smooth), box-shadow 0.35s var(--motion-smooth), color 0.35s var(--motion-smooth);
        }

        .filter-btn::before,
        .action-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
            transform: translateX(-120%);
            transition: transform 0.7s var(--motion-smooth);
        }

        .filter-btn:hover,
        .pagination-btn:hover:not(.disabled) {
            transform: translateY(-3px);
            border-color: var(--glass-line-strong);
            box-shadow: var(--glow-soft);
        }

        .filter-btn:hover::before,
        .action-btn:hover::before {
            transform: translateX(120%);
        }

        .filter-btn.active,
        .pagination-btn.active {
            background: linear-gradient(135deg, rgba(124, 77, 255, 0.92), rgba(94, 53, 177, 0.88));
            border-color: rgba(255, 255, 255, 0.28);
            box-shadow: var(--glow-strong);
        }

        .certificates-grid {
            perspective: 1100px;
        }

        .certificate-card {
            --tilt-x: 0deg;
            --tilt-y: 0deg;
            --spot-x: 50%;
            --spot-y: 0%;
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
                linear-gradient(145deg, rgba(26, 26, 46, 0.82), rgba(14, 14, 27, 0.9));
            border-radius: 18px;
            border-color: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(18px) saturate(128%);
            -webkit-backdrop-filter: blur(18px) saturate(128%);
            box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
            transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
            transition: transform 0.42s var(--motion-smooth), border-color 0.42s var(--motion-smooth), box-shadow 0.42s var(--motion-smooth), background 0.42s var(--motion-smooth);
            will-change: transform;
        }

        .certificate-card::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(135deg, rgba(0, 213, 255, 0.45), rgba(124, 77, 255, 0.08), rgba(255, 79, 216, 0.4));
            opacity: 0;
            -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            transition: opacity 0.42s var(--motion-smooth);
        }

        .certificate-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.18), transparent 30%),
                linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.08), transparent 65%);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.42s var(--motion-smooth);
        }

        .certificate-card:hover {
            transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-10px);
            border-color: rgba(124, 77, 255, 0.36);
            box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42), var(--glow-strong);
        }

        .certificate-card:hover::before,
        .certificate-card:hover::after {
            opacity: 1;
        }

        .certificate-image img {
            transition: transform 0.7s var(--motion-smooth), filter 0.7s var(--motion-smooth);
        }

        .certificate-card:hover .certificate-image img {
            transform: scale(1.08);
            filter: saturate(1.08) contrast(1.04);
        }

        .certificate-overlay {
            background:
                linear-gradient(to bottom, transparent 0%, rgba(15, 15, 30, 0.92) 100%),
                radial-gradient(circle at 50% 0%, rgba(124, 77, 255, 0.24), transparent 70%);
            transition: opacity 0.45s var(--motion-smooth);
        }

        .certificate-badge {
            background: rgba(15, 15, 30, 0.62);
            color: var(--accent-strong);
            border: 1px solid rgba(255, 255, 255, 0.14);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 0 16px rgba(124, 77, 255, 0.26);
        }

        .certificate-issuer,
        .detail-group h4,
        .skill-tag {
            color: var(--accent-strong);
        }

        .action-btn {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            transition: transform 0.32s var(--motion-smooth), box-shadow 0.32s var(--motion-smooth), background 0.32s var(--motion-smooth), border-color 0.32s var(--motion-smooth);
        }

        .view-btn {
            background: linear-gradient(135deg, var(--accent), var(--accent-deep));
            box-shadow: 0 0 18px rgba(124, 77, 255, 0.28);
        }

        .view-btn:hover {
            background: linear-gradient(135deg, var(--accent-strong), var(--accent));
        }

        .action-btn:hover {
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26), var(--glow-soft);
        }

        .modal-overlay {
            background: rgba(4, 4, 10, 0.76);
            backdrop-filter: blur(16px) saturate(130%);
            -webkit-backdrop-filter: blur(16px) saturate(130%);
            animation: modalOverlayIn 0.32s var(--motion-smooth);
        }

        .modal-content {
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
                linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(14, 14, 27, 0.96));
            border-radius: 20px;
            box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), var(--glow-soft);
            animation: modalContentIn 0.42s var(--motion-smooth);
        }

        .modal-close {
            transition: transform 0.34s var(--motion-smooth), background 0.34s var(--motion-smooth), box-shadow 0.34s var(--motion-smooth);
        }

        .modal-close:hover {
            box-shadow: var(--glow-soft);
        }

        .modal-image {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: inset 0 0 32px rgba(124, 77, 255, 0.08);
        }

        .skill-tag {
            border: 1px solid rgba(124, 77, 255, 0.18);
            transition: transform 0.28s var(--motion-smooth), box-shadow 0.28s var(--motion-smooth);
        }

        .skill-tag:hover {
            transform: translateY(-2px);
            box-shadow: var(--glow-soft);
        }

        .social-link:hover {
            background: linear-gradient(135deg, rgba(124, 77, 255, 0.9), rgba(0, 213, 255, 0.42));
            border-color: rgba(255, 255, 255, 0.26);
            box-shadow: var(--glow-strong);
        }

        .fade-in {
            opacity: 0;
            animation: fadeInUpFluid 0.72s var(--motion-smooth) forwards;
        }

        @keyframes fadeInUpFluid {
            from {
                opacity: 0;
                transform: translate3d(0, 24px, 0) scale(0.98);
                filter: blur(8px);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0) scale(1);
                filter: blur(0);
            }
        }

        @keyframes gradientFlow {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        @keyframes floatGlow {
            from { transform: translate3d(0, 0, 0) scale(1); }
            to { transform: translate3d(6%, -4%, 0) scale(1.08); }
        }

        @keyframes ledSweep {
            0%, 100% { transform: translateX(-18%); opacity: 0.25; }
            50% { transform: translateX(18%); opacity: 0.7; }
        }

        @keyframes modalOverlayIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes modalContentIn {
            from {
                opacity: 0;
                transform: translateY(24px) scale(0.96);
                filter: blur(8px);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: blur(0);
            }
        }

        @media (max-width: 768px) {
            .certificate-card {
                transform: none;
            }

            .certificate-card:hover {
                transform: translateY(-6px);
            }

            .filters-container {
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 8px;
                flex-wrap: nowrap;
                scroll-snap-type: x proximity;
            }

            .filter-btn {
                flex: 0 0 auto;
                scroll-snap-align: start;
            }
        }

        @media (max-width: 576px) {
            .hero-section::before,
            .hero-section::after {
                opacity: 0.42;
            }

            .certificate-actions {
                gap: 8px;
            }

            .action-btn {
                min-height: 44px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                scroll-behavior: auto !important;
                transition-duration: 0.001ms !important;
            }

            .certificate-card,
            .certificate-card:hover {
                transform: none !important;
            }
        }

        /* ====== MOBILE-FIRST LAYOUT REFINEMENTS ====== */
        img,
        embed {
            max-width: 100%;
        }

        @media (max-width: 767px) {
            .container {
                width: 100%;
                padding-left: 16px;
                padding-right: 16px;
            }

            #main-header nav.container {
                padding-top: 10px !important;
                padding-bottom: 10px !important;
            }

            #main-header nav.container > div:first-child {
                gap: 8px;
            }

            #main-header .site-logo .logo-image {
                width: 42px;
            }

            #main-header button[class*="md:hidden"] {
                width: 42px;
                height: 42px;
                display: inline-grid;
                flex: 0 0 auto;
                place-items: center;
                border: 1px solid rgba(124, 77, 255, 0.3);
                border-radius: 12px;
                background: rgba(124, 77, 255, 0.12);
            }

            #main-header .md\:hidden.mt-4.glass {
                max-height: calc(100vh - 82px);
                margin-top: 8px;
                padding: 8px 12px;
                overflow-y: auto;
                overscroll-behavior: contain;
            }

            #main-header .md\:hidden.mt-4.glass a {
                min-height: 42px;
                display: flex;
                align-items: center;
                border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            }

            #main-header .md\:hidden.mt-4.glass a:last-child {
                border-bottom: 0;
            }

            .hero-section {
                min-height: auto;
                padding: 116px 0 54px;
            }

            .hero-content {
                padding: 0;
            }

            .hero-title {
                font-size: clamp(2.1rem, 10vw, 3rem);
                line-height: 1.12;
            }

            .hero-subtitle {
                margin-bottom: 0;
                font-size: 1rem;
            }

            .section-padding {
                padding: 64px 0;
            }

            .section-header {
                margin-bottom: 36px;
            }

            .section-title {
                font-size: clamp(1.85rem, 8vw, 2.35rem);
                line-height: 1.18;
            }

            .section-subtitle {
                font-size: 1rem;
            }

            .search-container {
                margin-bottom: 24px;
            }

            .search-input {
                min-height: 48px;
                padding-left: 16px;
            }

            .filters-container {
                margin-right: -16px;
                margin-bottom: 24px;
                padding-right: 16px;
            }

            .filter-btn {
                min-height: 44px;
                padding: 9px 16px;
            }

            .certificates-grid {
                gap: 18px;
            }

            .certificate-image {
                height: 176px;
            }

            .certificate-content {
                padding: 18px;
            }

            .certificate-title {
                font-size: 1.15rem;
            }

            .certificate-meta {
                flex-wrap: wrap;
                gap: 8px 14px;
            }

            .certificate-actions {
                flex-wrap: wrap;
            }

            .action-btn {
                min-width: 116px;
            }

            .pagination-container {
                gap: 8px;
                margin-top: 32px;
            }

            .pagination-btn {
                min-width: 42px;
                height: 42px;
                padding: 0 11px;
            }

            .social-links {
                flex-wrap: wrap;
                gap: 12px;
                margin-top: 28px;
            }

            .social-link {
                width: 48px;
                height: 48px;
            }

            .footer {
                margin-top: 0;
                padding: 28px 0;
            }

            .modal-overlay {
                align-items: flex-end;
                padding: 8px;
            }

            .modal-content {
                width: 100%;
                max-height: calc(100dvh - 16px);
                border-radius: 18px 18px 12px 12px;
            }

            .modal-header,
            .modal-body {
                padding: 18px;
            }

            .modal-header {
                padding-right: 62px;
            }

            .modal-title {
                font-size: 1.35rem;
                overflow-wrap: anywhere;
            }

            .modal-subtitle {
                font-size: 0.95rem;
            }

            .modal-close {
                top: 14px;
                right: 14px;
            }

            .modal-image {
                height: 220px;
                margin-bottom: 20px;
            }

            .modal-image embed,
            .modal-image img {
                width: 100% !important;
            }

            .modal-details {
                gap: 18px;
                margin-bottom: 20px;
            }

            .detail-item {
                gap: 12px;
            }

            .detail-value {
                min-width: 0;
                text-align: right;
                overflow-wrap: anywhere;
            }

            .notification {
                top: 82px;
                right: 12px;
                left: 12px;
                padding: 12px 16px;
                transform: translateY(-20px);
            }

            .notification.show {
                transform: translateY(0);
            }
        }

        @media (max-width: 380px) {
            .certificate-actions .action-btn {
                min-width: 100%;
            }

            .modal-image {
                height: 180px;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding-left: 12px;
                padding-right: 12px;
            }

            .hero-section {
                padding-top: 104px;
            }

            .hero-title {
                font-size: clamp(1.9rem, 10vw, 2.5rem);
            }

            .section-padding {
                padding: 52px 0;
            }

            .filters-container {
                margin-right: -12px;
                padding-right: 12px;
            }

            .certificate-content {
                padding: 16px;
            }

            .certificate-actions {
                display: grid;
                grid-template-columns: 1fr 1fr;
            }

            .action-btn {
                min-width: 0;
                padding-inline: 8px;
            }

            .pagination-container .page-info {
                width: 100%;
                margin-bottom: 0;
            }

            .modal-overlay {
                padding: 4px;
            }

            .modal-content {
                max-height: calc(100dvh - 8px);
            }

            .modal-header,
            .modal-body {
                padding: 16px;
            }

            .modal-header {
                padding-right: 58px;
            }

            .modal-image {
                height: 174px;
            }
        }

        @media (max-width: 380px) {
            .certificate-actions {
                grid-template-columns: 1fr;
            }

            .certificate-actions .action-btn {
                min-width: 100%;
            }
        }
