:root {
    --primary-color: #ff9800;
    /* Vibrant Orange */
    --primary-hover: #f57c00;
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-secondary: #a0a0a0;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    /* Removing background image for cleaner look or keeping it very subtle */
    background-image: linear-gradient(rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.9)), url('./background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centered vertically too */
    min-height: 100vh;
    color: var(--text-main);
}

.digital-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 0;
    width: 100%;
    max-width: 400px;
    /* Slightly narrower for mobile elegance */
    box-shadow: var(--shadow-soft);
    margin: 20px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.card-header {
    position: relative;
    width: 100%;
    height: 160px;
    /* Slightly reduced height */
}

.card-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Centered Profile Layout */
.profile-section {
    position: relative;
    padding: 0 25px;
    margin-top: -60px;
    /* Overlap header */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center everything */
    text-align: center;
}

.profile-pic-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--card-bg);
    /* Match card bg for clean cutout look */
    background-color: var(--card-bg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.profile-pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    width: 100%;
    padding-bottom: 20px;
}

.profile-info h1 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.profile-info .subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.card-body {
    padding: 0 25px 30px 25px;
}

/* Clean Bio */
.bio-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.bio-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Modern Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, filter 0.2s ease;
    text-decoration: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    /* Black text on bright orange for high contrast/modern look */
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    /* Subtle light gray */
    color: var(--text-main);
}

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

.btn:hover {
    filter: brightness(1.1);
}

/* Minimal List Links */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: transparent;
    /* Remove background for cleaner look */
    padding: 12px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-subtle);
    /* Divider style */
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 15px;
    /* Slight movement on hover */
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    /* Muted icon color */
    width: 40px;
    text-align: center;
    margin-right: 10px;
    transition: color 0.2s ease;
}

.contact-item:hover i {
    color: var(--primary-color);
    /* Color on hover */
}

.contact-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Content Preview */
.content-preview {
    margin-top: 35px;
}

.preview-card {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.preview-card img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.preview-card:hover img {
    transform: scale(1.02);
}

.preview-card .caption {
    margin-top: 12px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer & QR */
.qr-section {
    margin-top: 40px;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.digital-card>* {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    /* Init hidden */
}

.card-header {
    animation-delay: 0ms;
}

.profile-section {
    animation-delay: 100ms;
}

.card-body {
    animation-delay: 200ms;
}

/* Stagger children manually if needed, or grouped */

.action-buttons {
    animation-delay: 300ms;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.bio-section {
    animation-delay: 400ms;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.contact-links {
    animation-delay: 500ms;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Utilities */
.hidden {
    display: none !important;
}
