/* Animation */
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fade-bottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fade-left {
  0% {
    transform: translateX(-10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-right {
  0% {
    transform: translateX(20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Header animation */
@keyframes fade-up {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

header .navbar.animate {
    animation: fade-up 0.5s ease-in;
}

/* ToolTip */

.tooltip {
    line-height: 1rem;
    border-radius: .5rem !important;
}
.tooltip-inner {
    line-height: 1rem;
}
.tooltip .tooltip-arrow { 
    visibility: hidden !important;
}

/* hero */

#hero {
    /* min-height: 100vh; */
    line-height: 2rem;
    max-width: 100%;
}
#hero .content.animate {
    animation: fade-left 1s ease-out;
}

#hero .hero-bottom-svg {
    opacity: 0.5;
    position: absolute;
    bottom: -50px;
    left: -150px;
}

#hero .subtitle {
    font-size: clamp(14px,5vw,16px);
    opacity: 0.6;
}

#hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--primary-color) !important;
}

#hero h2 {
    font-size: clamp(40px, 8vw, 60px);
    /* max-width: 640px; */
    opacity: 0.5;
}

#hero p {
    margin: 20px 0px 0px;
    /* max-width: 580px; */
    opacity: 0.8;
}

#hero .image img {
    width: 820px;
    aspect-ratio: 1 / 1;
    object-fit: cover; 

    box-shadow:0px 8px 56px rgba(15, 80, 100, 0.1);
    padding: 0;
    border: 3px solid var(--secondary-color);
    border-radius: 1rem;
}

#hero .image.animate img {
    animation: fade-in 1s ease-out;
    transition: box-shadow 0.3s;
}

#hero .image img:hover {
    cursor: pointer;
}

#hero .image.animate img:hover {
    box-shadow: 0 0 11px rgb(15 80 100 / 20%);
    filter: contrast(1.03);
    cursor: pointer;
}

#hero a.btn.social-icon {
    color: var(--primary-color) !important;
    line-height: 0%;
    border-radius: 50%;
    margin-top: 50px;
    padding: 0.7rem;
    border: 1px solid var(--primary-color);
    transition: none;
}

#hero a.btn.social-icon img {
    width: 1em;
}

#hero a.btn.social-icon:hover {
    opacity: 0.8;
}

#hero a.btn {
    margin-top: 50px;
    padding: 0.7rem 1.75rem;
    border: 1px solid var(--primary-color);
    color: var(--text-color) !important;
    border-radius: .75rem;
    transition: none;
}

#hero a.btn:focus {
    box-shadow: none;
}

#hero a.btn:hover {
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
    opacity: 0.9;
}

#hero a.btn.social-icon:hover {
    background-color: var(--background-color) !important;
    opacity: 0.7;
}

#hero .hero-content > a {
    display: inline-block;
    text-decoration: none;
    color: var(--text-link-color) !important;
}

#hero .hero-content > a::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    bottom: 0.37em;
    background-color: var(--primary-color);
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
    opacity: 0.5;
}

#hero .hero-content > a:hover::after, #hero .hero-content > a:focus::after, #hero .hero-content > a:active::after {
    width: 100%;
}

/* main content section, for opacity transition */
#mainContent {
  opacity: 0;
  will-change: opacity, transform;
}


/* about me */

#about h3 {
    color: var(--text-secondary-color) !important;
}

#about .image img {
    box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
    transition: box-shadow 0.3s;
    padding: 0;
    border: 0;
}

#about .image img:hover {
    box-shadow: 0 0 11px rgb(15 80 100 / 20%);
}

#about ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 0px 10px;
    padding: 0px;
    margin: 20px 0px 0px;
    overflow: hidden;
    list-style: none;
}

#about ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
}

#about ul li::before {
    content: "▹";
    color: var(--primary-color);
    position: absolute;
    left: 0px;
}

#about .content {
    font-weight: 500;
    opacity: 0.9 !important;
    line-height: 1.7rem !important;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;

    line-height: 1.7rem;
}


#about a {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color) !important;
}

#about a::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    bottom: 0.37em;
    background-color: var(--primary-color);
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
    opacity: 0.5;
}

#about a:hover::after, #about a:focus::after, #about a:active::after {
    width: 100%;
}


/* Box */

/* ======================================================
   BOX CONTAINER
   ====================================================== */

/* .box {
    background-color: var(--secondary-background-color);
    border-radius: .75rem;
    border: 2px solid transparent;
    box-sizing: border-box;

    box-shadow: 0px 8px 25px rgba(15, 55, 100, 0.16);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}


.box:hover {
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 1px var(--primary-color),
        0 8px 24px rgba(0, 123, 255, 0.05);
} */

/* .box-col {
  width: min(100%, 1800px);

  margin-left: auto;
  margin-right: auto;

  padding-left: 0rem;
  padding-right:0rem;

  flex: none;
} */

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin: 20pt 0;
    flex-grow: 1;
}

