/* ========================================
   HOME PAGE: CIRCLE CLUSTER
========================================= */	
.cluster {
  position: relative;
	width: 100%;
	display: grid;
  place-items: center;
	aspect-ratio: 1 / 1; 
}

.cir {
  border-radius: 50%;
  aspect-ratio: 1 / 1; 
	position: absolute;
	filter: drop-shadow(0 4px 6px rgba(0,0,0,0.45));
}

@media (max-width: 576px) {
	.cir {
		filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45));
	}
	.cir.bottom {
	  width: 60%;
	}
}

.cir.top {
	width: 90%;
	transform: translate(-5%, -25%);
  background-image: url("../assets/portraitReal.jpeg"); 
  background-size: cover;  
  background-position: center;
}

.cir.bottom {
  width: 65%;
  transform: translate(25%, 45%);
  background: var(--accent-color-dteal);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .cir.top {
	width: 80%;
	}
	.cir.bottom {
	  width: 55%;
		margin-bottom: 5%;
	}
}

.hero {
  padding-top: clamp(4rem, 6vh, 6rem);
}

/* Full-screen overlay */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20,20,20,0.95); /* semi-dark background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  gap: 2rem;
}

/* ========================================
   HOME PAGE: CIRCLE LOADER
========================================= */	
#loader {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#loader.active {
  opacity: 1;
  pointer-events: auto;
}

#loader-circle {
  width: 120px;
  height: 120px;
  border: 10px solid var(--accent-color-dteal); 
  border-top: 10px solid var(--accent-color-lteal);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loader-percentage {
  font-size: 3rem;
  color: #fff;
  font-weight: 700;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* ========================================
   HOME PAGE: TESTIMONIALS
========================================= */
.testimonial-grid {
  column-gap: 1.5rem;
  column-count: 3;
}

@media (max-width: 992px) {
  .testimonial-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .testimonial-grid {
    column-count: 1;
  }
}

.testimonial-link {
  display: block;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.testimonial-link:hover .testimonial-card {
  transform: translateY(-6px);
  transition: 0.2s ease;
	cursor: pointer;
}

.testimonial-card {
  background: var(--accent-color-dteal);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  will-change: transform;
}

.testimonial-text {
  color: var(--text-color-alt);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-author span {
  font-weight: 600;
  font-size: 0.9rem;
	color: var(--text-color-alt);
}

.testimonial-note {
  display: block;
  margin-top: 8px;
  opacity: 0.9;
  font-style: italic;
	color: var(--text-color-alt);
}

/* ========================================
   HOME PAGE: PROJECT CAROUSEL
========================================= */	
.carousel-section {
	margin-top: 5%;
}

.carousel-container {
  max-width: 1100px;     
  margin: 0 auto;
  padding-inline: 1rem;
  position: relative; 
}

.carousel-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.carousel-viewport {
  position: relative;   
  overflow: hidden;
}

.carousel-track {
  display: flex;
	transform: translateX(var(--carousel-offset, 0));
  transition: transform 0.4s ease;
  pointer-events: none;
}

/* Project Carousel Buttons */
.carousel-btn {
  position: absolute;
	width: 60px;
	height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
	text-align: center;
  border: none;
	border-radius: 50%;
  font-size: 3rem;
  cursor: pointer;
  z-index: 1;
	pointer-events: auto;
}
.prev {
  left: 1rem;
}
.next {
  right: 1rem;
}

/* Hide carousel buttons when contact card is open */
.contact-card.open ~ main .carousel-btn,
body.contact-open .carousel-btn {
  opacity: 0;
  pointer-events: none;
}

/* Hide carousel buttons when side menu is open */
body.menu-open .carousel-btn {
  opacity: 0;
  pointer-events: none;
}

/* ========================================
  HOME PAGE: CAROUSEL CARDS 
========================================= */	
.project-card {
  flex: 0 0 100%;
	width: 300px;
  margin-right: 1rem;
}

@media (min-width: 768px) {
  .project-card { flex-basis: 50%; }
}

@media (min-width: 992px) {
  .project-card { flex-basis: 33.3333%; }
}

.project-card .btn {
  pointer-events: auto;
}

.card-i {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--bg-color-main);
  background-clip: border-box;
  border: 2px dotted rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

.card-body-i {
  flex: 1 1 auto;
  padding: 1rem .8rem;
}

@media (max-width: 768px) {
	.card-body-i a{
		font-size: .9rem;
	}
	.card-body-i {
  padding: .5rem .5rem;
	}
}

.card-img-top-i {
	height: 10rem;
	object-fit: cover;
	object-position: center;
	border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
	display: block;
	filter: grayscale(25%);
}

/* ========================================
  SHARED CARD STYLES
========================================= */	
.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
	font-size: 1.2rem;
	font-weight: var(--weight-bold) ;
}

@media (max-width: 768px) {
  .card-title {
    font-size: 1rem;
	}
}

/* ========================================
  CODE CAMP: CARDS 
========================================= */	
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--bg-color-main);
  background-clip: border-box;
  border: 2px dotted rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

.card-body {
  flex: 1 1 auto;
  padding: 1rem .8rem;
  margin-top: auto;
  text-align: center;
}

@media (max-width: 768px) {
  .card {
    aspect-ratio: 3 / 4;
  }
	.card-body {
  padding: .5rem .5rem;
	}
}

@media (max-width: 576px) {
  .card {
    aspect-ratio: 4 / 5;
  }
	.card-body .gen-link {
		font-size: .9rem;
	}
}

.card-img-top {
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
	object-position: center;
	border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
	display: block;
}

.card-body a {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   LEARNING PAGE: CAROUSELS
========================================= */
.carousel-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: 0 1rem;
}

.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
	scroll-behavior: auto; 
}

