* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

:root {
    --primary-color: #0c0e22;
    --accent-color: #4169e1;
    --accent-glow: rgba(65, 105, 225, 0.5);
    --accent-gradient: linear-gradient(135deg, #4169e1, #9370db);
    --text-light: #f0f0ff;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.05);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-10px);
    }
    100% {
        transform: translatey(0px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #0c0e22, #152147, #1e3166, #0c0e22);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -2;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

body {
    color: var(--text-light);
    min-height: 100vh;
    padding: 20px 15px;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 15px;
}

.profile-img-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
    animation: float 6s ease-in-out infinite;
}

.profile-img-border {
    position: absolute;
    width: 120px;
    height: 120px;
    top: -5px;
    left: -5px;
    border-radius: 50%;
    background: conic-gradient(
        var(--accent-color),
        #9370db,
        #6a5acd,
        var(--accent-color),
        #9370db
    );
    animation: rotate 8s linear infinite;
    z-index: -1;
}

.profile-img-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-color);
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(65, 105, 225, 0.3);
    z-index: 2;
}

.profile-name {
    color: var(--text-light);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(65, 105, 225, 0.5);
}

.profile-bio {
    color: rgba(240, 240, 255, 0.7);
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
    max-width: 90%;
    line-height: 1.4;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.link {
    background-color: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border: 1px solid var(--card-border);
    font-size: 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.link:hover, .link:active {
    background-color: var(--card-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

.link:hover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    animation: linkShine 1.5s forwards;
}

@keyframes linkShine {
    0% {
        left: -50%;
        top: -50%;
    }
    100% {
        left: 100%;
        top: 100%;
    }
}

.link i {
    margin-right: 10px;
    font-size: 17px;
    color: var(--text-light);
}

.section {
    margin: 25px 0 12px 0;
}

.section-title {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    opacity: 0.85;
}

.section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    margin-left: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid var(--card-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
}

.video-card:hover, .video-card:active {
    transform: translateY(-2px) scale(1.03);
    background-color: var(--card-hover);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-thumbnail {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    background-color: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);
}

.video-title {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 16px;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.social-icon:hover, .social-icon:active {
    transform: translateY(-2px) scale(1.1);
    background-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
}

.social-icon:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: ripple 0.8s ease-out;
}

@keyframes ripple {
    from {
        opacity: 1;
        transform: scale(0);
    }
    to {
        opacity: 0;
        transform: scale(2);
    }
}

footer {
    margin-top: 35px;
    margin-bottom: 10px;
    color: rgba(240, 240, 255, 0.5);
    text-align: center;
    font-size: 12px;
}

/* Animation for links */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.link, .video-card, .social-icon {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.link:nth-child(1) { animation-delay: 0.1s; }
.link:nth-child(2) { animation-delay: 0.15s; }
.link:nth-child(3) { animation-delay: 0.2s; }
.link:nth-child(4) { animation-delay: 0.25s; }
.link:nth-child(5) { animation-delay: 0.3s; }
.link:nth-child(6) { animation-delay: 0.35s; }

.video-card:nth-child(1) { animation-delay: 0.4s; }
.video-card:nth-child(2) { animation-delay: 0.45s; }
.video-card:nth-child(3) { animation-delay: 0.5s; }
.video-card:nth-child(4) { animation-delay: 0.55s; }

.social-icon:nth-child(1) { animation-delay: 0.25s; }
.social-icon:nth-child(2) { animation-delay: 0.3s; }
.social-icon:nth-child(3) { animation-delay: 0.35s; }
.social-icon:nth-child(4) { animation-delay: 0.4s; }
.social-icon:nth-child(5) { animation-delay: 0.45s; }

/* Media Queries for different screen sizes */
@media (max-width: 380px) {
    .profile-img-container {
        width: 90px;
        height: 90px;
    }

    .profile-img-border {
        width: 100px;
        height: 100px;
        top: -5px;
        left: -5px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-bio {
        font-size: 13px;
    }

    .link {
        padding: 12px 16px;
        font-size: 14px;
    }

    .video-grid {
        gap: 10px;
    }

    .video-title {
        font-size: 11px;
        padding: 6px 8px;
    }

    .click-counter {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
}