/* Custom styles for the homepage */
.page__content {
    max-width: 100%;
    padding-right: 0;
}

.page__content h1 {
    font-weight: 700;
    color: var(--global-text-color);
}

.page__content h2 {
    color: var(--global-text-color-light);
    border-bottom: none;
}

.page__content ul {
    margin: 0;
    padding: 0;
}

.page__content ul li {
    margin-bottom: 0.5em;
}

.page__content a {
    text-decoration: none;
    color: var(--global-link-color);
}

.page__content a:hover {
    text-decoration: underline;
}

@media screen and (min-width: 64em) {
    .page__content {
        float: none;
        width: 100%;
    }
}

/* Style for footer icons */
.footer-icons {
    text-align: center;
    margin-bottom: 10px;
}

.footer-icons a {
    font-size: 48px;
    margin: 0 10px;
    color: inherit;
    transition: color 0.3s ease;
}

.footer-icons a:hover {
    color: #0366d6;
}

/* Fix for Font Awesome icons */
.fa, .fas, .far, .fab {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.cv-main-container {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 16px;
}

.cv-section-card {
  background: var(--global-bg-color);
  border: 1px solid var(--global-border-color);
  border-radius: 10px;
  margin-bottom: 32px;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.cv-section-card h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 18px;
  color: var(--global-text-color);
  margin-top: 0;
}

.cv-edu-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}

.cv-edu-years {
  background: #10b0e6;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  padding: 6px 16px;
  margin-right: 24px;
  min-width: 90px;
  text-align: center;
  font-size: 1rem;
  margin-top: 4px;
}

.cv-edu-details {
  flex: 1;
  color: var(--global-text-color);
}

.cv-edu-details strong {
  font-size: 1.1rem;
  color: var(--global-text-color);
}

.cv-edu-institution {
  display: block;
  margin: 4px 0 8px 0;
  color: var(--global-text-color-light);
  font-size: 1rem;
}

.cv-edu-details ul {
  margin: 0;
  padding-left: 18px;
  color: var(--global-text-color-light);
  font-size: 0.98rem;
}

body {
  background: var(--global-bg-color);
}

html[data-theme="dark"] .page__hero--overlay,
html[data-theme="dark"] .page__hero {
    background-color: var(--global-bg-color) !important;
    background-image: none !important;
}

/* Updates Block - works for both dark and light mode */
.updates-block {
  border-radius: 12px;
  padding: 2em 2em 1.5em 2em;
  margin: 2em 0;
  font-size: 1.1em;
  background: #23262a; /* Default for dark mode */
  color: #f1f1f1;
  border: 1px solid #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: 
    background 0.3s, 
    color 0.3s, 
    box-shadow 0.3s, 
    border 0.3s, 
    transform 0.2s;
}

/* Light mode */
body:not(.dark-mode) .updates-block {
  background: #23262a !important;
  color: #f1f1f1 !important;
  border: 1px solid #444 !important;
}

/* Dark mode */
body.dark-mode .updates-block {
  background: #181a1b;
  color: #f1f1f1;
  border: 1px solid #333;
}

/* List styling inside updates block */
.updates-block ul {
  list-style-type: disc;
  padding-left: 2em;
  margin: 0;
}
.updates-block li {
  margin-bottom: 0.75em;
  padding-left: 0.1em;
  line-height: 1.6;
}

/* Hover effect for both modes */
.updates-block:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  border-color: #4f8cff;
  transform: translateY(-2px) scale(1.01);
}

/* masthead logo size */
.logo-item img{height:48px;}

/* center nav links */
.masthead__menu .visible-links{
  flex:1;
  justify-content:center;
}

/* Project cards hover effect */
.project-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
}

.project-card img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.02);
  filter: brightness(1.05) saturate(1.05);
}