/*=================================================================
Template Name: Custom Hugo Profile Template for My Profile
Version: 1.1
=================================================================*/

/*=================================================================
  Branding and layout
==================================================================*/
:root {
  /* Theme Colors */
  --color-accent: #57cbcc;
  --color-hover: #ffffff;
  --color-btn-bg: #212529;
  --color-btn-txt: #ffffff;
  --color-badge-bg: #373e42;
  --color-text-white: #ffffff;
  --color-text-light: #c6d2df;
  --color-link: #749fc7;
  --color-icon: #ffffff;
  --color-border: #4e595f;
  --color-border-grad: linear-gradient(to right, transparent, #4e595f, transparent);
  --color-bg: #191B1F;
  --color-card-bg: #212529;
  --color-nav-bg: #07090a;

  /* Shadows */
  --shadow-box: 0 8px 42px rgba(15, 80, 100, 0.16);
  
  /* Typography */
  --font-body: 'Inter', sans-serif ;
  --font-main: 'Inter', sans-serif;

  /* Layout Spacing */
  --navbar-height: 70px; /* Adjust this value to match your navbar's height */
}

/* Accessible Keyboard Focus Ring */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Remove default browser outline for mouse clicks only */
:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
/*=================================================================
# Global elements
=================================================================*/
html, body {
  scroll-padding-top: var(--navbar-height);
  scroll-behavior: smooth ;
  scrollbar-color: var(--color-accent) var(--color-bg);
}
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-light);
}
h3, h4 {
  color: var(--color-text-white);
  font-weight: 500;
}
h5 {
  color: var(--color-text-white);
}
body::-webkit-scrollbar {
  height: 8px;
  width: 8px;
  background-color: var(--color-bg);
}
::-webkit-scrollbar-track {
  border-radius: 1rem;
}
::-webkit-scrollbar-thumb {
  border-radius: 1rem;
  background: var(--color-accent);
  outline: 1px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-hover); /* Color when hovering over the scroll bar */
}
#search-content::-webkit-scrollbar {
  width: .5em;
  background-color: var(--color-bg);
}

.primary-font, #primary-font {
  font-family: var(--font-main); /* primary font */
}
.secondary-font, #secondary-font {
  font-family: var(--font-body); /* secondary font */
}
.default-font, #default-font {
  font-family: var(--font-body); /* default font */
}

.title-color {
  color: var(--color-accent);
}

