:root {
    /* Light Mode Variables */
    --bg-color: #f0f4f8;
    --bg-gradient: linear-gradient(135deg, #e0eaf5 0%, #ffffff 100%);
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --divider-color: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode Variables */
        --bg-color: #0f172a;
        --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        --card-bg: rgba(30, 41, 59, 0.65);
        --card-border: rgba(255, 255, 255, 0.08);
        --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --accent-color: #60a5fa;
        --accent-hover: #93c5fd;
        --divider-color: rgba(255, 255, 255, 0.1);
    }
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    padding: 2rem 1rem;
}

/* Glassmorphism Card */
.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 650px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

/* Image */
.profile-image-wrapper {
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 4px solid var(--card-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-card:hover .profile-image {
    transform: scale(1.05);
}

/* Header */
.profile-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 0.25rem;
}

.profile-header .role {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Divider */
.divider {
    border: none;
    height: 1px;
    background-color: var(--divider-color);
    width: 60%;
    margin: 2rem auto;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.profile-card:hover .divider {
    width: 80%;
}

/* Bio */
.profile-bio {
    text-align: left;
    font-size: 1rem;
    color: var(--text-secondary);
}

.profile-bio p {
    margin-bottom: 1.2rem;
}

.profile-bio p:last-child {
    margin-bottom: 0;
}

.call-to-action {
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-top: 2rem;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-border);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.social-links i {
    width: 20px;
    height: 20px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Background Ambient Orbs (Optional touch of premium) */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

body::before {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--accent-color);
}

body::after {
    bottom: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: #8b5cf6; /* A subtle secondary accent */
}

/* Responsive */
@media (max-width: 768px) {
    .profile-card {
        padding: 2.5rem 1.5rem;
    }
    
    .profile-header h1 {
        font-size: 2.2rem;
    }
    
    .profile-bio {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .profile-header h1 {
        font-size: 1.8rem;
    }
    
    .profile-image {
        width: 130px;
        height: 130px;
    }
}
