:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --secondary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --website-gradient: linear-gradient(135deg, #3451ff 0%, #5865f2 100%);
    --youtube-gradient: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    --facebook-gradient: linear-gradient(135deg, #1877f2 0%, #0d5fd6 100%);
    --instagram-gradient: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 70%, #515bd4 100%);
    --anghami-gradient: linear-gradient(135deg, #6f4bff 0%, #a94fff 100%);
    --tiktok-gradient: linear-gradient(135deg, #000000 0%, #000000 50%, #ff0050 80%, #00f2ea 100%);
    --register-gradient: linear-gradient(135deg, #00a86b 0%, #007e51 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 30px 60px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
    width: 100%;
    position: relative;
}

html {
    scrollbar-gutter: stable;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-character {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.loader-character img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loader-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.linktree-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background: var(--primary-gradient);
    width: 100vw;
    box-sizing: border-box;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite linear;
}

.bg-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.bg-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation-delay: 5s;
}

.bg-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
        left: -100%;
    }

    100% {
        transform: translateX(100%);
        left: 100%;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(106, 13, 173, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(106, 13, 173, 0.6), 0 0 40px rgba(106, 13, 173, 0.4);
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotateIn {
    0% {
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }

    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

.linktree-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 40px 50px;
    text-align: center;
    max-width: 700px;
    width: 100%;
    box-shadow: var(--shadow-heavy);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.linktree-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 1s ease 0.5s both, gentleFloat 4s ease-in-out infinite 2s;
}

.linktree-logo img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    animation: rotateIn 1.2s ease 0.7s both, gentleRotate 6s ease-in-out infinite 3s;
}

.linktree-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: none;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease 1s both, gentleGlow 3s ease-in-out infinite 2s;
}

.linktree-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 1s ease 1.2s both, gentleSlide 5s ease-in-out infinite 3s;
}

.linktree-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.linktree-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 25px;
    background: var(--secondary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    animation: scaleIn 0.8s ease both;
    transform-origin: center;
}

.linktree-link--website {
    background: var(--website-gradient);
}

.linktree-link--youtube {
    background: var(--youtube-gradient);
}

.linktree-link--facebook {
    background: var(--facebook-gradient);
}

.linktree-link--instagram {
    background: var(--instagram-gradient);
}

.linktree-link--anghami {
    background: var(--anghami-gradient);
}

.linktree-link--tiktok {
    background: var(--tiktok-gradient);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.linktree-link--register {
    background: var(--register-gradient);
    padding: 20px 28px;
    font-size: 1.06rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.18), var(--shadow-medium);
}

.linktree-link--register:hover {
    box-shadow: 0 0 0 6px rgba(0, 168, 107, 0.24), var(--shadow-heavy);
}

.linktree-link--register:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(0, 168, 107, 0.28), var(--shadow-heavy);
}


.linktree-link:nth-child(1) {
    animation-delay: 1.5s;
}

.linktree-link:nth-child(2) {
    animation-delay: 1.6s;
}

.linktree-link:nth-child(3) {
    animation-delay: 1.7s;
}

.linktree-link:nth-child(4) {
    animation-delay: 1.8s;
}

.linktree-link:nth-child(5) {
    animation-delay: 1.9s;
}

.linktree-link:nth-child(6) {
    animation-delay: 2s;
}

.linktree-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.linktree-link:hover::before {
    left: 100%;
}

.linktree-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-medium);
    filter: saturate(1.08) brightness(1.03);
}

.linktree-link:active {
    transform: translateY(-1px) scale(0.98);
    filter: saturate(1.02) brightness(0.98);
}

.linktree-link i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.linktree-link:hover i {
    transform: rotate(360deg) scale(1.2);
}

.linktree-link img {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.linktree-link:hover img {
    transform: scale(1.3) rotate(15deg);
}

.linktree-link span {
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform 0.3s ease;
}

.linktree-link:hover span {
    transform: translateX(5px);
}

.linktree-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    animation: fadeInUp 1s ease 2s both;
}

