:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --primary-color: #4f46e5; /* Indigo */
    --secondary-color: #64748b; /* Slate */
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-radius: 16px;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] {
    --primary-color: #818cf8;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: linear-gradient(135deg, var(--bg-color) 0%, rgba(79, 70, 229, 0.05) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
}

/* Card Styling */
.card {
    background-color: var(--card-bg);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    /* Only hover effect for interactive cards if needed, or general subtle lift */
    /* transform: translateY(-2px); */
    /* box-shadow: var(--card-shadow-hover); */
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* Profile Section */
#nameCard img {
    border-radius: 8%;
    box-shadow: var(--card-shadow);
    border: 4px solid var(--card-bg);
    object-fit: cover;
    width: 200px;
    height: 200px;
}

/* List Groups (Experience/Education) */
.list-group-item {
    background-color: transparent;
    border-color: rgba(0,0,0,0.05);
    padding: 1rem 1.25rem;
}

[data-bs-theme="dark"] .list-group-item {
    border-color: rgba(255,255,255,0.05);
}

/* Buttons & Toggles */
.btn-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

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

/* Repository Items */
#gitHubRepoItem .card {
    height: 100%;
    border: 1px solid transparent;
}

#gitHubRepoItem .card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e2e8f0;
    margin-top: 8px;
}

[data-bs-theme="dark"] .progress {
    background-color: #334155;
}

.progress-bar {
    border-radius: 5px;
}

/* Custom Colors for Progress Bars (keeping existing logic but refining colors) */
.greenBar .progress-bar { background-color: #10b981 !important; } /* Emerald */
.redBar .progress-bar { background-color: #ef4444 !important; } /* Red */
.blueBar .progress-bar { background-color: #3b82f6 !important; } /* Blue */

/* Repo Language Dot */
.repoLanguageColor {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    position: relative;
    top: 1px;
}

/* Scrollbar */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

[data-bs-theme="dark"] * {
    scrollbar-color: #475569 transparent;
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background-color: #475569;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background-color: #64748b;
}

/* Utility */
.text-muted {
    color: var(--text-muted) !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.aHide {
	color: inherit; /* Colore del testo ereditato */
	text-decoration: none; /* Rimuove la sottolineatura di default */
}

.aHide:hover {
	text-decoration: underline; /* Aggiunge la sottolineatura al passaggio del mouse */
	color: var(--bs-primary); /* Cambia il colore del testo a blu */
}

.buttonHide {
	border: none; /* Rimuove la cornice */
	background-color: transparent; /* Rimuove lo sfondo */
	color: inherit; /* Utilizza il colore del testo ereditato */
	cursor: pointer; /* Cambia il cursore quando si passa sopra con il mouse */
	transition: color 0.3s, background-color 0.3s; /* Aggiunge una transizione al cambiamento di colore */
}

.buttonHide:hover {
	color: var(--bs-primary); /* Cambia il colore del testo quando si passa sopra con il mouse */
	border-radius: 6px;
	background-color: var(--bs-tertiary-bg);
}

/* Settings Pill Styles */
#settings-pill {
	max-width: 54px; /* Icon width + padding */
}
#settings-pill:hover, #settings-pill.is-open {
	max-width: min(450px, 90vw); /* Expanded width */
}
#settings-pill .settings-content {
	opacity: 0;
	pointer-events: none;
}
#settings-pill:hover .settings-content, #settings-pill.is-open .settings-content {
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0.1s;
}

/* Settings Pill Overrides */
#settings-pill {
    background-color: var(--card-bg) !important;
    border: 1px solid rgba(0,0,0,0.05);
}

[data-bs-theme="dark"] #settings-pill {
    border: 1px solid rgba(255,255,255,0.05);
}

.col-4::-webkit-scrollbar {
	display: none; /* Nasconde la scrollbar su browser basati su WebKit (come Chrome e Safari) */
}

.scroller {
  overflow-y: scroll;
  scrollbar-color: #007 #bada55;
}

/* Dropdown/Collapse Content Styling */
.collapse .card,
.collapsing .card {
    background-color: var(--bg-color); /* Slightly contrast from main card */
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03); /* Subtle inner shadow */
    margin-top: 0.75rem;
    margin-bottom: 1rem !important; /* Override bootstrap utility */
    border-radius: 12px;
}

