:root {
    --bg-color: #0b0714;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --accent-color: #ff007f;
    --accent-glow: rgba(255, 0, 127, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated Background Orbs */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: rgba(255, 0, 127, 0.35);
    /* Pink */
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: rgba(112, 0, 255, 0.3);
    /* Purple */
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: rgba(0, 212, 255, 0.25);
    /* Blue */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10vw, 5vh) scale(1.2);
    }

    100% {
        transform: translate(-5vw, 10vh) scale(0.9);
    }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 680px;
    padding: 60px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.profile-image-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #ff007f, #7000ff);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
    position: relative;
    transition: transform 0.3s ease;
}

.profile-image-container::after {
    content: '';
    position: absolute;
    top: -5px;
    bottom: -5px;
    left: -5px;
    right: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff007f, #7000ff);
    z-index: -1;
    filter: blur(15px);
    opacity: 0.6;
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.profile-image-container:hover {
    transform: scale(1.05);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #000;
}

.profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.profile-bio {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

/* Links Section */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 18px 56px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    /* Fully rounded like linktree/beacons */
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    overflow: hidden;
}

.premium-link {
    border-color: rgba(255, 0, 127, 0.3);
    background: rgba(255, 0, 127, 0.05);
}

.link-item:nth-child(1) {
    animation-delay: 0.1s;
}

.link-item:nth-child(2) {
    animation-delay: 0.15s;
}

.link-item:nth-child(3) {
    animation-delay: 0.2s;
}

.link-item:nth-child(4) {
    animation-delay: 0.25s;
}

.link-item:nth-child(5) {
    animation-delay: 0.3s;
}

.link-item i {
    position: absolute;
    left: 24px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.premium-link i {
    color: #ff007f;
}

.link-item:hover {
    transform: translateY(-3px) scale(1.02);
    background: var(--glass-hover);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.premium-link:hover {
    border-color: rgba(255, 0, 127, 0.6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 0, 127, 0.2);
}

.link-item:hover i {
    transform: scale(1.15);
}

.link-item:active {
    transform: translateY(0) scale(0.98);
}

/* Follow hover effect (JS will use this logic if we added it, simple gradient overlay) */
.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

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

.link-item span {
    position: relative;
    z-index: 1;
}

.link-item i {
    z-index: 1;
}

/* Social Section */
.social-section {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: 0.4s;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    color: var(--text-color);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--glass-hover);
    transform: translateY(-4px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Action Buttons */
.action-buttons {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: 0.5s;
}

.action-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
}

.action-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 40px 16px 30px;
    }

    .profile-image-container {
        width: 95px;
        height: 95px;
    }

    .link-item {
        padding: 16px 52px;
        font-size: 0.95rem;
    }

    .link-item i {
        left: 20px;
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        width: 70vw;
        height: 70vw;
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.image-modal.show {
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 50%;
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-radius 0.3s ease;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.image-modal.show .modal-content {
    transform: scale(1);
    border-radius: 20px;
    /* Morph from circle to slightly rounded square like IG */
}

/* On mobile keep it more square or adapt based on natural image aspect ratio */
@media (max-aspect-ratio: 1/1) {
    .image-modal.show .modal-content {
        width: 95%;
        border-radius: 12px;
    }
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
}

.profile-image-container {
    cursor: pointer;
}