/* =========================
   Global reset-ish
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
    scrollbar-gutter: stable;

}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.page {
    margin: 0; /* remove left/right gutter */
    padding: 0;
}


.p-page {
margin-left: 1rem;
margin-right: 1rem;
}

body, p, li, a {
  font-size: 16px !important;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* TO CHECK FOR ERRORS on display overflow */
/* * { outline: 1px solid rgba(255,0,0,.15); } */ 

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  
  /* background-image: url("../images/dots_back_white.png"); */
  /* commented out until you have a dark version */
}

:root {
  --bg: #12121a;
  --text: #f0ece4;
  --accent: #e6a817;
  --accent-secondary: #4db8b8;
  --accent-thirdly: #2a2a2a;
  --accent-fourth: #202020;
  --card-bg: #12121a;
  --fg: #f0ece4;
}

.dark {
  --card-bg: #2d2d2d;
  --fg: #f0f0f0;
}


/* ---------------------------
BODY FOR SAMPLES PAGE ONLY 
-----------------------------*/
/* .page-samples {
  min-width: 10px;   /* choose your minimum */
  /* overflow-x: hidden;   /* prevents horizontal bleed  */
/* } */ 



/* =========================
   CONTAINERS
========================= */
.container {
  width: 100%;
  margin: 0 auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-inline: 2rem;
}




/* CONTAINERS - IMAGE BACKGROUND FOR HEADINGS ONLY */

.cont-headings {
  display: block;
  width: 100%;
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
  width: calc(100% + 48px);
    padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  box-sizing: border-box;
  background-image: url("../images/header-tech.png");
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: left center;
}

.cont-headings h2 {
  margin: 0;
  padding: 0;
  text-shadow: 0 3px 10px var(--accent-thirdly);

}


/* CONTAINERS - intro */
.container-intro {
  width: 100%;                  
  background-color: var(--accent-thirdly); 
  padding: 1.5rem;                /* Optional: add padding for content */
  margin: 0;                   /* No margin to ensure full width */
   position: relative;
  left: calc(-50vw + 50%);
  margin-bottom: 1rem;
}



/* CONTAINERS - services */

#services {
      overflow-x: hidden;
}

#services .card-grid {
  display: block;
}

#services .card-grid .card {
  box-shadow: 0 8px 20px #12121a;
}

.container-services {
  width: 100%;                  
  background-color: var(--accent-thirdly); 
  padding: 1.5rem;                /* Optional: add padding for content */
  margin: 0;                   /* No margin to ensure full width */
  position: relative;
  width: 100%;  
  left: calc(-50vw + 50%);
  margin-bottom: 1rem;
}

#services .card::after,
#workshops .card::after {
  content: none;
}


/* workshops cards */

#workshops .card-grid {
  display: block;
}

#workshops .card-grid .card {
   width: 85%;
  margin-inline: 0;
  margin-bottom: 2rem;
}

#workshops .card-grid .card {
  box-shadow: 0 8px 20px #12121a;
}

/* CONTAINERS - experience */
.container-exp {
  width: 100%;                  
  background-color: var(--accent-thirdly);
  padding: 1.5rem;                /* Optional: add padding for content */
  margin: 0;                   /* No margin to ensure full width */
   position: relative;
  width: 100%;
  left: calc(-50vw + 50%);
  margin-bottom: 1rem;
}



/* CONTAINERS - about */
.container-about {
  width: 100%;                  
  background-color: var(--accent-thirdly);
  padding: 1.5rem;                /* Optional: add padding for content */
  margin: 0;                   /* No margin to ensure full width */
   position: relative;
  width: 100%;  
  left: calc(-50vw + 50%);
  margin-bottom: 1rem;
  }



/* CONTAINERS - contact */
.container-contact {
  width: 100%;                  
  background-color: var(--accent-thirdly);
  padding: 1.5rem;                /* Optional: add padding for content */
  margin: 0;                   /* No margin to ensure full width */
  position: relative;
  width: 100%;  
  left: calc(-50vw + 50%);
  margin-bottom: 1rem;
}


