/* NAVBAR */
.custom-navbar {
  background-color: #6f42c1 !important;
}

/* Text colors */
.custom-navbar .navbar-brand,
.custom-navbar .nav-link {
  color: white !important;
}

.custom-navbar .nav-link:hover {
  color: #e0d4f7 !important;
}

/* Hamburger icon */
.custom-navbar .navbar-toggler {
  border: none;
  background-color: transparent;
}

.custom-navbar .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(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22' /%3E%3C/svg%3E") !important;
}

.custom-navbar .nav-link.active {
  background-color: #e6dcf5 !important;
  color: #6f42c1 !important;
  border-radius: 0.25rem;                
  font-weight: 600;
  padding: 0.5rem 1rem;
}

/* WELCOME INTRO */
.welcome-intro {
  background-color: #f7f1ff;
  color: #333;
  border-radius: 1rem;
}

.welcome-intro .lead {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/*Portfolio nav buttons*/ 

html { scroll-behavior: smooth; }

.intro-copy { 
  max-width: 900px; 
  margin-inline: auto; 
}

.section-btn.section-btn-img{
  display:flex;
  align-items:center;
  gap:.5rem;
  padding:.55rem .9rem;               /* a touch smaller */
  border-radius:999px;
}

.section-btn-img .section-icon{
  height:28px;                        /* keeps images small */
  width:auto;
  object-fit:contain;
  flex:0 0 auto;
}
/* jump buttons */
.section-nav .section-btn{
  background:#6f42c1;
  color:#fff;
  border:2px solid #6f42c1;
  border-radius:999px;
  padding:.65rem 1rem;
  font-weight:700;
  box-shadow:0 6px 16px rgba(111,66,193,.18);
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
}
.section-nav .section-btn:hover,
.section-nav .section-btn:focus{
  background:#5a39b3;
  border-color:#5a39b3;
  color:#fff;
  transform:translateY(-1px);
}

/* Portfolio section nav button*/
html { scroll-behavior: smooth; }

/* sticky-in-section helper */
.section-stick {
  position: sticky;
  top: clamp(12px, 2vh, 24px);
  z-index: 3000;                 /* below your tile hover overlays (z≈10) */
  display: flex;
  justify-content: flex-end;
  pointer-events: none;       /* wrapper doesn't block content */
  margin-bottom: .5rem;
}

.section-stick .btn-top {
  pointer-events: auto;       /* only the button is clickable */
  background-color: #6f42c1;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: .55rem .85rem;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-weight: 600;
}
.section-stick .btn-top:hover { background:#5b36a3; }
.section-stick .btn-top:active { transform: translateY(1px); }

/* purple pill button */
.to-top-btn{
  background-color:#5a38a8;
  color:#fff;
  border:none;
  border-radius:999px;
  padding:.5rem 1rem;
  box-shadow:0 6px 20px rgba(0,0,0,.15);
}
.to-top-btn:hover{ 
  background-color:#d6bbfc; 
  color:#6f42c1; 
}

/* IMG LINKS */
.link-section {
  background-color: #6f42c1;
}

.link-section img {
  transition: transform 0.3s ease;
}

.link-section img:hover {
  transform: scale(1.05);
}

.link-img {
  padding: 1rem;
}

.link-text {
  color: white;
  padding-top: 5px;
  text-decoration: none;
  
}

/* FOOTER */
.site-footer {
  background-color: #6f42c1; /* Your signature purple */
  color: white;
}

.footer-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #d6bbfc; /* Optional: soft lavender hover */
}

/* ABOUT ME */
.about-section {
  background-color: #f7f1ff;
}

/* CONTACT ME */
.contact-section {
  background-color: #6f42c1;
}

.contact-input {
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  color: #333;
}

.contact-input:focus {
  border-color: #d6bbfc;
  box-shadow: 0 0 0 0.2rem rgba(214, 187, 252, 0.5);
}

/* PORTFOLIO */
.project-tile {
  position: relative;
  overflow: hidden;
}

.row {
  overflow: visible !important;
  position: relative;
}

.resume-btn {
  color: #6f42c1;
  font-weight: bold;
  border: none;
}

.resume-btn:hover {
  background-color: #e6dcf5;
  color: #4a2c91;
}

.description-link {
  color: #6f42c1;
  text-decoration: none;
}
.intro-section .lead { margin-bottom: .5rem !important; }
.intro-section .resume-btn { margin-top: .25rem; }
.intro-section .portfolio-nav { margin-top: .75rem; }

.tile-wrapper {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.project-img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.4s ease, filter 0.4s ease;
  pointer-events: none;
  user-select: none;
}

.tile-wrapper:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;}

.tile-wrapper:hover .project-img {
  transform: none;
}

.project-overlay {
  position: absolute;
  inset: 0; 
  border-radius: 12px;
  background-color: rgba(111, 66, 193, 0.85);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  gap: 1rem;
  box-sizing: border-box;
  width: 100%;
}

.project-overlay.hide {
  opacity: 0 !important;
  pointer-events: none;
}

.tile-wrapper:hover .project-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
}

