/*-----------------------------------*\
  #style.css
\*-----------------------------------*/


/**
 * copyright 2022 @codewithsadee
 */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  /* gradient */

  --bg-gradient-onyx: linear-gradient(to bottom right,
      hsl(240, 1%, 25%) 3%,
      hsl(0, 0%, 19%) 97%);
  --bg-gradient-jet: linear-gradient(to bottom right,
      hsla(240, 1%, 18%, 0.251) 0%,
      hsla(240, 2%, 11%, 0) 100%), hsl(240, 2%, 13%);
  --bg-gradient-yellow-1: linear-gradient(to bottom right,
      hsl(45, 100%, 71%) 0%,
      hsla(36, 100%, 69%, 0) 50%);
  --bg-gradient-yellow-2: linear-gradient(135deg,
      hsla(45, 100%, 71%, 0.251) 0%,
      hsla(35, 100%, 68%, 0) 59.86%), hsl(240, 2%, 13%);
  --border-gradient-onyx: linear-gradient(to bottom right,
      hsl(0, 0%, 25%) 0%,
      hsla(0, 0%, 25%, 0) 50%);
  --text-gradient-yellow: linear-gradient(to right,
      hsl(45, 100%, 72%),
      hsl(35, 100%, 68%));

  /* solid */

  --jet: hsl(0, 0%, 22%);
  --jet2: #2a2a2a;
  --onyx: hsl(240, 1%, 17%);
  --eerie-black-1: hsl(240, 2%, 13%);
  --eerie-gray: #dfdfdf;
  --eerie-black-2: hsl(240, 2%, 12%);
  --smoky-black: hsl(0, 0%, 7%);
  --white-1: hsl(0, 0%, 100%);
  --white-2: hsl(0, 0%, 98%);
  --orange-yellow-crayola: hsl(45, 100%, 72%);
  --vegas-gold1: hsl(45, 54%, 58%);
  --vegas-gold2: hsl(45deg 95.52% 54.39%);
  --light-gray: hsl(0, 0%, 84%);
  --light-gray-70: hsla(0, 0%, 84%, 0.7);
  --bittersweet-shimmer: hsl(0, 43%, 51%);

  /**
   * typography
   */

  /* font-family */
  --ff-poppins: 'Poppins', sans-serif;

  /* font-size */
  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 18px;
  --fs-5: 15px;
  --fs-6: 14px;
  --fs-7: 13px;
  --fs-8: 11px;

  /* font-weight */
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;

  /**
   * shadow
   */

  --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.25);
  --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.25);
  --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.25);
  --shadow-4: 0 25px 50px hsla(0, 0%, 0%, 0.15);
  --shadow-5: 0 24px 80px hsla(0, 0%, 0%, 0.25);

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;

}

/* Light theme overrides */
.light {
  --bg-gradient-onyx: linear-gradient(to bottom right, hsl(210, 20%, 98%), hsl(0, 0%, 100%));
  --bg-gradient-jet: linear-gradient(to bottom right, hsla(210, 20%, 95%, 0.6), hsla(210, 20%, 98%, 0.9)), #fff;
  --border-gradient-onyx: ECE9E6;
  --jet: #ECE9E6;
  --onyx: hsl(240, 1%, 17%);
  --black: #000;
  --eerie-black-1: #000;
  --eerie-black-2: hsl(210, 20%, 98%);
  --smoky-black: hsl(0, 0%, 100%);
  --white-1: hsl(0, 0%, 100%);
  --white-2: hsl(220, 10%, 18%);
  --light-gray: hsl(0, 0%, 24%);
  --light-gray-70: rgb(136, 136, 136);
}

/* Make navbar black in light mode so it stands out */
.light .navbar {
  background: #000;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}



/* theme toggle UI */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.theme-toggle.fixed-toggle {
  position: fixed;
  top: 10px;
  right: 15px;
  z-index: 9999;
  background: var(--bg-gradient-jet);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}

/* light theme: make the role pill stand out */
.light .info-content .title {
  background: var(--black)
}

.light .info-content .title .title-main {
  color: var(--eerie-black-2);
}

.light .info-content .title .title-sub {
  color: hsl(0, 0%, 62%);
}

/* slightly smaller on mobile so it doesn't overlap the viewport edge */
@media (max-width: 480px) {
  .theme-toggle.fixed-toggle {
    top: 12px;
    right: 12px;
    padding: 6px 8px;
  }
}

.toggle {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: hsl(0, 0%, 70%);
  cursor: pointer;
  display: inline-block;
}

.toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* icons inside the toggle */
.toggle .toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
  pointer-events: none;
  font-size: 18px;
}

.toggle .toggle-icon.sun {
  left: 8px;
}

.toggle .toggle-icon.moon {
  right: 8px;
}

/* show moon when unchecked (dark), show sun when checked (light) */
.toggle input:not(:checked)~.moon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  color: var(--light-gray);
}

.toggle input:not(:checked)~.sun {
  opacity: 0;
}

.toggle input:checked~.sun {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
  color: var(--orange-yellow-crayola);
}

.toggle input:checked~.moon {
  opacity: 0;
}

.toggle-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white-1);
  transition: transform 0.18s ease, background 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.toggle input:checked+.toggle-icon+.toggle-icon+.toggle-slider,
.toggle input:checked~.toggle-slider {
  transform: translateX(26px);
  background: var(--orange-yellow-crayola);
}

.toggle-label {
  font-size: 14px;
  color: var(--light-gray);
}


.light .info_more-btn {
  background: var(--bg-gradient-yellow-1);
}

.light .info_more-btn::before {
  background: var(--onyx);
}


/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  /* text-align: justify; */
  box-sizing: border-box;
}

.modal-container.active .testimonials-modal .modal-content p {
  text-align: justify;
  text-justify: inter-word;
  /* better spacing in some browsers */
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

img,
ion-icon,
a,
button,
time,
span {
  display: block;
}

button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

input,
textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}

::selection {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
}

.light ::selection {
  color: #000000; /* Black text */
  background: var(--orange-yellow-crayola); /* Keep the Gold background */
}

:focus {
  outline-color: var(--orange-yellow-crayola);
}

html {
  font-family: var(--ff-poppins);
}

body {
  background: var(--smoky-black);
  transition: background 0.25s ease, color 0.25s ease;
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

/* PROJECT DETAIL PAGE - Full Page Layout (ENHANCED) */

.project-detail {
  display: none;
}

.project-detail.active {
  display: block;
  animation: fadeInPage 0.6s ease-out;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.project-detail-header {
  padding: 2rem 3rem 1rem 1rem;
  border-bottom: 1px solid var(--eerie-black);
}

.project-detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--orange-yellow-crayola);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: var(--ff-poppins);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
}

.light .project-detail-back-btn {
  color: var(--vegas-gold2);
}

.project-detail-back-btn:hover {
  transform: translateX(-8px);
  gap: 1rem;
}

.project-detail-back-btn ion-icon {
  font-size: 1.2rem;
}

@media (max-width: 579px) OR (max-width: 820px) {
  .project-detail-back-btn {
    padding: 0px;
  }
}

.project-detail-main {
  padding: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.1rem;
  align-items: start;
  margin-bottom: 3rem;
}

@media (max-width: 968px) {
  .project-detail-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .project-detail-header {
    padding: 1.5rem 2rem 1rem 2rem;
  }

  .project-detail-main {
    padding: 2rem;
  }
}

.project-detail-info-left {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 30px;
}

.project-detail-type {
  display: inline-block;
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black);
  padding: 5px 12PX;
  border-radius: 20px;
  font-weight: 600;
  font-size: 11px;
  width: fit-content;
  text-transform: capitalize;
}