/* PROJECTS & WORK SECTION  */

/* subheadings */

.work-headings h3 {
    color: #4db8b8;
    margin-bottom: .9rem;
    margin-top: .4rem;
}

/* cards: removed expand icon */

#projects-work .card::after {
  content: none;
}



/* ===================================================================
   For JS Card with Header/Body
====================================================================== */

/* --- Main Card Container --- */
.card {
  border: 1px solid var(--bg);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  background-color: var(--bg);
}

/* --- The Clickable Header (The "Preview") --- */
.card-header {
  padding: .7rem;
  position: relative;
  z-index: 2; /* Sits above the body */
  background-color: var(--bg);
}

.card-title {
  font-size: 1.1rem;
  margin: 0;
  padding-right: 2.5rem; /* Space for the icon */
  color: var(--accent);
 }

/* --- The Collapsible Body (Hidden by Default) --- */
.card-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem; /* Horizontal padding, but 0 vertical padding when closed */
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  position: relative; /* For stacking context */
  z-index: 1; /* Sits below the header */
  background-color: var(--bg);
}

.card-body ul {
  padding-left: 1.25rem;
  margin-top: 0;
}

/* --- The Overlay (FOR LIGHT MODE ONLY) --- */
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 4;
}

/* --- The Icon --- */
.card::after {
  content: '+';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  height: 2rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 5; /* Sits on the very top layer */
}


/* =================================================
   --- STATE CHANGES when .is-open is added ---
================================================= */

.card.is-open .card-body {
  max-height: 3000px;
  max-width: 100%;
  padding: 0 1.5rem 1.5rem 1.5rem;
  transition: max-height 0.5s ease-in, padding 0.4s ease-in;
}

.card.is-open::after {
  content: '\2013';
  transform: rotate(180deg);
  background-color: #333;
  color: #ffffff;
}

/* Show the overlay in light mode */
.card.is-open .card-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}



/* ===================================================================
    Contact form + divider
====================================================================== */
.contact-form-wrapper {
  max-width: 700px;      /* adjust to your design */
  padding: .5rem;         /* optional inner padding */
  opacity: .8;
}

.contact-form-wrapper iframe {
  width: 100%;
  border: none;          /* removes the default frameborder */
  margin: .5rem;
  opacity: .8;
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 740px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 16px;
  color: var(--accent-secondary);
}

.form-group input,
.form-group textarea {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  font-size: 0.95rem;
  background-color: transparent;
  color: inherit;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-submit {
  align-self: flex-start;
  padding: 0.5rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--accent);
  background-color: transparent;
  color: var(--accent);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.form-submit:hover {
  background-color: var(--accent);
  color: white;
}



/* ------------------------------------
    HIGHLIGHTS 
------------------------------------ */
.highlight-p {
  position: relative;
  padding-left: 1.2rem;
}

.highlight-p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--accent-secondary);
}


/* ---------------------------
CONTAINERS FOR SAMPLES PAGE ONLY 
-----------------------------*/

/* CONTAINERS - samples */
.container-samples {
  width: 100%;                  
  background-color: #3E838C; 
  padding: 1.5rem;                /* Optional: add padding for content */
  margin: 0;                   /* No margin to ensure full width */
   position: relative;
  width: 100vw;
  left: calc(-50vw + 50%);
  margin-bottom: 1rem;
}


.section .container-samples {
  margin-top: 0;
} 


/* CONTAINERS - samples */
.container-samples-examples {
  width: 100%;                  
  background-color: whitesmoke; 
  padding: 1.5rem;                /* Optional: add padding for content */
  margin: 0;                   /* No margin to ensure full width */
   position: relative;
  width: 100vw;
  left: calc(-50vw + 50%);
  margin-bottom: 1rem;
   display: grid;
  gap: 1rem;
}


/* REALLY HELPFUL TOOL */

