:root {
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --card-bg: rgba(255, 255, 255, 0.5);
    --card-border: rgba(255, 255, 255, 0.6);
    --card-hover-bg: rgba(255, 255, 255, 0.8);
    --accent-color: #6366f1;
    --border-radius: 16px;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 1.5rem;
    position: relative;
    overflow-x: hidden;
    background-color: #f3f4f6; /* Fallback */
}

/* Animated Gradient Background Elements */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: drift 15s infinite alternate ease-in-out;
}

.shape-1 {
    width: 40vw;
    height: 40vw;
    background: rgba(99, 102, 241, 0.35); /* Indigo */
    top: -10vh;
    left: -10vw;
}

.shape-2 {
    width: 50vw;
    height: 50vw;
    background: rgba(236, 72, 153, 0.3); /* Pink */
    bottom: -15vh;
    right: -15vw;
    animation-delay: -5s;
}

.shape-3 {
    width: 30vw;
    height: 30vw;
    background: rgba(16, 185, 129, 0.25); /* Emerald */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.9); }
}

.container {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease-out;
    width: 100%;
}

.profile-img-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem;
}

.profile-img-container::before {
    content: '';
    position: absolute;
    top: -5px; right: -5px; bottom: -5px; left: -5px;
    background: linear-gradient(135deg, var(--accent-color), #ec4899);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.7; }
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.profile-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.profile-bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0 auto 1.5rem;
    font-weight: 400;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--card-hover-bg);
    transform: translateY(-3px);
    color: var(--accent-color);
}

.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Glassmorphism Cards */
.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    text-decoration: none;
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    position: relative;
    overflow: hidden;
}

/* Shine effect on hover */
.link-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.link-card:hover::after {
    animation: shine 0.75s;
}

@keyframes shine {
    100% { left: 200%; }
}

.link-card:hover {
    background: var(--card-hover-bg);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.link-content {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.link-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.link-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.04);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.link-card:hover .link-icon-wrapper {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.footer {
    margin-top: 3.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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