.project-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--light-gray);
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 768px) {
  .image-lightbox-btn {
    width: 40px;
    height: 40px;
    background: rgba(30, 30, 30, 0.9);
  }
  
  .image-lightbox-btn.prev {
    left: 10px;
  }
  
  .image-lightbox-btn.next {
    right: 10px;
  }

  .project-detail-title {
    font-size: 1.8rem;
  }
}

.project-detail-slogan {
  color: var(--light-gray-70);
  font-size: var(--fs-4);
  font-weight: var(--fw-400);
  margin-top: 5px;
  margin-bottom: 10px;
  line-height: 24px;
}

.project-detail-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--light-gray-70);
  margin: 0;
}

/* Image Gallery Styles */
.project-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
}

.gallery-main {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-detail-image-box iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
}

.project-detail-image-box {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.project-detail-image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-detail-image-box img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  /* Parent has border-radius */
}

/* Project detail gallery thumbnails: horizontal carousel */
.gallery-thumbnail {
  flex: 0 0 80px;
  /* item width – controls how many fit */
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  border: 1px solid transparent;
  transition: border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnail:hover {
  border-color: var(--orange-yellow-crayola);
  transform: scale(1.06);
}

.light .gallery-thumbnail:hover {
  border-color: var(--vegas-gold2);
}

.gallery-thumbnail.active {
  opacity: 1;
  border-color: var(--orange-yellow-crayola);
  transform: translateY(-1px);
}

/* Project detail gallery thumbnails: horizontal strip */
.gallery-thumbnails-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  width: fit-content;
}

.gallery-thumbnails {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0.5rem;
  padding-bottom: 15px;
  max-width: 280px;
}

/* each thumb takes ~1/3 of the strip */
.gallery-thumbnail {
  flex: 0 0 85px;
  /* increase width so 3 * 85px > 240px */
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnail.active {
  opacity: 1;
  border-color: var(--orange-yellow-crayola);
  transform: translateY(-1px);
}

/* === Project Detail Gallery – Arrow Buttons === */

/* Gallery arrows – no pseudo-element ring */

.gallery-arrow {
  pointer-events: all;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.094);
  background: var(--eerie-black-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white-1);
  box-shadow: var(--shadow-1);
  /* cursor: pointer; */
  /* outline: none; */
  -webkit-tap-highlight-color: transparent;
  /* transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease; */
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.light .gallery-arrow {
  border: 1px solid rgba(255, 255, 255, 0.094);
}

.gallery-arrow ion-icon {
  font-size: 16px;
}

/* hover / keyboard focus look */
.gallery-arrow:hover {
  transform: translateY(-1px);
  border-color: var(--orange-yellow-crayola);
  box-shadow: 0 0 15px rgba(255, 176, 59, 0.4);
  /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(255, 190, 25, 0.08); */
}

.light .gallery-arrow:hover:not(:disabled),
.light .gallery-arrow:focus-visible:not(:disabled),
.light .gallery-arrow.is-pressed {
  border-color: var(--vegas-gold2);
}

/* disabled */
.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

/* kill native focus/active styling */
.gallery-arrow:active,
.gallery-arrow:focus {
  outline: none;
  box-shadow: none;
  transform: translateY(0);
}

/* Expand button in bottom-right corner */
.project-detail-main-image {
  position: relative;
  display: block;
  width: 100%;
}

/* Ensure video fits the container exactly like images */
.project-detail-image-box video {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  /* Forces the box to stay this shape always */
  background: var(--eerie-black-1);
  /* Placeholder color while loading */
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  /* Ensures corners clip the video too */
}

.project-detail-image-box img,
.project-detail-image-box video {
  width: 100%;
  height: 100%;
  /* This ensures the entire video is visible without cropping */
  object-fit: contain;
  display: block;
  /* Optional: matches the dark theme for any letterboxing */
  background: var(--onyx);
}

.light .project-detail-image-box img,
.project-detail-image-box video {
  background: var(--eerie-black-1);
}

/* Add a play icon overlay to video thumbnails */
.gallery-thumbnail.video-thumb {
  position: relative;
}

.gallery-thumbnail.video-thumb::after {
  content: "▶";
  /* Play symbol */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

/* Hide the expand button when a video is showing (optional UX choice) */
.project-detail-main-image.has-video .image-expand-btn {
  display: none;
}

.image-expand-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white-1);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  z-index: 10;
}

.image-expand-btn ion-icon {
  font-size: 20px;
}

.image-expand-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Lightbox overlay (dark background) */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* Background color is handled by backdrop */
  z-index: 1000; /* Sit on top of the whole website */
  
  /* Flexbox to center the content */
  display: none;
  align-items: center;
  justify-content: center;
  
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-1);
}

.image-lightbox.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Semi-transparent dark backdrop */
.image-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Darker for better contrast */
  
  z-index: 1; /* LAYER 1: BOTTOM */
}

.image-lightbox-content {
  position: relative; /* Required for z-index to work */
  z-index: 10;        /* LAYER 2: MIDDLE (Above Backdrop) */
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox-img,
.image-lightbox-iframe {
  position: relative;
  z-index: 20; /* LAYER 3: TOP (Highest Priority) */
  
  /* Size & Style */
  width: auto;
  height: auto;
  max-width: 85vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  object-fit: contain;
}

/* Centered image card */
.image-lightbox-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  z-index: 1;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Close button (top-right corner) */
.image-lightbox-close {
  position: fixed;
  top: 25px;
  right: 35px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--onyx); /* Matches counter style */
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white-1);
  cursor: pointer;
  z-index: 70; /* Above everything */
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  --ionicon-stroke-width: 40px;
}

.image-lightbox-close ion-icon {
  font-size: 22px;
}

.image-lightbox-close:hover {
  background: var(--orange-yellow-crayola);
  /* background: rgba(255, 255, 255, 0.2); */
  color: var(--eerie-black-2);
  transform: rotate(90deg);
  border-color: var(--orange-yellow-crayola);
  box-shadow: 0 0 15px rgba(255, 176, 59, 0.4);
}
.light .image-lightbox-close:hover {
  color: var(--onyx);
}

.image-lightbox-iframe {
  width: 85vw;
  height: 80vh; /* Occupy most of the screen */
  max-width: 1200px; /* Prevent it from getting too huge on big monitors */
  max-height: 675px; /* Maintain roughly 16:9 ratio max */
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: #000;
  z-index: 10; /* Ensure it sits above the backdrop */
}

/* On mobile, adjust height to prevent overflow */
@media (max-width: 768px) {
  .image-lightbox-iframe {
    width: 95vw;
    height: 50vh; /* Smaller height for mobile phones */
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    background: rgba(0, 0, 0, 0);
  }

  to {
    background: rgba(0, 0, 0, 0.85);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .image-lightbox-dialog {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 8px;
  }

  .image-lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
  }

  .image-expand-btn {
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .image-expand-btn ion-icon {
    font-size: 18px;
  }
}

/* About This Project section */
.project-detail-info-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--jet2);
}

.about-project {
  text-align: justify;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.light .project-detail-info-section {
  border-top: 1px solid var(--eerie-gray);
}

.project-detail-info-section h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--light-gray);
  font-weight: 600;
}

/* Meta section (Category, Technologies, Year) - 3 columns on desktop */
/* About This Project - with dark background box */
.project-detail-meta {
  display: grid;
  grid-template-columns: 1fr;
  /* 1 equal columns */
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 176, 59, 0.08);
  /* Subtle gold tint background */
  border-radius: 8px;
  /* background: var(--border-gradient-onyx);
  border: 1px solid var(--jet);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; */
}

