/* ----------------------------------
   ✨ RESET + BASE STYLES
---------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base font settings */
body {
  font-family: 'Arial', Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: left; 
}

h1, h2, h3 {
  text-align: left;
}

.heading-center {
  text-align: center;
}


/* ----------------------------------
   🌐 NAVIGATION BAR
---------------------------------- */
.topnav {
  overflow: hidden;
  background-color: #333;
}

.topnav a {
  float: left;
  color: #f2f2f2;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #C66A53;
  color: white;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) { display: none; }
  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* ----------------------------------
   🎨 TYPOGRAPHY
---------------------------------- */
/* Headings */
.site-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}
h1 {
  font-size: 2.5rem; /* ~40px */
  font-weight: bold;
  margin-bottom: 1rem;
}

/*  Subtitle and highlight-subtitle class for intro text */
.highlight-subtitle {
  font-style: italic;
  font-family: 'Georgia', serif;
  font-size: 1.8rem /* Slightly larger */
  font-weight: 800;   /* Bolder than body text */
  color: #C66A53;      /* Accent color to match your palette */
  margin-bottom: 2rem;
  text-align: left;
  /* border-left: 4px solid #f6a21d;*/
  padding-left: 1rem;
}
.highlight-subtitle::before {
  content: "★ ";
  color: #f6a21d;
  font-size: 1.2rem;
}
.subtitle {
  font-size: 1.2rem; /* 18px */
  margin-bottom: 1rem;
  max-width: 800px;
}

h2 {
  font-size: 2rem; /* ~32px */
  font-weight: 600;
  margin-bottom: 1rem;
  color: #222;
}

h3 {
  font-size: 1.5rem; /* ~24px */
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #444;
}

/* Paragraphs */
p {
  font-size: 1rem; /* 16px */
  margin-bottom: 1rem;
  max-width: 800px;
}


/* ----------------------------------
   🖱️ Top nav dropdown
---------------------------------- */
/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button */
.dropbtn {
  color: inherit;
  text-decoration: none;
  padding: 14px 16px;
  display: inline-block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside dropdown */
.dropdown-content a {
  color: #333;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Optional: Hover effect on links */
.dropdown-content a:hover {
  background-color: #f2f2f2;
}

/* ----------------------------------
   🖱️ FIGURES – Shared and Scoped
---------------------------------- */

/* 🌐 Default figure spacing */
figure {
  margin: 1.5rem 0;
}

/* 🔤 Base caption style for all figures */
figcaption {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  padding: 0 1rem;
}

/* 🎯 Shared block style for figures with images */
.figure-block {
  margin: 0 auto;
  padding: 0;
  text-align: center;
  max-width: 800px;
}

.figure-block img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  max-height: 500px;
  object-fit: contain; /* Ideal for informational banners */
  border-radius: 8px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3); /* inner shadow */
}

/* 🐇 Optional alignment overrides */
.rabbit-figure {
  text-align: left;
}

.bio-figure {
  text-align: center;
}

/* wide figure */

.wide-figure {
  grid-column: 1 / -1; /* spans full width in grid */
  margin-top: 2rem;
  text-align: center;
}

.wide-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wide-figure figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* ----------------------------------
   🖱️ BUTTONS
---------------------------------- */
.cta {
  background-color: #f6a21d;
  color: #fff;
  padding: 20px 28px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  text-decoration: none; .
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.cta:hover {
  background-color: #e48c03;
}

.button {
  background-color: #333333;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  margin: 4px 6px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
  background-color: #000000;
}

.button-ghost {
  background-color: transparent;
  color: #4caf50;
  border: 2px solid #4caf50;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.button-ghost:hover {
  background-color: #e8f5e9;
  border-color: #388e3c;
  color: #2e7d32;
}

.cta,
.button,
.button-ghost {   /* fixed height for all buttons */
  height: 48px; /* or whatever height you prefer */
  line-height: 48px; /* vertically center single-line text */
  padding: 0 24px; /* horizontal padding only */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  box-sizing: border-box;
}

.button-group {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ----------------------------------
   ✨ GLOW EFFECTS
---------------------------------- */
.glow {
  box-shadow: 0 0 12px 2px rgba(246, 162, 29, 0.6);
}

.glow-ink {
  box-shadow: 0 0 10px 1px rgba(50, 50, 50, 0.5);
}

.glow-green {
  box-shadow: 0 0 12px 2px rgba(76, 175, 80, 0.6);
}

/* Ensure glow effects don't shift layout */
.glow,
.glow-ink,
.glow-green {
  box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------
   🖼️ SCROLLING IMAGE BAR
---------------------------------- */
.scroll-container {
  background-color: #333;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
}

.scroll-container img {
  height: 300px;
  margin-right: 10px;
  border-radius: 8px;
}

/* ----------------------------------
   📱 General Section Layout
---------------------------------- */
section {
  padding: 4rem 2rem;
  margin: 0 auto;
  max-width: 1400px; /* was 1200px */
}

/* Section titles */
section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #f6a21d;
  display: block; /* inline-block; */
  padding-bottom: 0.5rem;
  color: #333;
  text-align: left; 
}

/* Dual Track section */
#dual-track {
  /* background-color: #f5f5f5; */
}

/* AI Portfolio section */
#ai-portfolio {
  /* background-color: #e8f0fe; */
}