.box {
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: .75rem;
    box-sizing: border-box;

    border: none;
    box-shadow: 0px 0px 20px rgba(86, 201, 255, 0.05);
    /* box-shadow: none; */

    transition: box-shadow 0.25s ease;
}

.box:hover {
    box-shadow: 0px 0px 25px rgba(71, 197, 255, 0.1);
    /* box-shadow: 0px 0px 20px rgba(15, 55, 100, 0.5); */
}


/* ======================================================
   BOX BODY
   ====================================================== */

.box .card-body {
    padding: 1.5rem;
    border-radius: inherit;
}

@media (max-width: 768px) {
    .box .card-body {
        padding: 1.25rem;
    }
}

/* ======================================================
   TITLES & META
   ====================================================== */

.box h5 {
    margin-bottom: 0;
}

.box h6,
.box h6 a {
    color: var(--primary-color) !important;
    font-weight: 500;
    opacity: 1;
}

.box small {
    opacity: 0.8;
}

/* ======================================================
   CONTENT TEXT
   ====================================================== */

.box-content {
    color: var(--text-color);
    /* color: ""#ffffff""; */
    font-family: inherit;
    opacity: 0.9;

    text-align: justify;
    text-align-last: left;

    line-height: 1.7rem;

    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Lists inside content */
.box-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.box-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.box-content li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ======================================================
   LINKS
   ====================================================== */

.box a {
    color: var(--text-link-color) !important;
    text-decoration: none;
    opacity: 0.9;
    display: inline-block;
}

.box a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.25s cubic-bezier(0.645,0.045,0.355,1);
    opacity: 0.5;
}

.box a:hover::after {
    width: 100%;
}

.box .btn::after {
    display: none !important;
}

/* ======================================================
   LOGO (company / university)
   ====================================================== */

.box-logo {
    max-height: 48px;
    max-width: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
}

/* ======================================================
   ICON ROW (optional)
   ====================================================== */

.box-icons a {
    margin-right: 0.5rem;
}

/* ======================================================
   BUTTON
   ====================================================== */

.box .btn {
    padding: 0.7rem 1.75rem;
    border: 1px solid var(--primary-color);
    border-radius: .75rem;

    background-color: transparent;
    color: var(--text-color) !important;

    box-shadow: none;
    transition: none;
}

.box .btn:hover {
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
    opacity: 0.9;
}

.box .btn:focus {
    box-shadow: none;
}

/* experience */

/* #experience .container {
    width: 85%;
    max-width: 1600px;
    margin: 0 auto;
} */

#experience h3 {
    color: var(--text-secondary-color);
}


/* Education */

/* #education .container {
    width: 85%;
    max-width: 1600px;
    margin: 0 auto;
} */

#education h3 {
    color: var(--text-secondary-color);
}


/* dissertations */

/* #dissertations .container {
    width: 85%;
    max-width: 1600px;
    margin: 0 auto;
} */

#dissertations h3 {
    color: var(--text-secondary-color);
}

#dissertations a {
    /* display: inline-block;
    text-decoration: none; */
    color: var(--primary-color) !important;
}

#dissertations .box .btn:hover {
    background-color: #2a4f8634 !important;
}


/* volunteering */

#volunteering h3 {
    color: var(--text-secondary-color) !important;
}

#volunteering * {
    background-color: transparent !important;
}

#volunteering .tab-pane > * {
    opacity: 0.9;
}

#volunteering .tab-pane small {
    opacity: 0.8;
}

#volunteering .tab-pane ul {
    padding-top: 1%;
    padding-bottom: 1%;
}

#volunteering .volunteering-container .tab-content > .tab-pane p {
    padding: 1% 0;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
}

#volunteering .volunteering-container {
    background-color: var(--secondary-color) !important;
    border-radius: .75rem;
    /* box-shadow: 0px 8px 56px rgb(15 80 100 / 16%); */
}

#volunteering .volunteering-container .tab-pane {
    padding: 0.75rem;
}


#volunteering .nav-item .nav-link {
    color: var(--text-color) !important;
    border-bottom: 2px solid transparent; 
    border-radius: 0%;
    transition: none;
    cursor: pointer;
}

#volunteering .nav-item .nav-link.active {
    color: var(--text-color) !important;
    border-bottom: 2px solid var(--primary-color); 
    opacity: 0.8;
}

#volunteering .nav-item .nav-link.active:hover { 
    transition: none !important;
}

#volunteering .nav-item .nav-link:hover {
    border-bottom: 2px solid var(--primary-color);
    opacity: 0.8;
}

#volunteering a {
    opacity: 0.9;
    display: inline-block;
    text-decoration: none;
    color: var(--text-link-color) !important;
}