.detail-meta-item h4 {
  margin: 0 0 0.8rem 0;
  color: var(--orange-yellow-crayola);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.light .detail-meta-item h4 {
  color: var(--black);
}

.detail-meta-item p {
  margin: 0;
  color: var(--light-gray);
  font-size: 13px;
  line-height: 1.6;
}

/* Key Features - full width items, stacked vertically */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* Change from 1fr to 1fr 1fr for desktop */
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.features-list li {
  padding: 1rem 1.5rem;
  background: rgba(255, 176, 59, 0.1);
  border-left: 3px solid var(--orange-yellow-crayola);
  border-radius: 4px;
  color: var(--light-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.features-list li:hover {
  background: rgba(255, 176, 59, 0.15);
  transform: translateX(4px);
}

.project-detail-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .features-list {
    grid-template-columns: 1fr;
    /* Stacks vertically on mobile */
  }

  .project-detail-meta {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* Light theme */
.light .project-detail-meta {
  background: rgba(255, 176, 59, 0.12);
}

.light .features-list li {
  background: rgba(255, 176, 59, 0.12);
  border-left-color: var(--vegas-gold-2);
}

/* =========================================
   ACCORDION FEATURES (MASONRY STYLE)
   ========================================= */

/* 1. Use Columns instead of Grid for independent behavior */
.features-list-accordion {
  display: block;
  /* Removes grid behavior */
  column-count: 2;
  /* Creates two independent columns */
  column-gap: 1rem;
  /* Space between columns */
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Mobile: Single column */
@media (max-width: 768px) {
  .features-list-accordion {
    column-count: 1;
  }
}

/* 2. Style the Items */
.accordion-item {
  /* Crucial: Prevents the item from being split between columns */
  break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  /* Helps maintain block integrity in columns */
  width: 100%;
  /* Fills the column width */
  margin-bottom: 1rem;
  /* Space between items vertically */

  /* Your Theme Styles */
  background: rgba(255, 176, 59, 0.1);
  border-left: 3px solid var(--orange-yellow-crayola);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;

  /* Fix for Safari/Chrome column render glitches */
  backface-visibility: hidden;
  transform: translateZ(0);
}

.light .accordion-item {
  border-left-color: var(--light-gray);
}

.accordion-item:hover {
  background: rgba(255, 176, 59, 0.15);
  transform: translateY(-2px);
  /* Subtle lift */
}

/* 3. Header & Text Styling (Same as before) */
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion-title {
  color: var(--light-gray);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  padding-right: 15px;
  line-height: 1.4;
}

/* 4. Icon Styling */
.accordion-icon-box {
  position: relative;
  width: 20px;
  height: 20px;
  color: var(--orange-yellow-crayola);
  flex-shrink: 0;
}

.light .accordion-icon-box {
  color: var(--light-gray);
}

.accordion-icon-box ion-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon-plus {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

.icon-minus {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.accordion-item.active .icon-plus {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item.active .icon-minus {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

/* 5. Expansion Animation */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
}

.accordion-body {
  overflow: hidden;
}

.accordion-body p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin: 0;
  color: var(--light-gray);
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

.project-detail-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: column;
  padding-top: 0.5rem;
}

.project-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1em 0.7rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--ff-poppins);
  font-weight: 600;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

@media (max-width: 480px) {
  .project-action-btn {
    font-size: 0.65rem;
    padding: 1rem 0.6rem;
  }
}

.project-action-btn.primary {
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black);
}

.project-action-btn.primary:hover {
  background: #ffb83b;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 176, 59, 0.3);
}

.project-action-btn.secondary {
  background: rgba(255, 176, 59, 0.15);
  color: var(--vegas-gold2);
  border: 1px solid var(--orange-yellow-crayola);
}

.light .project-action-btn.secondary {
  background: var(--black);
}

.project-action-btn.secondary:hover {
  background: rgba(255, 176, 59, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 176, 59, 0.2);
}

.light .project-action-btn.secondary:hover {
  background: var(--bg-gradient-yellow-2);
}

.project-action-btn ion-icon {
  font-size: 1.1rem;
}

.sidebar,
article {
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.separator {
  width: 100%;
  height: 1px;
  background: var(--jet);
  margin: 16px 0;
}

.icon-box {
  position: relative;
  background: var(--border-gradient-onyx);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--orange-yellow-crayola);
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--eerie-black-1);
  border-radius: inherit;
  z-index: -1;
}

.icon-box ion-icon {
  --ionicon-stroke-width: 35px;
}

article {
  display: none;
}

article.active {
  display: block;
  animation: fade 0.5s ease backwards;
}

@keyframes fade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.h2,
.h3,
.h4,
.h5 {
  color: var(--white-2);
  text-transform: capitalize;
}

.h2 {
  font-size: var(--fs-1);
}

.h3 {
  font-size: var(--fs-2);
}

.h4 {
  font-size: var(--fs-4);
}

.h5 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.article-title {
  position: relative;
  padding-bottom: 7px;
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--text-gradient-yellow);
  border-radius: 3px;
}

.has-scrollbar::-webkit-scrollbar {
  width: 5px;
  /* for vertical scrollbar */
  height: 5px;
  /* for horizontal scrollbar */
}

.has-scrollbar::-webkit-scrollbar-track {
  background: var(--onyx);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-button {
  width: 20px;
}

.content-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 15px;
  padding-top: 45px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  z-index: 1;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.site-footer {
  padding: 35px 20px 35px;
  text-align: center;
  font-size: var(--fs-8);
  color: var(--light-gray-70);
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  /* subtle divider */
}

.footer-text {
  margin: 2px 0;
}

/* Make the pieces sit on one line, with small gap */
.footer-copy,
.footer-text span {
  display: inline-block;
}

.footer-highlight {
  display: inline !important;
  text-decoration: none;      
  color: var(--orange-yellow-crayola);
  font-weight: var(--fw-500);
}

/* Ensure the paragraph itself doesn't force a wrap */
.footer-credit {
  display: flex;
  justify-content: center;
  gap: 5px; /* Adds a nice little space between 'by' and the name */
  white-space: nowrap; 
}

/* Light theme tweaks */
body.light .site-footer {
  border-top: 1px solid rgba(17, 16, 16, 0.13);
  color: var(--light-gray);
}

body.light .footer-highlight {
  color: var(--vegas-gold2);
}


/*-----------------------------------*\
  #MAIN
\*-----------------------------------*/

main {
  margin: 15px 25px;
  margin-bottom: 75px;
  min-width: 259px;
}

/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/

.sidebar {
  margin-bottom: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: var(--transition-2);
}

.sidebar.active {
  max-height: 500px;
}

.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.avatar-box {
  background: var(--bg-gradient-onyx);
  border-radius: 20px;
  /* avatar size (default desktop) - responsive via media queries */
  --avatar-size: 150px;
  height: var(--avatar-size);
  width: var(--avatar-size);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-content .name {
  white-space: normal;
  color: var(--white-2);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}

/* Subtle elevated role pill */
.info-content .title {
  background: var(--onyx);
  display: inline-block;
  padding: 16px 16px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  text-align: center;
  width: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.info-content .title:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.info-content .title .title-main {
  display: block;
  color: var(--white-2);
  font-size: var(--fs-7);
  font-weight: var(--fw-600);
  line-height: 1;
}

.info-content .title .title-sub {
  display: block;
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
  margin-top: 3px;
}

.info_more-btn {
  position: absolute;
  top: -20px;
  right: -20px;
  border-radius: 0 15px;
  font-size: 13px;
  color: var(--orange-yellow-crayola);
  background: var(--border-gradient-onyx);
  padding: 10px;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  z-index: 1;
}

.info_more-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-gradient-jet);
  transition: var(--transition-1);
  z-index: -1;
}

.info_more-btn:hover,
.info_more-btn:focus {
  background: var(--bg-gradient-yellow-1);
}

.info_more-btn:hover::before,
.info_more-btn:focus::before {
  background: var(--bg-gradient-yellow-2);
}

.info_more-btn span {
  display: none;
}

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info {
  max-width: calc(100% - 46px);
  width: calc(100% - 46px);
}

.contact-title {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info :is(.contact-link, time, address) {
  color: var(--white-2);
  font-size: var(--fs-7);
}

.contact-link {
  pointer-events: auto;
  cursor: pointer;
}

/* Gmail helper link – dark mode */
.contact-link.contact-link-highlight {
  font-size: 11px;
  color: var(--orange-yellow-crayola);
  /* blue in dark mode */
}

/* Light mode override */
body.light .contact-link.contact-link-highlight {
  color: var(--text-gradient-yellow);
  font-weight: bold;
  /* gold in light mode */
}

/* -----------------------------------*\
  #SCHEDULE BUTTON (Calendly)
\*-----------------------------------*/

.schedule-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 160px;
  margin-top: 6px;
  padding: 5px 0px;
  background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola);
  border: 1px solid var(--jet);
  border-radius: 12px;
  font-size: var(--fs-8);
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Add the inner gradient background effect (consistent with your theme) */
.schedule-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

/* Hover Effects */
.schedule-btn:hover {
  transform: translateY(-2px);
  color: var(--eerie-black-1); /* Dark text on bright background */
  border-color: var(--orange-yellow-crayola);
}

.schedule-btn:hover::before {
  background: var(--orange-yellow-crayola); /* Fills with Gold */
}

/* Icon sizing */
.schedule-btn ion-icon {
  font-size: 16px;
}

.light .schedule-btn:hover::before {
  background: var(--orange-yellow-crayola);
}

/* Light Mode Support */
.light .schedule-btn {
  background: var(--eerie-black-2); /* Light gray in light mode */
  border-color: rgba(0,0,0,0.1);
  color: var(--eerie-black-1);
}

.light .schedule-btn::before {
  background: #ffffff;
}

.light .schedule-btn:hover {
  color: #000000;
  background: var(--orange-yellow-crayola);
}

.contact-info address {
  font-style: normal;
}

.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-bottom: 4px;
  padding-left: 7px;
}

.social-item .social-link {
  color: var(--light-gray-70);
  font-size: 18px;
}


.social-item .social-link:hover {
  color: var(--light-gray);
}





/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: hsla(240, 1%, 17%, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--jet);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-2);
  z-index: 5;
}

.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.navbar-link {
  color: var(--light-gray);
  font-size: var(--fs-8);
  padding: 20px 7px;
  transition: color var(--transition-1);
}

.light .navbar-link {
  color: var(--white-1);
}

.navbar-link:hover,
.navbar-link:focus {
  color: var(--light-gray-70);
}

.navbar-link.active {
  color: var(--orange-yellow-crayola);
}





/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about .article-title {
  margin-bottom: 15px;
}

.about-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  margin-bottom: 30px;
}

