/* Fonts */
:root {--default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Playfair Display",  sans-serif;
  --nav-font: "Poppins",  sans-serif;}

/* Global Colors */
:root {--background-color: #ffffff;
  --secondary-background-color: #f8f9fa;
  --default-color: #2c2c2e;
  --secondary-text-color: #535357;
  --heading-color: #007d71;
  --accent-color: #f33171;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --shadow-color: #000000;

/* Nav Menu Colors */
  --nav-color: #50605f; 
  --nav-hover-color: #f33171;
  --nav-mobile-background-color: #ffffff;
}

/* Dark Mode Colors */
body.dark-mode {
  --background-color: #060606;
  --secondary-background-color: #252525;
  --default-color: #ffffff;
  --secondary-text-color: #b0b0b0;
  --heading-color: #ffffff;
  --accent-color: #f33171;
  --surface-color: #252525;
  --contrast-color: #ffffff;
  --shadow-color: #ffffff;

  --nav-color: #ffffff; 
  --nav-hover-color: #f33171;
  --nav-mobile-background-color: #252525;
}

/* Hero Section Colors */
.dark-background {--background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;}

/* Background Variants */
.light-background {--background-color: var(--secondary-background-color);
  --surface-color: var(--secondary-background-color);
  }
  
/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);}

.second-text {color: var(--secondary-text-color);}

a {color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;}

a:hover {color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;}

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


/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;}

.header .logo {line-height: 1;}

.header .logo img {max-height: 32px;
  margin-right: 8px;}

.header .logo h1 {font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);}

.scrolled .header {box-shadow: 0px 0 18px color-mix(in srgb, var(--shadow-color), transparent 90%);}

.dark-mode-toggle i {font-size: 24px;
  color: var(--default-color);
  line-height: 0;
  margin-right: 10px;}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {.navmenu {
    padding: 0;}

.navmenu ul {margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;}

.navmenu li {position: relative;}

.navmenu a,
  .navmenu a:focus {color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;}

.navmenu a i,
  .navmenu a:focus i {font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;}

.navmenu li:last-child a {padding-right: 0;}

.navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {color: var(--nav-hover-color);}
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {.mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;}

.navmenu {padding: 0;
    z-index: 9997;}

.navmenu ul {display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px color-mix(in srgb, var(--shadow-color), transparent 90%);}

.navmenu a,
  .navmenu a:focus {color: var(--nav-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;}

.navmenu a i,
  .navmenu a:focus i {font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);}

.navmenu a i:hover,
  .navmenu a:focus i:hover {background-color: var(--accent-color);
    color: var(--contrast-color);}

.navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {color: var(--nav-hover-color);}

.navmenu .active i,
  .navmenu .active:focus i {background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);}

.mobile-nav-active {overflow: hidden;}

.mobile-nav-active .mobile-nav-toggle {color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;}

.mobile-nav-active .navmenu {position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;}

.mobile-nav-active .navmenu>ul {display: block;}

}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
  position: relative;}

.footer p {font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 30px 0;}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;}

.scroll-top i {font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;}

.scroll-top:hover {background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);}

.scroll-top.active {visibility: visible;
  opacity: 1;}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {[data-aos-delay] {
    transition-delay: 0 !important;}

}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;}

@media (max-width: 1199px) {section,
  .section {
    scroll-margin-top: 66px;}

}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {padding-bottom: 30px;
  position: relative;}

.section-title h2 {font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;}

.section-title h2:after {content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;}

.section-title p {margin-bottom: 0;}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  background: url('../img/title-self.png') top center no-repeat;
  background-size: cover;
  width: 100%;
  min-height: 90vh;
  position: relative;
  padding: 120px 0 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 90%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

#graph-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Behind content */
  pointer-events: none; /* So it doesn't block clicks */
}

.hero h2 {
  margin: 0;
  font-size: 56px;
  font-weight: 1500;
  line-height: 76px;
}