@media (prefers-reduced-motion: reduce) {
  .carousel {
    scroll-behavior: auto;
  }
}

.carousel-track-books,
.carousel-track-audio {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.carousel-item {
  flex: 0 0 auto;
  min-width: 25px; 
  height: 125px;
}

.carousel-item img {
  height: 100%;
  width: auto;
  object-fit: cover;
	border: 1px solid #FFF;
  border-radius: 6px;
  display: block;
	filter: grayscale(50%);
}

.carousel-item img:hover {
	filter: grayscale(0%) brightness(1.1);
}
/* Learning Carousel Edge Fade */
#bookCarousel,
#audioCarousel {
  position: relative;
  --fade-size: 25px;
  /* Safari + Chrome */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black var(--fade-size),
    black calc(100% - var(--fade-size)),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black var(--fade-size),
    black calc(100% - var(--fade-size)),
    transparent
  );
}
@media (min-width: 992px) {
  #bookCarousel,
	#audioCarousel {
    --fade-size: 45px;
  }
}
@media (max-width: 576px) {
  #bookCarousel,
	#audioCarousel	{
    --fade-size: 5px;
  }
}

/* Learning Carousel Buttons */
.carousel-arrow {
  position: absolute;
	width: 50px;
	height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
	text-align: center;
  border: none;
	border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1;
	pointer-events: auto;
}
.carousel-arrow.left {
  left: 0;
}
.carousel-arrow.right {
  right: 0;
}

/* Hide carousel buttons when contact card is open */
body.contact-open .carousel-arrow {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Hide carousel buttons when side menu is open */
body.menu-open .carousel-arrow {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ========================================
   RESUME: SECTIONS
========================================= */
.resume-highlights {
	background-color: var(--accent-color-dteal);
	border: 1px solid var(--accent-color-dteal);
	color: var(--text-color-alt);
	border-radius: 0.25rem;
}

.resume-details {
	border-right: 1px dotted #999;
	border-radius: 0.25rem;
}

/* Title section */
.resume-name {
  font-size: calc(1.525rem + 2vw);
  font-weight: var(--weight-small);
  line-height: 1.5;
}

.resume-title {
  font-size: calc(1rem + 1vw);
  font-weight: var(--weight-small);
  line-height: 1.5;
}

/* Other sections */
.resume-sections {
	font-size: calc(1rem + .5vw);
	font-weight: var(--weight-bold);
}

/* Primary info */
.resume-item {
	font-size: calc(.9rem + .2vw);
	font-weight: var(--weight-bold);
	line-height: 1;
}

/* Secondary info */
.resume-info {
	font-size: calc(.9rem + .2vw);
	font-weight: var(--weight-semibold);
	line-height: 1;
}

.resume-list {
	list-style-type: disc;
	list-style-position: outside;
	margin-left: 5%;
}
.resume-list-blank {
	list-style-type: none;
	list-style-position: outside;
	margin-left: 5%;
	margin-top: 1%;
	line-height: 1.5;
}

/* ========================================
   RESUME: LINKS
========================================= */
.resume-link {
  font-weight: var(--weight-small);
  color: var(--text-color-alt);
	font-size: calc(.75rem + .1vw);
	line-height: 2.5;
}

.resume-contact li a:hover {
	text-decoration: underline;
}

.resume-contact li a:visited {
  color: var(--accent-color-lgray);
}

/* Awards section */
#awards li a {
	color: var(--accent-color-dteal);
}

#awards li a:hover {
	
	text-decoration: underline;
}

#awards li a:visited {
  color: var(--accent-color-dgray);
}

/* ========================================
   RESUME: SKILLS
========================================= */
.progress {
  display: flex;
  height: 1rem;
  overflow: hidden;
  background-color:  var(--bg-color-alt);
	border-radius: 1rem;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  background-color: var(--bg-color-main);
  transition: width 0.6s ease;
	border-radius: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar {
    transition: none;
  }
}

