 /* modal header */
 .modal-title {
   font-weight: 600;
 }

 /* carousel rounded corners */
 .carousel-inner img {
   border-radius: 0.5rem;
 }

 /* ========================================================================================= */
 /* ---------- Portfolio card ---------- */
 .portfolio-card {
   position: relative;
   overflow: hidden;
   border-radius: 1rem;
   box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
   transition: transform 0.3s;
   background: #fff;
 }

 .portfolio-card:hover {
   transform: translateY(-4px);
 }

 .portfolio-overlay {
   position: absolute;
   inset: 0;
   background: rgba(0, 0, 0, 0.55);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   transition: opacity 0.25s;
 }

 .portfolio-card:hover .portfolio-overlay {
   opacity: 1;
 }

 .portfolio-actions a {
   color: #fff;
   font-size: 1.4rem;
   margin: 0 0.4rem;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 2.75rem;
   height: 2.75rem;
   border: 2px solid #fff;
   border-radius: 50%;
   transition: transform 0.25s;
 }

 .portfolio-actions a:hover {
   transform: scale(1.1);
 }

 /* modal header */
 .modal-title {
   font-weight: 600;
 }

 /* carousel rounded corners */
 .carousel-inner img {
   border-radius: 0.5rem;
 }

 /* ---------- Generic “glowing–border‑shadow” card ---------- */
 .skill-card {
   position: relative;
   border-radius: 1rem;
   /* softer corners than default .card */
   overflow: hidden;
   /* keep the glow tidy */
   background: #fff;
   padding: 2rem;
   transition: transform .30s ease,
     box-shadow .30s ease;
 }

 /* coloured double‑gradient border */
 .skill-card::before {
   content: '';
   position: absolute;
   inset: 0;
   border-radius: inherit;

   /* draw the 2‑pixel border */
   padding: 2px;
   /* border thickness   */
   background: var(--border-gradient);
   /* set per theme      */

   /* hollow‑out the middle so only the “border” shows */
   -webkit-mask:
     linear-gradient(#000 0 0) content-box,
     linear-gradient(#000 0 0);
   mask:
     linear-gradient(#000 0 0) content-box,
     linear-gradient(#000 0 0);
   -webkit-mask-composite: xor;
   mask-composite: exclude;

   pointer-events: none;
   /* box keeps clicks free */
 }

 /* subtle coloured drop shadow */
 .skill-card {
   box-shadow:
     0 6px 24px -4px rgba(var(--skill-rgb), .25),
     0 0 1px rgba(0, 0, 0, .08);
 }

 /* lift‑on‑hover */
 .skill-card:hover {
   transform: translateY(-6px);
   box-shadow:
     0 10px 32px -4px rgba(var(--skill-rgb), .35),
     0 0 4px rgba(var(--skill-rgb), .30);
 }


 /* ---------- Theme‑specific colour tokens ---------- */

 /* Backend & System Design (Bootstrap primary) */
 .skill-card--primary {
   --skill-rgb: 13, 110, 253;
   /* #0d6efd  */
   --border-gradient: linear-gradient(135deg,
       rgba(13, 110, 253, .60) 0%,
       rgba(174, 187, 255, .30) 100%);
 }

 /* Machine Learning (Bootstrap success) */
 .skill-card--success {
   --skill-rgb: 25, 135, 84;
   /* #198754  */
   --border-gradient: linear-gradient(135deg,
       rgba(25, 135, 84, .60) 0%,
       rgba(163, 228, 195, .30) 100%);
 }

 /* DevOps & Cloud (Bootstrap warning) */
 .skill-card--warning {
   --skill-rgb: 255, 193, 7;
   /* #ffc107  */
   --border-gradient: linear-gradient(135deg,
       rgba(255, 193, 7, .70) 0%,
       rgba(255, 230, 160, .40) 100%);
 }

 /* (Optional) keep lists tidy inside the new padding */
 .skill-card ul,
 .skill-card ol {
   margin-bottom: 0;
 }

 .carousel-control-next,
 .carousel-control-prev

 /*, .carousel-indicators */
   {
   filter: invert(100%);
 }

 .cert-items-container {
   min-height: 120px;
   width: 100%;
   max-width: 400px;
   margin: 0 auto;
   display: flex;
   flex-direction: row;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 .cert-items-container:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
 }

 .cert-items-container .ceritified {
   font-size: 15px;
   font-weight: bold;
   color: #1A85BC;
 }

 .cert-items-container img {
   max-width: 100%;
   max-height: 80px;
   display: block;
   object-fit: contain;
 }

 .h-full {
   height: 100%;
 }


 .justified-gallery {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   padding: 10px 0;
 }

 /* Prevent the last row from stretching to full width */
 .justified-gallery::after {
   content: "";
   flex-grow: 1000;
 }

 .gallery-item {
   flex-grow: 1;
   height: 260px;
   /* Base height for all images */
   position: relative;
   overflow: hidden;
   border-radius: 12px;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
   transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
 }

 .gallery-item:hover {
   transform: scale(1.02);
   z-index: 10;
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
 }

 .gallery-item img {
   height: 100%;
   width: 100%;
   object-fit: cover;
   vertical-align: bottom;
   transition: transform 0.6s ease;
 }

 .gallery-item:hover img {
   transform: scale(1.08);
 }

 @media (max-width: 992px) {
   .gallery-item {
     height: 220px;
   }
 }

 @media (max-width: 768px) {
   .gallery-item {
     height: 180px;
   }
 }

 @media (max-width: 480px) {
   .justified-gallery {
     gap: 6px;
   }

   .gallery-item {
     height: 150px;
     flex-basis: 45%;
     /* Two images per row on very small screens */
   }
 }

 /* =========================== */

 .about .personal-info .info-item .value {
   word-break: break-word;
 }

 @media (max-width: 480px) {
   .about .personal-info {
     padding: 1.25rem !important;
   }

   .about .personal-info .info-item .value {
     font-size: 0.9rem;
   }
 }