.hero p {color: color-mix(in srgb, var(--accent-color), transparent 20%);
  margin: 10px 0 0 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero .btn-scroll {transition: 0.4s;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  display: block;
  margin-top: 30px;
  animation: btn-up-down 1s ease-in-out infinite alternate-reverse both;}

.hero .btn-scroll i {font-size: 48px;}

.hero .btn-scroll:hover {color: var(--accent-color);}


@keyframes btn-up-down {0% {
    transform: translateY(5px);}

}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
#about {
  min-height: 90vh;
}

.about .header-info > * {
  margin-bottom: 2.0rem;
  align-items: center;}

.about .header-info .hello-bubble {
  border-bottom-left-radius: 0px !important;
  margin-bottom: 1.0rem;
}

.about .social-icons img {
  display: inline-block;
  line-height: 1;
  vertical-align: -.125em;
  filter: grayscale(100%);
  color: var(--default-color);
}

.about .content h2 {font-weight: 700;
  font-size: 24px;}

.about .content ul {list-style: none;
  padding: 0;}

.about .content ul li {margin-bottom: 20px;
  display: flex;
  align-items: center;}

.about .content ul strong {margin-right: 10px;}

.about .content ul i {font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;}

/*--------------------------------------------------------------
# Work Experience Section
--------------------------------------------------------------*/
.timeline {
  position: relative;
}

.timeline-entry {
  border-left: none; /* remove direct border */
  position: relative;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  top: 2rem;
  bottom: 6rem;
  left: -1.5px;
  width: 3px;
  height: 100%;
  background-color: var(--accent-color);
}

.timeline-marker {
  position: absolute;
  left: -12px;
  top: 1.1rem;
  width: 24px;
  height: 24px;
  background-color: var(--surface-color);
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  z-index: 1;
}

/* Optional hover reveal */
.timeline-content {
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: none;
  transition: all 0.3s ease;
  opacity: 0.9;
}
.timeline-entry:hover .timeline-content {
  box-shadow: 0 6px 18px color-mix(in srgb, var(--shadow-color), transparent 90%);
  opacity: 1;
}

/*---------------------------------------------------------------
# Qualifications Section
--------------------------------------------------------------*/
.qualification-content {
  background-color: var(--surface-color);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: none;
  transition: all 0.3s ease;
  opacity: 0.9;
}
.qualification-content:hover {
  box-shadow: 0 6px 18px color-mix(in srgb, var(--shadow-color), transparent 90%);
  opacity: 1;
}

.qualifications .lang-box {
  font-family: monospace;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  display: inline-block;
  margin: 0.5rem 0.5rem 0 0; /* top-right-bottom-left */
}

.color1 { background-color: #e74c3c; color: #e74c3c; }
.color2 { background-color: #3498db; color: #3498db; }
.color3 { background-color: #2ecc71; color: #2ecc71; }
.color4 { background-color: #9b59b6; color: #9b59b6; }
.color5 { background-color: #f39c12; color: #f39c12; }
.color6 { background-color: #1abc9c; color: #1abc9c; }
.color7 { background-color: #e67e22; color: #e67e22; }
.color8 { background-color: #34495e; color: #34495e; }
.color9 { background-color: #7f8c8d; color: #7f8c8d; }
.color10 { background-color: #d35400; color: #d35400; }
.color11 { background-color: #16a085; color: #16a085; }

body:not(.dark-mode) .qualifications .lang-box {
  background-color: transparent;
  border: 2px solid currentColor;
}

.dark-mode .qualifications .lang-box {
  color: #fff;
  border: 2px solid currentColor;
}

/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/
.projects .card {
  background-color: var(--surface-color);
  box-shadow: none;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.projects .card:hover {
  box-shadow: 0 6px 18px color-mix(in srgb, var(--shadow-color), transparent 90%);
  opacity: 1;
}

.projects .card-title {
  font-family: var(--heading-font);
  font-size: 1.25rem;       /* or 1.5rem for bigger */
  font-weight: 600;
  color: var(--heading-color);
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.projects .card:hover .card-title {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

.projects .card-body {
  color: var(--default-color);
}

.projects .card-body > * {
  margin-bottom: 2.0rem;
}

.projects .card-body > *:last-child {
  margin-bottom: 0;
}

