body {
    font-family: 'Inter', sans-serif;
    background: #f6f7fb;
    color: #24314b;
}

@font-face {
    font-family: 'Inter';
    src: url('lib/fonts/Inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('lib/fonts/Inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('lib/fonts/Inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
body, h1, h2, h3, h4, h5, h6, .btn, .badge, .card, .navbar, .dropdown-menu {
    font-family: 'Inter', Arial, sans-serif !important;
}

.hero-header {
    background: linear-gradient(90deg, #0254a7 30%, #0254a7 100%);
    color: #fff;
    padding: 3.2rem 0 2rem 0;
    margin-bottom: 2.5rem;
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0 8px 32px rgba(45, 105, 235, 0.08);
}

.profile-avatar {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
    margin-bottom: 1.1rem;
    transition: transform 0.2s;
    background: #fff;
}

.profile-avatar:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1355af;
    margin-bottom: .8rem;
    letter-spacing: 0.5px;
    border-left: 4px solid #0d6efd;
    padding-left: .6em;
    padding-right: .6em;
    background: #eaf3ff;
    border-radius: 0 .5rem .5rem 0;
    display: inline-block;
}

.card {
    border: none;
    border-radius: 1.2rem;
    padding: 0.3rem;
    box-shadow: 0 3px 18px rgba(30, 60, 150, 0.07);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(30, 60, 150, 0.12);
}

.badge-custom {
    background: linear-gradient(90deg, #ec8f04 60%, #20e706 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: .7rem;
    padding: 0.42em 1em;
    margin-right: .5em;
    font-size: .85em;
    box-shadow: 0 2px 6px rgba(30, 100, 255, 0.13);
}

.profile-summary p {
    font-size: 1.04rem;
    color: #29395a;
}

.profile-summary h2 {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1244a2;
}

a,
a:visited {
    color: #1355af;
    text-decoration: none;
    transition: color .15s;
}

a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.navbar {
    box-shadow: 0 2px 14px rgba(45, 105, 235, 0.05);
    background-color: #0254a7;
    position: sticky;
    top: 0;
    z-index: 1060 !important;
}

.navbar-brand {
    color: #fff !important;
}

.nav-link,
.nav-link:focus,
.nav-link:visited {
    color: #fff !important;
}

.nav-link.active,
.nav-link:hover {
    color: #f7e800 !important;
    background: rgba(13, 110, 253, .13);
    border-radius: .6rem;
}

.card-body ul {
    padding-left: 1.2em;
}

.card-body ul li {
    margin-bottom: 0.45em;
    font-size: 1.04em;
}

.footer-link {
    color: #1244a2;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.news-bullet {
    font-size: 1.2em;
    color: #0d6efd;
    vertical-align: top;
    margin-right: .38em;
}

.site-footer {
    margin-top: 4rem;
    background: #eaf3ff;
    padding: 2rem 0 1rem 0;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -1px 18px rgba(13, 110, 253, .07);
    font-size: 1.07em;
}

.site-footer a {
    color: #1e3995;
    font-weight: 500;
    text-decoration: none;
}

.site-footer a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .hero-header {
        padding: 2.2rem 0 1.5rem 0;
        border-radius: 0 0 1.3rem 1.3rem;
    }

    .profile-avatar {
        width: 140px;
        height: 140px;
    }
}

.footer-pro {
    background: #202a44;
    color: #e1e5ec;
    border-top: 2px solid #1769ff;
    font-size: 1.04em;
    letter-spacing: 0.01em;
}

.footer-pro .footer-icon-link {
    color: #b4c8f8;
    margin-right: 0.5em;
    font-size: 1.22em;
    transition: color 0.15s;
    display: inline-block;
}

.footer-pro .footer-icon-link:hover {
    color: #fff;
    text-decoration: none;
}

/* Animated Gradient Text for Hero Name */
.hero-header h2 {
    background: linear-gradient(90deg, #f7e800 10%, #fff 40%, #0d6efd 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 3.5s linear infinite;
    background-size: 200% 200%;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Card pop on hover (already present, add subtle up effect) */
.card:hover {
    transform: translateY(-7px) scale(1.025);
    transition: box-shadow 0.2s, transform 0.3s cubic-bezier(.22, .61, .36, 1);
}

/* Badge animation - bounce in */
.badge-custom,
.badge {
    animation: badge-in 1.1s cubic-bezier(.61, 1.29, .72, .92) both;
}

@keyframes badge-in {
    0% {
        transform: scale(0.7) translateY(-10px);
        opacity: 0;
    }

    65% {
        transform: scale(1.15) translateY(2px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

/* Fade and slide effect for sections */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

.navbar {
    animation: navbar-fade-in 0.7s cubic-bezier(.5, 1.3, .6, .95) 0.1s both;
}

@keyframes navbar-fade-in {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: add a soft glow to the avatar on hover */
.profile-avatar:hover {
    box-shadow: 0 6px 28px 2px #0d6efd33, 0 0 0 8px #fff3;
    filter: brightness(1.08);
}

@keyframes twinkle {
    from { filter: brightness(1.4);}
    to { filter: brightness(2);}
}

.conference-list {
    font-size: 1.08em;
    padding-left: 1.2em;
}

.conference-list li {
    margin-bottom: 1.05em;
    line-height: 1.6;
}

.highlight-author {
    /* color: #0d6efd; */
    /* font-weight: 600; */
}

.search-box {
    max-width: 400px;
    /* margin-bottom: 2rem; */
    margin-left: auto;
    margin-right: auto;
}

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1050;
    padding: 12px 16px;
    border: none;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: opacity 0.2s;
  }

  #backToTopBtn.show {
    display: block;
    opacity: 1;
  }

  #backToTopBtn:active {
    background: #0747a6;
  }

/* Enhanced custom menu button styling to make it more obvious */

/* Custom hamburger menu styling - hidden by default on larger screens */
.custom-menu-btn {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    width: 45px !important;
    height: 45px !important;
    display: none !important; /* Hidden by default */
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
}

.custom-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.custom-menu-btn:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
}

.hamburger-line {
    width: 20px !important;
    height: 3px !important;
    background-color: #fff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    transform-origin: center !important;
}

/* Hamburger to X animation when menu is active */
.custom-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
}

.custom-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
    transform: scale(0) !important;
}

.custom-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
}

/* Add a subtle animation to draw attention */
@keyframes custom-menu-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 991px) {
    .custom-menu-btn {
        display: flex !important; /* Show on mobile devices */
        animation: custom-menu-pulse 2s ease-in-out infinite;
    }
}