* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, hsla(210, 100%, 93%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(250, 100%, 95%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(320, 100%, 93%, 1) 0, transparent 50%);
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem 1rem;
    color: #0f172a;
    overflow: hidden;
    /* Prevent scrolling entirely if it fits */
}

.glass-container {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    padding: 2rem 1.25rem 1.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05), 0 0 20px rgba(255, 255, 255, 0.5) inset;
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

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

.header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.avatar-ring {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Prevents cropping the logo */
    border-radius: 50%;
    background: #ffffff;
    /* White background for the logo */
    border: 3px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) inset;
    padding: 6px;
    /* Breathing room so it perfectly aligns */
}

.title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 400;
}

.links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 0.5rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

a.link-card:hover,
a.link-card:active {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* For split cards (phone + save contact) */
div.split-card {
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* Fixes height of action button */
    overflow: hidden;
    grid-column: span 2;
}

div.split-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Make the last item (TikTok) span full width for balance */
a.link-card:last-child {
    grid-column: span 2;
    flex-direction: row;
}

.main-link {
    display: flex;
    align-items: center;
    padding: 0.65rem;
    text-decoration: none;
    color: #1e293b;
    flex-grow: 1;
    border-radius: 20px 0 0 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    text-decoration: none;
    color: #0284c7;
    background: #f0f9ff;
    border-left: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.action-btn:hover,
.action-btn:active {
    background: #e0f2fe;
    color: #0369a1;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    /* White bg for app icons */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    padding: 8px;
    /* Breathing room inside the wrapper */
    margin-right: 0;
    margin-bottom: 0.5rem;
}

.main-link .icon-wrapper,
a.link-card:last-child .icon-wrapper {
    margin-right: 1rem;
    margin-bottom: 0;
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Prevents icons from stretching or cutting off */
    border-radius: 4px;
}

a.link-card:hover .icon-wrapper,
a.link-card:active .icon-wrapper,
.main-link:hover .icon-wrapper,
.main-link:active .icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.link-text {
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
}

.main-link .link-text,
a.link-card:last-child .link-text {
    flex-grow: 1;
    text-align: left;
}

.footer {
    text-align: center;
    margin-top: 1.5rem;
}

.footer p {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Animations for links staggered */
.links>*:nth-child(1) {
    animation: slideUp 0.5s ease 0.1s both;
}

.links>*:nth-child(2) {
    animation: slideUp 0.5s ease 0.2s both;
}

.links>*:nth-child(3) {
    animation: slideUp 0.5s ease 0.3s both;
}

.links>*:nth-child(4) {
    animation: slideUp 0.5s ease 0.4s both;
}

.links>*:nth-child(5) {
    animation: slideUp 0.5s ease 0.5s both;
}

.links>*:nth-child(6) {
    animation: slideUp 0.5s ease 0.6s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}