/* .container { outline: 2px solid red; }
.card-grid { outline: 2px solid blue; }
.card { outline: 1px solid lime; }
main.page { outline: 4px solid yellow; }
.section .container-samples {
  outline: 8px solid magenta !important;
}
.section--samples .container.container-samples {
  outline: 6px solid hotpink;
}
body {
  background: red !important;
} */



/* =======================================
   Section + texture system - MAIN PAGE
========================= */

.section {
  position: relative;
  padding-top: .5rem;
  padding-bottom: .5rem;
}

/* new section */
.section .container > :first-child {
  margin-top: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section > .container,
.section .card-grid {
  position: relative;
  z-index: 1;
}

.services {
   position: relative;
  padding-top: .5;
   padding-bottom: .5rem;
}

.experience {
   position: relative;
  padding-top: .5;
   padding-bottom: .5rem;
}

.about {
   position: relative;
  padding-top: .8;
   padding-bottom: .5rem;
   
}

.contact {
   position: relative;
  padding-top: .5;
   padding-bottom: .5rem;
}


/* =========================
SECTION FOR SAMPLES PAGE ONLY 
=========================*/

.section--samples {
  padding-top: 1rem;
  padding-bottom: 2rem;   /* keep bottom spacing if needed */
}

.section--samples .container > :first-child {
  margin-top: 1rem;
}


/* =========================
   Section divider
========================= */
.section-divider {
  height: 1px;
  width: 100%;
  margin: .5rem; 
}

.section > .container,
.section > .card-grid {
  position: relative;
  z-index: 1;
}

/* =========================
   Header / Nav
========================= */
.site-header {
  position: relative;
  z-index: 1000;
  background-color:#d8d8d8;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-right: 1rem;
  padding-left: 1rem;
  margin: 0;
  background-color: var(--bg);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-weight: 600;
  line-height: 1;
  padding: .1rem;
  border-radius: 1px;
  max-width: fit-content;
}

.logo-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
 
}

/* LOGO IMAGE */
.logo-mark {
  height: 40px;     /* adjust: try 24–32px */
  width: auto;
  opacity: 0.85;    /* subtle, not shouty */
  max-height: none;
  flex-shrink: 0;
}

.site-header .header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #d8d8d8; 
}

.menu-icon {
    cursor: pointer;
    font-size: 24px; /* Size of the menu icon */
    padding-right: .5rem;
    padding-left: .5rem;
    position: relative;
    z-index: 1010;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
}

.header-controls {
  display: flex;
  align-items: center;
  /* gap: 0.7rem;   distance between dark mode and hamburger */
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 10;
}

.site-header > .container {
  display: flex;
  align-items: center; /* Vertically aligns items to the middle */
  justify-content: space-between; /* Pushes logo and controls to opposite ends */
  width: 100%; /* Ensures it uses the full width available */
}


/* moves scroll up a little bit for nav links */
#services, #workshops, #experience, #about, #contact {
  scroll-margin-top: 80px; /* adjust to match your header height */
  }


/* socials  */

.logo-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
    align-items: center;

}

.social-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.social-icon--lg {
  width: 32px;
  height: 32px;
  /* padding-bottom: .3rem;
  padding-top: .3rem; */
}

.social-icon:hover {
  opacity: 1;
}



/* =========================
   NAV /AND FADE
========================= */

.main-nav {
    display: flex;             /* Hide nav by default */
    flex-direction: column;    /* Stack links vertically */
    align-items: center;       /* Center items horizontally */
    gap: 1rem;                 /* Space between items */
    background: #202020; /* Optional background */
    padding: 1rem;             /* Optional padding */
    border-radius: 8px;        /* Optional rounded corners */
    position: absolute;         /* Position it absolutely */
    top: 100%;                  /* Position below the header */
    right: 1rem;                   /* Align to the right */
    width: 140px;               /* Set a width for the dropdown */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
    z-index: 990;                 /* Higher z-index to ensure it overlays */
    justify-content: space-between;
  }

.main-nav a {
  margin-left: 0;
  text-decoration: none;
  color: white;
  white-space: nowrap;
}

