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

body {
    overflow-x: hidden;
    background: #000000dc;
    color: white;
    font-family: 'Fira Code', monospace;
}

.main-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 15px;
    max-width: 1000px;
    margin: 120px auto 40px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-box {
    border: 1px solid #333;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.main-container .content-box {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s ease,
                background 0.2s ease;
}

.main-container .content-box.box-visible {
    opacity: 1;
    transform: translateY(0);
}

.content-box h2 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-box h2 i {
    color: #55c4d3;
}

.content-box ul {
    list-style: none;
    padding-left: 0;
}

.content-box ul li {
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

#Heding {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.hero-title {
    font-size: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    min-height: 3rem;
}

#typewriter-text {
    border-right: 4px solid #ff7b00;
    padding-right: 5px;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #ff7b00; }
}

#miyabi-gif {
    height: 2.5rem;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

#hero-subtext {
    opacity: 0;
    transition: opacity 1s ease-in;
    font-size: 1rem;
    color: #a0a0a0;
    line-height: 1.6;
}

/* Discord activity display */
.activity-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.activity-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.activity-name {
    font-size: 0.9rem;
    color: #eee;
    font-weight: 600;
}

.activity-sub {
    font-size: 0.8rem;
    color: #aaa;
    display: block;
}

.activity-sub.dim {
    color: #555;
}

.activity-empty {
    font-size: 0.85rem;
    color: #555;
}

/* Socials list */
.socials-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.socials-list li::before { content: none; }

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ccc;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, transform 0.15s ease;
}

.social-link:hover {
    transform: translateX(3px);
}

.social-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.social-platform {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.04em;
}

.social-handle {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
}

.social-arrow {
    font-size: 0.85rem;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: inherit;
}

.social-link:hover .social-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* Per-platform hover accents */
#social-github:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}
#social-youtube:hover {
    background: rgba(255,68,68,0.08);
    border-color: rgba(255,68,68,0.2);
    color: #ff4444;
}
#social-bmc:hover {
    background: rgba(255,213,0,0.07);
    border-color: rgba(255,213,0,0.2);
    color: #ffd500;
}

/* YouTube channel card */
.yt-box { padding: 16px 20px; }

.yt-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.yt-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yt-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yt-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.yt-channel {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.yt-desc {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.yt-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 7px 14px;
    background: #ff4444;
    color: white;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 20px;
    width: fit-content;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.yt-sub-btn:hover {
    background: #ff2222;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 68, 68, 0.35);
}

.yt-miyabi {
    height: 90px;
    flex-shrink: 0;
    margin-bottom: -16px;
}

/* Projects Grid & Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(85, 196, 211, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.project-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.project-card-title i {
    font-size: 1.15rem;
    color: #55c4d3;
}

.project-card-arrow {
    font-size: 0.85rem;
    color: #666;
    transition: color 0.2s ease, transform 0.2s ease;
}

.project-card:hover .project-card-arrow {
    color: #55c4d3;
    transform: translate(2px, -2px);
}

.project-card-desc {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.45;
    margin-bottom: 12px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #bbb;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-tag i {
    font-size: 0.78rem;
    color: #55c4d3;
}

.project-badge {
    height: 20px;
    border-radius: 4px;
    vertical-align: middle;
}

/* Datasets Section */
.dataset-summary {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 12px;
    line-height: 1.4;
}

.datasets-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.datasets-list li::before {
    content: none;
}

.dataset-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.dataset-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(85, 196, 211, 0.3);
    transform: translateX(3px);
}

.dataset-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dataset-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #eee;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dataset-title i {
    color: #55c4d3;
    font-size: 0.95rem;
}

.dataset-meta {
    font-size: 0.72rem;
    color: #777;
    font-family: 'Fira Code', monospace;
}

.dataset-dl-icon {
    font-size: 0.85rem;
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.dataset-item:hover .dataset-dl-icon {
    background: #55c4d3;
    color: #111;
}

/* Minecraft Server Box */
.mc-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.mc-header h2 {
    margin-bottom: 0;
}

.mc-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

.mc-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #888;
}

.mc-status-badge.online {
    color: #43b581;
    background: rgba(67, 181, 129, 0.12);
    border-color: rgba(67, 181, 129, 0.3);
}

