@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #fdf2f8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bento {
    display: grid;
    grid-template-columns: 60px 200px 1fr 340px;
    grid-template-rows: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 950px;
    height: 95vh;
    max-height: 680px;
}

.sidebar {
    grid-row: 1 / -1;
    background: linear-gradient(180deg, #ec4899 0%, #be185d 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
    animation: fadeInLeft 0.6s ease-out forwards;
}

.logo {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 4px;
    margin-bottom: auto;
}

.sidebar-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-icon {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.sidebar-icon:hover {
    background: rgba(255, 255, 255, 0.28);
    color: white;
    transform: scale(1.1);
}

.sidebar-icon:hover img{
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.18))
            drop-shadow(0 0 6px rgba(0,0,0,0.12));
}

.sidebar-icon img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    image-rendering: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    }

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(236, 72, 153, 0.3);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #fdf2f8;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #9ca3af;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #ec4899;
    color: white;
    transform: rotate(90deg);
}

.dev-header {
    text-align: center;
    margin-bottom: 24px;
}

.dev-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.dev-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.dev-header span {
    font-size: 0.85rem;
    color: #ec4899;
    font-weight: 600;
}

.dev-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.dev-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fdf2f8;
    border-radius: 12px;
    transition: all 0.3s;
}

.dev-info-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

.dev-info-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ec4899, #be185d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.dev-info-item .text {
    flex: 1;
}

.dev-info-item .text small {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-info-item .text span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.dev-info-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dev-icon-img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp_edges;
}

.dev-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.dev-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fdf2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.dev-link:hover {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.dev-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #fce7f3;
}

.dev-footer p {
    font-size: 0.75rem;
    color: #9ca3af;
}

.dev-footer p span {
    color: #ec4899;
}

.hero {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
    border-radius: 24px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.hero::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -60px;
    right: -60px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: 30px;
    left: 30px;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.avatar-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #fff, #fce7f3, #fff);
    padding: 5px;
    flex-shrink: 0;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: none;
}

.avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    image-rendering: pixelated;
    image-rendering: crisp_edges;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.hero-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 6px;
}

.pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: white;
    margin-top: 12px;
    backdrop-filter: blur(4px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.profile {
    grid-column: 4;
    grid-row: 1 / 3;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 25px rgba(236, 72, 153, 0.15);
    animation: fadeInRight 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.stat-big {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-hint {
    font-size: 0.65rem;
    color: #181818;
    margin-top: 4px;
}

.livecount {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
    overflow: hidden;
}

.livecount iframe {
    display: block;
    width: 100%;
    height: 80px;
    border: 0;
}

.social-links {
    grid-column: 2;
    grid-row: 3 / 5;
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 4px 25px rgba(236, 72, 153, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.social-links h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links h3::before {
    content: "♡";
    color: #ec4899;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;

    background: transparent;

    border: 1px solid rgba(236, 72, 153, 0.18);
    max-width: 100%;
}

.social-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.16);
    border-color: rgba(236, 72, 153, 0.35);
}

.social-item .icon-circle {
    width: 36px;
    height: 36px;
    padding: 2px;
    box-sizing: border-box;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background: transparent;
    border: 1px solid rgba(236, 72, 153, 0.22);
}

.social-icon {
    width: 45px;
    height: 45px;
    display: block;
    object-fit: cover;
    border-radius: 999px;


    image-rendering: auto;
}

.social-item:hover .icon-circle {
    border-color: rgba(236, 72, 153, 0.55);
}

.social-item .social-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.social-item:hover .social-name {
    color: #ec4899;
}

.about {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 4px 25px rgba(236, 72, 153, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.about::before {
    content: "✨";
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    opacity: 0.3;
}

.about::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    opacity: 0.5;
}

.about h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.about h2::before {
    content: "♡";
    color: #ec4899;
    font-size: 1.2rem;
}

.about p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.8;
    flex: 1;
    position: relative;
    z-index: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.tag {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tag:hover {
    transform: translateY(-2px);
    border-color: #ec4899;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}

@media (max-width: 768px) {
    body {
        padding: 16px;
        align-items: flex-start;
    }
    
    .bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-height: none;
        height: auto;
        gap: 16px;
    }

    .sidebar {
        grid-row: auto;
        flex-direction: row;
        padding: 12px 20px;
        justify-content: space-between;
        border-radius: 16px;
    }

    .logo {
        writing-mode: horizontal-tb;
        margin-bottom: 0;
    }

    .sidebar-icons {
        flex-direction: row;
    }

    .hero {
        grid-column: 1;
        grid-row: auto;
        padding: 24px;
        border-radius: 20px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile {
        grid-column: 1;
        grid-row: auto;
        padding: 24px;
    }

    .social-links {
        grid-column: 1;
        grid-row: auto;
        padding: 24px;
    }

    .about {
        grid-column: 1;
        grid-row: auto;
        padding: 24px;
    }

    .modal {
        padding: 24px;
        margin: 16px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .avatar-ring {
        width: 100px;
        height: 100px;
    }
}
