:root {
    --kategori-bg: #020b16;
    --kategori-card: rgba(7, 19, 33, 0.78);
    --kategori-stroke: rgba(255, 255, 255, 0.08);
    --kategori-text: #e6f4ff;
    --kategori-muted: rgba(230, 244, 255, 0.75);
    --kategori-accent: #3b82f6;
    --kategori-accent-alt: #2563eb;
    --kategori-gradient-start: #0a1628;
    --kategori-gradient-end: #1a2f4a;
    --kategori-shadow: 0 25px 55px rgba(4, 20, 40, 0.45);
    --kategori-radius: 0;
}

.kategori-hero {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.25), transparent),
        linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(26, 47, 74, 0.95));
    padding: 40px 0 24px;
    color: var(--kategori-text);
    position: relative;
    overflow: hidden;
}

.kategori-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/icon-hero.jpeg') center/cover;
    opacity: 0.08;
    mix-blend-mode: screen;
}

.kategori-hero .dp-container {
    position: relative;
    z-index: 1;
}

.kategori-hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.kategori-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    color: var(--kategori-accent);
}

.kategori-hero__content h1 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    margin: 16px 0;
    line-height: 1.2;
    font-weight: 700;
}

.kategori-hero__content p {
    color: var(--kategori-muted);
    max-width: 560px;
    line-height: 1.6;
}

.kategori-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.kategori-hero__meta article {
    border: 1px solid var(--kategori-stroke);
    padding: 16px;
    border-radius: var(--kategori-radius);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.kategori-hero__meta article:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.kategori-hero__meta span {
    font-size: 0.85rem;
    color: var(--kategori-muted);
    display: block;
    margin-bottom: 4px;
}

.kategori-hero__meta strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--kategori-text);
}

.kategori-hero__visual {
    text-align: center;
    position: relative;
    padding: 20px;
}

.kategori-hero__device {
    position: relative;
    width: 280px;
    height: 200px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.kategori-hero__screen {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.kategori-hero__nodes {
    position: absolute;
    inset: 0;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--kategori-accent);
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    animation: node-pulse 2s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes node-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; }
}

.kategori-hero__connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.kategori-hero__bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.bubble {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    animation: bubble-float var(--duration) ease-in-out infinite;
}

@keyframes bubble-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(20px, -30px) scale(1.1); opacity: 0.8; }
}

.kategori-main {
    background: var(--kategori-bg);
    color: var(--kategori-text);
    padding: 40px 0;
    min-height: 60vh;
}

.kategori-main__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.kategori-section {
    background: var(--kategori-card);
    border: 1px solid var(--kategori-stroke);
    padding: 32px;
    margin-bottom: 24px;
    border-radius: var(--kategori-radius);
    box-shadow: var(--kategori-shadow);
}

.kategori-section__header {
    margin-bottom: 24px;
}

.kategori-section__header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--kategori-text);
}

.kategori-section__header h2 i {
    color: var(--kategori-accent);
}

.kategori-section__header p {
    color: var(--kategori-muted);
    margin: 0;
}

.kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.kategori-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--kategori-stroke);
    border-radius: var(--kategori-radius);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kategori-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--category-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.kategori-card:hover {
    border-color: var(--category-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.kategori-card:hover::before {
    transform: scaleX(1);
}

.kategori-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--kategori-stroke);
}

.kategori-card__icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--category-color), var(--category-color));
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.kategori-card:hover .kategori-card__icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.kategori-card__title-wrapper {
    flex: 1;
}

.kategori-card__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--category-color);
    font-weight: 700;
    margin-bottom: 4px;
}

.kategori-card__title-wrapper h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--kategori-text);
    line-height: 1.3;
}

.kategori-card__links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.kategori-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--kategori-stroke);
    border-radius: 12px;
    text-decoration: none;
    color: var(--kategori-text);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kategori-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--category-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kategori-link:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--category-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.kategori-link:hover::before {
    opacity: 1;
}

.kategori-link__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--category-color);
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.kategori-link:hover .kategori-link__icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.15) rotate(5deg);
}

.kategori-link__label {
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1.3;
}

.kategori-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kategori-sidebar__card {
    background: var(--kategori-card);
    border: 1px solid var(--kategori-stroke);
    border-radius: var(--kategori-radius);
    box-shadow: var(--kategori-shadow);
    overflow: hidden;
}

.kategori-sidebar__card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid var(--kategori-stroke);
}

.kategori-sidebar__card-header i {
    color: var(--kategori-accent);
    font-size: 1.2rem;
}

.kategori-sidebar__card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--kategori-text);
}

.kategori-sidebar__stats {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kategori-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--kategori-stroke);
    border-radius: var(--kategori-radius);
    transition: all 0.3s ease;
}

.kategori-stat-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--kategori-accent);
    transform: translateX(4px);
}

.kategori-stat-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.kategori-stat-item__content {
    flex: 1;
}

.kategori-stat-item__content span {
    display: block;
    font-size: 0.85rem;
    color: var(--kategori-muted);
    margin-bottom: 4px;
}

.kategori-stat-item__content strong {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--kategori-text);
}

.kategori-sidebar__info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kategori-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--kategori-stroke);
    border-radius: var(--kategori-radius);
}

.kategori-info-item i {
    color: var(--kategori-accent);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.kategori-info-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--kategori-muted);
    margin-bottom: 4px;
}

.kategori-info-item strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--kategori-text);
}

.kategori-sidebar__tips {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kategori-tip {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--kategori-radius);
}

.kategori-tip i {
    color: var(--kategori-accent);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.kategori-tip p {
    margin: 0;
    color: var(--kategori-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .kategori-main__grid {
        grid-template-columns: 1fr;
    }

    .kategori-sidebar {
        position: static;
    }

    .kategori-hero__grid {
        grid-template-columns: 1fr;
    }

    .kategori-hero__visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .kategori-hero {
        padding: 32px 0 20px;
    }

    .kategori-hero__meta {
        grid-template-columns: 1fr;
    }

    .kategori-section {
        padding: 24px;
    }

    .kategori-grid {
        grid-template-columns: 1fr;
    }

    .kategori-card__links {
        grid-template-columns: repeat(2, 1fr);
    }
}

