/* 
    RJ Codes | Professional Profile Card
    Premium Glassmorphic Design System
*/

:root {
    /* Color Palette - Darker versions of original teal/blue logic */
    --primary-teal: hsl(176, 100%, 35%);
    --primary-blue: hsl(230, 78%, 45%);
    --bg-dark: hsl(230, 40%, 8%);
    --bg-gradient: linear-gradient(135deg, hsl(176, 80%, 10%), hsl(230, 60%, 12%));
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: hsl(0, 0%, 95%);
    --text-muted: hsl(0, 0%, 75%);
    
    --accent-red: hsl(0, 100%, 50%);
    --accent-insta: linear-gradient(45deg, #405DE6, #E4405F 80%);
    
    /* Spacing & Sizes */
    --container-padding: 2rem;
    --card-max-width: 440px;
    --border-radius: 28px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Decorative background elements for depth */
body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.2;
}

body::before {
    top: 10%;
    left: 15%;
    background: var(--primary-teal);
}

body::after {
    bottom: 10%;
    right: 15%;
    background: var(--primary-blue);
}

.container {
    width: 100%;
    padding: var(--container-padding);
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Card Styles */
.card {
    width: 100%;
    max-width: var(--card-max-width);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: cardEntrance 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    position: relative;
    overflow: hidden;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glass glare effect */
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    transition: transform 0.5s ease;
}

.card:hover #profile-logo {
    transform: scale(1.05) rotate(2deg);
}

#profile-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#profile-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Links & Socials */
.links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.link-items {
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.link-items:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.link-items i.ri-youtube-fill:hover { color: var(--accent-red); }
.link-items i.ri-instagram-line:hover { 
    background: var(--accent-insta); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.link-items i.ri-github-fill:hover { color: #fff; }

/* Button Styles */
.button {
    text-decoration: none;
    display: inline-block;
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    color: white;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.button:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 480px) {
    .card {
        padding: 3rem 1.5rem;
    }
    
    #profile-name {
        font-size: 2rem;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
    }
}