@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;700&display=swap');

html {
    scroll-padding-top: 80px; /* Offset for fixed navbar */
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 56px; /* Height of navbar */
}

/* Fixed Navbar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body.night-mode .navbar {
    box-shadow: 0 2px 4px rgba(255,255,255,0.1);
}

.title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    padding-bottom: 10px;
    color: black; /*#3525af;*/
    position: relative;
    text-align: right;
    margin-bottom: 15px;
}

.title:before {
    content: "";
    position: absolute;
    top: 35px;
    right: 0;
    width: 50px;
    height: 3px;
    background: black; /*#3525af;*/
}

.biography {
    padding: 30px;
    color: #292b2f;
}

.biography .education {
    margin-top: 30px;
}

.biography .li_wrap {
    display: flex;
    margin-bottom: 15px;
}

.biography .li_wrap .date {
    width: 125px;
    color: black; /*#3525af;*/
}

.biography .li_wrap .info {
    width: calc(100% - 125px);
    padding-left: 25px;
    position: relative;
}

.biography .li_wrap .info_title {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: black; /*#3525af;*/
}

.biography .li_wrap .info_com {
    font-weight: 300;
    font-size: 12px;
    margin-top: 3px;
}

.biography .li_wrap .info_link {
    font-weight: 300;
    font-size: 15px;
    margin-top: -10px;
}

.biography .li_wrap .info_cont {
    margin-top: 15px;
}

.biography .li_wrap .info:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 10px;
    height: 10px;
    background: black; /*#3525af;*/
    border-radius: 50%;
}

.biography .li_wrap .info:after {
    content: "";
    position: absolute;
    top: 10px;
    left: 4px;
    width: 2px;
    height: 90%;
    background: black; /*#3525af;*/
}

h2 a img {
    height: 25px;
    margin-bottom: 8px;
}

.footer-logo {
    width: auto;
    height: 35px;
    vertical-align: middle;
}

#avatar {
    width: 250px;
    height: 250px;
    margin: 0 auto 30px auto;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #e0e0e0;
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.05);
}

body.night-mode #avatar {
    border-color: #2a2a2a;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05);
}

.opacity-affect:hover {
    opacity: 0.5;
    filter: alpha(opacity=50);
}

.fab,
.far,
.fas {
    font-size: 70px;
    padding: 5px;
}

.fa-github,
.fa-file-pdf,
.fa-link {
    font-size: 30px;
    text-align: center;
}

.fa-file-pdf {
    margin-left: 3px;
}

.icon-sm {
    font-size: 40px;
    position: relative;
    top: -5px;
}

.icon-text-git {
    margin-left: 5px;
    position: relative;
    top: -5px;

}

.icon-text-pdf {
    margin-left: 14px;
    position: relative;
    top: -5px;
}

.image-icon {
    width: auto;
    height: 100px;
    padding: 10px 0;
}

.text-padding li {
    margin: 15px 0;
}

a:link {
    color: #095484;
}

/* visited link */
a:visited {
    color: #095484;
}


/* footer */
footer {
    padding: 30px 0;
}

h6 {
    color: #000000;
    padding-top: 10px;
}

.footer-link li a {
    font-size: 1.5rem;
    color: #000000;

}

ul.courses-list {
    padding-inline-start: 0px;
    list-style: none;
}

ul.courses-list > li {
    box-shadow: 0.25rem 0.25rem 0.6rem rgba(0, 0, 0, 0.05), 0 0.5rem 1.125rem rgba(75, 0, 0, 0.05);
    background: white;
    margin-bottom: 1rem;
    font-size:20px;
    padding: 0.8rem 2rem 0.8rem 2rem;
}


/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    #avatar2 {
        margin-left: 70px;
        margin-right: 100px;
    }

    .hide {
        display: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {

}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {

}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {

}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

}

/* Night Mode Styles */
body.night-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.night-mode .navbar {
    background-color: #2a2a2a !important;
}

body.night-mode .navbar-brand,
body.night-mode .nav-link {
    color: #e0e0e0 !important;
}

body.night-mode .nav-link:hover {
    color: #ffffff !important;
}

body.night-mode .jumbotron {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.night-mode .biography {
    color: #e0e0e0;
}

body.night-mode .title {
    color: #e0e0e0;
}

body.night-mode .title:before {
    background: #e0e0e0;
}

body.night-mode .biography .li_wrap .date {
    color: #e0e0e0;
}

body.night-mode .biography .li_wrap .info_title {
    color: #e0e0e0;
}

body.night-mode .biography .li_wrap .info:before {
    background: #e0e0e0;
}

body.night-mode .biography .li_wrap .info:after {
    background: #e0e0e0;
}

body.night-mode footer {
    background-color: #2a2a2a !important;
}

body.night-mode a:link,
body.night-mode a:visited {
    color: #6ab7ff;
}

body.night-mode ul.courses-list > li {
    background: #2a2a2a;
    box-shadow: 0.25rem 0.25rem 0.6rem rgba(255, 255, 255, 0.05);
}

#night-mode-toggle {
    margin-left: 10px;
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1;
}

#night-mode-toggle i {
    font-size: 0.875rem;
}

body.night-mode #night-mode-toggle {
    background-color: #e0e0e0;
    color: #1a1a1a;
    border-color: #e0e0e0;
}

body.night-mode #night-mode-toggle:hover {
    background-color: #ffffff;
    border-color: #ffffff;
}

/* Publication title styling */
.publication-title {
    text-decoration: underline;
    cursor: pointer;
    color: inherit;
}

.publication-title:hover {
    opacity: 0.7;
}

.abstract {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 15px;
    background-color: #f5f5f5;
    border-left: 3px solid black;
    border-radius: 3px;
}

body.night-mode .abstract {
    background-color: #2d2d2d;
    border-left: 3px solid #ffffff;
}

.abstract-text {
    margin: 0;
    text-align: justify;
    line-height: 1.6;
    font-size: 14px;
}

/* Contact box styling */
.contact-box {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border: 2px solid black;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.night-mode .contact-box {
    background-color: #2d2d2d;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}

.contact-box i {
    margin-right: 10px;
    font-size: 18px;
}

.contact-box a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

body.night-mode .contact-box a {
    color: #ffffff;
}

.contact-box a:hover {
    text-decoration: underline;
}