#volunteering a::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    bottom: 0.37em;
    background-color: var(--primary-color);
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
    opacity: 0.5;
}

#volunteering a:hover::after, #volunteering a:focus::after, #volunteering a:active::after {
    width: 100%;
}

#volunteering .volunteering-container .tab-content .tab-pane ul {
    overflow: hidden;
    list-style: none;
    margin-bottom: 0;
}

#volunteering .volunteering-container .tab-content .tab-pane ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
}

#volunteering .volunteering-container .tab-content .tab-pane ul li::before {
    content: "▹";
    color: var(--primary-color);
    position: absolute;
    left: 0px;
}

#volunteering .volunteering-container .tab-content .tab-pane .featuredLink img {
    width: 1.1em;
}

#volunteering .volunteering-container .tab-content .tab-pane .featuredLink a::after {
    display: block;
    width: auto;
    height: auto;
    bottom: 0em;
    background-color: transparent;
    transition: none;
    opacity: 1;
}

#volunteering .volunteering-container .tab-content .tab-pane .featuredLink a.btn {
    border: 1px solid var(--primary-color);
    border-radius: .75rem;
    transition: none;
}

#volunteering .volunteering-container .tab-content .tab-pane .featuredLink a.btn:focus {
    box-shadow: none;
}

#volunteering .volunteering-container .tab-content .tab-pane .featuredLink a.btn:hover {
    color: var(--text-color) !important;
    opacity: 0.7;
}

/* ===============================
   VOLUNTEERING IMAGE CONTAINER
   =============================== */

#volunteering .volunteering-image-wrapper {
    width: 100%;
    height: 100%;
    /* min-height: 380px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force all images to same visual size */
#volunteering .volunteering-image-wrapper img {
    /* width: 380px;
    height: 380px; */
    width: 100%;
    height: 100%;
    max-width: 380px;
    max-height: 380px;
    object-fit: cover;
    border-radius: .75rem;
}

#volunteering .row.align-items-start {
    align-items: stretch !important;
}

#volunteering .tab-pane {
    transition: opacity 0.25s ease-in-out;
}


/* Make sure the volunteering box can be fixed to the max height */
#volunteering .volunteering-container {
  height: var(--volunteering-max-height, auto);
}

/* Optional: prevent overflow from spilling out */
#volunteering .volunteering-container .tab-content {
  overflow: hidden;
}

/* Vertically center the volunteering box inside the left column */
@media (min-width: 992px) {
  #volunteering .col-lg-8 {
    display: flex;
    align-items: center; /* vertical centering */
  }

  #volunteering .volunteering-container {
    width: 100%;
  }
}

#volunteering .tab-content {
    width: 100%;
}



/* #volunteering .col-lg-8,
#volunteering .col-lg-4 {
  align-self: flex-start;
} */



/* achievements */

#achievements a {
    text-decoration: none;
}

#achievements h3 {
    color: var(--text-secondary-color) !important;
}

#achievements .card {
    cursor: context-menu;
    background-color: var(--secondary-color) !important;
    border-radius: 1rem;
    /* box-shadow: 0 0 20px rgb(15 80 100 / 20%); */
    /* transform: translate3d(0, 0, 0); */
    transition: box-shadow .2s linear,opacity .2s linear;
    border: 2px solid transparent;
}

#achievements a.card {
    cursor: alias;
}

#achievements .card h5 {
    color: var(--text-color) !important;
    opacity: 0.9;
}

#achievements .card:hover {
    border: 2px solid var(--primary-color);
    transition: .3s;
}
#achievements .card:focus {
    border: 2px solid var(--text-color);
    transition: .3s;
}

#achievements .card-text {
    background-color: var(--secondary-color) !important;
    color: var(--text-secondary-color) !important;
}

#achievements img {
    border-radius: 0.7rem;
}

/* contact */

#contact h3 {
    color: var(--text-secondary-color) !important;
}

#contact .btn {
    transition: none;
    transition: opacity 0.3s;
    border-radius: .5rem !important;
    border-color: var(--primary-color) !important;
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
}

#contact .btn:hover {
    opacity: .7;
}

#contact .btn:focus {
    box-shadow: none !important;
}

#contact form .form-control {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: .7rem;
    border: 1px solid var(--text-secondary-color);
    box-shadow: 0px 8px 56px rgb(15 80 100 / 5%);
}

#contact-form-status {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1;
    transform: translate3d(0, 0, 0);
}

#contact-form-status svg {
    height: 18px;
    width: 18px;
}

#contact-form-status button {
    border-radius: 50%;
    border: none;
    background-color: white;
    padding: 0.5rem;
    margin-left: 0.5rem;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 5%);
    font-size: .6rem !important;
}

#contact-form-status .alert {
    border-radius: 0.5rem;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 5%);
    padding: .5rem 1rem;
}