@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&family=Raleway:wght@500&display=swap');

/* === Global Styles === */
body {
  background-color: #202123 !important;
  color: white;
}

/* === Navbar === */
.navbar {
  background-color: #202123 !important;
  color: #00A68A !important;
  font-weight: normal;
  font-size: 20px;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 10;
  font-family: 'Ubuntu', sans-serif;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 4px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 166, 138, 1) 0%,
    rgba(0, 166, 138, 0.8) 30%,
    rgba(0, 166, 138, 0.5) 60%,
    rgba(0, 166, 138, 0) 100%
  );
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

.navbar .navbar-brand {
  font-weight: normal !important;
  color: #fff !important;
  font-size: 28px !important;
  font-family: 'Ubuntu', sans-serif;
}

/* === Headers and Text === */
h1, h2, h3, h4, h5, h6, p {
  color: white;
}

/* === Panels and Cards === */
.panel, .card, .well {
  background-color: #202123 !important;
  border: 1px solid #00A68A;
}

/* === Inputs and Buttons === */
input, select, textarea, .form-control {
  background-color: #444654 !important;
  color: white !important;
  border: 1px solid #00A68A;
}

button, .btn {
  background-color: #00A68A !important;
  color: #FFFFFF !important;
  border: 1px solid #00A68A;
}

/* === Image Styling === */
.image-container {
  display: flex;
  justify-content: center;
}

.image-container img {
  width: 100%;
  display: block;
  margin: auto;
}

/* === Tables and Code === */
table {
  background-color: #202123;
  color: white;
  border-color: #00A68A;
}

th, td {
  border-color: #00A68A;
}

/* === Modal === */
.modal-content {
  background-color: #202123 !important;
  color: white !important;
  border: 1px solid #00A68A !important;
}

.modal-header, .modal-footer {
  background-color: #444654 !important;
  border-top: 1px solid #00A68A;
}

.modal-title {
  color: #00A68A !important;
  font-weight: bold;
}

/* === Custom Highlighting (Optional for code blocks) === */
pre, code {
  background-color: #2d2f31 !important;
  color: #00A68A !important;
}

/* === URLs === */
a {
  color: #F7C908;
  text-decoration: none;
}

a:hover {
  color: #f8d232;
  text-decoration: underline;
}

a:visited {
  color: #d1aa07;
}

/* === SEARCH BAR + MODAL STYLING === */

/* Navbar search button */
.navbar .nav-link[href="#quarto-search-modal"] {
  background-color: #202123 !important;
  border: none !important;
}

.navbar .nav-link[href="#quarto-search-modal"] i {
  color: #00A68A !important;
}

/* Modal background */
#quarto-search-modal .modal-content {
  background-color: #202123 !important;
  color: white !important;
  border: 1px solid #00A68A !important;
  box-shadow: 0 0 12px rgba(0, 166, 138, 0.4);
}

/* Input box in modal */
#quarto-search-modal input[type="text"] {
  background-color: #2d2f31 !important;
  color: white !important;
  border: 2px solid #00A68A !important;
  box-shadow: 0 0 8px rgba(0, 166, 138, 0.8) !important;
}

/* Search icon inside modal input */
#quarto-search-modal .search-input-icon i {
  background-color: transparent !important;
  color: #00A68A !important;
}

/* Cancel button styling */
#quarto-search-modal .search-cancel-button {
  background-color: #202123 !important;
  color: #00A68A !important;
  border: 1px solid #00A68A !important;
}

/* === Algolia-style Search Button Fix === */

/* Change the button background in navbar */
.aa-DetachedSearchButton {
  background-color: #202123 !important;
  border: 1px solid #00A68A !important;
}

/* Change the magnifying glass icon color */
.aa-SubmitIcon svg {
  fill: #00A68A !important;
}

/* === Modal Background + Input Box === */

/* Whole modal background */
.aa-Panel {
  background-color: #202123 !important;
  color: white !important;
  border: 1px solid #00A68A !important;
  box-shadow: 0 0 12px rgba(0, 166, 138, 0.4) !important;
}