/* Add this new rule to hide the menu when needed */
.main-nav.hidden {
  display: none;
}

.main-nav a:hover {
  text-decoration: underline;
}

nav.fade-in {
  opacity: 0;
  animation: navFade 1s ease-out forwards;
}

.main-nav .nav-primary {
  text-decoration: underline;
  transform: none;
  margin-left: auto;
}

.nav-box {
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 0.2rem 0.6rem;   
  color: #e6a817;
  box-shadow: 0 3px 10px 1px rgba(0,0,0,.10);
  text-decoration: none;
  line-height: 1;
  display: inline-block;
}

/* hover/focus */
.nav-box:hover,
.nav-box:focus {
  background: #e6a817;
}

.nav-break {
  display: none;
  flex-basis: 100%;   /* forces next items to a new row */
  height: 0;
}

.main-nav.show {
  display: flex; /* Show links */
}



@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
  }
}


/* --------------------------
 special nav for sample link 
 ---------------------------- */

@keyframes navFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}



/* =========================
   SIDE NOTE (after nav, before hero)
========================= */

.site-note {
  font-size: 0.85rem;
  color:var(--bg);
  text-align: right;
  background: transparent;
  opacity: 0.85;
  margin-top: 0rem;      /* moves border + box */
  padding-top: 0.5rem;    /* moves text down from border */
  padding-right: 0.7rem;  /* moves text away from right edge */
  padding-left: 0;        /* optional */
  padding-bottom: 0.5rem;
background-color: var(--accent);
}

/* =========================
   Hero
========================= */
#hero {
  position: relative;
  /* Use padding to create space INSIDE the hero section */
  padding-top: 1.5rem;    /* Controls space ABOVE the white box */
  padding-bottom: 1.5rem; /* Controls space BELOW the white box (this is the gap you want) */
  /* NO margin-bottom needed here anymore */
}

#hero .section-divider {
  margin-bottom: 0.5rem;
}

#hero::before {
  content: "";
  position: absolute;
  /* background: rgba(47, 47, 47, 0.5); */
  z-index: 0;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 45px solid transparent;
  border-bottom: 45px solid transparent;
  border-left: 35px solid var(--accent);
}

.hero-inner {
  width: 100%;
  margin: 0 auto;
  padding-top: 1.5rem;
  padding-bottom: 1.25rem; /* ← reduce this */
  padding-left: 5rem;
  /* border-left: 55px solid var(--accent); */
  padding-right: 1rem;
  position: relative;
  z-index: 1;
  /* background-color: var(--accent-fourth); */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08); /*new */
  box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.08); /*new */
}

.section .container {
  max-width: none;
  margin: 0 auto;
  /* padding: 2rem 2rem; */
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 1.25rem;
  max-width: 1200px;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: none;
  line-height: 1.5;
}

/* hero emphasis text */
.inline-h3emphasis {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: wrap;

    background: linear-gradient(
    transparent 30%,                 
      rgba(218, 165, 32, 0.35) 65%
      );

        background-size: 1600% 180%;   /* stretch highlight width */
        background-position: center;
        background-repeat: no-repeat;

  }


/* hero fade in codes: */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* hero subtitle – baseline */
.reveal-wipe {
  white-space: normal;   /* allow wrapping */
  overflow: visible;
}

.reveal-wipe span {
  display: inline-flex;
}

.reveal-wipe::after {
  animation-fill-mode: forwards;   /* keep final state */
}

/* Disable the overlay after animation completes */
.reveal-wipe.is-revealed::after {
  display: none;
}

@keyframes wipeIn {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Neutralize multi-column / grid / flex effects inside hero subtitle */
#hero .reveal-wipe {
  display: block;          /* normal block flow */
  column-count: auto;     /* cancel multi-column layout */
  column-gap: normal;
}

#hero .reveal-wipe > span {
  display: inline;        /* normal inline text flow */
}