.mc-status-badge.online .mc-status-dot {
    background: #43b581;
    box-shadow: 0 0 8px #43b581;
    animation: mc-pulse 2s infinite;
}

.mc-status-badge.offline {
    color: #f04747;
    background: rgba(240, 71, 71, 0.1);
    border-color: rgba(240, 71, 71, 0.25);
}

.mc-status-badge.offline .mc-status-dot {
    background: #f04747;
}

@keyframes mc-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(67, 181, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(67, 181, 129, 0); }
}

.mc-crossplay-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #43b581;
    background: rgba(67, 181, 129, 0.1);
    border: 1px solid rgba(67, 181, 129, 0.25);
    padding: 3px 8px;
    border-radius: 20px;
}

.mc-desc {
    font-size: 0.85rem;
    color: #a0a0a0;
    line-height: 1.5;
}

.mc-hosts-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.mc-hosts-label {
    color: #777;
    font-size: 0.78rem;
}

.mc-host-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 9px;
    border-radius: 6px;
    color: #eee;
    font-size: 0.78rem;
    font-weight: 500;
}

.mc-hosts-sep {
    color: #666;
    font-size: 0.78rem;
}

.mc-host-link {
    text-decoration: none;
    color: #eee;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mc-host-link i.bi-youtube {
    color: #ff4444;
}

.mc-host-arrow {
    font-size: 0.7rem;
    color: #777;
    transition: transform 0.15s ease, color 0.15s ease;
}

.mc-host-link:hover {
    background: rgba(255, 68, 68, 0.08);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.mc-host-link:hover .mc-host-arrow {
    color: #ff4444;
    transform: translate(1px, -1px);
}

.mc-ip-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    gap: 10px;
}

.mc-ip-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mc-ip-label {
    font-size: 0.7rem;
    color: #777;
    letter-spacing: 0.05em;
}

.mc-ip-code {
    font-size: 1.05rem;
    font-weight: 700;
    color: #55c4d3;
    letter-spacing: 0.02em;
}

.mc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mc-copy-btn:hover {
    background: #55c4d3;
    color: #111;
    border-color: #55c4d3;
}

.mc-copy-btn.copied {
    background: #43b581;
    color: #fff;
    border-color: #43b581;
}

.mc-versions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mc-version-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5px 10px;
    border-radius: 6px;
}

.mc-ver-label {
    color: #888;
}

.mc-ver-val {
    color: #fff;
    font-weight: 600;
}

.mc-whitelist-box {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #ff7b00;
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-whitelist-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff7b00;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mc-whitelist-steps {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mc-whitelist-steps li {
    font-size: 0.8rem;
    color: #bbb;
    line-height: 1.45;
}

.mc-whitelist-steps li strong {
    color: #fff;
}

.mc-link {
    color: #55c4d3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.mc-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Minecraft Sidebar Widget */
.mc-widget-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.mc-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-widget-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.mc-widget-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-grow: 1;
}

.mc-widget-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.mc-widget-sub {
    font-size: 0.72rem;
    color: #888;
}

.mc-widget-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

.mc-widget-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #888;
}

.mc-widget-status-badge.online {
    color: #43b581;
    background: rgba(67, 181, 129, 0.12);
    border-color: rgba(67, 181, 129, 0.3);
}

.mc-widget-status-badge.online .mc-widget-status-dot {
    background: #43b581;
    box-shadow: 0 0 6px #43b581;
    animation: mc-pulse 2s infinite;
}

.mc-widget-status-badge.offline {
    color: #f04747;
    background: rgba(240, 71, 71, 0.1);
    border-color: rgba(240, 71, 71, 0.25);
}

.mc-widget-status-badge.offline .mc-widget-status-dot {
    background: #f04747;
}

.mc-widget-ip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    gap: 6px;
}

.mc-widget-ip-label {
    font-size: 0.72rem;
    color: #777;
}

.mc-widget-ip-code {
    font-size: 0.8rem;
    color: #55c4d3;
    font-weight: 600;
    flex-grow: 1;
}

.mc-widget-copy-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 3px 6px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.mc-widget-copy-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.mc-widget-copy-btn.copied {
    color: #43b581;
}
