[data-bs-theme="light"] {
  --custom-tooltip-bg: #f8f9fa;      /* A very light grey (Bootstrap's 'light' bg) */
  --custom-tooltip-color: #212529;   /* Standard dark text */
  --custom-tooltip-border: #dee2e6;  /* Standard light border */
  
  --custom-card-bg: rgba(255, 255, 255 , 0.7);  
}

[data-bs-theme="dark"] {
  --custom-tooltip-bg: #343a40;      /* A dark grey, not pure black */
  --custom-tooltip-color: #f8f9fa;   /* Light text for dark backgrounds */
  --custom-tooltip-border: #495057;  /* A slightly lighter dark border */
  
  --custom-card-bg: rgba(0, 0, 0 , 0.7);  
}

body {
  margin-top: 100px; 
}

.navbar {
  box-shadow: 2px 2px 5px #3292a6;
  opacity: 1;
  /*background: #6f2cf5;*/
}

.navbar .nav-item {
    font-size: 16px;
    padding-right: 1px;
}

#main-footer{
  /*background-color: #7518a3;*/
  /*color: white;*/
  box-shadow: 2px -2px 5px #3292a6;
  opacity: 0.90;
}

#social-navbar a{
  /*background-color: #fff;*/
  padding-right: 10px;
  padding-left: 10px;
}

#photo{
  border-style: solid;
  border-width: 0.5px;
  border-radius: 50%;
}

ul.a{
  list-style-type: disc;
  padding-right: 5px;
}

#home {  
  padding-bottom : 50px;
  /*transform: scale(0.75);*/
}

/* 1. Style the card as the main interactive element */
.project-card {
  position: relative; /* Needed for the stretched-link */
  border: 1px solid var(--bs-border-color-translucent);
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  /* The card's background is now handled by Bootstrap and will be theme-aware */
}

/* On hover, use a Bootstrap variable for the border so it works in both themes */
.project-card:hover {
  /*border-color: var(--bs-secondary-color);*/
  
  /* On hover, change the border to your custom purple color */
  border-color: var(--bs-custom-purple);
  
  /* Add a subtle shadow that works in both light and dark modes */
  box-shadow: 0 .5rem 1rem rgba(var(--bs-body-color-rgb), .15);
}

/* 2. Recreate your hover-to-reveal effect */
.project-card .projects_hover {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.project-card:hover .projects_hover {
  opacity: 1;
}

.cadaem-bg
{
  background-image:url('/img/deform.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;    
  background-color: var(--custom-card-bg);  
  background-blend-mode: overlay;
}

.unityaem-bg
{
  background-image:url('/img/UnityAEM.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;    
  background-color: var(--custom-card-bg);  
  background-blend-mode: overlay;
}

.eyeaem-bg
{
  background-image:url('/img/EyeAem.jpg');
  background-repeat: no-repeat;
  background-size: 100% 100%;    
  background-color: var(--custom-card-bg);  
  background-blend-mode: overlay;
}

.snfound-bg
{
  background-image:url('/img/SnFound.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;    
  background-color: var(--custom-card-bg);  
  background-blend-mode: overlay;
}

.prcalc-bg
{
  background-image:url('/img/PrCalc.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;    
  background-color: var(--custom-card-bg);  
  background-blend-mode: overlay;
}

.truss2D-bg
{
  background-image:url('/img/Truss2D.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;    
  background-color: var(--custom-card-bg);  
  background-blend-mode: overlay;
}

.sn5found-bg
{
  background-image:url('/img/Sn5Found.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;    
  background-color: var(--custom-card-bg);  
  background-blend-mode: overlay;
}

.snfunity-bg
{
  background-image:url('/img/SnFUnity.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;    
  background-color: var(--custom-card-bg);  
  background-blend-mode: overlay;
}

.truss3D-bg
{
  background-image:url('/img/TrUss3D.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;    
  background-color: var(--custom-card-bg);  
  background-blend-mode: overlay;
}


/* 2. Style the tooltip using these new variables. */
/*    It will now automatically use the correct colors for the active theme. */

.tooltip-parent {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.custom-tooltip {
  visibility: hidden;
  width: 220px;
  
  /* Use our theme-aware variables */
  background-color: var(--custom-tooltip-bg);
  color: var(--custom-tooltip-color);
  border: 1px solid var(--custom-tooltip-border);
  
  text-align: center;
  border-radius: 6px; /* A standard, casual radius */
  padding: 10px 12px;
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 105%; /* A little extra space from the card */
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  
  /* A simple and clean fade-in transition */
  transition: opacity 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* A soft, subtle shadow */
  font-size: 0.95rem;
}

/* 3. Style the arrow to match the tooltip's background. */
.custom-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  
  /* The arrow color will also be theme-aware */
  border-color: var(--custom-tooltip-bg) transparent transparent transparent;
}

.tooltip-parent:hover .custom-tooltip,
.tooltip-parent:focus .custom-tooltip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;  
}

/*
  ==============================================================
  CONSOLIDATED & THEME-AWARE CAROUSEL STYLES
  ==============================================================
*/

/* --- 1. SIZING AND BASE STYLES --- */

/* The outer wrapper that creates space for the controls */
.carousel-wrapper {
  padding: 0 1px; /* Adjust this to change arrow distance from image */
  overflow: hidden; /* Ensures nothing spills out */
}

/* Set the overall height for the carousel container and its items */
.carousel-inner, .carousel-item {
  height: 75vh;
  /* Add a dark background for the "letterbox" effect with object-fit: contain */
  background-color: rgba(0, 0, 0, 0.1); /* Using the more visible dark background */
}

/* Style the images within the carousel items */
.carousel-item img,
.carousel-item video {
  width: 100%;
  height: 100%; /* Make media fill the 75vh item height */
  object-fit: contain;   /* THIS WILL NOW WORK: Ensures full image/video is visible */
  object-position: center;
}

/* --- 2. CONTROLS OUTSIDE THE IMAGE (ARROWS) --- */

/* Position the control buttons within the wrapper's padding */
.carousel-wrapper .carousel-control-prev,
.carousel-wrapper .carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.carousel-wrapper .carousel-control-prev:hover,
.carousel-wrapper .carousel-control-next:hover {
  opacity: 1;
}

/* Position the 'prev' button on the far left */
.carousel-wrapper .carousel-control-prev {
  left: 0;
}

/* Position the 'next' button on the far right */
.carousel-wrapper .carousel-control-next {
  right: 0;
}

/* Style the arrow icons themselves (This rule is now defined only ONCE) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.85); /* Using the more visible dark background */
  border-radius: 50%;
  padding: 1.25rem;
  background-size: 50% 50%;
}


/* --- 3. CAPTIONS & INDICATORS --- */

/* Style the captions to be readable */
.carousel-caption {
  color: whitesmoke;
  
  border-radius: .5rem;
  padding: .5rem 1rem;
  bottom: 1.5rem; 
}

/* Style the indicator dots to be always white and visible */
.carousel-indicators [data-bs-target] {
  background-color: #fff;
  opacity: 0.6; 
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
  border: none; 
  transition: opacity 0.6s ease; 
}

/* Make the active indicator dot fully opaque */
.carousel-indicators .active {
  opacity: 1;
}





@media (max-width: 768px) {
  
}