#hero .inline-h3emphasis {
  display: inline;
  white-space: wrap;   /* keep emphasized phrase intact */
}

/* If any parent uses columns, neutralize them for hero */
#hero .container,
#hero .hero-inner {
  column-count: auto;
}



/* avatar settings */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto !important; /* don't grow */
  width: auto !important;
  max-width: none !important;

  margin-left: auto; /* << push to the right */
  margin-right: 0;
  padding: 0;
}

/* Prevent header flex from making avatar fill the row */
.header-inner > .avatar,
.container.header-inner > .avatar {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  display: inline-flex;
  align-items: center;
  padding-right: 0 !important;
  margin-left: auto;
  margin-right: 0;
  padding: 0 0 0 1rem;
  max-width: none !important;
}

/* Use a concrete size for the image (not percent) */
.avatar-img {
  width: 4.5rem; /* pick px/rem you want */
  height: auto;
  display: block;  box-shadow: 0px 1px 5px #4db8b8;
  border-radius: 50%;     /* makes it a perfect circle */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */

}



/* =========================
   Section headings
========================= */
.section h2 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  margin-left: 2rem;
  color: var(--accent);
    text-shadow: 0px 1px 5px var(--bg);

}


/* =========================
   Cards / grids
========================= */

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: start;
}

.card {
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 16px; /* optional but nice */
  padding: 1.5rem;    /* usually needed once you add a border */
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card-exp {
  font-size: 0.95rem;
  border: 1px solid var(--card-bg);
  border-radius: 16px; /* optional but nice */
  padding: .6rem;    /* usually needed once you add a border */
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px #12121a;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:not(.card-exp)::after {
  content: '+';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  pointer-events: none; /* Keep this so the icon is click-through */
  z-index: 2;           /* Add this line */
  
  /* Styling for the circle */
  height: 2rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
  
  /* Font styling */
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 2rem; /* Helps vertically center the '+' */
  
  /* A smooth transition for all changes (rotation, color, etc.) */
  transition: all 0.3s ease;
}

/*
  This rule takes over when the card has the 'is-open' class,
  changing the icon to a '–' sign.
*/
.card.is-open:not(.card-exp):not(.card-static)::after {
  content: '\2013'; /* This is a proper minus sign character */
  background-color: #333;
  color: white;
  
  /* Rotates the icon for a nice animation effect */
  transform: rotate(180deg);
}

/* Dark mode style for open cards */
.dark .card.is-open {
  background-color: #2c2c2c; /* A slightly lighter dark gray */
}

/* Optional: Style the header differently for more contrast */
.dark .card.is-open .card-header {
  background-color: #3a3a3a; /* A slightly different shade for the header */
}

body.page-rates .card::after {
  content: none;
}


.card ul {
  padding-left: 1.25rem; /* default is usually ~2rem */
}

.card-title {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}



/* Default, hidden state for the overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Start invisible and non-clickable */
  opacity: 0;
  pointer-events: none;
  
  /* Set a transparent background now, so we can transition it later */
  background-color: rgba(255, 255, 255, 0);

  /* Animate the changes */
  transition: opacity 0.3s ease, background-color 0.3s ease;
  will-change: opacity;
  transform: translateZ(0);
}

/* The "open" state for the overlay */
.card.is-open .card-overlay {
  /* Become visible */
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
  
  /* IMPORTANT: Keep pointer-events: none so clicks pass through to the card */
  pointer-events: none;
}

/* The "open" state for the LINK inside the overlay */
.card.is-open .card-overlay a {
  /* Re-enable clicks ONLY for the link itself */
  pointer-events: auto;
}

/* Default state for the body text in dark mode */
.dark .card .card-body {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}


/* --------------------------------------------------------*/

