/* ==========================
   Dark mode variables
========================== */
:root {
    --background-color-light: #fdf9fb; /* from light mode */
    --background-color-dark: #1a111b; /* deep muted purple background */
    --text-color-light: #3a2d3d;
    --text-color-lighter: #7a6b7f;
    --text-color-dark: #e0d5e5; /* soft lavender text for dark mode */
    --container-color-light: #f6eef7;
    --container-color-dark: rgba(40, 30, 45, 0.95); /* muted purple-black container */
    --text-color-dark-mode: #c9b8d1; /* soft muted lavender for body text */
    --name-color-dark-mode: #d1a9d6; /* gentle dusty pinkish-purple for names */
    --font-family: 'Cairo', serif;
}

@font-face {
    font-family: 'Cairo';
    src: url('fonts/Cairo-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ==========================
   Base styles
========================== */
body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--background-color-dark);
    color: var(--text-color-dark);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 20px;
    background-color: var(--container-color-dark);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(200, 160, 210, 0.1); /* subtle purple glow */
    transition: background-color 0.3s;
}

/* ==========================
   Header / profile
========================== */
.cover-photo img {
    content: url('background-dark.webp');
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.profile-photo {
    position: absolute;
    width: 200px;
    height: 200px;
    top: calc(55% - 100px);
    left: calc(50% - 100px);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--background-color-dark);
}

.profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.profile-info {
    text-align: center;
    margin-top: 20px;
}

.name {
    font-size: 36px;
    color: var(--name-color-dark-mode);
    margin-bottom: 10px;
}

.bio {
    font-size: 16px;
    color: var(--text-color-dark-mode);
    line-height: 1.5;
}

/* ==========================
   Social links
========================== */
.social-links {
    margin-top: 20px;
}

.social-links a {
    margin-right: 10px;
}

.facebook img,
.instagram img,
.linkedin img {
    -webkit-filter: invert(80%) hue-rotate(260deg) brightness(1.2);
            filter: invert(80%) hue-rotate(260deg) brightness(1.2);
    border: 2px solid #7d5a8d; /* muted lavender border */
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 5px;
    transition: transform 0.3s ease-in-out, border-color 0.3s;
}

.facebook img:hover,
.instagram img:hover,
.linkedin img:hover {
    transform: scale(1.2);
    border-color: #b583b3; /* warmer muted pink-purple highlight */
}

/* ==========================
   Links
========================== */
a {
    color: #c9b8d1; /* light muted lavender for dark mode */
    text-decoration: none;
    border-bottom: 1px dashed #a58bab; /* subtle underline */
    transition: color 0.3s, border-bottom 0.3s;
}

a:hover {
    color: #e0d5e5; /* brighter lavender on hover */
    border-bottom: 1px solid #c090c0;
}

a:visited {
    color: #a58bab; /* slightly stronger lavender for visited */
    border-bottom: 1px dashed #bca0c4;
}

a:active {
    color: #7a5680; /* darker muted purple when clicked */
    border-bottom: 1px solid #7a5680;
}