/* Global Root Variables */
:root {
    --bg-color: #0b0c10;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #9da3af;
    --accent: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.4);
    --success: #10b981;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Animation */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #0f172a;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
    opacity: 0.5;
}

.blob-1 {
    width: 40vw;
    height: 40vw;
    background: #3b82f6;
    top: -10vw;
    left: -10vw;
    animation-delay: 0s;
}

.blob-2 {
    width: 30vw;
    height: 30vw;
    background: #8b5cf6;
    bottom: -10vw;
    right: -10vw;
    animation-delay: -5s;
}

.blob-3 {
    width: 35vw;
    height: 35vw;
    background: #10b981;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 1;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.avatar-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 10px var(--success);
}

.name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.role {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Quick Contact Paws */
.quick-contact {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.contact-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.contact-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.pill-icon {
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.link-content {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    gap: 1rem;
    z-index: 2;
    background: transparent;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s ease;
}

.link-card:hover::before {
    transform: translateX(100%);
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.link-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dark-icon {
    background: #111;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.light-icon {
    background: #fff;
    color: #111;
}

.link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.link-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

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

.badges {
    margin-top: 0.3rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #cbd5e1;
}

.link-arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.link-card:hover .link-arrow {
    color: var(--text-primary);
    transform: translate(2px, -2px);
}

/* Link Details / Expanding Info */
.link-details {
    padding: 0 1.25rem 1.25rem 4.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid transparent;
    transition: var(--transition);
    height: auto;
    opacity: 0.8;
}

.link-details ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.link-details li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.link-details i {
    color: var(--success);
    font-size: 1rem;
}

/* Footer & Buttons */
footer {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.action-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.1);
}

.hover-glow:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.8s auto 0.2s ease-out both;
}

.fade-in-delayed {
    animation: fadeIn 0.8s auto 0.4s ease-out both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive adjustments */
@media (max-width: 400px) {
    .quick-contact {
        flex-direction: column;
    }
}