/* email me location */
.card-overlay a {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

/* --------------------------------------------------------*/

/* This kicks in on wider screens (901px and above)
and switches the card grid from CSS grid to a 
two-column masonry-style layout using CSS columns. */

@media (min-width: 901px) {
  .card-grid {
    display: block;          /* turn off grid */
    column-count: 2;        /* 2 columns */
    column-gap: 3rem;       /* horizontal spacing */
  }

  .card-grid > .card {
    break-inside: avoid;    /* prevent card splitting */
    margin-bottom: 3rem;   /* vertical spacing between cards */
  }
}

/* --------------------------------------------------------*/

/* ---------------------------
CARDS ON SAMPLES PAGE ONLY
------------------------------*/

.card--media {
  display: flex;
  flex-direction: column;
  height: 100%;               /* fill the grid cell */
  min-width: 0;               /* allow shrinking */
  box-sizing: border-box;
}

.card--media .card-img,
.card--media .card-img-creative {
  width: auto;                /* intrinsic width */
  max-width: 100%;
  min-width: 0;
  height: auto;               /* let image be natural height (may trigger scroll) */
  display:block;
  object-fit: cover;
}

.card, .card-grid > * { min-width: 0; align-self: start; }

.card-grid--stacked {
  display: grid;                 /* ensure grid is active */
  grid-template-columns: 1fr;    /* one column */
  row-gap: 2rem;                 /* vertical spacing */
}

.card-grid-samples {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: start;
}

/* =========================
   About
========================= */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
   justify-content: start;
  text-align: left;
  
}

#about h2 {
  max-width: 1100px;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.about-text p {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}


/* highlight about text */
.inline-highlight {
  display: inline;
  background: linear-gradient(
    transparent 1%,
    rgba(218, 165, 32, 0.25) 20%
  );
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone; /* Safari */
  border-radius: 3px;
  background-size: 1600% 180%;   /* stretch highlight width */
}


/* =========================
   SERVICES section
========================= */

/* highlight goal text */
.inline-highlightgoal {
  display: inline;
  background: linear-gradient(
    transparent 20%,
    rgba(255, 68, 5, 0.25) 10%
  );
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone; /* Safari */
  border-radius: 3px;
  background-size: 160% 180%;   /* stretch highlight width */
}

#services .card-grid .card,
#workshops .card-grid .card {
  cursor: default !important;
}


/* =========================
  job and work Experience text/heading
========================= */

.experience-heading {
  margin-top: 4rem;
  padding-bottom: 1rem;
}


/* =========================
modal for both pages about AI
========================= */

.modal-box {
  border: 1.5px solid #000;   /* black outline */
  border-radius: 12px;       /* rounded corners */
  padding: 1.25rem 1.5rem;   /* breathing room */
  background: var(--accent-fourth);       /* your site tan */
  color: var(--text);
}

.modal-box p {
  margin: 0.5rem 0;          /* tidy paragraph spacing */
}

.modal-link-wrap {
  text-align: right;         /* positions the box on the right */
  padding-right: 1.8rem;
}

.modal-link-box {
  display: inline-block;    /* outline hugs content */
  border: 1.5px solid var(--accent-secondary);
    border-radius: 12px;
  padding: 0.9rem 0.6rem;
}

.modal a {
  color: white;
}

#close-modal {
  color: var(--accent-secondary);
}


dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}



/* =========================
   Contact / Back to top
========================= */


.back-to-top-fixed {
  position: fixed;
  bottom: 1.5rem;
  right: 1.3rem;
  font-size: 1rem;
  opacity: 0.5;
  text-decoration: underline;
  z-index: 1000;
}

.back-to-top-fixed:hover {
  opacity: 1;
}


/* =====================================
    DROP DOWNS FOR EXPIERENCE SECTION 
   ====================================*/

.work-dropdown {
  margin-bottom: 1rem;
}

.work-dropdown summary {
  cursor: pointer;
  list-style: none; /* removes default arrow in some browsers */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.work-dropdown summary::-webkit-details-marker {
  display: none; /* removes default arrow in Chrome/Safari */
}

.work-dropdown summary::after {
  content: '▸';
  transition: transform 0.3s ease;
}

.work-dropdown[open] summary::after {
  transform: rotate(90deg);
}

/* =======================
   Links
========================= */
a {
  color: inherit;
}


/* =========================
   Responsive tweaks
========================= */
@media (max-width: 900px) {
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */

  }

  .main-nav a {
    margin-left: 0;
    margin-right: 1.25rem;
  }
}