/* Search input field inside the modal */
.aa-Input {
  background-color: #2d2f31 !important;
  color: white !important;
  border: 2px solid #00A68A !important;
  box-shadow: 0 0 8px rgba(0, 166, 138, 0.8) !important;
}

/* Optional: glow the submit icon in modal */
.aa-SubmitButton {
  background-color: #202123 !important;
  border: none !important;
}

.aa-SubmitIcon svg {
  fill: #00A68A !important;
}

/* === Clean up remaining green outline on search button === */
.aa-DetachedSearchButton:focus,
.aa-DetachedSearchButton:focus-visible,
.aa-DetachedSearchButton:active {
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid #00A68A !important;  /* Clean green border only */
}

/* === Modal container (fix for full background) === */
.aa-DetachedContainer.aa-DetachedContainer--modal {
  background-color: #202123 !important;
  border: 1px solid #00A68A !important;
  box-shadow: 0 0 12px rgba(0, 166, 138, 0.5) !important;
}

/* Optional: strengthen glow of modal form */
.aa-DetachedFormContainer {
  background-color: #202123 !important;
  box-shadow: 0 0 15px rgba(0, 166, 138, 0.3) !important;
}

/* === Modal submit button (inside search modal) === */
.aa-SubmitButton {
  background-color: #202123 !important;
  border: 1px solid #00A68A !important;
  padding: 8px !important;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal submit button parent — defines currentColor for SVG inside */
.aa-SubmitButton {
  background-color: #202123 !important;
  border: 1px solid #00A68A !important;
  padding: 8px !important;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00A68A !important; /* THIS is what controls the icon color */
}

/* Final override: force parent of SVG to pass green as currentColor */
.aa-SubmitIcon {
  color: #FFFFFF !important;
}

/* === Fix background of text entry container === */

.aa-Form {
  background-color: transparent !important;
}

.aa-InputWrapper {
  background-color: #202123 !important;
  border: 1px solid #00A68A !important;
  border-radius: 6px !important;
  padding: 2px;
  box-shadow: 0 0 10px #202123 !important;
}

/* Optional: style the left icon (prefix) and right button (suffix) wrappers */
.aa-InputWrapperPrefix,
.aa-InputWrapperSuffix {
  background-color: #202123 !important;
}

/* === Remove white glow/focus ring around input wrapper === */
.aa-InputWrapper:focus-within {
  outline: none !important;
  box-shadow: none !important;
  border-color: #00A68A !important; /* Keep your green border */
}

/* Also remove outline directly from input field */
.aa-Input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* === Kill any white border/line around form === */
.aa-Form,
.aa-Form * {
  outline: none !important;
  box-shadow: none !important;
  border-color: #202123 !important;
  background-color: #202123 !important;
}

/* Optional: explicitly clean up default fieldset styling */
.aa-Form fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* === Remove green border/outline from navbar search icon === */
.aa-DetachedSearchButton,
.aa-DetachedSearchButton:focus,
.aa-DetachedSearchButton:focus-visible,
.aa-DetachedSearchButton:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: #202123 !important;
}

/* If it inherits from a parent (rare, but safe to include) */
.aa-Autocomplete {
  outline: none !important;
  box-shadow: none !important;
}

/* === Search Results Dropdown === */
.aa-DetachedOverlay {
  background-color: #202123 !important;
  color: white !important;
  border: 1px solid #00A68A !important;
}

/* Search section titles (e.g., "Pages", "Posts") */
.search-result-doc-section {
  background-color: #202123 !important;
  color: #00A68A !important;
  font-weight: bold;
  padding: 6px 10px;
}

