@charset "utf-8";

/* 🌍 General Styles */
body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    padding-top: 5.0rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.card {
    border-radius: 0.8rem!important;
}

.card-img-overlay {
    border-radius: 0.8rem!important;
}

.rounded-xl {
    border-radius: 0.8rem!important;
}

.rounded-xl-bottom {
    border-bottom-right-radius: 0.8rem !important;
    border-bottom-left-radius: 0.8rem !important;
}

.rounded-xl-top {
    border-top-left-radius: 0.8rem !important;
    border-top-right-radius: 0.8rem !important;
}


.text-profile-position {
    font-weight: 400;
}

.text-profile-bio {
    font-weight: 400;
}

.navbar {
    opacity: 0.95;
}

.inline-badge {
    height: 16px;
    vertical-align: -10%;
    margin-right: 2px;
}

.no-break {
    white-space: nowrap;
}

.cover-image {
    width: 180px;
    max-height: 120px;
}

.abstract-body {
    min-height: 100px;
}

/* Lazy Loading Placeholder */
img.lazy, div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px 50px;
    min-height: 80px;
}

.badge-publication {
    font-size: 100%;
}

.email-text {
    font-family: Source Code Pro, monospace;
}

/* 🌙 Dark Mode - General */
.dark-mode {
    background-color: #181818 !important;
    color: #e0e0e0 !important;
}

/* 🌙 Dark Mode - News Section */
.dark-mode .my-3.bg-white.shadow-sm.rounded-sm {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0) !important;
}



.dark-mode .border-bottom.border-gray,
.dark-mode .border-top.border-gray {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .media {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

.dark-mode .media-body {
    background: transparent !important;
}

/* 🌙 Dark Mode - Publications Section */
.dark-mode .px-3.pb-1 {
    background: #1a1a1a !important;
}

.dark-mode .p-3.mb-0.border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 🌙 Dark Mode - Item Cards */
.dark-mode .row.no-gutters {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .col-md-3.col-xl-2.mb-md-0.p-md-3 {
    background: transparent !important;
}

.dark-mode .col-md-9.col-xl-10.p-3.pl-md-0 {
    background: #1a1a1a !important;
}

/* 🌙 Dark Mode - Small Text, Abstract, and Links */
.dark-mode .text-muted {
    color: #bbbbbb !important;
}

.dark-mode .small.text-muted {
    color: #bbbbbb !important;
}

/* 🌙 Dark Mode - Card Elements */
.dark-mode .card {
    background: linear-gradient(145deg, #222, #181818) !important;
    color: #e0e0e0 !important;
    border: 5px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1px;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
}

/* 🌙 Dark Mode - Button Styles */
.dark-mode .btn-primary {
    background-color: #bb86fc !important;
    border-color: #bb86fc !important;
}

.dark-mode .btn-primary:hover {
    background-color: #ff79c6 !important;
    border-color: #ff79c6 !important;
}

.dark-mode .card .btn {
    background: #bb86fc !important;
    color: #181818 !important;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}

.dark-mode .card .btn:hover {
    background: #ff79c6 !important;
    box-shadow: 0 0 15px rgba(255, 121, 198, 0.7);
}

/* 🌙 Dark Mode - Ensure Background for All Containers */
.dark-mode .container,
.dark-mode .row,
.dark-mode .col-md-6,
.dark-mode .col-lg-4,
.dark-mode .jumbotron,
.dark-mode .bg-light,
.dark-mode .shadow-sm,
.dark-mode .rounded-sm,
.dark-mode section,
.dark-mode div,
.dark-mode article {
    background-color: #181818 !important;
    color: #e0e0e0 !important;
}

/* 🌙 Dark Mode - Borders and Separators */
.dark-mode .border-gray {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 🌙 Dark Mode - Light Mode Toggle Button */
.dark-mode #dark-mode-toggle {
    color: #ffffff !important;
    background-color: #333 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dark-mode #dark-mode-toggle:hover {
    background-color: #444 !important;
    color: #ffcc66 !important;
}

.dark-mode .navbar {
    background-color: #282828 !important; /* Slightly lighter dark gray */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.dark-mode .navbar a,
.dark-mode .navbar .nav-link {
    color: #e0e0e0 !important; /* Restores light text color */
}

.dark-mode .navbar a:hover {
    color: #bb86fc !important; /* Previous purple hover color */
}

.dark-mode .navbar .nav-link.active,
.dark-mode .navbar .nav-item.active > a {
    font-weight: bold !important;
    color: #ffffff !important; /* Ensure max contrast */
}


.dark-mode a {
    color: #bb86fc !important; /* Restores purple links */
}

.dark-mode a:hover {
    color: #ff79c6 !important; /* Soft pink for hover */
}



/* 🌍 Profile-Specific Social Icons */
.profile-social-icons a {
    display: inline-block;
    align-items: center; /* Centers vertically */
    justify-content: center; /* Centers horizontally */
    height: 1rem;
    width: 2rem;
    background-color: transparent;
    color: #043361 !important;
    border-radius: 100%;
    text-align: center;
    font-size: 1.15rem;
    line-height: 0.5rem;
    transition: all 0.3s ease-in-out;
}

@media (prefers-color-scheme: dark) {
    .profile-social-icons a {
        color: #3eb7f0 !important;
    }
}

/* 🎓 Google Scholar */
.profile-social-icons .google-scholar { color: #4285F4 !important; }

@media (prefers-color-scheme: dark) {
    .profile-social-icons .google-scholar { color: #3eb7f0 !important; }
}

/* 💼 LinkedIn */
.profile-social-icons .linkedin { color: #0077B5 !important; }

@media (prefers-color-scheme: dark) {
    .profile-social-icons .linkedin { color: #0A66C2 !important; }
}

/* 🐦 Twitter */
.profile-social-icons .twitter { color: #1DA1F2 !important; }

/* 🏆 ORCID */
.profile-social-icons .orcid { color: #A6CE39 !important; }

/* 🐙 GitHub */
.profile-social-icons .github { color: #000 !important; }

@media (prefers-color-scheme: dark) {
    .profile-social-icons .github { color: #c9d1d9 !important; }
}

/* ✨ Hover Effects */
.profile-social-icons a:hover {
    background-color: white;
    color: black;
    transform: scale(1.2);
}

@media (prefers-color-scheme: dark) {
    .profile-social-icons a:hover {
        background-color: #20212b;
        color: black;
        transform: scale(1.2);
    }
}

.dark-mode span.text-body {
    color: #888888 !important; /* Lighter gray for dark mode */
}

.dark-mode strong {
    font-weight: bold !important; /* Ensures text is actually bold */
    filter: brightness(1.5); /* Slightly lighter than the normal text */
}