/* entry experience titles */
.experience-entry {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}


@media (max-width: 600px) {
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    box-shadow: 
    2px -4px 8px rgba(0, 0, 0, 0.2), /* TOP */
    2px 4px 8px rgba(0, 0, 0, 0.2); /* BOTTOM */
  }
}


/* modal panel */
dialog {
  background: #c7a57d;          /* match site */
  color: #1b130b;               /* your text color */
  border: none;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  max-width: 520px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* dim the page behind the modal */
dialog::backdrop {
  background: rgba(0,0,0,.45);
}

dialog button {
  margin-top: 1rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--accent-secondary);
  background: transparent;
}

dialog button:hover {
  background: rgba(#c9c8c8);
}




/* =========================
=========================
   Mobile-only styles
========================= 
=========================*/


/* -------------- index page ---------------- */

/* shrinks <p>s text size to .75rem */
@media (max-width: 600px) {
  p {
    font-size: 0.75rem;   /* try 0.9–0.95rem */
    line-height: 1.5;   /* keep readability */
  }
}

/* ------------------------------------------------ */

/* scales down all text elements (paragraphs, 
headings h1-h6, lists) on the samples and 
rates pages specifically at mobile. A lot 
of these mirror the first block but scoped 
to those pages. */
/* 
@media (max-width: 600px) {
  body.page-samples p,
  body.page-rates p {
    font-size: 0.75rem;
    line-height: 1.5;
  } */

/* ------------------------------------------------ */

  /* shrinks the h1 to 1.3rem on mobile for the 
  samples and rates pages specifically. */

  /* body.page-samples h1,
  body.page-rates h1 {
    font-size: 1.3rem;
  } */

/* ------------------------------------------------ */

/* samples and rates pages only */
/* 
  body.page-samples h2,
  body.page-rates h2 {
    font-size: 1.0rem;
  }

  body.page-samples h3,
  body.page-rates h3 {
    font-size: 1.1rem;
  }

  body.page-samples h4,
  body.page-rates h4 {
    font-size: 1.0rem;
  }

  body.page-samples h5,
  body.page-rates h5 {
    font-size: 0.95rem;
  }

  body.page-samples h6,
  body.page-rates h6 {
    font-size: 0.9rem;
  }

  body.page-samples li,
  body.page-rates li {
    font-size: 0.75rem;   /* 0.2rem is effectively invisible */
  /* }

  body.page-samples ul,
  body.page-rates ul {
    font-size: 0.75rem;
  } */ 

/* ------------------------------------------------ */

/* shrinks card titles specifically to 0.9rem on 
mobile with tighter line height, so they don't 
take up too much space in the collapsed card header. */

@media (max-width: 600px) {
  h3.card-title {
    font-size: .9rem; 
    line-height: 1.2;
  }
}

/* ------------------------------------------------ */

/*  shrinks your hero h1 (the fade-in one) to 
1.5rem on mobile. */

@media (max-width: 600px) {
  h1.fade-in {
    font-size: 1.5rem;   
    line-height: 1.5;   
  }
}

/* ------------------------------------------------ */

/* removes the default browser margin from 
the logo h4 in the header at tablet width 
and below, keeping the header from getting 
extra unwanted spacing. */

@media (max-width: 768px) {
  .site-header .logo h4 {
    margin: 0; /* removes default top and bottom margin */
  }
}

/* ------------------------------------------------ */


  /*=========================
   SITE NOTE ONLY - MOBILE 
   =========================*/

  @media (max-width: 600px) {
  .site-note {
    font-size: 0.65rem;
    text-align: center;      /* or center */
    margin-top: 0rem;
    padding-left: 3rem;   /* optional: balance side padding */
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: var(--accent);
  }
}


/* =========================
  HEADER - MOBILE ONLY 
=========================*/

@media (max-width: 600px) {
  .site-header {
    padding: 0;                 /* tighten header */
  }

 .header-inner {
    max-width: 100%;          /* allow full width on mobile */
    /* padding: 1rem; */
    padding-top: 1.5rem;
    padding-left: 2rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    align-items: flex-start;       /* keep nav/logo aligned */
    flex-direction: column;
    overflow: hidden;
  } 


/* =========================
  LOGO - MOBILE ONLY 
=========================*/

  .logo-mark {
    height: 20px;              /* smaller logo on mobile */
}

  .logo {
    font-size: 1rem;           /* slightly smaller text */
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    

    flex: 1 1 auto;
    width: 100%;

    box-sizing: border-box;
  }
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */


/* -------------- samples page ---------------- */
/* samples page was here and is saved in a text file 
in the bigger folder on computer */


/* -------------- rates page ---------------- */
/* rates page was here and is saved in a text file 
in the bigger folder on computer */


/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

/* -------------- 
  MOBILE ONLY
---------------- */

/* targets the header inner container specifically on the 
page-samples and page-rates pages at mobile width (600px or less), 
and forces it to display as a single horizontal row — no wrapping, 
items centered vertically, with a small gap between them. */

/* @media (max-width: 600px) {
    body.page-samples .site-header .header-inner,
  body.page-rates   .site-header .header-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  } */

/* ------------------------------------------------------------------ */

/* needed for logo sizing, prevents it from shrinking too much 
or growing too much */

  body.page-samples .site-header .logo,
  body.page-rates   .site-header .logo {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
  }
  
  /* ------------------------------------------------------------------ */

    /* keeps link inside header-inner at natural size, from wrapping,
  and pushes all the way to the right */

@media (max-width: 600px) {
  body.page-samples .header-inner,
  body.page-rates .header-inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

/* ------------------------------------------------------------------ */

  /* hides any second .container that immediately follows another 
  .container inside the header, on those two pages at mobile.  */
/* @media (max-width: 600px) {
  body.page-samples .site-header .container + .container,
  body.page-rates .site-header .container + .container {
    display: none;
  }
} */

/* ------------------------------------------------------------------ */

/*  shrinks all <li> text to 80% of its parent's font size and 
sets a consistent line height on mobile. It's just making list 
items slightly smaller and tidier on small screens. */

@media (max-width: 600px) {
  li {
    font-size: .8em;     /* match surrounding text */
    line-height: 1.45; /* consistent with paragraphs */
  }
}

/* ------------------------------------------------------------------ */

/* shrinks list items inside the modal even smaller (75%) on 
mobile, because the modal is narrow and the text cramped. */

@media (max-width: 600px) {
  .modal-box li { font-size: 0.75em; }
}

/* ------------------------------------------------------------------ */

/* allows horizontal scrolling on the samples page at tablet 
width and below. Likely needed because your samples content 
(probably a table or wide element) overflows its container. */

/*@media (max-width: 768px) {
  .page-samples {
    overflow-x: auto;   /* allow scrolling */
/*  }
} */

/* ------------------------------------------------------------------ */


/* adds padding to the hero text on mobile to even it 
out on both sides. */

@media (max-width: 600px) {
  .hero-inner {
    padding-right: 2.5rem;
    padding-left: 3.5rem;
  }
}

/* ------------------------------------------------------------------ */


/* -------------------
DESKTOP: 
masonry-style cards (no vertical gaps) 
--------------------------*/
@media (min-width: 901px) {
  .card-grid {
    display: block;          /* turn off grid */
    column-count: 2;        /* 2 columns */
    column-gap: 3rem;       /* horizontal spacing */
  }

  .card-grid > .card {
    break-inside: avoid;    /* prevent card splitting */
    margin-bottom: 3rem;   /* vertical spacing between cards */
  }
}

@media (min-width: 901px) {
  #services .card-grid {
    column-count: 1;
  }
}