.support {
  text-align: left;
}


/* ----------------------------------
   📱 About |  Connect
---------------------------------- */
/* About section */
#about {
  /* background-color: #fff8f0;*/
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* Connect section */
#connect {
 /* background-color: #f0f8ff;*/
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

#about #connect {
  margin-top: 2rem;
}

/* ----------------------------------
   📱 bio.html triple-identity
---------------------------------- */
#triple-identity {
  margin: 2rem auto;
  max-width: 960px;
  padding: 0 1rem;
}

/* ✅ Parallax Banner Container */
.parallax-banner {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------
   📱 darkmode adaption to sections
---------------------------------- */
/* Optional: make sure section backgrounds adapt */
body.dark-mode section {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode h2,
body.dark-mode h3 {
  color: #f6f6f6;
  border-bottom: 2px solid #f6a21d;
}

/* body.dark-mode .project {
 background-color: #222;
  color: #ddd;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
} 
*/

body,
section,
.project,
h1, h2, h3, p {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 🌙 Dark mode overrides for light-background sections */
body.dark-mode #about {
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  color: #e0e0e0;
}

body.dark-mode #connect {
  background-color: #121212;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  color: #e0e0e0;
}

/* Optional: style headings and links inside those sections */
body.dark-mode #about h2,
body.dark-mode #connect h2 {
  color: #f6f6f6;
  border-bottom: 2px solid #f6a21d;
}

body.dark-mode #about a,
body.dark-mode #connect a {
  color: #f6a21d;
}

body.dark-mode figcaption {
  color: #f0f0f0;
  font-weight: 500;
}

/* ----------------------------------
   🧱 PROJECT GRID
---------------------------------- */
.project-banner-note {
  background-color: #f5f5f5; /* soft neutral background */
  color: #444;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  text-align: center;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #4caf50; /* a touch of green to echo your access design theme */
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.project-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* was 250px */
  margin-top: 1rem;
  margin-bottom: 3rem;
  overflow: hidden;
}

.project {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  padding: 1rem;
  padding-bottom: 2rem; /* Add space at the bottom */
  min-height: 250px;     /* Optional: ensure consistent height */
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
  overflow: hidden;
}

.project h3 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.project p {
  font-size: 0.95rem;
}

.project p:last-of-type {
  margin-bottom: 0.5rem;
}