.about-text p {
  margin-bottom: 15px;
}



/**
 * #service 
 */

.service {
  margin-bottom: 35px;
}

.service-title {
  margin-bottom: 20px;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.service-icon-box {
  margin-bottom: 10px;
}

.service-icon-box img {
  margin: auto;
}

.service-content-box {
  text-align: center;
}

.service-item-title {
  margin-bottom: 7px;
}

.service-item-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-3);
  line-height: 1.6;
}


/**
 * #testimonials 
 */

.testimonials {
  margin-bottom: 30px;
  position: relative;
}

/* testimonials nav buttons */
.testimonials-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.testimonials-btn {
  pointer-events: all;
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--eerie-black-1);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--white-2);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.light .testimonials-btn {
  color: var(--white-1);
}

.testimonials-btn.prev {
  left: -20px;
}

.testimonials-btn.next {
  right: -20px;
}

.testimonials-btn ion-icon {
  font-size: 18px;
}

/* hover ring effect using orange-yellow color */
.testimonials-btn:hover {
  transform: translateY(-50%) translateY(-2px);
  border-color: var(--orange-yellow-crayola);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(255, 190, 25, 0.08);
}

.light .testimonials-btn:hover {
  border-color: var(--vegas-gold2);
}

.testimonials-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

/* smaller buttons on tiny screens */
@media (max-width: 480px) {
  .testimonials-btn {
    width: 38px;
    height: 38px;
  }

  .testimonials-btn.prev {
    left: -15px;
  }

  .testimonials-btn.next {
    right: -15px;
  }
}

.testimonials-title {
  margin-bottom: 20px;
}

.testimonials-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px 15px;
  padding-bottom: 35px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
}

.testimonials-item {
  min-width: 100%;
  scroll-snap-align: center;
}

.testimonials-avatar-box {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(15px, -25px);
  background: var(--bg-gradient-onyx);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
}

.testimonials-item-title {
  margin-bottom: 7px;
}

.testimonials-date {
  display: block;
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  margin-top: 6px;
  /* sits just below the title */
  margin-bottom: 8px;
  margin-left: 0;
  /* default for small screens */
}

/* modal date */
[data-modal-date] {
  display: block;
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  margin-bottom: 10px;
}

.testimonials-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/**
 * #testimonials-modal
 */

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 20;
  pointer-events: none;
  visibility: hidden;
}

.modal-container::-webkit-scrollbar {
  display: none;
}

.modal-container.active {
  pointer-events: all;
  visibility: visible;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: hsl(0, 0%, 5%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition-1);
}

.overlay.active {
  opacity: 0.8;
  visibility: visible;
  pointer-events: all;
}

.testimonials-modal {
  background: var(--eerie-black-2);
  position: relative;
  padding: 15px;
  margin: 15px 12px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  box-shadow: var(--shadow-5);
  transform: scale(1.2);
  opacity: 0;
  transition: var(--transition-1);
  z-index: 2;
}

.modal-container.active .testimonials-modal {
  transform: scale(1);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--onyx);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-2);
  font-size: 18px;
  opacity: 0.7;
}

.light .modal-close-btn {
  color: var(--white-1);
}

.modal-close-btn:hover,
.modal-close-btn:focus {
  opacity: 1;
}

.modal-close-btn ion-icon {
  --ionicon-stroke-width: 50px;
}

.modal-avatar-box {
  background: var(--bg-gradient-onyx);
  width: max-content;
  border-radius: 14px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-2);
}

.modal-img-wrapper>img {
  display: none;
}

.modal-content time {
  font-size: var(--fs-6);
  color: var(--light-gray-70);
  font-weight: var(--fw-300);
  margin-bottom: 20px;
}

.modal-content p {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}


/**
 * #clients 
 */

.clients {
  margin-bottom: 15px;
}

.clients-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px;
  padding-bottom: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 25px;
}

.clients-item {
  min-width: 50%;
  scroll-snap-align: start;
}

.clients-item img {
  width: 100%;
  filter: grayscale(1);
  transition: var(--transition-1);
}

.clients-item img:hover {
  filter: grayscale(0);
}


/*-----------------------------------*\
  #PROFILE
\*-----------------------------------*/

.article-title {
  margin-bottom: 30px;
}


/**
 * education and experience 
 */

.timeline {
  margin-bottom: 30px;
}

.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.timeline-list {
  font-size: var(--fs-6);
  margin-left: 45px;
}

.timeline-item {
  position: relative;
}

.timeline-item:not(:last-child) {
  margin-bottom: 20px;
}

.timeline-item-title {
  font-size: var(--fs-6);
  line-height: 1.3;
  margin-bottom: 7px;
}

.timeline-list span {
  color: var(--vegas-gold1);
  font-weight: var(--fw-400);
  line-height: 1.6;
}