[data-bs-theme="dark"] .collapse .card,
[data-bs-theme="dark"] .collapsing .card {
    background-color: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.05);
}

.collapse .card-body,
.collapsing .card-body {
    padding: 1.25rem;
}

/* Typography inside dropdowns */
.collapse h4, .collapse h5,
.collapsing h4, .collapsing h5 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.collapse p, .collapse span, .collapse li,
.collapsing p, .collapsing span, .collapsing li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

[data-bs-theme="dark"] .collapse p, 
[data-bs-theme="dark"] .collapse span, 
[data-bs-theme="dark"] .collapse li,
[data-bs-theme="dark"] .collapsing p, 
[data-bs-theme="dark"] .collapsing span, 
[data-bs-theme="dark"] .collapsing li {
    color: var(--text-muted);
}

/* Tables inside dropdowns */
.collapse .table,
.collapsing .table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
}

.collapse .table th,
.collapsing .table th {
    font-weight: 500;
    color: var(--text-main);
    border-bottom-color: rgba(0,0,0,0.1);
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

[data-bs-theme="dark"] .collapse .table th,
[data-bs-theme="dark"] .collapsing .table th {
    border-bottom-color: rgba(255,255,255,0.1);
    color: var(--text-main);
}

/* Nested Lists in Education */
.collapse .list-group-item,
.collapsing .list-group-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.collapse .list-group-item:last-child,
.collapsing .list-group-item:last-child {
    border-bottom: none;
}

[data-bs-theme="dark"] .collapse .list-group-item,
[data-bs-theme="dark"] .collapsing .list-group-item {
    border-bottom-color: rgba(255,255,255,0.05);
}

/* Links inside dropdowns */
.collapse a,
.collapsing a {
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
}

.collapse a:hover,
.collapsing a:hover {
    border-bottom-style: solid;
}

/* Hover.css - Forward */
.hvr-forward {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
}
.hvr-forward:hover, .hvr-forward:focus, .hvr-forward:active {
    -webkit-transform: translateX(8px);
    transform: translateX(8px);
}

/* Skill Cards */
.skill-card {
    background-color: var(--bg-color);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    height: 100%;
}

[data-bs-theme="dark"] .skill-card {
    background-color: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.05);
}

.skill-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-color);
}

.skill-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.skill-level-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    float: right;
}

