/*-- scss:rules --*/

/* 1. ROOT VARIABLES (COLOR & FONT PALETTE)
----------------------------------------------------- */
:root {
  /* Fonts */
  --font-heading: 'Lora', serif;
  --font-body: 'Lato', sans-serif;
  --font-sans-special: 'Inter', sans-serif;
  --font-navbar: 'Roboto Condensed', sans-serif;

  /* Colors */
  --c-bg: #fcfcfc;
  --c-text-primary: #1a1a1a;
  --c-navbar-brand: #1a1a1a;
  --c-accent-orange: #B75D49;
  --c-accent-light: #f7edea;
  --c-border: #e8e8e8;
  --c-card-bg: #ffffff;
  --shadow-lg: 0 10px 15px -3px rgba(26, 26, 26, 0.1);
}

/* 2. GENERAL RESETS & BODY STYLING
----------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--c-text-primary);
  background-color: var(--c-bg);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 3. TYPography
----------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text-primary);
}

.research-page h2 {
  margin-top: 2.5em; 
}

.custom-name {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.custom-subtitle {
  font-family: var(--font-sans-special);
  color: var(--c-text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.contact-simple p {
  font-family: var(--font-body);
  color: var(--c-text-primary);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  text-align: justify;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--c-accent-orange);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease-in-out;
  border-radius: 2px;
}

a:hover {
  background-color: var(--c-accent-light);
}

/* 4. NAVIGATION BAR
----------------------------------------------------- */
.navbar {
  background-color: rgba(252, 252, 252, 0.85) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.navbar-brand {
  font-family: var(--font-navbar);
  color: var(--c-navbar-brand) !important;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.navbar-nav .nav-link {
  font-family: var(--font-navbar);
  color: var(--c-accent-orange) !important;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0 0.75rem;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
  color: var(--c-accent-orange) !important;
  opacity: 1;
  background-color: var(--c-accent-light);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(183, 93, 73, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.navbar-toggler {
  border-color: rgba(183, 93, 73, 0.4) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(183, 93, 73, 0.25);
}


/* 5. MAIN LAYOUT & ABOUT SECTION
----------------------------------------------------- */
main {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
}

.quarto-title-block, .quarto-title {
  display: none !important;
}

.about-entity {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1900px;
  margin: 0 auto;
  transform: translateX(-100px);
}

.about-entity .about-image {
  order: 1;
  flex-shrink: 0;
  width: 350px;
  height: 350px;
  transform: translateY(4rem);
}

.about-entity .about-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--c-card-bg);
  transition: transform 0.3s ease;
  object-fit: cover;
}

.about-entity .about-image img:hover {
  transform: scale(1.02);
}

.about-entity .about-contents {
  order: 2;
  text-align: left;
  flex: 1;
  max-width: 1200px;
  padding-top: 0;
  padding-right: 5rem;
  min-width: 800px;
}


/* 6. BUTTONS & LINKS
----------------------------------------------------- */
.contact-simple {
  margin-bottom: 1.5rem;
  max-width: 25rem;
}

.cv-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent-orange);
  border: 2px solid var(--c-accent-orange);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.cv-button:hover {
  background-color: var(--c-accent-orange);
  color: var(--c-card-bg);
}

.about-links a {
  color: var(--c-accent-orange);
  font-size: 1.5rem;
  opacity: 0.8;
}

.about-links a:hover {
  color: var(--c-accent-orange);
  opacity: 1;
  background: none;
  transform: scale(1.1);
}

/* 7. FOOTER
----------------------------------------------------- */
.page-footer {
  text-align: center;
  margin-top: 5rem;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: var(--c-text-primary);
  opacity: 0.7;
}

/* 8. RESPONSIVE DESIGN
----------------------------------------------------- */
@media (max-width: 1200px) {
  .about-entity {
    transform: translateX(0);
  }
}

@media (max-width: 968px) {
  .about-entity {
    gap: 2rem;
  }
  .about-entity .about-image {
    width: 300px;
    height: 300px;
    transform: translateY(2rem);
  }
  .custom-name {
    font-size: 2.2rem;
  }
  .about-entity .about-contents {
    min-width: auto;
    max-width: 500px;
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  main {
    padding: 2rem 1.5rem;
  }
  .about-entity {
    flex-direction: column;
    align-items: center;
  }
  .about-entity .about-contents {
    text-align: center;
    padding: 0;
    max-width: 700px;
    min-width: 0;
  }
  .contact-simple {
    max-width: 100%;
  }
  .contact-simple p, .custom-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .about-links {
    justify-content: center;
  }
  .about-entity .about-image {
    width: 280px;
    height: 280px;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .about-entity .about-image {
    width: 220px;
    height: 220px;
  }
  .custom-name {
    font-size: 1.8rem;
  }
}
 

/* Hide unnecessary elements */
#hero-heading, .education-section {
  all: unset;
}

/* Abstract */
.abstract-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-accent-orange);
  background-color: transparent;
  border: 1px solid var(--c-accent-orange);
  padding: 0.25rem 0.8rem;
  border-radius: 15px;
  margin-top: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.abstract-button:hover, .abstract-button.active {
  background-color: var(--c-accent-orange);
  color: #ffffff;
  text-decoration: none;
}

.abstract-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  background-color: #f8f9fa;
  margin-top: 0.75rem;
  padding: 0 1.5rem; 
  border-radius: 4px;
  border-left: 3px solid var(--c-accent-orange); 
}

.abstract-content p {
  padding: 1rem 0; 
  margin: 0;
  font-size: 0.9rem;
  text-align: justify;
}
  
/* 9. TABLE OF CONTENTS (On this Page) STYLES
----------------------------------------------------- */

/* 'On this Page'  */
#quarto-sidebar-toc nav a,
.sidebar-toc a,
.quarto-toc a,
.toc-content a,
#TOC a {
  color: #1a1a1a !important; 
}

/* 'On this Page' links hover/active */
#quarto-sidebar-toc nav a:hover,
#quarto-sidebar-toc nav a.active,
.sidebar-toc a:hover,
.sidebar-toc a.active,
.quarto-toc a:hover,
.quarto-toc a.active,
.toc-content a:hover,
.toc-content a.active,
#TOC a:hover,
#TOC a.active {
  color: var(--c-accent-orange) !important;  
  background-color: transparent !important;  
}