.light .timeline-list span {
  color: var(--black);
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -30px;
  width: 1px;
  height: calc(100% + 50px);
  background: var(--jet);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -33px;
  height: 6px;
  width: 6px;
  background: var(--text-gradient-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--jet);
}

.timeline-text {
  color: var(--light-gray);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/* Wrapper for extra experience bullets */
.timeline-extra-wrapper {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease;
}

/* Expanded state */
.timeline-extra-wrapper.expanded {
  opacity: 1;
}

/* Slight fade on text while animating */
.timeline-extra-wrapper .timeline-text {
  transition: opacity 0.25s ease;
}

/* Button + icon animation (if not already set) */
.timeline-read-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.timeline-read-more ion-icon {
  font-size: 14px;
  transition: transform 0.25s ease;
}

/* Optional: rotate icon additionally when expanded */
.timeline-read-more[aria-expanded="true"] ion-icon {
  transform: rotate(180deg);
}

/* Base icon state: pointing down, no rotation */
.timeline-read-more-icon {
  font-size: 14px;
  transition: transform 0.25s ease;
  transform: rotate(0deg);
}

/* When expanded, rotate to point up (^) */
.timeline-read-more[aria-expanded="true"] .timeline-read-more-icon {
  transform: rotate(180deg);
}


/* Add spacing between bullet points in timeline text */
.timeline-text {
  margin-bottom: 12px;
  /* Space between separate bullet paragraphs */
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.timeline-text:last-child {
  margin-bottom: 0;
  /* Remove bottom margin from last bullet */
}

/* Alternative: If you want more space between bullets */
.timeline-item .timeline-text+.timeline-text {
  margin-top: 12px;
  /* Additional space between consecutive bullet paragraphs */
}

/* Read More button styling */
.timeline-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin-top: 10px;

  /* center horizontally */
  margin-left: auto;
  margin-right: auto;

  border-radius: 999px;
  font-size: var(--fs-8);
  font-weight: var(--fw-400);
  letter-spacing: 0.02em;
  color: var(--orange-yellow-crayola);
  background: transparent;
  border: 1px solid rgba(255, 193, 37, 0.4);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease;
}

.timeline-read-more:hover {
  background: rgba(255, 193, 37, 0.08);
  border-color: var(--orange-yellow-crayola);
  transform: translateY(-1px);
}

.timeline-read-more ion-icon {
  font-size: 14px;
  transition: transform 0.25s ease;
}

.timeline-read-more[aria-expanded="true"] ion-icon {
  transform: rotate(180deg);
}

/* Light theme: softer pill, darker text */
body.light .timeline-read-more {
  color: #805500;
  /* var(--text-gradient-yellow) */
  /* darker golden text */
  background: #ffffff;
  /* subtle filled pill */
  border-color: var(--jet);
}

body.light .timeline-read-more:hover {
  background: var(--orange-yellow-crayola);
  border-color: var(--orange-yellow-crayola);
}


/* Smooth transition for expanding/collapsing text */
.timeline-text {
  transition: opacity 0.3s ease;
}

.timeline-text-hidden {
  display: none !important;
  opacity: 0;
}


/**
 * skills 
 */

.skills-title {
  margin-bottom: 20px;
}

.skills-list {
  padding: 20px;
}


.skills-item:not(:last-child) {
  margin-bottom: 15px;
}

.skill .title-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.skill .title-wrapper data {
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}

.skill-progress-bg {
  background: var(--jet);
  width: 100%;
  height: 8px;
  border-radius: 10px;
}

.skill-progress-fill {
  background: var(--text-gradient-yellow);
  height: 100%;
  border-radius: inherit;
}





/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.filter-list {
  display: none;
}

.filter-select-box {
  position: relative;
  margin-bottom: 25px;
}

.filter-select {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.filter-select.active .select-icon {
  transform: rotate(0.5turn);
}

.select-list {
  background: var(--eerie-black-2);
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  padding: 6px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.15s ease-in-out;
}

.filter-select.active + .select-list {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.select-item button {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  text-transform: capitalize;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
}

.select-item button:hover {
  background-color: hsla(240, 2%, 20%, 1);
}

/* Standardize Project Cards */
.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 10px;
}

/* 1. Hide items by default */
.project-item {
  display: none;
}

/* 2. Show items only when they have the 'active' class */
.project-item.active {
  display: block;
  height: 100%;
  animation: scaleUp 0.25s ease forwards;
}

/* Card Container Styling */
.project-link {
  display: flex;
  flex-direction: column; /* Stack Image on top of Text */
  background: var(--eerie-black-2); /* Dark Card Background */
  border: 1px solid var(--jet);
  border-radius: 16px;
  overflow: hidden; /* Clips the image rounded corners */
  transition: 0.3s ease;
  height: 100%; /* Ensures all cards in a row are same height */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  position: relative;
}

/* Light Theme Support */
.light .project-link {
  background: #fff;
  border: 1px solid #e0e0e0;
}

/* Hover Effect: Lift Up & Glow */
.project-link:hover {
  transform: translateY(-5px);
  border-color: var(--orange-yellow-crayola);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.project-item>a {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Force Image Ratio */
.project-img {
  /* position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px; */
  position: relative;
  width: 100%;
  height: 200px; /* Fixed height for uniformity */
  overflow: hidden;
  border-radius: 0; /* Let parent handle radius */
  z-index: 1;
}

.project-img img {
  width: 100%;
  height: 100%;
  padding: 0px;
  border-radius: 13px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Image Zoom on Hover */
.project-link:hover .project-img img {
  transform: scale(1.1);
}

/* Overlay Mask (Darkens image on hover) */
.project-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* Transparent initially */
  z-index: 1;
  transition: background 0.3s ease;
}

.project-link:hover .project-img::before {
  background: rgba(0, 0, 0, 0.4); /* Darken on hover */
}

.card-badge-wrapper {
  position: absolute;
  top: 18px;
  left: 15px;
  display: flex;
  gap: 8px; /* Space between Category and Private badge */
  z-index: 10;
}

.card-badge {
  /* position: absolute;
  top: 15px;
  left: 15px;
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3); */
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
  font-size: 8px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: capitalize;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.light .card-badge {
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
}

.card-badge.private {
  background: var(--bittersweet-shimmer); /* Uses your existing red variable */
  color: var(--white-1);
  display: flex;
  align-items: center;
  gap: 4px;
}

.light .card-badge.private {
  background: var(--bittersweet-shimmer);
  color: var(--white-1);
}

.card-badge.public {
  background: #2ea043; /* Professional GitHub-style Green */
  color: var(--white-1);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* .light .card-badge.public {
  background: #2ea043;
  color: var(--white-1);
} */

.card-date {
  position: absolute;
  top: 17px;
  right: 15px;
  background: rgba(40, 40, 40, 0.85); /* Dark pill */
  color: var(--white-2);
  font-size: 8px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 10;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.light .card-date {
  background: rgba(255, 255, 255, 0.9);
  color: var(--eerie-black-1);
  border-color: rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .project-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@keyframes scaleUp {
  0% {
    transform: scale(0.5);
  }

  100% {
    transform: scale(1);
  }
}

.project-item>a:hover .project-img::before {
  background: hsla(0, 0%, 0%, 0.5);
}

.project-item-icon-box {
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 20px;
  padding: 12px;
  border-radius: 50%;
  opacity: 0;
  z-index: 2;
  transition: 0.3s ease;
}

.light .project-item-icon-box {
  background: var(--bg-gradient-onyx);
  color: var(--eerie-black-1);
}

/* Show Icon on Hover */
.project-link:hover .project-item-icon-box {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-content-card {
  /* padding: 20px 10px;
  display: flex;
  gap: 15px;
  flex-direction: column;
  flex-grow: 1;
  position: relative; */
  padding: 24px; /* More breathing room */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
  position: relative;
  background: var(--eerie-black-2);
}

/* --- Content Section (Below Image) --- */
.project-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: auto
}

.project-item>a:hover .project-item-icon-box {
  --scale: 1;
  opacity: 1;
}

.project-item-icon-box ion-icon {
  --ionicon-stroke-width: 50px;
}

.project-item>a:hover img {
  transform: scale(1.1);
}

.project-title {
  /* color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  line-height: 1.3; */
  /* color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  line-height: 1.3;
  margin-bottom: auto; */
  color: var(--white-1);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0; /* Remove auto margin */
}

.light .project-title {
  color: var(--eerie-black-1);
}

.project-slogan {
  color: var(--light-gray-70);
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 15px; /* Push tech list down */
  
  /* Limit to 3 lines with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: inherit; /* Push to bottom of card */
}

.tech-tag-pill {
  font-size: 9px;
  font-weight: 500;
  color: var(--orange-yellow-crayola); /* Gold Text */
  background: rgba(255, 176, 59, 0.1); /* Transparent Gold BG */
  border: 1px solid rgba(255, 176, 59, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.light .tech-tag-pill {
  color: var(--light-gray);
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}

.project-link:hover .tech-tag-pill {
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
}

.light .project-link:hover .tech-tag-pill {
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
}

.tech-tag-pill.more {
  font-weight: 700; /* Make it bolder */
  background: rgba(255, 176, 59, 0.25); /* Slightly darker gold background */
  cursor: help; /* Change cursor to indicate it's information */
}

/* Ensure it still looks good in light mode */
.light .tech-tag-pill.more {
   background: rgba(0,0,0,0.1);
   color: var(--eerie-black-1);
}

.project-category {
  /* color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300); */
    color: var(--eerie-black-2);
    font-size: 0.64rem;
    font-weight: 500;
    padding: 2px 7px;
    background: var(--orange-yellow-crayola);
    border-radius: 20px;
    width: fit-content;
}

.light .project-category {
  color: var(--eerie-black-1);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

/* The individual tags */
.tech-tag {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  background: rgba(255, 176, 59, 0.1);
  color: var(--light-gray);
  padding: 6px 12px;
  border: 1px solid var(--orange-yellow-crayola);
  border-radius: 12px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Hover Effect */
.tech-tag:hover {
  /* background: var(--orange-yellow-crayola); */
  /* color: var(--eerie-black-1); */
  /* transform: translateY(-2px); */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Light Mode Support */
.light .tech-tag {
  color: var(--eerie-black-1);
  border-color: var(--vegas-gold2);
}

.card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: var(--orange-yellow-crayola);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s ease;
}

.light .card-arrow {
  color: var(--eerie-black-1);
}

.project-link:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}
@media (min-width: 580px) {
  .project-list {
    grid-template-columns: 1fr 1fr; /* 2 Columns */
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .project-list {
    grid-template-columns: repeat(3, 1fr); /* 3 Columns */
    gap: 30px;
  }
}

/* Responsive Grid */
@media (min-width: 768px) {
  .project-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Animation Keyframes */
@keyframes scaleUp {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 579px) {
  .project-detail-back-btn {
    padding: 0 !important;
    margin-left: 0 !important;
  }

  .project-detail-header {
    padding-left: 1.2rem !important;
    /* Adjust header to align button to content edge */
  }
}

@media (min-width: 450px) {

  /* Remove any 'height: auto' declarations for these classes */
  .project-img,
  .certificate-banner-box {
    height: auto;
    /* Fallback for browsers that don't support aspect-ratio */
    aspect-ratio: 16 / 10;
  }
}

/* 1. Counter Styling */
.image-lightbox-counter {
  position: fixed;
  top: 25px;
  left: 25px;
  /* transform: translateX(-50%); */
  color: var(--white-1);
  background: var(--onyx); /* Semi-transparent background */
  padding: 6px 14px;
  border-radius: 20px;
  font-size: var(--fs-6);
  font-weight: 500;
  z-index: 70; /* Ensure it is above everything */
  pointer-events: none; /* Let clicks pass through if needed */
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--ff-poppins);
}

/* Lightbox Navigation Buttons */
.image-lightbox-btn {
  position: fixed; /* Changed from absolute to fixed */
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60; /* Ensure above backdrop and image */
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.image-lightbox-btn:hover {
  /* background: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
  transform: translateY(-50%) scale(1.1); */
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px rgba(255, 176, 59, 0.4);
}

.image-lightbox-btn.prev {
  left: 30px;
}

.image-lightbox-btn.next {
  right: 30px;
}

.image-lightbox-btn ion-icon {
  font-size: 24px;
  --ionicon-stroke-width: 40px;
}

/* Hide buttons on very small screens if they block the image */
@media (max-width: 450px) {
  .image-lightbox-btn {
    width: 36px;
    height: 36px;
    background: rgba(30, 30, 30, 0.5);
  }

  .image-lightbox-btn.prev {
    left: 5px;
  }

  .image-lightbox-btn.next {
    right: 5px;
  }
}

/*-----------------------------------*\
  #CERTIFICATE
\*-----------------------------------*/

.certificate-posts {
  margin-bottom: 10px;
}

.certificate-posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.certificate-post-item>a {
  position: relative;
  background: var(--border-gradient-onyx);
  height: 100%;
  box-shadow: var(--shadow-4);
  border-radius: 16px;
  z-index: 1;
}

.certificate-post-item>a::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--eerie-black-1);
  z-index: -1;
}

.certificate-banner-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.certificate-banner-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}

.certificate-post-item>a:hover .certificate-banner-box img {
  transform: scale(1.1);
}

.certificate-content {
  padding: 15px;
}

.certificate-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.certificate-meta :is(.certificate-category, time) {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.certificate-meta .dot {
  background: var(--light-gray-70);
  width: 4px;
  height: 4px;
  border-radius: 4px;
}

.certificate-item-title {
  margin-bottom: 10px;
  line-height: 1.3;
  transition: var(--transition-1);
}

.certificate-post-item>a:hover .certificate-item-title {
  color: var(--orange-yellow-crayola);
}

.certificate-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}





/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.mapbox {
  position: relative;
  height: 250px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--jet);
  overflow: hidden;
}

.mapbox figure {
  height: 100%;
}

.mapbox iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1);
}

.contact-form {
  margin-bottom: 10px;
}

.form-title {
  margin-bottom: 20px;
}

.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-input {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  outline: none;
}

.form-input::placeholder {
  font-weight: var(--fw-500);
}

.form-input:focus {
  border-color: var(--orange-yellow-crayola);
}

textarea.form-input {
  min-height: 100px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
  margin-bottom: 25px;
}

textarea.form-input::-webkit-resizer {
  display: none;
}

.form-input:focus:invalid {
  border-color: var(--bittersweet-shimmer);
}

.form-btn {
  position: relative;
  width: 100%;
  background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: var(--fs-6);
  text-transform: capitalize;
  box-shadow: var(--shadow-3);
  z-index: 1;
  transition: var(--transition-1);
}

.light .form-btn {
  color: var(--light-gray);
}

.form-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.form-btn ion-icon {
  font-size: 16px;
}

.form-btn:hover {
  background: var(--bg-gradient-yellow-1);
}

.form-btn:hover::before {
  background: var(--bg-gradient-yellow-2);
}

/* Fix "Send Message" button hover in Light Mode */
.light .form-btn:hover {
  background: var(--orange-yellow-crayola);
  color: #000000; /* Force black text for best readability */
  border-color: var(--orange-yellow-crayola);
}

/* Ensure the inner pseudo-element matches the solid yellow */
.light .form-btn:hover::before {
  background: var(--orange-yellow-crayola);
}

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-btn:disabled:hover {
  background: var(--border-gradient-onyx);
}

.form-btn:disabled:hover::before {
  background: var(--bg-gradient-jet);
}


/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/

/**
 * responsive larger than 450px screen
 */
/* Ultra-small screens: improve testimonials modal layout */
@media (max-width: 449px) {

  .modal-container {
    padding: 8px;
  }

  .testimonials-modal {
    max-width: 100%;
    padding: 25px 25px;
    border-radius: 16px;
  }

  /* Stack header elements neatly */
  .modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  /* Avatar: smaller and perfectly centered */
  .modal-avatar-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-2);
  }

  .modal-avatar-box img[data-modal-img],
  .modal-avatar-box [data-modal-img] {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Quote icon: centered under avatar */
  .modal-img-wrapper>img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 1;
  }

  /* Typography tweaks for readability */
  .modal-title {
    font-size: var(--fs-4);
    text-align: center;
    margin-bottom: 4px;
  }

  [data-modal-date] {
    text-align: center;
    margin-bottom: 10px;
  }

  .modal-content p {
    font-size: var(--fs-6);
    line-height: 1.55;
  }

  /* Close button: keep tight to corner but smaller */
  .modal-close-btn {
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
  }
}

@media (min-width: 450px) {
  .modal-container {
    padding: 12px;
  }

  .testimonials-modal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    max-width: calc(100% - 32px);
    margin: 12px auto;
    padding: 25px;
    border-radius: 16px;
  }

  /* Mobile-only adjustments for testimonials modal (<=480px)
     Make the modal appear as a compact card with avatar on the left,
     title/date stacked, and decorative quote marks by the paragraph. */
  .modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }

  .modal-avatar-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 0;
  }

  .modal-avatar-box img {
    width: 56px;
    height: 56px;
  }

  /* show decorative quote icon and size it */
  .modal-img-wrapper>img {
    display: block;
    width: 30px;
    height: 30px;
    opacity: 1;
  }

  .modal-content {
    flex: 1 1 auto;
    padding: 0;
  }

  .modal-title {
    font-size: var(--fs-3);
    margin-top: 5px;
  }

  [data-modal-date] {
    display: block;
    margin-bottom: 12px;
  }

  .modal-content p {
    position: relative;
  }

  .modal-close-btn {
    right: 12px;
    top: 12px;
  }

  /**
   * client
   */

  .clients-item {
    min-width: calc(33.33% - 10px);
  }


  /**
   * #PORTFOLIO, CERTIFICATE 
   */

  .project-img,
  .certificate-banner-box {
    height: auto;
  }

}

/* Sidebar layout for small screens (phones) */
@media (max-width: 579px) {

  .sidebar {
    max-height: 170px;
    margin-bottom: 30px;
  }

  .sidebar-info {
    display: flex;
    flex-direction: row;
    /* avatar left, text right */
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }

  .sidebar,
  article {
    padding: 20px;
    /* slightly less than 580px but more than default */
    border-radius: 20px;
  }

  /* Optional: tighten main horizontal margin so it breathes nicely */
  main {
    margin: 15px 20px 75px;
    /* left/right closer to what you see at 580px */
  }

  .avatar-box {
    --avatar-size: 110px;
    width: var(--avatar-size);
    height: 130px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .info-content {
    flex: 1 1 auto;
  }

  .info-content .name {
    font-size: var(--fs-3);
    margin-bottom: 8px;
  }

  .info-content .title {
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 100%;
  }

  body.light .site-footer {
    margin-bottom: 50px;
  }

}


/**
 * responsive larger than 580px screen
 */

/* scale avatar smaller on narrow screens so it remains responsive */
@media (min-width: 579px) {

  /**
   * #SIDEBAR
   */

  .sidebar {
    max-height: 160px;
    margin-bottom: 30px;
  }

  .sidebar-info {
    gap: 20px;
  }

  .avatar-box {
    height: 130px;
    border-radius: 20px;
    --avatar-size: 110px;
  }

  /* make avatar image fill the container and crop when necessary */
  .avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
  }

  .modal-avatar-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
  }

  .modal-avatar-box img[data-modal-img],
  .modal-avatar-box [data-modal-img] {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .modal-img-wrapper>img {
    display: block;
    /* ensure quote is visible on phones */
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

}

@media (min-width: 580px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-6: 15px;
    --fs-7: 13px;
    --fs-8: 12px;

  }



  /**
   * #REUSED STYLE
   */

  .sidebar,
  article {
    width: 520px;
    margin-inline: auto;
    padding: 30px;
  }

  .article-title {
    font-weight: var(--fw-600);
    padding-bottom: 15px;
  }

  .article-title::after {
    width: 40px;
    height: 5px;
  }

  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
  }



  /**
   * #MAIN
   */

  main {
    margin-top: 60px;
    margin-bottom: 100px;
  }



  /**
   * #SIDEBAR
   */

  .sidebar {
    max-height: 200px;
    margin-bottom: 30px;
  }

  .sidebar.active {
    max-height: 520px;
  }

  .sidebar-info {
    gap: 30px;
  }

  .avatar-box {
    height: 150px;
    border-radius: 20px;
    --avatar-size: 130px;
  }

  /* make avatar image fill the container and crop when necessary */
  .avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .info-content .name {
    margin-bottom: 15px;
  }

  .info-content .title {
    padding: 10px 18px;
  }

  .info-content .title .title-main {
    font-size: var(--fs-7);
  }

  .info-content .title .title-sub {
    font-size: var(--fs-8);
  }

  .info_more-btn {
    top: -30px;
    right: -30px;
    padding: 10px 15px;
  }

  .info_more-btn span {
    display: block;
    font-size: var(--fs-8);
  }

  .info_more-btn ion-icon {
    display: none;
  }

  .separator {
    margin: 32px 0;
  }

  .contacts-list {
    gap: 20px;
  }

  .contact-info {
    max-width: calc(100% - 64px);
    width: calc(100% - 64px);
  }



  /**
   * #NAVBAR
   */

  .navbar {
    border-radius: 20px 20px 0 0;
  }

  .navbar-list {
    gap: 20px;
  }

  .navbar-link {
    --fs-8: 14px;
  }



  /**
   * #ABOUT
   */

  .about .article-title {
    margin-bottom: 20px;
  }

  .about-text {
    margin-bottom: 40px;
  }

  /* service */

  .service-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
  }

  .service-icon-box {
    margin-bottom: 0;
    margin-top: 5px;
  }

  .service-content-box {
    text-align: left;
  }

  /* testimonials */

  .testimonials-title {
    margin-bottom: 25px;
  }

  .testimonials-list {
    gap: 30px;
    margin: 0 -30px;
    padding: 30px;
    padding-bottom: 35px;
  }

  .content-card {
    padding: 30px;
    padding-top: 25px;
  }

  .testimonials-avatar-box {
    transform: translate(30px, -30px);
    border-radius: 20px;
  }

  .testimonials-avatar-box img {
    width: 80px;
  }

  .testimonials-item-title {
    margin-left: 95px;
  }

  /* align date under title on large screens where avatar overlaps */
  .testimonials-date {
    margin-left: 95px;
  }

  .testimonials-text {
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  /* testimonials modal */

  .modal-container {
    padding: 20px;
  }

  .testimonials-modal {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 25px;
    padding: 30px;
    border-radius: 20px;
  }

  .modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .modal-avatar-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 0;
    width: 80px;
    /* or 80px – match your design */
    height: 80px;
    overflow: hidden;
    /* crop nicely */
    box-shadow: var(--shadow-2);
  }

  /* make sure the avatar image fills and centers */
  .modal-avatar-box img[data-modal-img],
  .modal-avatar-box [data-modal-img] {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .modal-avatar-box img {
    width: 65px;
  }

  .modal-img-wrapper>img {
    display: block;
    width: 35px;
    height: 35px;
    object-fit: contain;
  }

  /* clients */

  .clients-list {
    gap: 50px;
    margin: 0 -30px;
    padding: 45px;
    scroll-padding-inline: 45px;
  }

  .clients-item {
    min-width: calc(33.33% - 35px);
  }



  /**
   * #PROFILE
   */

  .timeline-list {
    margin-left: 65px;
  }

  .timeline-item:not(:last-child)::before {
    left: -40px;
  }

  .timeline-item::after {
    height: 8px;
    width: 8px;
    left: -43px;
  }

  .skills-item:not(:last-child) {
    margin-bottom: 25px;
  }



  /**
   * #PORTFOLIO, CERTIFICATE
   */

  .project-img,
  .certificate-banner-box {
    border-radius: 12px;
  }

  .certificate-posts-list {
    gap: 30px;
  }

  .certificate-content {
    padding: 25px;
  }



  /**
   * #CONTACT
   */

  .mapbox {
    height: 380px;
    border-radius: 18px;
  }

  .input-wrapper {
    gap: 30px;
    margin-bottom: 30px;
  }

  .form-input {
    padding: 15px 20px;
  }

  textarea.form-input {
    margin-bottom: 30px;
  }

  .form-btn {
    --fs-6: 16px;
    padding: 16px 20px;
  }

  .form-btn ion-icon {
    font-size: 18px;
  }

}


/**
 * responsive larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .sidebar,
  article {
    width: 700px;
  }

  .has-scrollbar::-webkit-scrollbar-button {
    width: 100px;
  }



  /**
   * SIDEBAR
   */

  .contacts-list {
    grid-template-columns: 1fr 1fr;
    gap: 25px 15px;
  }



  /**
   * NAVBAR
   */

  .navbar-link {
    --fs-8: 15px;
  }



  /**
   * ABOUT
   */

  /* testimonials modal */

  .testimonials-modal {
    gap: 35px;
    max-width: 680px;
  }

  .modal-avatar-box img {
    width: 80px;
  }



  /**
   * PORTFOLIO
   */

  .article-title {
    padding-bottom: 20px;
  }

  .filter-select-box {
    display: none;
  }

  .filter-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    padding-left: 5px;
    margin-bottom: 30px;
  }

  .filter-item button {
    color: var(--light-gray);
    font-size: var(--fs-7);
    transition: var(--transition-1);
  }

  .filter-item button:hover {
    color: var(--light-gray-70);
  }

  .filter-item button.active {
    color: var(--vegas-gold1);
  }

  .light .filter-item button.active {
    color: var(--vegas-gold2);
  }

  /* portfolio and certificate grid */

  .project-list,
  .certificate-posts-list {
    grid-template-columns: 1fr 1fr;
  }

  /**
   * CONTACT
   */

  .input-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .form-btn {
    width: max-content;
    margin-left: auto;
  }

}