/* Section separation*/
.section-block {
  border-width: 0 0 1px 0;
  border-style: solid;
  border-image: linear-gradient(to right, #e5e7eb, var(--color-accent), #e5e7eb) 1;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
/* Sections that take up the full viewport height */
.section-block--full {
  min-height: 100vh;
}
.section-title-color {
  color: var(--color-accent);
}
.section-title-border-narrow {
  border-width: 0 0 2px 0;
  border-style: solid;
  border-image: var(--color-border-grad) 1;
  margin: 15px auto 0;
  position: relative;
  width: 20%;
}
.section-title-border-medium {
  border-width: 0 0 2px 0;
  border-style: solid;
  border-image: var(--color-border-grad) 1;
  margin: 15px auto 0;
  position: relative;
  width: 30%;
}
.section-title-border-wide {
  border-top: 2px solid var(--color-border);
  height: 1px;
  margin: 15px auto 0;
  position: relative;
  width: 100%;
}

/* Button Style*/
.btn {
  background-color: var(--color-btn-bg);
  color: var(--color-text-light);
  border: 1px solid; 
  border-color: var(--color-accent);
  border-radius: .5rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  background-color: var(--color-card-bg);
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn:focus-visible,
.btn:active {
  box-shadow: none;
  background-color: var(--color-card-bg);
  color: var(--color-text-white);
  border-color: var(--color-accent);
}

/* Animation */
#single .page-content a::after,
#hero .hero-content > a::after,
#about a::after, 
#experience a::after {
  content: "";
  display: block;
  width: 0px;
  height: 2px;
  background-color: var(--color-accent);
  transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
  opacity: 0.5;
}

/* Cards */
.theme-card {
  background-color: var(--color-card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-box);
  border: 1px solid var(--color-text-light);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Respect users who have Reduced Motion enabled */
@media (prefers-reduced-motion: reduce) {
  html {
  scroll-behavior: auto ;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/*=================================================================
# Header section
=================================================================*/
header {
  z-index: 10;
  position: relative;
  top: 0;
}
.showHeaderOnTop {
  box-shadow: var(--shadow-box);
  top: 0;
  position: sticky;
}

/* Navbar */
.navbar {
  background-color: var(--color-nav-bg);
}
header .navbar .navbar-nav a {
  color: var(--color-text-light);
}
.navbar-toggler {
  border: none;
  color: var(--color-text-light);
}
.navbar-toggler svg {
  fill: currentColor;
  color: var(--color-text-light);
}
.navbar-toggler:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.navbar-text {
  font-size: 16px ;
  opacity: 0.95;
  white-space: nowrap;
}
.navbar-brand {
  color: var(--color-text-light);  
  display: flex;
  align-items: center;
}
.navbar-brand:hover,
.navbar-brand:focus-visible {
  color: var(--color-hover);
}
.navbar-brand img {
  width: auto ;
  height: 45px ;
  margin-right: 16px;
  padding: 0px;
}
.navbar .nav-link:hover {
  color: var(--color-hover);
}
.nav-link .nav-link-sep:after {
  content: "|";
  color: var(--color-text-light);
}

li > .dropdown-toggle:focus-visible {
  color: var(--color-text-white);
}
.dropdown-menu {
  overflow: auto;
  background-color: var(--color-bg);
  border-color: var(--color-text-light);
}
.dropdown-item:hover {
  background-color: transparent ;
}

.dropdown-item:focus-visible, .dropdown-item:active {
  background-color: transparent ;
}
.dropdown-divider {
	border-top: 1px solid var(--color-border);
}

/* Search feature */
#search {
  border-radius: 1rem;
  background-color: transparent;
  color: var(--color-text-light);
  border-color: var(--color-border);
}
#search:focus-visible {
  border-color: var(--color-accent);
}
#search-content {
  scrollbar-width: none;
  display: none;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 9999;
  width: 250px;
  max-height: 350px;
  background-color: var(--color-card-bg);
  position: absolute;
  overflow-y: auto;
}
#search-content::-webkit-scrollbar {
  display: none;
}
#search-results > .card {
  background-color: transparent ;
  border: none;
  margin-bottom: 10px;
}
#search-results > .card:hover {
  border-radius: 1rem;
  background-color: var(--color-bg);
  transition: .2s;
}
#search-results .card a {
  opacity: 0.9;
  display: inline-block;
  text-decoration: none;
  color: var(--color-text-light);
}
#search-results .card a:hover {
  color: var(--color-text-white);
}

/*=================================================================
# Hero section
=================================================================*/
#hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('/images/backgrounds/bkg-connected-dots.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  line-height: 2rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
}
#hero .hero-bottom-svg {
  opacity: 0.5;
  position: relative;
  bottom: -50px;
  left: -150px;
  overflow-x: hidden
}
#hero .subtitle {
  font-size: clamp(14px,5vw,16px);
  opacity: 0.7;
}
#hero h1 {
  font-size: clamp(40px, 8vw, 80px);
  color: var(--color-text-white);
  border-width: 0 0 2px 0;
  border-style: solid;
  border-image: var(--color-border-grad) 1;
  width: fit-content;
}
#hero h2 {
  font-size: clamp(30px, 6vw, 60px);
  opacity: 0.7;
  padding: 1px;
}
#hero h3 {
  font-size: clamp(20px, 6vw, 40px);
  opacity: 0.5;
  padding: 1px;
}
#hero p {
  margin: 20px 0px 0px;
  max-width: 820px;
  opacity: 0.8;
}