.skill-progress {
    height: 6px;
    background-color: rgba(224, 220, 220, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

[data-bs-theme="dark"] .skill-progress {
    background-color: rgba(255,255,255,0.1);
}

.skill-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

/* Segmented Skill Bar */
.skill-level-bar {
    display: flex;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background-color: rgba(0,0,0,0.05);
    margin-top: 0.5rem;
}

[data-bs-theme="dark"] .skill-level-bar {
    background-color: rgba(255,255,255,0.1);
}

.level-segment {
    flex: 1;
    text-align: center;
    font-size: 0.65rem;
    padding: 2px 0;
    color: var(--text-main);
    border-right: 1px solid rgba(0,0,0,0.1);
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-bs-theme="dark"] .level-segment {
    color: var(--text-muted);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.level-segment:last-child {
    border-right: none;
}

.level-segment.filled {
    color: white;
    font-weight: 600;
}

.level-segment.filled.blue { background-color: #3b82f6; }
.level-segment.filled.red { background-color: #ef4444; }
.level-segment.filled.green { background-color: #10b981; }

/* Skill Colors */
.skill-bar-blue { background-color: #3b82f6; }
.skill-bar-red { background-color: #ef4444; }
.skill-bar-green { background-color: #10b981; }
.skill-bar-yellow { background-color: #f59e0b; }

/* --- Modern Accordion Redesign --- */
.custom-accordion .accordion-item {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background-color: transparent;
}

[data-bs-theme="dark"] .custom-accordion .accordion-item {
    border-color: rgba(255,255,255,0.05);
}

.custom-accordion .accordion-button {
    background-color: var(--card-bg); /* Use your existing var */
    box-shadow: none;
    font-weight: 500;
    padding: 1.2rem 1.25rem;
    transition: background-color 0.3s;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(79, 70, 229, 0.05); /* Slight tint of your primary color */
    color: var(--primary-color);
}

.custom-accordion .accordion-button::after {
    /* Use Bootstrap's default chevron but you can customize it if you want */
    transition: transform 0.3s ease-in-out;
}

.custom-accordion .accordion-body {
    background-color: var(--bg-color); /* Slightly contrasted background for content */
    padding: 1.5rem;
}

/* --- Timeline Styling --- */
.timeline {
    position: relative;
    padding-left: 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .timeline::before {
    background-color: rgba(255,255,255,0.1);
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 14px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    z-index: 1;
}

/* --- Refined Badges --- */
.badge.bg-secondary-subtle {
    background-color: #f1f5f9;
    color: #475569;
}
[data-bs-theme="dark"] .badge.bg-secondary-subtle {
    background-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

/* --- 1. Tech Tiles (Self-Taught) --- */
/* --- Tech Stack Rows (Self-Taught Redesign) --- */
.tech-row {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background-color: var(--bg-color);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.tech-row:hover {
    background-color: var(--card-bg); /* Slight highlight on hover */
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateX(4px); /* Subtle slide to the right */
}

[data-bs-theme="dark"] .tech-row {
    background-color: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.05);
}

[data-bs-theme="dark"] .tech-row:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: var(--primary-color);
}

.tech-icon {
    width: 48px;
    height: 48px;
    min-width: 48px; /* Prevent shrinking */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tech-content {
    flex-grow: 1;
}

/* Small tags for the Android section */
.tech-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 500;
}

[data-bs-theme="dark"] .tech-tag {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-main);
}

/* --- 2. Degree Tickets (Degrees) --- */
.degree-ticket {
    display: flex;
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    border: 1px dashed rgba(0,0,0,0.1); /* Ticket look */
}
.ticket-date {
    background-color: var(--primary-color);
    color: white;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 1rem 0.5rem;
    font-weight: 700;
    text-align: center;
    min-width: 40px;
}
.ticket-content {
    padding: 1rem;
    flex-grow: 1;
}

/* --- 3. Course Cards (University) --- */
.course-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    border-left-width: 4px; /* The colored accent */
}
.border-start-danger { border-left-color: #ef4444 !important; }
.border-start-warning { border-left-color: #f59e0b !important; }
.border-start-primary { border-left-color: #3b82f6 !important; }
.border-start-info { border-left-color: #0ea5e9 !important; }
.border-start-success { border-left-color: #10b981 !important; }

.course-list {
    padding-left: 1rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.course-list li {
    margin-bottom: 0.25rem;
}

/* --- 4. Skill Pills (Languages) --- */
.skill-pill {
    padding: 0.5rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50px; /* Pill shape */
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
[data-bs-theme="dark"] .skill-pill {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

/* Advanced Pills - Filled Look */
.skill-pill.filled {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
/* Basic Pills - Smaller text */
.skill-pill.basic {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Language Identity Cards --- */
.lang-card {
    background-color: var(--bg-color);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    border-color: rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .lang-card {
    border-color: rgba(255,255,255,0.05);
}

/* Avatar Circle (IT, EN, ES) */
.lang-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* CEFR Visualizer (The segmented bar) */
.cefr-visualizer {
    display: flex;
    gap: 4px;
    height: 8px;
    margin-top: 0.5rem;
    background-color: transparent;
}

.cefr-step {
    flex: 1;
    border-radius: 2px;
    background-color: rgba(0,0,0,0.05); /* Empty state color */
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .cefr-step {
    background-color: rgba(255,255,255,0.1);
}

/* Filled States (Colors are handled by Bootstrap utility classes in HTML) */
.cefr-step.filled {
    opacity: 1;
}

/* Utility for tiny text */
.text-xs {
    font-size: 0.7rem;
}

/* --- GitHub Repo Cards --- */
.repo-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .repo-card {
    background-color: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.05);
}

.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.repo-card-body {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.repo-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(79, 70, 229, 0.1); /* Primary color tint */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.repo-card:hover .arrow-icon {
    color: var(--primary-color) !important;
    transform: translateX(4px);
    transition: transform 0.2s;
}

/* Ensure the language dot from your original CSS works here */
.repoLanguageColor {
    background-color: #007bff ; /* Default slate color */
}

/* Tweaks for the Profile Header Avatar */
#avatarGitHub {
    transition: transform 0.3s ease;
}
#avatarGitHub:hover {
    transform: scale(1.05);
}

/* Search and Filter Styles */
#repoSearch {
    border-radius: 0 8px 8px 0;
    box-shadow: none;
}

#repoSearch:focus {
    border-color: var(--bs-border-color);
    box-shadow: none;
}

.input-group-text {
    border-radius: 20px 0 0 20px;
    padding-left: 15px;
}

#repoSearch {
    border-radius: 0px 20px 20px 0;
}

#activeFilters .badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
    transition: all 0.2s ease;
}

#activeFilters .badge:hover {
    background-color: #dc3545 !important; /* Red on hover to indicate removal */
}

#availableFilters .badge {
    font-weight: 400;
    padding: 0.5em 0.8em;
    transition: all 0.2s ease;
}

#availableFilters .badge:hover {
    background-color: var(--bs-secondary-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-secondary-border-subtle) !important;
}

/* Markdown Content */
.markdown-body {
    font-size: 0.95rem;
    line-height: 1.6;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.markdown-body pre {
    background-color: rgba(0,0,0,0.05);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

[data-bs-theme="dark"] .markdown-body pre {
    background-color: rgba(255,255,255,0.05);
}

/* --- Professional Experience Timeline --- */
.experience-timeline {
    position: relative;
    padding: 10px 0;
}

.exp-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1rem;
    align-items: stretch; /* Changed from flex-start to stretch */
}

.exp-item:last-child {
    padding-bottom: 0;
}

/* Date Column */
.exp-date-col {
    flex: 0 0 140px;
    width: 140px;
    text-align: right;
    padding-top: 0;
}

.exp-date-col .badge {
    white-space: normal;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    display: inline-block;
    width: 100%;
}

/* Divider Column (Line + Marker) */
.exp-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 20px;
}

.exp-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 3px solid var(--primary-color);
    z-index: 2;
    margin-top: 5px;
    flex-shrink: 0;
}

.exp-line {
    width: 2px;
    background-color: rgba(0,0,0,0.1);
    flex-grow: 1;
    margin-top: 0;
    margin-bottom: -24px; /* Extend to next item */
    min-height: 20px; /* Ensure visibility */
}

[data-bs-theme="dark"] .exp-line {
    background-color: rgba(255,255,255,0.1);
}

.exp-item:last-child .exp-line {
    display: none;
}

/* Content Column */
.exp-content {
    padding-bottom: 0.5rem;
}

/* Responsive: Stack on mobile */
@media (max-width: 576px) {
    .exp-item {
        flex-direction: column;
        gap: 0.5rem;
        position: relative;
        padding-left: 2rem; /* Make space for line */
    }

    .exp-date-col {
        text-align: left;
        min-width: auto;
        width: auto;
        flex: none;
    }

    .exp-date-col .badge {
        text-align: left;
        width: auto;
        display: inline-block;
    }

    .exp-divider {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        align-items: center;
    }
    
    .exp-marker {
        margin-top: 2.2rem; /* Adjust based on where you want the dot relative to the date */
    }
    
    .exp-line {
        width: 2px;
        position: absolute;
        top: 2.5rem;
        bottom: 0;
    }
}

/* --- Hero Profile Card --- */
#heroProfile,
#profetionalExperiences,
#studies,
#gitHubPage,
#interestsCard {
    border-radius: 20px;
    background-color: var(--card-bg);
}

/* Avatar Styling */
.hero-avatar {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%; /* Modern circular look */
    border: 5px solid var(--card-bg);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.hero-avatar:hover {
    transform: scale(1.05);
}

/* Icon Boxes for the "Highlights" area */
.hero-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Typography Tweaks */
.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Dark Mode Adjustments for the new card */
[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: rgba(255,255,255,0.03) !important;
}

[data-bs-theme="dark"] .border-end {
    border-color: rgba(255,255,255,0.05) !important;
}

/* --- Interests "Lifestyle" Card --- */
.interest-pill {
    background-color: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

[data-bs-theme="dark"] .interest-pill {
    border-color: rgba(255,255,255,0.1);
    background-color: rgba(255,255,255,0.05);
}

.interest-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

/* --- Footer Tweaks --- */
footer {
    transition: opacity 0.3s;
}

footer:hover {
    opacity: 1 !important;
}

/* Adjust the separator line in dark mode */
[data-bs-theme="dark"] .border-bottom {
    border-color: rgba(255,255,255,0.1) !important;
}

[data-bs-theme="dark"] .btn-outline-dark {
	color: #fff !important;
}
