/* Enhanced Color Scheme */
:root {
    --primary-color: #8b2e3c;
    --primary-light: #a84452;
    --primary-dark: #6b1f2f;
    --secondary-color: #2d3748;
    --accent-color: #d4af37;
    --background-light: #f7f8fa;
    --background-white: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

body.dark-theme {
    --primary-color: #c96575;
    --primary-light: #e08090;
    --primary-dark: #a84452;
    --secondary-color: #e2e8f0;
    --accent-color: #f0d98e;
    --background-light: #0f1419;
    --background-white: #1a1f2e;
    --text-primary: #f7fafc;
    --text-secondary: #a0aec0;
    --border-color: #2d3748;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
}

/* Sidebar Styling */
.sidebar {
    width: 380px;
    background: var(--background-white);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--background-light);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.profile-picture {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-md), 0 0 0 10px rgba(139, 46, 60, 0.1);
    object-position: center 20%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 0 12px rgba(139, 46, 60, 0.15);
}

.sidebar h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.sidebar .lead {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
}

.sidebar hr {
    border-top: 2px solid var(--border-color);
    margin: 30px 0;
    opacity: 1;
}

.sidebar h5 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.sidebar h5 i {
    margin-right: 10px;
    font-size: 1rem;
}

.sidebar ul {
    font-size: 0.9rem;
    line-height: 1.8;
}

.sidebar ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.sidebar ul li i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 4px;
    font-size: 0.9rem;
    min-width: 18px;
}

/* Enhanced Profile Links - Icon Only Style */
.profile-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.profile-link i {
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.profile-link:hover i {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.15);
}

/* Main Content */
.main-content {
    margin-left: 380px;
    flex-grow: 1;
    padding: 40px 50px;
    max-width: 1200px;
}

/* Enhanced Tab Navigation */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.nav-tabs .nav-item {
    margin-bottom: -2px;
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: transparent;
    border-bottom-color: var(--primary-light);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom-color: var(--primary-color);
    font-weight: 700;
}

/* Tab Content */
.tab-content {
    background: var(--background-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.tab-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.tab-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.tab-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tab-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.tab-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* CV Items */
.cv-item {
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
    background: var(--background-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cv-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
    background: var(--background-white);
}

.cv-item h5 {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.cv-item em {
    color: var(--text-secondary);
    font-style: normal;
    font-weight: 500;
    display: block;
}

.cv-item ul {
    margin-top: 15px;
    padding-left: 20px;
}

.cv-item ul li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
}

.cv-item ul li::marker {
    color: var(--primary-color);
}

/* Alert Box */
.alert {
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    background: var(--background-light);
    padding: 20px;
    margin-bottom: 25px;
}

/* Footer */
footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    body {
        display: block;
    }
    .sidebar {
        position: static;
        width: auto;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }
    .profile-links {
        justify-content: center;
    }
}