/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/hyde.
 */


/*
 * Contents
 *
 * Global resets
 * Sidebar
 * Container
 * Reverse layout
 * Themes
 */


/*
 * Global resets
 *
 * Update the foundational and global aspects of the page.
 */

 html {
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
}
@media (min-width: 48em) {
  html {
    font-size: 16px;
  }
}
@media (min-width: 58em) {
  html {
    font-size: 20px;
  }
}


/*
 * Sidebar
 *
 * Flexible banner for housing site name, intro, and "footer" content. Starts
 * out above content in mobile and later moves to the side with wider viewports.
 */

.sidebar {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--sidebar-text);
  background-color: var(--sidebar-bg);
}
@media (min-width: 48em) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    text-align: left;
  }
}

/* Sidebar links */
.sidebar a {
  color: var(--sidebar-link);
}

/* About section */
.sidebar-about h1 {
  color: var(--sidebar-link);
  margin-top: 0;
  font-family: "Abril Fatface", serif;
  font-size: 3.25rem;
}

/* Sidebar nav */
.sidebar-nav {
  margin-bottom: 1rem;
}
.sidebar-nav-item {
  display: block;
  line-height: 1.75;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {
  font-weight: bold;
}

/* Sticky sidebar
 *
 * Add the `sidebar-sticky` class to the sidebar's container to affix it the
 * contents to the bottom of the sidebar in tablets and up.
 */

@media (min-width: 48em) {
  .sidebar-sticky {
    position: absolute;
    right:  1rem;
    bottom: 1rem;
    left:   1rem;
  }
}


/* Container
 *
 * Align the contents of the site above the proper threshold with some margin-fu
 * with a 25%-wide `.sidebar`.
 */

.content {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 48em) {
  .content {
    max-width: 48rem;
    margin-left: 20rem;
    margin-right: 2rem;
  }
}

@media (min-width: 64em) {
  .content {
    margin-left: 22rem;
    margin-right: 4rem;
  }
}


/*
 * Reverse layout
 *
 * Flip the orientation of the page by placing the `.sidebar` on the right.
 */

@media (min-width: 48em) {
  .layout-reverse .sidebar {
    left: auto;
    right: 0;
  }
  .layout-reverse .content {
    margin-left: 2rem;
    margin-right: 20rem;
  }
}

@media (min-width: 64em) {
  .layout-reverse .content {
    margin-left: 4rem;
    margin-right: 22rem;
  }
}



/*
 * Themes
 *
 * As of v1.1, Hyde includes optional themes to color the sidebar and links
 * within blog posts. To use, add the class of your choosing to the `body`.
 */

/* Base16 (http://chriskempson.github.io/base16/#default) */

/* Red */
.theme-base-08 .sidebar {
  background-color: #ac4142;
}
.theme-base-08 .content a,
.theme-base-08 .related-posts li a:hover {
  color: #ac4142;
}

/* Orange */
.theme-base-09 .sidebar {
  background-color: #d28445;
}
.theme-base-09 .content a,
.theme-base-09 .related-posts li a:hover {
  color: #d28445;
}

/* Yellow */
.theme-base-0a .sidebar {
  background-color: #f4bf75;
}
.theme-base-0a .content a,
.theme-base-0a .related-posts li a:hover {
  color: #f4bf75;
}

/* Green */
.theme-base-0b .sidebar {
  background-color: #90a959;
}
.theme-base-0b .content a,
.theme-base-0b .related-posts li a:hover {
  color: #90a959;
}

/* Cyan */
.theme-base-0c .sidebar {
  background-color: #75b5aa;
}
.theme-base-0c .content a,
.theme-base-0c .related-posts li a:hover {
  color: #75b5aa;
}

/* Blue */
.theme-base-0d .sidebar {
  background-color: #6a9fb5;
}
.theme-base-0d .content a,
.theme-base-0d .related-posts li a:hover {
  color: #6a9fb5;
}

/* Magenta */
.theme-base-0e .sidebar {
  background-color: #aa759f;
}
.theme-base-0e .content a,
.theme-base-0e .related-posts li a:hover {
  color: #aa759f;
}

/* Brown */
.theme-base-0f .sidebar {
  background-color: #8f5536;
}
.theme-base-0f .content a,
.theme-base-0f .related-posts li a:hover {
  color: #8f5536;
}

/* Profile image styling */
.profile-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Social icons */
.sidebar-social {
  margin-top: 2rem;
}

.sidebar-social a {
  margin: 0 0.5rem;
  font-size: 1.5rem;
  color: rgba(255,255,255,.7);
}

.sidebar-social a:hover {
  color: #fff;
}

/* Project cards */
.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  justify-content: space-between;
}

.project-card-content {
  flex: 1;
}

.project-card-footer {
  margin-top: auto;
}

.project-card h3 {
  margin-top: 0;
  color: var(--heading-color);
}

.project-card .tags {
  margin: 0.5rem 0;
}

.project-card .tag {
  background: var(--tag-bg);
  padding: 0.2rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  color: var(--text-color);
}

/* Section styling */
section {
  margin-bottom: 3rem;
}

section h2 {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;  
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  justify-content: space-between;
}

.project-card-content {
  flex: 1;
}

.project-card-footer {
  margin-top: auto;
}

.tags {
  margin: 0.5rem 0;
}

.tag {
  background: #f0f0f0;
  padding: 0.2rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  display: inline-block;
}

.project-links {
  margin-top: 1rem;
}

.project-links a {
  margin-right: 1rem;
  color: var(--link-color);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-links a:hover {
  transform: scale(1.1);
}

/* Project card image styling */
.project-image {
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
  overflow: hidden;

}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Publication cards */
.publication-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 15px var(--card-shadow);
}

.publication-card h3 {
  margin-top: 0;
  color: var(--heading-color);
}

.publication-card .authors {
  color: var(--text-color);
  font-style: italic;
}

.publication-card .venue {
  color: #717171;
  font-weight: 500;
}

.publication-links {
  margin-top: 1rem;
}

.publication-links a {
  margin-right: 1rem;
  color: var(--text-color);
  text-decoration: none;
}

.publication-links a:hover {
  color: var(--link-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Biography section layout */
.biography-section {
  margin-bottom: 4rem;
}

.bio-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-image {
  flex: 0 0 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-content {
  flex: 1;
}

.bio-content h2 {
  margin-top: 0;
}

/* Info columns layout */
.info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.info-column h3 {
  margin-top: 0;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.education-item {
  margin-bottom: 1rem;
}

.education-item span {
  display: block;
}

.education-item .degree {
  font-weight: bold;
}

.education-item .year,
.education-item .school {
  color: #666;
  font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bio-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .info-columns {
    grid-template-columns: 1fr;
  }
}


@media (min-width: 64em) {
  .content {
    margin-left: 22rem;
    margin-right: 4rem;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--sidebar-link);
  color: var(--sidebar-bg) !important;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-button:hover {
  transform: scale(1.1);
  background-color: #fff;
}

@media (min-width: 48em) {
  .social-links {
    justify-content: flex-start;
  }
}
