/* Design System Tokens */
:root {
    --bg-color: #08080c;
    --card-bg: rgba(20, 20, 28, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --accent-color: #feca57; /* Yellow matching the cat context or style */
    --accent-glow: rgba(254, 202, 87, 0.15);
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Background Ambient Glow */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(8, 8, 12, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        width: 500px;
        height: 500px;
        opacity: 0.8;
    }
    100% {
        width: 700px;
        height: 700px;
        opacity: 1.2;
    }
}

/* Main Container & Centering Layout */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphic Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 40px 32px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* Avatar Styling */
.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    border-radius: 50%;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Typography & Headline */
.headline {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #d4d4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider {
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
    margin-bottom: 24px;
    box-shadow: 0 0 10px var(--accent-color);
    animation: slowBlink 2.5s infinite ease-in-out;
}

@keyframes slowBlink {
    0%, 100% {
        opacity: 0.25;
        box-shadow: 0 0 3px rgba(254, 202, 87, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(254, 202, 87, 0.8);
    }
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 600;
    opacity: 0.7;
}

/* Email & Interactivity Section */
.email-section {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 18px;
    border-radius: 50px;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.email-section:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(254, 202, 87, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.email-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.email-link:hover {
    color: var(--text-primary);
}

.email-text {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.mail-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
    margin-left: auto;
}

/* Copy Button Styling */
.copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: var(--transition-smooth);
}

.copy-btn:hover {
    color: var(--accent-color);
    background: rgba(254, 202, 87, 0.1);
}

.copy-icon {
    width: 18px;
    height: 18px;
}

/* Tooltip Feedback Bubble */
.tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: #27272a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #27272a transparent transparent transparent;
}

.copy-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.copy-btn.copied .tooltip {
    background-color: #10b981;
    color: #ffffff;
}

.copy-btn.copied .tooltip::after {
    border-color: #10b981 transparent transparent transparent;
}

/* Media Queries for Responsive Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .card {
        padding: 32px 12px;
    }
    
    .headline {
        font-size: 1.65rem;
    }
    
    .email-section {
        padding: 10px 8px;
        gap: 4px;
    }
    
    .email-link {
        font-size: 0.82rem;
        gap: 6px;
    }
    
    .mail-icon {
        width: 16px;
        height: 16px;
    }
    
    .copy-btn {
        padding: 4px;
    }
    
    .copy-icon {
        width: 16px;
        height: 16px;
    }
}
