/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #ffce10 0%, #32cd32 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    /* translucent frosted base */
    background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.30));
    border-radius: 50px;
    padding: 32px 24px;
    /* outer shadow + slight inner highlight for depth */
    box-shadow: 0 20px 40px rgba(6,10,12,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
    /* strong backdrop blur to create the glass effect */
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.45);
    position: relative;
    overflow: hidden;
}

/* subtle colored tint overlay for the container so the glass takes on theme colors */
.container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* gentle lemon -> lime tint; very low opacity so it's subtle */
    background: linear-gradient(135deg, rgba(255,206,16,0.06), rgba(50,205,50,0.04));
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 0;
}

/* keep direct children above the tint */
.container > * {
    position: relative;
    z-index: 1;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

/* Glass name badge (rounded box for name + bio) */
.name-badge {
    display: inline-block;
    margin: 0 auto 18px;
    padding: 14px 20px;
    border-radius: 56px;
    background: rgba(255, 255, 255, 0.192);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 14px 7px rgba(255, 255, 255, 0.55);
    position: relative;
    overflow: hidden;
    z-index: 1; /* ensure above container tint */
    min-width: 180px;
}

.name-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
}

.name-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), transparent, rgba(255,255,255,0.32));
}

.name-badge .profile-name {
    font-size: 22px;
    line-height: 1;
    margin: 0;
    font-weight: 700;
    /* dark yellow -> dark green gradient for the name text */
    background: linear-gradient(135deg, #b88600 0%, #1f7a1f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* keep a tiny highlight for separation on very light backgrounds */
    text-shadow: 0 0px 0 rgba(0,0,0,0.0);
}

.name-badge .profile-bio {
    margin: 0;
    font-size: 13px;
    color: #444;
    opacity: 0.95;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffce10, #32cd32);
    padding: 4px;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f8f9fa;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffce10, #32cd32);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.link-item {
    --glass-bg: rgba(255,255,255,0.55);
    --glass-border: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 50px;
    text-decoration: none;
    color: #111;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 8px 20px rgba(12,12,14,0.06), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Subtle highlight sweep */
.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.link-item:hover::before {
    left: 120%;
}

.link-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(12,12,14,0.12);
}

/* Colored tint overlay per card (uses CSS variable --tint set on each platform class) */
.link-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--tint, rgba(255,255,255,0)), rgba(255,255,255,0));
    mix-blend-mode: overlay;
    pointer-events: none;
    opacity: 0.95;
}

/* Link Icon Bubbles */
.link-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.link-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Discord styling */
.discord {
    --tint: rgba(114,137,218,0.06);
}

.discord .link-icon {
    background: rgba(114,137,218,0.12);
    border: 3px solid #7289da;
}

.discord:hover {
    border-color: #7289da;
}

/* LinkedIn styling */
.linkedin {
    --tint: rgba(10,102,194,0.06);
}

.linkedin .link-icon {
    background: rgba(10,102,194,0.12);
    border: 3px solid #0a66c2;
}

.linkedin:hover {
    border-color: #0a66c2;
}

/* Marketing styling */
.marketing {
    --tint: rgba(255,206,16,0.06);
}

.marketing .link-icon {
    background: rgba(255,206,16,0.12);
    border: 3px solid #ffce10;
}

.marketing:hover {
    border-color: #ffce10;
}

/* LTS styling */
.lts {
    --tint: rgba(255,206,16,0.06);
}

.lts .link-icon {
    background: rgba(255,206,16,0.12);
    border: 3px solid #ffce10;
}

.lts:hover {
    border-color: #ffce10;
}

/* Link Content */
.link-content {
    flex: 1;
    z-index: 1;
    position: relative;
}

.link-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.link-content p {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Link Arrow */
.link-arrow {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.link-arrow svg {
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer p {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 520px) {
    body {
        padding: 16px;
    }
    
    .container {
        padding: 24px 20px;
        border-radius: 50px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .profile-name {
        font-size: 28px;
    }
    
    .link-item {
        padding: 16px;
        border-radius: 56px;
    }
    
    .link-icon {
        width: 48px;
        height: 48px;
        margin-right: 12px;
    }
    
    .link-icon img {
        width: 28px;
        height: 28px;
    }
    
    .link-content h3 {
        font-size: 16px;
    }
    
    .link-content p {
        font-size: 13px;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 20px 16px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .link-item {
        padding: 14px;
    }
    
    .link-icon {
        width: 44px;
        height: 44px;
        margin-right: 10px;
    }
    
    .link-icon img {
        width: 26px;
        height: 26px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.link-item:focus-visible {
    outline: 3px solid #ffce10;
    outline-offset: 2px;
}

/* Loading animation for images */
.link-icon img {
    transition: opacity 0.3s ease;
}

.link-icon img[src=""] {
    opacity: 0;
}

/* Gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}