#hero .hero-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 820px;
}

#hero .hero-titles {
  flex: 1;
}

#hero .image {
  flex-shrink: 0;
}

#hero .image img {
  box-shadow: var(--shadow-box);
  padding: 0;
  border: 2px solid var(--color-border); 
  border-radius: 1rem;
  width: 250px;        /* Sized to sit neatly inside the 640px width alongside h1/h2 */
  height: 250px;
  object-fit: cover;
}

#hero .clickable-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem; /* Adjust this value to increase or decrease the spacing */
  flex-wrap: wrap;
}
#hero .hero-content {
  text-align: left;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}
#hero .hero-content > a {
  display: inline-block;
  text-decoration: none;
  color: var(--color-link);
}
#hero .hero-content > a:hover::after,
#hero .hero-content > a:focus::after,
#hero .hero-content > a:active::after {
  width: 100%;
}

/* Base Hero Button (Glassmorphism) */
#hero a.btn {
  margin-top: 50px;
  padding: 0.7rem 1.75rem;
  color: var(--color-btn-txt);
  border-radius: .75rem;
  
  /* Glass effect */
  background-color: rgba(25, 27, 31, 0.35); /* Semi-transparent dark tint */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.25); /* Subtle frosted edge */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  
  transition: all 0.25s ease;
}

/* Main Hero Button Hover */
#hero a.btn:hover {
  background-color: rgba(87, 203, 204, 0.2); /* Frosted teal tint */
  border-color: var(--color-accent);
  color: var(--color-text-white);
  box-shadow: 0 4px 20px rgba(87, 203, 204, 0.25);
  opacity: 1;
}

/* Keep focus/active states consistent with the glass look */
#hero a.btn:focus-visible,
#hero a.btn:active {
  background-color: rgba(87, 203, 204, 0.2);
  border-color: var(--color-accent);
  color: var(--color-text-white);
}

/* Social Icons (inherits glass effect from #hero a.btn) */
#hero a.btn.social-icon {
  color: var(--color-icon);
  line-height: 0;
  border-radius: 50%;
  margin-top: 50px;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

#hero a.btn.social-icon:hover {
  background-color: rgba(33, 114, 116, 0.55); /* Semi-transparent --color-btn-bg */
  border-color: var(--color-accent);
}

/*=================================================================
# About section
=================================================================*/
#about h3 {
  color: var(--color-text-light);
}
#about .image img {
  box-shadow: var(--shadow-box);
  transition: box-shadow 0.3s;
  padding: 0;
  border: 0;
  max-width: 100%;
  height: auto;
  
}
#about .image img:hover {
  box-shadow: 0 0 11px rgb(15 80 100 / 20%);
}
#about ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 200px));
  gap: 0px 10px;
  padding: 0px;
  margin: 20px 0px 0px;
  overflow: hidden;
  list-style: none;
}
#about ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
}
#about ul li::before {
  content: "▹";
  color: var(--color-text-white);
  position: absolute;
  left: 0px;
}
#about .content {
  font-weight: 500;
  opacity: 0.9 ;
  line-height: 1.7rem;
  text-align: justify;
}
#about a {
  display: inline-block;
  text-decoration: none;
  color: var(--color-link);
}
#about a:hover::after,
#about a:focus::after,
#about a:active::after {
  width: 100%;
}

/*=================================================================
# Skills section
=================================================================*/
#skills .skills-category h4 {
  color: var(--color-accent);
}

/*=================================================================
# Experience section
=================================================================*/
#experience .tab-pane > * {
  opacity: 0.9;
}
#experience .tab-pane small {
  opacity: 0.8;
}
#experience .tab-pane ul {
  padding-top: 1%;
  padding-bottom: 1%;
}
#experience .experience-container .tab-content > .tab-pane p {
  padding: 1% 0;
  margin: 0;
}
#experience .experience-container {
  width: 100% ;
  max-width: 100%;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-text-light);
  border-radius: .75rem;
  box-shadow: var(--shadow-box);
}