/* Individual result item */
.aa-Item {
  background-color: #202123 !important;
  color: white !important;
  padding: 10px;
  border-bottom: 1px solid #2d2f31;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hovered result item */
.aa-Item[aria-selected="true"],
.aa-Item:hover {
  background-color: #2d2f31 !important;
  color: #00A68A !important;
}

/* === Search Result Panel === */
.aa-DetachedOverlay,
.aa-Panel {
  background-color: #202123 !important;
  color: white !important;
  border: 1px solid #00A68A !important;
}

/* === Section headings (like "Pages", "Courses") === */
.search-result-doc-section {
  background-color: #202123 !important;
  color: #00A68A !important;
  font-weight: bold !important;
  padding: 6px 12px;
  border-bottom: 1px solid #2d2f31;
}

/* === Each search item === */
.search-item,
.search-result-container,
.search-result-more,
.aa-Item {
  background-color: #202123 !important;
  color: white !important;
  border-bottom: 1px solid #2d2f31;
  padding: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* === Active/selected item (hover or arrow scroll) === */
.aa-Item[aria-selected="true"],
.search-result-container:has(.aa-Item[aria-selected="true"]),
.search-item:hover,
.search-result-more:hover {
  background-color: #2d2f31 !important;
  color: #00A68A !important;
}

/* === Force override for rogue white backgrounds or text */
.search-item *,
.search-result-container *,
.search-result-more *,
.aa-Item * {
  background-color: transparent !important;
  color: inherit !important;
}

/* === Fix white background and white text in search-result-header === */
.search-result-header {
  background-color: #202123 !important;
  color: #FFFFFF !important;
  font-weight: bold;
  padding: 6px 12px;
  border-bottom: 1px solid #2d2f31;
}

/* === CV Specific === */
.cv-header {
  text-align: center;
  margin-bottom: 2em;
}

.cv-header h1 {
  font-size: 2.5em;
  margin-bottom: 0;
}

.cv-subtitle {
  font-size: 1.2em;
  font-weight: 300;
  color: #00A68A;
}

.cv-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  margin-top: 0.5em;
}

.cv-contact-item {
  display: inline-block;
  color: white;
}


.cv-entry {
  margin-bottom: 1.5em;
  border-left: 3px solid #00A68A;
  padding-left: 1em;
}

.cv-entry .cv-dates {
  font-style: italic;
  color: #ccc;
}

/* === App Tiles === */
.app-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  font-family: 'Segoe UI', 'Roboto', 'Inter', sans-serif;
  margin-top: 1em;
}

.app-tile {
  position: relative;
  width: 300px;
  height: 170px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.app-tile:hover {
  transform: scale(1.03);
}

.app-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.75);
  color: #00A68A;
  padding: 0.75em;
  font-size: 1em;
  text-align: center;
  font-weight: bold;
}

.course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 1rem;
}