/**
 * responsive larger than 1024px screen
 */

@media (min-width: 1024px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
    * shadow
    */

    --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.125);
    --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.125);
    --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.125);

  }



  /**
   * REUSED STYLE
   */

  .sidebar,
  article {
    width: 950px;
    box-shadow: var(--shadow-5);
  }



  /**
   * MAIN 
   */

  main {
    margin-bottom: 60px;
  }

  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
  }



  /**
   * NAVBAR
   */

  .navbar {
    position: absolute;
    bottom: auto;
    top: 0;
    left: auto;
    right: 0;
    width: max-content;
    border-radius: 0 20px;
    padding: 0 20px;
    box-shadow: none;
  }

  .navbar-list {
    gap: 30px;
    padding: 0 20px;
  }

  .navbar-link {
    font-weight: var(--fw-500);
  }



  /**
   * ABOUT
   */

  /* service */

  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
  }

  /* testimonials */

  .testimonials-item {
    min-width: calc(50% - 15px);
  }

  /* clients */

  .clients-item {
    min-width: calc(25% - 38px);
  }



  /**
   * PORTFOLIO
   */

  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }



  /**
   * CERTIFICATE
   */

  .certificate-banner-box {
    height: 230px;
  }

}


/**
 * responsive larger than 1250px screen
 */