#experience .nav-item .nav-link {
  color: var(--color-text-light);
  border-bottom: 2px solid transparent; 
  border-radius: 0;
  transition: none;
  cursor: pointer;
}
#experience .nav-item .nav-link.active:hover { 
  transition: none ;
}
#experience .nav-item .nav-link:hover {
  color: var(--color-hover);
  border-bottom: 2px solid var(--color-text-white);
  opacity: 0.8;
}
#experience .nav-item .nav-link.active {
  color: var(--color-text-white);
  border-bottom: 2px solid var(--color-text-white); 
  opacity: 0.8;
}
#experience a {
  opacity: 0.9;
  display: inline-block;
  text-decoration: none;
  color: var(--color-text-light);
}
#experience a:hover::after,
#experience a:focus::after,
#experience a:active::after {
  width: 100%;
}
#experience .experience-container .tab-content .tab-pane ul {
  overflow: hidden;
  list-style: none;
  margin-bottom: 0;
}
#experience .experience-container .tab-content .tab-pane ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
}
#experience .experience-container .tab-content .tab-pane ul li::before {
  content: "▹";
  color: var(--color-text-white);
  position: absolute;
  left: 0px;
}
#experience .experience-container .tab-content .tab-pane .featuredLink img {
  width: 1.1em;
}
#experience .experience-container .tab-content .tab-pane .featuredLink a::after {
  display: block;
  width: auto;
  height: auto;
  bottom: 0em;
  background-color: transparent;
  transition: none;
  opacity: 1;
}

/*=================================================================
# Qualifications section
=================================================================*/

#qualifications .row .index {
  opacity: 0.8;
  padding: 13px 20px;
  line-height: 0;
  border-radius: 50%;
  max-height: 50px;
  z-index: 2;
  background-color: var(--color-bg);
  color: var(--color-text-light);
  font-weight: bold;
}

#qualifications .card:hover {
  box-shadow: 0 4px 11px rgb(15 80 100 / 16%);
  border: 1px solid var(--color-text-white);
}
#qualifications .card .card-body a {
  color: var(--color-text-light);
}
#qualifications .card .card-body a:hover {
  color: var(--color-hover);
  text-decoration: none;
  opacity: 0.9;
}
#qualifications .card .card-body > a h6 {
  display: inline-block;
  text-decoration: none;
  color: var(--color-link);
}
#qualifications .card .card-body > a h6::after {
  content: "";
  display: block;
  width: 0px;
  height: 2px;
  background-color: var(--color-text-white);
  transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
  opacity: 0.5;
}
#qualifications .card .card-body > a h6:hover::after,
#qualifications .card .card-body > a h6:focus::after,
#qualifications .card .card-body > a h6:active::after {
  width: 100%;
}

/*=================================================================
# Projects section
=================================================================*/
#projects .card h5, 
#projects a h5 {
  color: var(--color-accent);
}

#projects .badge {
  background-color: var(--color-badge-bg);
  color: var(--color-text-light);
  margin: 0 1%;
}

#projects .card {
  border: 1px solid transparent;
}

#projects .card:hover {
  box-shadow: 0 0 11px rgb(15 80 100 / 20%);
  transform: translateY(-7px);
}

#projects .card .card-head {
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border: none ;
}

#projects .card .card-footer {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

#projects .card:hover .card-img-top {
  object-fit: cover;
  transform: scale(1.2);
  transition: all 0.3s ease-out;
}

#projects .card-img-top {
  transition: transform 0.3s;
}

