:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --primary-glow: rgba(255, 255, 255, 0.5);
    --hover-bg: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    cursor: url('assets/cursor_small.png'), auto;

}

a,
button,
.profile-pic {
    cursor: url('assets/cursor_small.png'), pointer;
}

/* Animated Background */
#background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darker overlay for video legibility */
    /* backdrop-filter: blur(5px); removed */
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 10vh;
    /* Start lower down */
    padding-bottom: 10vh;
}

/* Header Styles */
.profile-header {
    text-align: center;
    margin-bottom: 1rem;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-header p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Link Cards */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.link-card {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--hover-bg);
    border-color: var(--primary-glow);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.1);
}

.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-right: 1rem;
    overflow: hidden;
    /* Ensure image doesn't spill out */
    transition: transform 0.3s ease;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.link-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.link-text {
    flex-grow: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.arrow-icon {
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.link-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Gradients for Icons */
.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.snapchat {
    color: #FFFC00;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.x-twitter {
    color: #ffffff;
}

.reddit {
    color: #FF4500;
}

.github {
    color: #ffffff;
}

.google {
    background: linear-gradient(45deg, #4285F4, #34A853, #FBBC05, #EA4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.profile-pic {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Background Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: floatBlob 20s infinite alternate;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: #7bdcb5;
    animation-delay: 0s;
}

.blob-2 {
    bottom: 20%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: #00d2ff;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
        width: 95%;
    }

    .profile-header h1 {
        font-size: 1.5rem;
    }

    .link-card {
        padding: 0.8rem 1rem;
    }
}

/* Particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatUp 10s linear infinite;
    bottom: -10px;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-110vh) scale(0.5);
        opacity: 0;
    }
}

/* Typing Cursor */
.cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--text-color);
    animation: blink 1s infinite;
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}



/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-color);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(85px, 9999px, 90px, 0);
    }

    40% {
        clip: rect(50px, 9999px, 80px, 0);
    }

    60% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    80% {
        clip: rect(70px, 9999px, 30px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(40px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(90px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(20px, 9999px, 70px, 0);
    }

    100% {
        clip: rect(60px, 9999px, 30px, 0);
    }
}

/* Enhanced Card Shimmer */
.link-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 60%);
    transform: translateX(-100%);
    transition: 0.5s;
    z-index: 2;
}

.link-card:hover::after {
    transform: translateX(100%);
}