@font-face {
    font-family: 'WF Visual Sans';
    src: url('https://dhygzobemt712.cloudfront.net/Fonts/VF/WFVisualSansVF.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'WF Visual Sans', sans-serif;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.loaded {
    opacity: 1;
    transform: translateY(0);
}

.container {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
    animation: fadeInSlideUp 1s ease-out forwards;
    backdrop-filter: blur(8px);
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }

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

h1 {
    font-size: 24px;
    font-weight: 400 !important;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verifiedx {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.verifiedx svg {
    animation: goldShimmer 4s infinite ease-in-out;
}

@keyframes goldShimmer {
    0% { filter: brightness(1); }
    5% { filter: brightness(1.4) drop-shadow(0 0 4px rgba(255, 215, 0, 0.6)); transform: scale(1.05); }
    10% { filter: brightness(1); transform: scale(1); }
    100% { filter: brightness(1); }
}

p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Link Styles */
.links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: #eee;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 10px;
    color: #111;
    transition: background 0.3s, transform 0.2s ease;
    font-size: 15px;
    
    /* Staggered Animation */
    opacity: 0;
    animation: staggerLink 0.6s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

/* Side-by-side button row inside links container */
.action-buttons {
    display: flex;
    gap: 10px;
    margin: 8px 0;
    width: 100%;
}

@keyframes staggerLink {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.links a:hover {
    background: #ddd;
    transform: translateY(-2px);
}

.links a:active {
    transform: scale(0.98);
}

.links a i {
    margin-right: 10px;
    font-size: 16px;
}

/* Footer */
footer {
    text-align: left;
    margin-top: 15px;
    font-size: 12px;
    color: #aaa;
}

footer a {
    color: #000;
    text-decoration: none;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 10%;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    margin-right: 5px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    cursor: pointer;
}

.profile-pic:hover {
    transform: scale(1.15) rotate(-3deg);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 13px;
    }

    .links a {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Action Buttons (Save Contact / Share) */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    opacity: 0;
    animation: staggerLink 0.6s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
    animation-delay: 0.2s; /* Animates right before the links */
}

.action-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.action-btn:active {
    transform: scale(0.98);
}

/* -------------------------------------------------------------------------- */
/* DARK MODE                                                                  */
/* -------------------------------------------------------------------------- */
body.dark-mode {
    background: #111111;
}

body.dark-mode .container {
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Adds a premium subtle edge */
}

body.dark-mode h1 {
    color: #ffffff;
}

body.dark-mode p {
    color: #aaaaaa;
}

body.dark-mode .links a {
    background: #222222;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .links a:hover {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode footer {
    color: #777777;
}

body.dark-mode footer a {
    color: #dddddd !important; /* Overrides the inline black color in HTML */
}

/* Floating Actions (Top Right) */
.floating-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.float-btn {
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    color: #111;
    transition: background 0.3s, transform 0.2s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: staggerLink 1s forwards;
}

body.dark-mode .float-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.float-btn:hover {
    transform: scale(1.1);
}