/*=================================================================
# Achievements section
=================================================================*/
#achievements a {
  text-decoration: none;
}
#achievements .card h5, 
#achievements a h5 {
  color: var(--color-accent);
  margin-bottom: 0;
}
#achievements .card {
  border: 1px solid transparent;
}
#achievements .card:hover,
#achievements .card:focus-visible {
  border: 1px solid var(--color-text-light);
}
#achievements .card-text {
  background-color: transparent ;
}
#achievements .achievement-header {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between the image and the title */
  margin-bottom: 0.75rem;
}

#achievements .achievement-header img {
  width: 50px;       /* Adjust icon/badge size as needed */
  height: 50px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-left: 0;    /* Replaces previous margin-left: 8px */
  flex-shrink: 0;    /* Prevents image from squishing on long titles */
}

/*=================================================================
# Contact section
=================================================================*/
#contact {
  border-bottom: transparent;
}
#contact .h3 {
  color: var(--color-text-light);
}
#contact form .form-control {
  background-color: transparent;
  color: var(--color-text-light);
  border-radius: .7rem;
  border: 1px solid var(--color-text-light);
  box-shadow: var(--shadow-box);
}
#contact-form-status {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1050;
  transform: translate3d(0, 0, 0);
}
#contact-form-status svg {
  height: 18px;
  width: 18px;
}
#contact-form-status button {
  border-radius: 50%;
  border: none;
  background-color: white;
  padding: 0.5rem;
  margin-left: 0.5rem;
  box-shadow: var(--shadow-box);
  font-size: .6rem;
}
#contact-form-status .alert {
  border-radius: 0.5rem;
  box-shadow: var(--shadow-box);
  padding: .5rem 1rem;
}

/*=================================================================
# Blog landing page
=================================================================*/
#list-page .card {
  background-color: var(--color-card-bg);
  box-shadow: var(--shadow-box);
  border: 1px solid transparent;
  border-radius: .75rem;
  overflow: hidden;
}
#list-page .card > .card-img-top {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
#list-page .card a {
  text-decoration: none;
}
#list-page .card a h5 {
  color: var(--color-text-light);
}
#list-page .card:hover {
  border: 1px solid var(--color-text-white);
}
#list-page .card-text * {
  background-color: var(--color-card-bg);
}
#list-page .post-footer {
  padding: .5rem 1rem;
  background-color: var(--color-card-bg);
  color: var(--color-text-light);
  border-top: 1px solid rgba(15, 80, 100, 0.16);
  opacity: 0.9;
}
#list-page .card > .card-header {
  padding: 0 ;
  border: none ;
  background-color: var(--color-card-bg);
}

/* pagination */
#list-page ul li a {
  transition: none;
  border-color: var(--color-card-bg);
  background-color: var(--color-card-bg);
  color: var(--color-text-light);
}
#list-page .page-item.active .page-link {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--color-card-bg);
}

/*=================================================================
# Blog post
=================================================================*/
#single {
  padding: 60px 0;
  line-height: 1.7em;
  font-size: 17px;
}
#single .title > h1 {
  opacity: 0.8;
  color: var(--color-text-white);
}
#single .title small {
  opacity: 0.7;
}

#single .subtitle > h4 {
  opacity: 0.7;
  color: var(--color-text-light);
  margin: 30px 5px 15px 20px;
}
#single .tag {
  background-color: var(--color-badge-bg);
  color: var(--color-btn-txt);
  margin: 0 1%;
}
#single .featured-image {
  padding: 1rem;
  padding-top: 0;
}
#single .featured-image img {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto; 
  border-radius: 1rem;
  box-shadow: var(--shadow-box);
  background-color: var(--color-card-bg);
}
#single .page-content img {
  max-width: 100%;
  border-radius: 1rem;
}
#single .page-content a {
  display: inline-block;
  text-decoration: none;
  color: var(--color-link);
}