.project-description {
  font-size: 0.55rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.project-title {
 display: none;          /* hidden normally */
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;  
}

.project-description {
  margin: 0 0 1rem;         /* remove the default top margin */
}

.overlay-btn {
  background-color: white;
  color: #6f42c1;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.overlay-btn:hover {
  background-color: #d6bbfc;
  color: #4a2c91;
}

.tile-wrapper:hover .overlay-btn {
  opacity: 1;
}

.project-img::selection {
  background: none;
}

.project-img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.light-bg {
  background-color: #f7f1ff;
}

.project-video {
  width: 100%;
  border-radius: 12px;
  display: block;
  max-height: 300px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 2rem;
}

.video-wrapper iframe {
  border: none;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(111, 66, 193, 0.85);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-overlay p {
  margin: 0.5rem 0;
}

.overlay-btn {
  background-color: white;
  color: #6f42c1;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.overlay-btn:hover {
  background-color: #d6bbfc;
  color: #4a2c91;
}

.tile-wrapper iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: none;
}

.catalog-iframe {
  width: 100%;
  min-width: 496px;
  max-width: 100%;
  transition: width 0.3s ease;
  border-radius: 12px;
}

.carousel-col .tile-wrapper { 
  /*max-width: 350px;*/
  padding: 0 !important; 
}

.catalog-iframe,
.project-overlay {
  width: 100% !important;
  max-width: 100% !important;
}

/*carousels*/
.tile-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  padding: 0;
}

.carousel .carousel-inner img {
  object-fit: cover;
  height: auto;
  border-radius: 8px;
}

.photo-card {           /* tile wrapper for photos */
  --photo-h: 240px;     /* default tile height */
}

.photo-card .photo-img {
  width: 100%;
  height: var(--photo-h);
  object-fit: contain;         /* crops edges to keep the tile uniform */
  background-color: #d6bbfc62;
  object-position: center;   /* adjust per image if needed */
  border-radius: 12px;
  display: block;
}

/* match overlay radius to the image */
.photo-card .project-overlay { 
  border-radius: 12px;
 }

.photo-card { 
  box-shadow: 0 10px 24px rgba(0,0,0,0.08); 
  border-radius: 12px; 
}

@media (min-width: 1200px) { 
  .photo-card { 
    --photo-h: 320px; 
  } 
}

@media (min-width: 992px) and (max-width: 1199px) {
  #web-dev-content .project-title,
  #video-content .project-title {
    display: block;
  }

  #web-dev-content .project-description,
  #video-content .project-description {
    display: none;
  }

  /* Tighten spacing so the overlay doesn’t feel empty */
  #web-dev-content .project-overlay,
  #video-content .project-overlay {
    gap: .75rem;
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 991px) {
  .project-description {
    font-size: 0.75rem;
  }

  .tile-wrapper {
    margin-bottom: 1.5rem;
    min-width: 496px;
    max-width: 100%;
  }

  .catalog-iframe {
    width: 100% !important;
  }

  .overlay-content {
    font-size: 0.95rem;
    padding: 1rem;
  }

  .overlay-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .section-btn-img .section-icon { 
    height:32px; 
  }
}

@media (min-width: 900px) {
  .catalog-iframe {
    min-width: 496px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .row.justify-content-center {
    flex-direction: column;
    align-items: center;
  }

  .project-tile {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin-bottom: 2rem;
  }

  .tile-wrapper {
    width: 100%;
    margin: 0 auto;
    transform: none; 
    padding: 0 1rem;
  }

  .project-tile,
  .tile-wrapper {
    min-width: 0 !important;    
    max-width: 100% !important;
    padding: 0 !important;       
    margin: 0 auto;
  }

  .project-img {
    width: 100%;
    height: auto;
  }

  .project-overlay::-webkit-scrollbar {
    width: 6px;
  }

  .project-overlay::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }

  .project-description {
    font-size: 0.95rem;
  }

  .catalog-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    width: 100% !important;
    padding: 0 !important;
  }

  .catalog-wrapper .catalog-iframe {
  display: block;
  margin: 0 auto;
  }

  #graphics-catalog .catalog-wrapper{
    max-width: 720px;              /* fits Bootstrap container at md */
    margin-inline: auto;
  }
  #graphics-catalog .catalog-iframe{
    width: 100% !important;
    min-width: 0 !important;       /* undo global 496px min */
    height: auto !important;
    aspect-ratio: 16/9;            /* keep shape without hard height */
  }

  .catalog-iframe {
    max-width: 100%;
    height: 426px;
    display: block;
    margin: 0 auto;
  }

  .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(111, 66, 193, 0.9); /* deep purple w/ transparency */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
    border-radius: 8px;
  }

  .overlay-content {
    max-width: 90%;
  }

  .project-description {
    font-size: .7rem;
    line-height: 1.5;
  }

  .overlay-btn {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    background-color: white;
    color: #6f42c1;
    border: none;
    border-radius: 4px;
    transition: 0.3s ease;
  }

  .overlay-btn:hover {
    background-color: #e9d8fd;
    color: #4b2e83;
  }

  .carousel-col {
    max-width: 520px;
    flex: 0 0 100%;
    justify-content: center;
    display: block;
    margin: 0 auto;
    padding-bottom: 5px;
  }

  .carousel-col .carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
  }

  .carousel-col { 
    display:flex; 
    justify-content:center; 
  }

  .carousel-col .tile-wrapper { 
    max-width: 420px; 
  } 

  .tile-wrapper:not(.catalog-wrapper){ 
    padding: 0 !important; 
  }

}

@media (max-width: 767px) {
  .project-description {
    font-size: 0.65rem;
  }

  .tile-wrapper {
    transform: none !important;
    min-width: 496px
  }

  .project-overlay {
    padding: 1rem;
  }

  .project-img {
    width: 100%;
    height: auto;
  }

  .row > div {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .photo-card { 
    --photo-h: 280px; 
  }

  .section-nav .section-btn{ 
    width:100%; 
  }
}

@media (max-width: 575px) {
  .project-description {
    display: none;
  }

  .project-overlay {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
  }

  .overlay-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .section-stick .btn-top { 
    padding:.45rem .7rem; 
    font-size:.9rem; 
  }

  .section-stick .btn-top .label { 
    display:none; 
  } /* icon-only on xs */

}
