:root {
    --dynamic-accent-color-hex: #e78970;
    --dynamic-accent-color-rgb: 231, 137, 112;
}

html {
    height: 100%;
}
body.linktree-active-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: "Comfortaa", sans-serif;
    background: #131313;
    color: #e0e0e0;
    overflow-y: auto;
    overflow-x: hidden;
}

@media (min-width: 769px) {
    html, body.linktree-active-page {
        overflow: hidden;
        height: 100vh;
        min-height: 100vh;
    }
    body.linktree-active-page {
        justify-content: center;
    }
    body.linktree-active-page::-webkit-scrollbar {
        display: none;
    }
    body.linktree-active-page {
        scrollbar-width: none;
    }
}

.linktree-page-container {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 0px;
}
 @media (min-width: 769px) {
    .linktree-page-container {
         margin-top: 0;
    }
 }

.linktree-profile-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    padding: 80px 30px 30px 30px;
    position: relative;
    text-align: center;
    color: white;
}

.linktree-pfp {
    width: 140px;
    height: 140px;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: pulsePfp 2s infinite ease-in-out;
    background-color: rgba(255,255,255,0.1);
}

@keyframes pulsePfp {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.4), 0 0 0px rgba(var(--dynamic-accent-color-rgb), 0.25);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 25px rgba(var(--dynamic-accent-color-rgb), 0.75);
    }
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.4), 0 0 0px rgba(var(--dynamic-accent-color-rgb), 0.25);
    }
}

.linktree-main-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 10px;
    text-align: left;
    align-items: baseline;
}

.linktree-introduction,
.linktree-info-section {
    flex: 1;
}

.linktree-introduction h2,
.linktree-info-section h3 {
    color: white;
    font-weight: 500;
    margin-top: 0;
    text-align: center;
}
.linktree-introduction h2 {
    font-size: 2.0em;
    margin-bottom: 20px;
}
.linktree-info-section h3 {
    font-size: 2.0em;
    margin-bottom: 25px;
}

.linktree-introduction-paragraphs p {
    color: rgb(200, 200, 200);
    font-size: 0.95em;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 1em;
}
.linktree-introduction-paragraphs p:last-child {
    margin-bottom: 0;
}

.basic-info-table {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px;
    width: 100%;
    margin: 0 auto;
}

.info-label, .info-value {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9em;
    color: white;
    display: flex;
    align-items: center;
    min-height: 2.2em;
    word-break: break-word;
}

.info-label {
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-weight: 500;
    justify-content: flex-start;
}

.info-value {
    border: 2px solid var(--dynamic-accent-color-hex);
    justify-content: flex-start;
}

.linktree-socials-card {
    margin-top: 35px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(35, 35, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    /* Default text color: white with a tint of theme color */
    color: color-mix(in srgb, var(--dynamic-accent-color-hex) 15%, #f0f5fa 85%);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.25s ease-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor; /* Icon inherits the link's color */
    display: block;
    transition: transform 0.2s ease;
}

.social-link .social-link-text {
    line-height: 1;
}

.social-link:hover {
    background: var(--dynamic-accent-color-hex);
    color: #ffffff; /* Text/icon color on hover */
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 15px rgba(var(--dynamic-accent-color-rgb), 0.4);
    border-color: transparent;
}


@media (max-width: 768px) {
    .linktree-page-container {
         margin-top: 60px;
    }
    .linktree-pfp {
        width: 100px;
        height: 100px;
        top: -50px;
    }
    .linktree-profile-card {
        padding: 60px 20px 20px 20px;
    }
    .linktree-main-content {
        flex-direction: column;
        gap: 35px;
        align-items: stretch;
    }
    .linktree-introduction,
    .linktree-info-section {
        text-align: center;
    }
    .linktree-introduction h2,
    .linktree-info-section h3 {
         font-size: 1.8em;
    }
    .linktree-introduction-paragraphs p {
        text-align: center;
        font-size: 0.9em;
    }
    .basic-info-table {
        grid-template-columns: 1fr;
        max-width: 100%;
         gap: 4px;
    }
    .info-label, .info-value {
        justify-content: center;
        font-size: 0.85em;
         padding: 6px 10px;
    }
    .info-label {
        margin-bottom: -2px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .info-value {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

@media (max-width: 480px) {
    body.linktree-active-page {
        padding: 40px 10px 20px 10px;
    }
     .linktree-page-container {
        margin-top: 50px;
    }
    .linktree-pfp {
        width: 80px;
        height: 80px;
        top: -40px;
    }
    .linktree-profile-card {
        padding: 50px 15px 15px 15px;
        border-radius: 20px;
    }
    .linktree-introduction h2,
    .linktree-info-section h3 {
        font-size: 1.6em;
    }
    .basic-info-table {
        gap: 4px;
    }
    .info-label, .info-value {
        padding: 6px 10px;
    }
    .linktree-socials-card {
        padding: 8px 15px;
        gap: 12px;
        border-radius: 15px;
    }
    .social-link {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}