@media (min-width: 1390px) {

  /**
   * RESET
   */

  body::-webkit-scrollbar {
    width: 20px;
  }

  body::-webkit-scrollbar-track {
    background: var(--smoky-black);
  }

  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--smoky-black);
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 20px;
    box-shadow: inset 1px 1px 0 hsla(0, 0%, 100%, 0.11),
      inset -1px -1px 0 hsla(0, 0%, 100%, 0.11);
  }

  body::-webkit-scrollbar-thumb:hover {
    background: hsla(0, 0%, 100%, 0.15);
  }

  body::-webkit-scrollbar-button {
    height: 60px;
  }

  /* Light theme scrollbar overrides */
  body.light::-webkit-scrollbar-track {
    background: var(--white-1);
  }

  body.light::-webkit-scrollbar-thumb {
    border: 5px solid var(--white-1);
    /* slightly dark translucent thumb for contrast on light background */
    background: var(--light-gray-70);
    border-radius: 20px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.7), inset -1px -1px 0 rgba(210, 210, 210, 0.741);
  }

  body.light::-webkit-scrollbar-thumb:hover {
    background: hsla(0, 0%, 78%, 0.866);
  }

  body.light::-webkit-scrollbar-button {
    height: 60px;
  }



  /**
   * REUSED STYLE
   */

  .sidebar,
  article {
    width: auto;
  }

  article {
    min-height: 100%;
  }



  /**
   * MAIN
   */

  main {
    max-width: 1300px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
  }

  .main-content {
    min-width: 73%;
    width: 73%;
    margin: 0;
  }

  /**
   * SIDEBAR
   */

  .sidebar {
    background: var(--eerie-black-2);
    position: sticky;
    top: 60px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 30px;
    z-index: 1;
  }

  .sidebar-info {
    flex-direction: column;
  }

  /* increase avatar size on very large screens */
  .avatar-box {
    height: 210px;
    --avatar-size: 180px;
  }

  /* ensure image fills container */
  .avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .info-content .name {
    white-space: nowrap;
    text-align: center;
  }

  .info-content .title {
    margin: auto;
    display: flow;           /* Ensures it behaves as a flex container */
    justify-content: center; /* Centers the content horizontally */
    width: 100%;             /* Ensures the container takes full width */
    margin-inline: auto;
  }

  .info_more-btn {
    display: none;
  }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }

  .contacts-list {
    grid-template-columns: 1fr;
  }

  .contact-info :is(.contact-link) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-info :is(.contact-link, time, address) {
    --fs-7: 12px;
    font-weight: var(--fw-300);
  }

  .separator:last-of-type {
    margin: 15px 0;
    opacity: 0;
  }

  .social-list {
    justify-content: center;
  }



  /**
	 * Experience
	 */

  .timeline-text {
    max-width: 700px;
  }

}

/*-----------------------------------*\
  #MAP
\*-----------------------------------*/

/* Update this in your style.css */
.mapbox {
  position: relative;
  height: 400px; /* Force a height */
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--jet);
  overflow: hidden;
  display: block !important; /* Ensure the container itself is visible */
  background: var(--eerie-black-2); 
  transition: background 0.4s ease-in-out;
}

#map {
  transition: opacity 0.3s ease-in-out;
  height: 100%;
  width: 100%;
  min-height: 400px; /* Ensure it doesn't collapse */
}

#map.theme-switching {
  opacity: 0.6;
}