@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --card-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Profile Section */
.hero-section {
    width: calc(100% - 2rem);
    /* Align with links-container padding (1rem on each side) */
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 0 1rem 1rem 1rem;
    /* Added side margins to align, kept bottom margin */
    overflow: hidden;
    z-index: 1;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Dynamic Blurred Background */
.blur-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.blur-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(80px) brightness(0.4);
    /* Heavy blur, darkened for text contrast */
    transform: scale(1.2);
    /* Scale up to avoid blur edges */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay to make text readable */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #000000 10%, transparent 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    /* Padding moves text up from very bottom */
    width: 100%;
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Social Icons in Hero */
.hero-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:active {
    transform: scale(0.9);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

/* Links Section */
.links-container {
    width: 100%;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Visual Card Link */
.visual-card {
    display: block;
    width: 100%;
    height: 180px;
    /* Tall card */
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.2s;
}

.visual-card:active {
    transform: scale(0.98);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.visual-card:hover .card-bg img {
    transform: scale(1.05);
    /* Zoom effect */
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-overlay);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.card-platform-logo {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.card-platform-logo svg,
.card-platform-logo img {
    width: 100%;
    height: 100%;
    fill: white;
    object-fit: contain;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Standard Button Link (Fallback for non-visual) */
.standard-link {
    display: flex;
    align-items: center;
    background: #1A1A1A;
    padding: 1rem;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    border: 1px solid #333;
}

.standard-link:active {
    background: #222;
}

.std-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    filter: invert(1);
    /* Ensure black icons turn white */
}

.std-text {
    flex-grow: 1;
    font-weight: 600;
}

/* Pill Card (VIP Banner) */
.pill-card {
    display: flex;
    align-items: center;
    background: #E0E0E0;
    /* Light grey base like reference */
    background: linear-gradient(to right, #e6e6e6, #f0f0f0);
    padding: 12px 20px;
    border-radius: 50px;
    /* Fully rounded pill shape */
    text-decoration: none;
    color: black;
    /* Dark text for contrast on light bg */
    width: 100%;
    position: relative;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.2s;
}

.pill-card:active {
    transform: scale(0.98);
}

.pill-icon {
    width: 40px;
    height: 40px;
    background: #2AABEE;
    /* Telegram Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    color: white;
}

.pill-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.pill-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Offset margin to center text visually considering the icon is on the left */
    margin-right: 40px;
}

.pill-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Footer */
.footer {
    margin-top: 3rem;
    opacity: 0.4;
    font-size: 0.8rem;
}