/* PREMIUM GLASSMORPHISM DESIGN SYSTEM */

:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --card-padding: 24px;
    --border-radius: 32px;

    /* Animation */
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* VIDEO BACKGROUND */
.video-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0) contrast(1.1) brightness(0.4);
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* MAIN CARD CONTAINER */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10;
}

/* THE CARD */
.glass-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 650px;
    /* Fixed height for the "phone screen" look */
    background: #1a1a1a;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    animation: cardEntrance 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform: translateY(20px);
    opacity: 0;
}

/* CARD BACKGROUND IMAGE */
.card-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #000;
}

.blur-bg {
    display: none;
}

.full-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Scale down to fit width/height without cropping */
    object-position: center top;
    z-index: 1;
    transform: scale(1.15);
    /* Slight zoom per user request */
    transform-origin: top center;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    /* Stronger darkening gradient */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.7) 65%,
            rgba(0, 0, 0, 0.9) 85%,
            #0a0a0a 100%);
    /* Stronger blur effect at the bottom */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Mask blur so it only applies to bottom/transition area */
    mask-image: linear-gradient(to bottom, transparent 40%, black 85%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 40%, black 85%);
    z-index: 2;
    pointer-events: none;
}

/* CARD CONTENT */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--card-padding);
    padding-bottom: 32px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* PROFILE INFO */
.profile-section {
    margin-bottom: 24px;
}

.name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Badge removed from HTML, style kept just in case or can be removed */
.badge {
    display: none;
}

.role {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.bio {
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    max-width: 90%;
}

/* LINKS SECTION */
.links-section {
    display: flex;
    flex-direction: row;
    /* Horizontal row */
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    /* padding handled by sizing */
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: var(--transition-smooth);
    height: 56px;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

.link-card:active {
    transform: scale(0.98);
}

/* Square Buttons (Email, Personal TG) */
.square-btn {
    width: 56px;
    /* Fixed width = height */
    flex: 0 0 56px;
}

.square-btn .icon-box {
    margin: 0;
    width: 100%;
    height: 100%;
}

/* Wide Button (Channel) */
.wide-btn {
    flex: 1;
    /* Take remaining space */
    padding: 0 20px;
    justify-content: flex-start;
}

.wide-btn .icon-box {
    margin-right: 12px;
    width: 24px;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.link-text {
    display: block;
    flex-grow: 1;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.arrow-icon {
    display: block;
    opacity: 0.6;
    transition: 0.2s;
}

.link-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(4px);
}

/* ANIMATIONS */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* MEDIA QUERIES */
@media (max-width: 400px) {
    .glass-card {
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
    }

    .container {
        padding: 0;
    }

    .card-background {
        border-radius: 0;
    }

    .full-photo {
        border-radius: 0;
    }
}