.project img,
.project figure {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.project img,
.project figure {
  max-height: 450px;
  object-fit: cover;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.project figcaption {
  margin-bottom: 0.5rem;
  display: block;
}

.project a.cta,
.project a.button,
.project a.button-ghost {
  display: inline-block;   /* breathing room from the text above */
  margin-top: 1rem;
}
.project .button,
.project .button-ghost,
.project .cta {
  display: inline-block;
  margin-top: 1rem; /* Adjust as needed */
  position: static; /* Ensure they stay in normal flow */
  clear: both;
}

.project {
  margin-top: 1rem; /* Adds vertical spacing between projects */
  position: relative;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ----------------------------------
   📱 Accordion
---------------------------------- */
.accordion-container {
  width: 100%;
  margin: 2rem 0;
}

.accordion-toggle {
  background-color: #eee;
  color: #333;
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: background-color 0.3s ease;
}

.accordion-toggle:hover {
  background-color: #ddd;
}

.accordion-content {
  padding: 1rem;
  background-color: #fafafa;
  border-left: 4px solid #4caf50;
  border-radius: 6px;
  display: none;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.accordion-toggle.active + .accordion-content {
  display: block;
}


/* ----------------------------------
   📱 Lightbox-gallery
---------------------------------- */
.lightbox-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.lightbox-gallery img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: zoom-in;
}

.lightbox-gallery a:hover img {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  background-color: #e0e0e0;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #c66a53;
  color: white;
}

.gallery-item {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


/* ----------------------------------
   📱 SOCIAL ICON BAR
---------------------------------- */
.icon-bar {
  position: fixed;
  bottom: 20px; /* Distance from bottom */
  right: 20px;  /* Distance from right */
  /* top: 65%;  */
  transform: translateY(-50%);
  gap: 2px; /* Space between icons */
  z-index: 1000;
}

.icon-bar a {
  display: block;
  text-align: center;
  padding: 10px;
  color: white;
  font-size: 18px;
  background-color: inherit; /* fallback */
  transition: all 0.3s ease;
}

.icon-bar a:hover {
  background-color: #000;
}

.instagram { background: #bc2bac; }
.facebook  { background: #3B5998; }
.twitter   { background: #55ACEE; }
.linkedin  { background: #007bb5; }
.youtube   { background: #bb1100; }
.substack  { background: #ff6719; }

.icon-bar a.instagram,
.icon-bar a.facebook,
.icon-bar a.twitter,
.icon-bar a.linkedin,
.icon-bar a.youtube,
.icon-bar a.substack {
  color: white;
}

.icon-bar button {
  background-color: #444;
  color: white;
  border: none;
  font-size: 18px;
  padding: 10px;
  cursor: pointer;
  display: block;
  width: 100%;
  transition: transform 0.3s ease;
}

.icon-bar button:hover .toggle-icon {
  transform: rotate(20deg) scale(1.1);
  opacity: 0.9;
}

.icon-bar .toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --------
   shop link
      ------*/

.shop-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.shop-links li {
  margin-bottom: 0.5rem;
}

.shop-links a {
  color: inherit;
  text-decoration: underline;
}

body.dark-mode .shop-links a {
  color: #ffdf6b;
}

/* ----------------------------------
   👣 FOOTER
---------------------------------- */
.flex-container2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1rem;
  background-color: #333;
  color: white;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.flex-item-left,
.flex-item-right {
  flex: 1 1 45%;
  padding: 0.5rem;
}

/* Move Ko-fi button closer to icon bar */
.floatingchat-container {
  bottom: 240px !important; /* Adjust vertical position */
  right: 20px !important;   /* Align with icon bar */
  z-index: 1001 !important; /* Ensure it's above other elements */
}

/* ----------------------------------
   👣 Media query
---------------------------------- */
@media screen and (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr; /* stack tiles vertically */
    padding: 0 1rem; /* light side padding */
  }

  .project {
    padding: 0.5rem;
    min-height: unset;
  }

  .project img {
    max-height: 300px; /* tighter image layout for mobile */
  }

  .project h3 {
    font-size: 1rem;
  }

  .project p {
    font-size: 0.9rem;
  }

  .project .button,
  .project .cta,
  .project .button-ghost {
    width: 100%;
    font-size: 0.95rem;
    height: auto;
    line-height: normal;
    padding: 0.75rem 1rem;
  }
}

@media screen and (max-width: 600px) {
  .flex-container2 {
    flex-direction: column;
    text-align: center;
  }
   
   .floatingchat-container {
    bottom: 80px !important;
    right: 12px !important;
  }
   
  .topnav.responsive .eco-link {
    font-weight: bold;
    background-color: #444;
    color: #f6a21d;
  }
  .topnav .button-ghost { display: none;  }
  .topnav a { display: none; }
  .topnav .icon { display: block; }

  .topnav.responsive {
    position: relative;
    flex-direction: column;
  }
   
  .topnav.responsive a,
  .topnav.responsive .button-ghost {
    display: block;
    float: none;
    text-align: left;
    padding: 12px 16px;
  }

  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
}

/* ✅ Parallax Scroll Effect (desktop only) */
@media screen and (min-width: 768px) {
  .parallax-banner img {
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.2s ease-out;
  }

  .parallax-scrolled .parallax-banner img {
    transform: translateY(-15px); /* scroll upward subtly */
  }
}
/* -----------------------------
   🌓 DARK MODE STYLES
----------------------------- */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .topnav {
  background-color: #1e1e1e;
}

body.dark-mode .topnav a {
  color: #ccc;
}

body.dark-mode .topnav a.active {
  background-color: #8d4a3e;
  color: white;
}

body.dark-mode .topnav a:hover {
  background-color: #444;
  color: white;
}

body.dark-mode .dropdown-content {
  background-color: #222; /* dark background */
  box-shadow: 0px 8px 16px rgba(255,255,255,0.1);
}

body.dark-mode .dropdown-content a {
  color: #fff; /* high contrast links */
}

body.dark-mode .dropdown-content a:hover {
  background-color: #444; /* subtle hover highlight */
}

body.dark-mode .highlight-subtitle {
  color: #f6d1b6;
}

body.dark-mode h2, 
body.dark-mode h3,
body.dark-mode .site-title {
  color: #f2f2f2;
}

body.dark-mode section h2 {
  border-bottom: 3px solid #f6a21d;
  color: #f6f6f6;
}

body.dark-mode .scroll-container {
  background-color: #1a1a1a;
}

body.dark-mode .project {
  background-color: #1e1e1e;
  color: #ddd;
  box-shadow: 0 2px 10px rgba(255,255,255,0.08);
}

body.dark-mode footer,
body.dark-mode .flex-container2 {
  background-color: #111;
  color: #aaa;
}


body.dark-mode .icon-bar a {
  background-color: #222;
  color: #ddd;
}

body.dark-mode .icon-bar a:hover {
  background-color: #000;
  color: #fff;
}

body.dark-mode a {
  color: #ffdf6b; /* warm yellow for readability */
  text-decoration: underline;
}

body.dark-mode a:hover {
  color: #ffd000;
}

/* -----------------------------
   🌓 Light mode force
----------------------------- */
body.light-mode .icon-bar a {
  color: #333;
}

@media (prefers-color-scheme: light) {
  .icon-bar a.instagram { background: #bc2bac; }
  .icon-bar a.facebook  { background: #3B5998; }
  .icon-bar a.twitter   { background: #55ACEE; }
  .icon-bar a.linkedin  { background: #007bb5; }
  .icon-bar a.youtube   { background: #bb1100; }
  .icon-bar a.substack  { background: #ff6719; }
}