.course-card {
  flex: 1 1 300px;
  background-color: #202123;
  border: 1px solid #00A68A;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0, 166, 138, 0.2);
  transition: transform 0.2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-card h3 {
  margin-top: 0;
  color: #00A68A;
}

.course-card p {
  margin-bottom: 1rem;
}

.course-card .btn {
  background-color: #00A68A;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}

/* === Homepage Enhancements === */
.typing-container {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: #00A68A;
  padding-top: 3rem;
  text-align: center;
  z-index: 2;
}

.highlight-section {
  background: linear-gradient(145deg, #2d2f31, #202123);
  border-left: 4px solid #00A68A;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 166, 138, 0.3);
  color: white;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2;
}

h1, h2, h3 {
  font-family: 'Raleway', sans-serif;
}

.hero {
  text-align: center;
  padding: 6rem 1rem 3rem;
  color: white;
  text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  font-family: 'Raleway', sans-serif;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
  color: #00A68A;
}

.card-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.code-card {
  background-color: #1a1b1e;
  color: #00FFD1;
  border: 1px solid #00FFD1;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 209, 0.3);
  font-family: 'JetBrains Mono', monospace;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 100px;
  text-align: center;
}

.code-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 20px rgba(0, 255, 209, 0.6);
}

.code-text {
  font-size: 1.2rem;
  color: #00FFD1;
  background: none;
  padding: 0;
  margin: 0;
}

.course-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
}

.course-card {
  background-color: #1a1b1e;
  border: 1px solid #00A68A;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  color: white;
  box-shadow: 0 0 10px rgba(0, 166, 138, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(0, 166, 138, 0.4);
}

.course-card h3 {
  color: #00A68A;
  font-family: 'Raleway', sans-serif;
  margin-top: 0;
}

.course-card p {
  margin-bottom: 1rem;
  font-family: 'Ubuntu', sans-serif;
}

.course-card .btn {
  background-color: #00A68A;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.course-card .btn:hover {
  background-color: #00ffd1;
  color: #202123;
}

.course-card {
  background-color: #1e1f24;
  border: 1px solid #00A68A;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  color: white;
  box-shadow: 0 0 12px rgba(0, 166, 138, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 16px rgba(0, 166, 138, 0.4);
}

.course-card h3 {
  color: #00A68A;
  font-family: 'Raleway', sans-serif;
  margin-bottom: 0.5rem;
}

.course-card p {
  font-family: 'Ubuntu', sans-serif;
  margin-bottom: 1.2rem;
}

.course-card .btn {
  align-self: start;
  font-weight: bold;
}

.pub-card {
  background-color: #1a1b1e;
  border: 1px solid #00A68A;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 166, 138, 0.2);
  color: white;
  font-family: 'Ubuntu', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 14px rgba(0, 166, 138, 0.4);
}

.pub-card a {
  color: #F7C908;
  font-weight: bold;
}

.app-tile {
  position: relative;
  width: 300px;
  height: 170px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 1px solid #00A68A;
  box-shadow: 0 0 12px rgba(0, 166, 138, 0.3); /* Glow effect */
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-tile:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(0, 166, 138, 0.6); /* Stronger glow on hover */
}

a.pub-card, .pub-card {
  display: block;
  text-decoration: none;
  background-color: #1a1b1e;
  border: 1px solid #00A68A;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 166, 138, 0.2);
  color: white;
  font-family: 'Ubuntu', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 14px rgba(0, 166, 138, 0.4);
  background-color: #222328;
  color: white;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: #00C4A3 !important; /* slightly lighter for hover effect */
  text-decoration: underline;
}

.cv-contact {
  display: flex;
  flex-wrap: nowrap; /* prevents line wrapping */
  justify-content: center;
  gap: 2em; /* slightly more space between each contact item */
  margin-top: 0.5em;
}

.cv-contact-item {
  display: inline-flex;
  align-items: center;
  font-size: 1em;
  color: #F7C908;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap; /* prevents breaking inside */
}

.cv-contact-item i,
.cv-contact-item img {
  height: 1em;
  width: 1em;
  margin-right: 0.4em;
  vertical-align: middle;
  fill: #00A68A;
  color: #00A68A;
}

.cv-contact-item span {
  vertical-align: middle;
}

/* === Sidebar (on this page navigation) === */
.sidebar, .quarto-sidebar, .page-navigation {
  background-color: #202123 !important;
  color: white !important;
  border: none !important;
}

.sidebar a, .quarto-sidebar a, .page-navigation a {
  color: #00A68A !important;
  text-decoration: none;
}

/* Current active item — make it white */
.sidebar a.active, 
.quarto-sidebar a.active, 
.page-navigation a.active {
  color: white !important;
  font-weight: bold;
}

/* Hover style — keep green and underline */
.sidebar a:hover, 
.quarto-sidebar a:hover, 
.page-navigation a:hover {
  color: #F7C908 !important;
  text-decoration: underline !important;
}

/* Visited links — optional, consistent with site */
.sidebar a:visited, 
.quarto-sidebar a:visited, 
.page-navigation a:visited {
  color: #00A68A !important;
}

/* Force "on this page" sidebar links to match dark theme */

/* Base style for sidebar links */
.page-navigation a {
  color: #00A68A !important;
  text-decoration: none !important;
}

/* Hovered link */
.page-navigation a:hover {
  color: #F7C908 !important;
  text-decoration: underline !important;
}

/* Active/current section link (blue by default) */
.page-navigation a.nav-link.active,
.page-navigation .nav-link.active,
.page-navigation .active {
  color: white !important;
  font-weight: bold !important;
  text-decoration: none !important;
}

/* Ensure table text and inline code are white */
table, th, td {
  color: white !important;
}

td code, th code {
  color: #00A68A !important;
}

/* === DT Table Customization for Dark Theme === */
table.dataTable {
  color: white !important;
  background-color: #202123 !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: white !important;
  background-color: transparent !important;
  border: 1px solid #00A68A !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #00A68A !important;
  color: #202123 !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background-color: #2d2f31 !important;
  color: white !important;
  border: 1px solid #00A68A !important;
}