/* ========================================
   RESUME: BADGES
========================================= */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--accent-color-dteal);
  background: var(--accent-color-ateal);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 1rem;
}

.list-inline {
  padding-left: 0;
  list-style: none;
}

.list-inline-item {
  display: inline-block;
}

.list-inline-item:not(:last-child) {
  margin-right: 0.5rem;
	margin-bottom: 0.5rem;
}

/* ========================================
   TABLES
========================================= */
table {
  caption-side: bottom;
  border-collapse: collapse;
}
caption {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: #6c757d;
  text-align: left;
}
th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}
thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}
.table {
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-striped-color: #212529;
  --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
  --bs-table-active-color: #212529;
  --bs-table-active-bg: rgba(0, 0, 0, 0.1);
  --bs-table-hover-color: #212529;
  --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  vertical-align: top;
  border-color: #dee2e6;
}
.table > :not(caption) > * > * {
  padding: 0.5rem 0.5rem;
  background-color: var(--bs-table-bg);
  border-bottom-width: 1px;
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}
.table > tbody {
  vertical-align: inherit;
}
.table > thead {
  vertical-align: bottom;
}
.table > :not(:last-child) > :last-child > * {
  border-bottom-color: currentColor;
}
.table-sm > :not(caption) > * > * {
  padding: 0.25rem 0.25rem;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  --bs-table-accent-bg: var(--bs-table-striped-bg);
  color: var(--bs-table-striped-color);
}
.table-hover > tbody > tr:hover {
  --bs-table-accent-bg: var(--bs-table-hover-bg);
  color: var(--bs-table-hover-color);
}
.align-middle {
  vertical-align: middle !important;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }

  table {
    min-width: 600px; 
  }
}
@media (max-width: 992px) {
  .table-responsive-lg {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 1200px) {
  .table-responsive-xl {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 768px) {
  .table-scroll-hint {
    position: relative;
  }

  .scroll-arrow {
    position: absolute;
    top: 100%;
    transform: translateY(-100%);
    font-size: 1.25rem;
		font-weight: var(--weight-bold);
    opacity: 0.6;
    pointer-events: none; 
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 0.05rem .55rem;
    border-radius: 50%;

  }
  .scroll-arrow.left {
    left: 0.25rem;
  }
  .scroll-arrow.right {
    right: 0.25rem;
  }
}
@media (min-width: 768px) {
  .scroll-arrow {
    display: none;
  }
}
.scroll-hint-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--accent-color-lgray);
  margin-bottom: 0.5rem;
}

/* ========================================
INPUT FORMS
========================================= */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}
.input-group > .form-control,
.input-group > .form-select {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}
.input-group > .form-control:focus,
.input-group > .form-select:focus {
  z-index: 3;
}
.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}
.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu),
.input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n+3) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group.has-validation > :nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu),
.input-group.has-validation > .dropdown-toggle:nth-last-child(n+4) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .form-control {
    transition: none;
  }
}
.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: var(--accent-color-gold);
  outline: 0;
  box-shadow: 0 0 0 0.25rem var(--accent-color-gold);
}
.form-control::-webkit-date-and-time-value {
  height: 1.5em;
}
.form-control::-moz-placeholder {
  color: #6c757d;
  opacity: 1;
}
.form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}
textarea.form-control {
  min-height: calc(1.5em + (0.75rem + 2px));
}
.form-label {
  margin-bottom: 0.5rem;
}
.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  -moz-padding-start: calc(0.75rem - 3px);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
@media (prefers-reduced-motion: reduce) {
  .form-select {
    transition: none;
  }
}
.form-select:focus {
  border-color: var(--accent-color-gold);
  outline: 0;
  box-shadow: 0 0 0 0.25rem var(--accent-color-gold);
}
.form-select[multiple], .form-select[size]:not([size="1"]) {
  padding-right: 0.75rem;
  background-image: none;
}
.form-select-sm {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.5rem;
  font-size: 0.875rem;
}
.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.125rem;
}
.form-check .form-check-input {
  float: left;
  margin-left: -1.5em;
}
.form-check-input {
  width: 1.5em;
  height: 1.5em;
  margin-top: 0.25em;
	margin-right: 1.25em;
  vertical-align: top;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid rgba(0, 0, 0, 0.25);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-print-color-adjust: exact;
  color-adjust: exact;
}
.form-check-input[type=checkbox] {
  border-radius: 0.25em;
}
.form-check-input[type=radio] {
  border-radius: 50%;
}
.form-check-input:active {
  filter: brightness(90%);
}
.form-check-input:focus {
  border-color: var(--accent-color-gold);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.form-check-input:checked {
  background-color: var(--accent-color-brown);
  border-color: var(--accent-color-brown);
}
.form-check-input:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check-input:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}
fieldset {
  min-width: 0;
  padding: 1em;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.25);
}
small, .small {
  font-size: 0.875em;
}