.linktree-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatParticle 8s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 1s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 3s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 5s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 7s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 0.5s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }

    100% {
        transform: translateY(0vh) scale(0);
        opacity: 0;
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .linktree-container {
        padding: 15px;
    }

    .linktree-card {
        padding: 30px 25px;
        border-radius: 25px;
        max-width: 100%;
    }

    .linktree-logo {
        width: 100px;
        height: 100px;
    }

    .linktree-logo img {
        width: 100px;
        height: 100px;
    }

    .linktree-title {
        font-size: 2rem;
    }

    .linktree-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .linktree-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .linktree-link {
        padding: 16px 20px;
        font-size: 0.95rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .linktree-card {
        padding: 25px 20px;
    }

    .linktree-title {
        font-size: 1.8rem;
    }

    .linktree-subtitle {
        font-size: 0.9rem;
    }

    .linktree-logo img {
        width: 180px;
        height: auto;
        padding: 0;
    }
}

@media (min-width: 1200px) {
    .linktree-card {
        max-width: 800px;
        padding: 50px 60px;
    }

    .linktree-links {
        gap: 25px;
    }

    .linktree-link {
        padding: 20px 30px;
        font-size: 1.1rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: rgba(30, 30, 30, 0.95);
        --text-primary: #f7fafc;
        --text-secondary: #a0aec0;
    }

    .linktree-card {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.linktree-card {
    animation: slideUp 0.8s ease 0.3s forwards;
}

.linktree-links .linktree-link {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
}

.linktree-links .linktree-link:nth-child(1) {
    animation-delay: 0.5s;
}

.linktree-links .linktree-link:nth-child(2) {
    animation-delay: 0.6s;
}

.linktree-links .linktree-link:nth-child(3) {
    animation-delay: 0.7s;
}

.linktree-links .linktree-link:nth-child(4) {
    animation-delay: 0.8s;
}

.linktree-links .linktree-link:nth-child(5) {
    animation-delay: 0.9s;
}

.linktree-links .linktree-link:nth-child(6) {
    animation-delay: 1s;
}

.floating-character {
    position: fixed;
    width: 120px;
    height: 120px;
    z-index: 1;
    pointer-events: none;
    animation: floatCharacter 15s ease-in-out infinite;
}

.floating-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes floatCharacter {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.7;
    }

    25% {
        transform: translateY(-20px) translateX(-20px) rotate(5deg);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-40px) translateX(20px) rotate(0deg);
        opacity: 0.8;
    }

    75% {
        transform: translateY(-20px) translateX(10px) rotate(-5deg);
        opacity: 0.9;
    }
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes gentleRotate {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(2deg);
    }

    75% {
        transform: rotate(-2deg);
    }
}

@keyframes gentleGlow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.1);
    }
}

@keyframes gentleSlide {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(3px);
    }
}

.floating-character:nth-child(1) {
    top: 15%;
    left: 10%;
    width: 120px;
    height: 120px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.floating-character:nth-child(2) {
    top: 25%;
    right: 15%;
    width: 100px;
    height: 100px;
    animation-delay: 3s;
    animation-duration: 20s;
}

.floating-character:nth-child(3) {
    top: 60%;
    left: 5%;
    width: 80px;
    height: 80px;
    animation-delay: 6s;
    animation-duration: 16s;
}

.floating-character:nth-child(4) {
    top: 10%;
    right: 20%;
    width: 90px;
    height: 90px;
    animation-delay: 9s;
    animation-duration: 22s;
}

.floating-character:nth-child(5) {
    top: 5%;
    left: 20%;
    width: 70px;
    height: 70px;
    animation-delay: 12s;
    animation-duration: 19s;
}

.floating-character:nth-child(6) {
    top: 80%;
    left: 15%;
    width: 110px;
    height: 110px;
    animation-delay: 15s;
    animation-duration: 17s;
}

.floating-character:nth-child(7) {
    top: 10%;
    left: 1%;
    width: 85px;
    height: 85px;
    animation-delay: 2s;
    animation-duration: 21s;
}

.floating-character:nth-child(8) {
    top: 45%;
    right: 5%;
    width: 95px;
    height: 95px;
    animation-delay: 7s;
    animation-duration: 23s;
}

.floating-character:nth-child(9) {
    top: 85%;
    right: 5%;
    width: 75px;
    height: 75px;
    animation-delay: 13s;
    animation-duration: 18s;
}

.floating-character:nth-child(10) {
    top: 85%;
    left: 80%;
    width: 105px;
    height: 105px;
    animation-delay: 5s;
    animation-duration: 20s;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    border-radius: 10px;
    border: 2px solid rgba(241, 241, 241, 0.8);
    min-height: 40px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
}

::-webkit-scrollbar-corner {
    background: transparent;
}