#single .page-content a:hover::after,
#single .page-content a:focus::after {
  width: 100%;
}
#single .page-content h1, 
#single .page-content h2 {
  color: var(--color-accent); /* Uses your #57cbcc teal accent */
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.3em;
  margin-top: 1.5em;
  margin-bottom: 0.7em;
}
#single .page-content h3, 
#single .page-content h4, 
#single .page-content h5, 
#single .page-content h6 {
  color: var(--color-link); /* Uses your #749fc7 soft blue */
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}
#single .page-content blockquote {
  padding: 20px 30px;
  border-left: 6px solid var(--color-accent);
  color: var(--color-text-white);
  font-weight: 500;
  font-size: 18px;
  margin: 30px 0;
  border-radius: 5px;
}
#single .page-content blockquote, #single .page-content blockquote * {
  background-color: var(--color-card-bg);
}

/* table */
#single .page-content table {
  width: auto;
  border-radius: 5px;
  padding: 0.1rem;
  margin-bottom: 1.2em;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  opacity: 0.8;
}
#single .page-content table tr {
  height: 40px;
}
#single .page-content table > thead > tr > th {
  padding: 0.5rem;
  background-color: var(--color-accent);
  color: var(--color-card-bg);
  border: 1px solid var(--color-card-bg);
  opacity: 0.9;
}
#single .page-content table > tbody > tr > td {
  padding: 0.5rem;
  border: 1px solid var(--color-card-bg);
  background-color: var(--color-card-bg);
  opacity: 0.9;
}

/* code */
#single .page-content pre {
  border-radius: 0.7em;
  margin: 5px 5px 2em;
  padding: 2em;
  background-color: var(--color-card-bg);
  color: var(--color-text-white);
  max-height: 450px;
}
#single .page-content pre > code {
  color: var(--color-text-white);
}
#single .page-content code {
  color: var(--color-accent);
}

/* kbd and mark */
#single .page-content kbd {
  color: var(--color-accent);
  background-color: var(--color-card-bg);
}
#single .page-content mark {
  color: var(--color-accent);
  background-color: var(--color-card-bg);
}

/* list */
#single .page-content ol, #single .page-content ul {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
  list-style-position: inside;
  opacity: 0.9;
}
#single .page-content ol li li, #single .page-content ul li li {
  margin-bottom: 0.5em;
  padding-left: 1.5em;
}

/*=================================================================
# Blog Bottom Image Strip / Carousel
=================================================================*/
.blog-gallery-strip {
  color: var(--color-accent);
  font-weight: 500;
  width: 100%;
  overflow: hidden;
}

.gallery-scroll-container {
 display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* Smooth momentum swiping on iOS */
  overscroll-behavior-x: contain;    /* Stops horizontal swipe from triggering browser back/forward navigation */
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  padding: 4px 1rem 12px 1rem;       /* Adds breathing room at the start and end of the scroll */
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-card-bg);
}

.gallery-item {
  flex: 0 0 auto;
  width: 280px; /* Adjust width of each image card */
  height: 200px; /* Adjust height of each image card */
  scroll-snap-align: start;
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

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

/*=================================================================
# Mobile layout
=================================================================*/
@media (max-width: 768px) {
  #hero {
    background-attachment: scroll;
  }
  #hero .hero-titles {
    width: 100%;
  }
  #hero h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  #hero .image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  #hero .image img {
    width: 100%;
    max-width: 250px; /* Match your mobile hero image width */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto;
  }
  #hero .hero-header-row {
    flex-direction: column-reverse; /* Puts image on top on mobile; change to 'column' to put it below h2 */
    align-items: flex-start;
    gap: 1.25rem;
  }

  #about .image img {
    width: 100%;
    max-width: 250px; /* Forces the image to a specific neat mobile size */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto;
  }
  #about .content {
    text-align: left;
  }
  
  .gallery-scroll-container {
    gap: 0.75rem;
    padding-inline: 0.5rem;
    scroll-padding-inline: 0.5rem;
  }
  .gallery-item {
    width: 78vw;        /* Shows 78% of the screen width so the next image peeks through */
    max-width: 280px;
    height: 185px;
  }
}
