/* ==== Home / Intro ==== */

.filler {
    display: flex;
    justify-content: center;  /* Centers horizontally */
    text-align: center;       /* Ensures text is centered */
    /* min-height: 60vh;         Makes sure it takes up most of the screen */
    flex-grow: 1;             /* Ensures it stretches if needed */
}

.intro {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    justify-content: center; /*Centers content vertically (if parent has height) */
    max-width: 80%; /* Adjust width for responsiveness */
    margin: auto; /* Centers horizontally */
    padding: 0%;
}

.design-img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 150px;
  margin-bottom: 20px;
  font-size: 200px;      /* This controls the icon size */
  color: #e09263;           /* Light gray, change as desired */
  line-height: 1;
  /* opacity: 0.6;         /* Slight transparency for that 'placeholder' look */
}

.profile-img {
    max-width:300px; /* Controls size */
    max-height: auto;
    border-radius: 50%;
    margin: 2%; /* Space below when stacked */
    margin-top: 10%;
}

.bio {
    max-width: 600px; /* Ensures text does not stretch too wide */
    text-align: center;
    padding: 0px;
}

.bio h1 {
    font-weight: 400;
}

.bio p {
    font-weight: 400;
}

/* ==== Home / Intro Responsiveness ==== */

/* Adjust layout when screen is wider than 750px */
@media (min-width: 750px) {
    .intro {
        display: flex;
        flex-direction: row; /* Side-by-side layout */
        justify-content: center; /* Centered horizontally */
        align-items: flex-start; /* Align items vertically */
        text-align: left; /* Align text to the left */
        margin-top: 5%
    }

    .profile-img {
        margin: 2%; /* Remove margin when side-by-side */
        margin-right: 20px; /* Adds spacing between image and bio */
    }

    .bio{
        text-align: left;
    }

    .bio h1 {
        margin: 2%;
        margin-left: 0%;
    }
}

/* ==== Home Redirect Buttons ==== */

.redirects {
  display: flex;
  justify-content: center; /* Centers the group */
  align-items: center;
  margin: 40px 0;
  gap: 40px; /* Optional spacing between circles */
  padding: 0 10vw; /* Adds spacing on left and right sides */
}

.redirects a {
  font-weight: 400;
}

.circle-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none; /* no shadow until hover */
}

.circle-link:hover {
  background-color: darkblue;
  transform: scale(1.15);
}

.circle-link:hover,
.circle-link:focus-visible {
  transform: scale(1.15);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 6px 12px rgba(0, 0, 0, 0.10);
  outline: none;
}

.circle-link.circle-1 {
  background-color: #679f9e;
}

.circle-link.circle-2 {
  background-color: #3d4569;
}

.circle-link.circle-3 {
  background-color: #e09263;
}

@media (max-width: 900px) {
  .redirects {
      /* margin: 40px 0; */
      gap: 20px; /* Optional spacing between circles */
  }
  .circle-link {
    width: 80px;
    height: 80px;
  }
}

/* ==== Skills Section ==== */

.skills {
  max-width: 1000px; /* a little wider helps 5 groups */
  margin: auto;
  text-align: center;
}

.skills h1 {
  font-weight: 400;
}

/* Container for the 5 groups */
.skills-groups {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 12px;  /* keeps boxes off the edges  */
  box-sizing: border-box;
  margin-top: 16px;
}

/* Each group (column/card) */
.skills-group {
  flex: 1 1 0;
  min-width: 160px;         /* prevents squishing too hard */
  max-width: 210px;         /* keeps columns uniform-ish */
  text-align: left;         /* headings + bullets look better left */
  padding: 12px 18px;
  border-radius: 10px;
  /* optional styling (safe to remove if you want ultra-minimal) */
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.55);
  height: auto;  /* controls flex stretching in non-mobile viewers  */
}

/* Group title */
.skills-group h2 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

/* Bullet list inside each group */
.skills-group ul {
  margin: 0;
  padding-left: 16px; /* bullet indentation */
}

.skills-group li {
  margin: 6px 0;
  line-height: 1.25;
  font-weight: 400;
}


/* ===== Skills Section Responsiveness ===== */

/* Wider than 1100px */
@media (min-width: 1100px) {
  .skills-groups {
    flex-wrap: nowrap;  /* wide screens: keep all 5 groups on one row */
  }
}

/* Under ~900px: allow wrapping into multiple rows */
@media (max-width: 900px) {
  .skills-groups {
    flex-wrap: wrap;
    justify-content: center;
  }
  .skills-group {
    flex: 1 1 220px; /* 2–3 columns depending on width */
    max-width: 280px;
  }
}

/* Under ~520px: single column stacked */
@media (max-width: 520px) {
  .skills {
    text-align: center;
    padding: 0 12px;
  }
  .skills-groups {
    flex-direction: column;
    gap: 12px;
    align-items: center; /* centers blocks horizontally */
  }
  .skills-group {
    flex: 0 0 auto;  /* prevents vertical stretching - may be same as flex-grow: 0; */
    text-align: left;
    width: min(280px, 100%);  /* make group a "box" that can be centered */
    max-width: 100%;
    padding: 10px 14px;  /* reduce top/bottom padding a bit */
  }

  .skills-group h2 {
    margin: 0 0 6px 0;  /* reduce heading space */
  }

  .skills-group ul {
    margin: 0;  /* removes extra bottom space */
    padding-left: 18px;  /* keep bullet indent  */
  }

  .skills-group li {
    margin: 4px 0;  /* tighten bullet spacing */
    line-height: 1.2;  /* optional:  slightly tighter  */
  }
}

/* ==== Training & Certificates Section ==== */

.training {
  max-width: 1100px;  /* matches skills max-width */
  margin: 40px auto 0;  /* space above, centered */
  text-align: center;
}

.training h1 {
  font-weight: 400;
}

.certificates {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;  /* prevents cutoff */
  padding: 0 12px;  /* keep off screen edges */
  box-sizing: border-box;
  margin-top: 16px;
}

.certificate {
  flex: 1 1 340px;  /* allows 2–3 per row depending on width */
  max-width: 520px; /* keeps them from getting too wide */
  display: grid;
  grid-template-columns: 1fr 220px;  /* text | image */
  gap: 14px;
  align-items: start;
  text-align: left;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.55);
  box-sizing: border-box;
}

.certificate h2 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.certificate-text li {
  font-weight: 400;
}

.certificate-media {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 8px;
  box-sizing: border-box;
}

.certificate-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.certificate-meta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.certificate-meta li {
  margin: 4px 0;
  line-height: 1.2;
}

.certificate-meta a {
  font-weight: 700;           /* makes Verify pop a little */
  text-decoration: none;
}

.certificate-meta a:hover {
  text-decoration: underline;
}


 /* ===== Certificates Section Responsiveness ===== */

/* Under ~900px: allow wrapping into multiple rows */
@media (max-width: 900px) {
  .certificate {
    flex: 1 1 420px;
    max-width: 720px;
    grid-template-columns: 1fr 240px; /* slightly bigger image OK here */
  }
}

/* Under ~520px: single column stacked (center the card blocks) */
@media (max-width: 520px) {
  .training {
    text-align: center;
    padding: 0 12px;
  }
  
  .certificates {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .certificate {
    flex: 0 0 auto;               /* prevents stretching */
    width: min(560px, 100%);
    max-width: 100%;
    grid-template-columns: 1fr;   /* stack */
  }

  .certificate-media {
    padding: 10px;
  }
  
  .certificate h2 {
    margin: 0 0 8px 0;
  }

}


/* ==== Projects Page ==== */

.projects-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0px;   /* keeps it clear of your fixed header */
  padding-bottom: 120px;/* keeps it clear of fixed footer */
  text-align: center;
}

.projects-title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 80px;
  border-radius: 20px;
  background-color: #679f9e; /* same as .circle-link.circle-1 */
  color: white;
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  line-height: 1.2;
  margin: 100px auto 40px;   /* pushes it toward top, centers horizontally */
}

/* Projects: list container */
.projects-list {
  width: 75vw;               /* ~75% of the screen width */
  max-width: 1100px;         /* keep it from getting too wide on big monitors */
  margin: 20px auto 120px;   /* center horizontally; room above footer */
  display: flex;
  flex-direction: column;
  gap: 24px;                 /* space between cards */
}

/* Each project card is clickable as a whole */
.project-card {
  display: grid;
  grid-template-columns: 25% 75%; /* image | content */
  gap: 20px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(2px);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;     /* remove link underline */
  color: inherit;            /* inherit your site text color */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 
    0 14px 28px rgba(0,0,0,0.18),
    0 6px 12px rgba(0,0,0,0.10);
  outline: none;
}

/* Project card image well */
.project-media {
  aspect-ratio: 1 / 1;           /* consistent thumbnail shape */
  padding: 10px;                  /* ← desired inner gutter */
  box-sizing: border-box;         /* padding stays inside the box */
  border-radius: 12px;
  background: #FFFFFF;
  overflow: hidden;               /* keep rounded corners clean */
  display: flex;
  align-items: center;
  justify-content: center;        /* center the image */
}

/* Project card image */
.project-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;                    /* let the browser compute */
  height: auto;
  object-fit: contain;            /* letterbox instead of crop */
  object-position: center;        /* ensure centered */
  display: block;
}

/* Right: text content */
.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding-right: 20px; /* keep right-side consistent with grid gap */
  box-sizing: border-box;
}

.project-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.project-desc {
  margin: 0;
  line-height: 1.5;
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 400;
}

/* Optional: subtle colored left border using your circle-1 color */
.project-card {
  border-left: 15px solid #679f9e;
}

/* --- Project meta chips --- */
.project-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
  margin-top: 8px;
}

.meta-group {
  display: grid;
  grid-template-columns: 110px 1fr; /* label | chips */
  align-items: start;
  gap: 8px;
}

.meta-label {
  font-weight: 700;
  color: #3d4569;            /* dark slate from your palette */
  white-space: nowrap;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(103, 159, 158, 0.12); /* echo .circle-1 color */
  color: #586266;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 400;
}

/* ==== Projects Page Responsiveness ==== */

/* Under 900px */
@media (max-width: 900px) {
  .projects-title {
      font-size: 1.7rem;
      width: 200px;
      height: 50px;
      margin: 50px auto 20px;   /* pushes it toward top, centers horizontally */
  }

  .project-card {
    grid-template-columns: 1fr;     /* stack image over text */
    align-items: start;
    padding: 16px;
  }

  /* Make the image well a centered fixed square on mobile */
  .project-media {
    width: min(150px, 80vw);        /* cap at 200px, shrink on very small screens */
    height: min(150px, 80vw);
    aspect-ratio: auto;             /* override the desktop ratio */
    margin: 0 auto 12px;            /* center above text with a little gap */
    place-self: center;             /* ensure the grid item centers */
  }

  /* Image still letterboxes within the fixed square */
  .project-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
  }
}

/* Collapse label above chips on narrow screens */
@media (max-width: 700px) {
  .meta-group { grid-template-columns: 1fr; }
}

/* ==== Report / Embedded Report Pages ==== */

/* wrapper page: remove global main padding and flex growth */
main.report-wrapper { 
  padding: 0 !important; 
  flex: 0 !important;       /* prevents flex layout from creating extra space */
}

/* wrapper: full-bleed is fine (or cap with max-width if you prefer) */
.report-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* iframe in normal flow; JS sets the exact height */
#report-frame {
  display: block;
  width: 100%;
  border: none;
  margin: 0;
  padding: 0;
}

/* Report actions toolbar */
.report-actions {
  position: fixed;
  right: 16px;
  /* top is still set by iframe-fit.js */
  z-index: 1002;
  display: inline-flex;
  flex-direction: column;     /* <-- stack */
  align-items: flex-end;      /* keep them right-aligned */
  gap: 5px;                   /* space between buttons */
  padding: 4px 6px;           /* tighter container */
  border-radius: 10px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  /* box-shadow: 0 8px 18px rgba(0,0,0,0.10); */
  font-family: inherit;                /* inherit from body */
  font-optical-sizing: inherit;        /* keep your body setting */
}

/* Smaller buttons (scoped to the toolbar so other site buttons stay as-is) */
.report-actions .btn {
  background: #5e6a72;        /* your updated color */
  display: block;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;          /* smaller than before */
  font-size: 0.9rem;          /* smaller type */
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  min-width: 0;           /* optional: consistent width when stacked */
  text-align: center;
}

.report-actions .btn:hover,
.report-actions .btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  filter: brightness(1.05);   /* gentle hover pop without changing your color */
  outline: none;
}

/* Ghost style stays smaller too */
.report-actions .btn-ghost {
  background: transparent;
  color: #3d4569;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Reset native button font, then apply your style */
.report-actions button {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;                       /* inherit family, size, weight, etc. */
  font-weight: 700;                    /* match header/footer link weight */
  font-size: 0.9rem;                   /* keep your smaller size */
  line-height: 1.1;
}

/* Anchors styled as buttons already inherit, but normalize just in case */
.report-actions a.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.1;
}

/* ==== Report Pages Responsiveness ==== */

/* Optional: on very narrow screens, switch to a row so it doesn't get too tall */
@media (max-width: 420px) {
  .report-actions {
    flex-direction: row;
    align-items: center;
  }
}



/* ==== Contact Page ==== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;   /* left info / right form */
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* Left panel */
.contact-info {
  padding: 8px 0;
}

.contact-info h1 {
  font-weight: 400;
}

.contact-title {
  display: flex;
  justify-content: center;
  align-items: center;  /* keep centered text inside the pill */
  width: 400px;
  height: 80px;
  border-radius: 20px;
  background-color: #df9263;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  margin: 0 0 24px 0;
}

.contact-subtitle {
  margin: 0 0 24px 0;
  line-height: 1.5;
  opacity: 0.9;
  font-weight: 400;
}

.contact-block {
  margin: 18px 0;
  font-weight: 400;
}

.contact-label {
  margin-bottom: 6px;
}

.contact-value a {
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* Right panel */
.contact-form {
  background: rgba(0, 0, 0, 0.03); /* subtle panel; adjust/remove */
  border-radius: 14px;
  padding: 22px;
}

/* Form layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.optional {
  font-weight: 400;
  opacity: 0.75;
  font-size: 0.9em;
}

.form-field input,
.form-field textarea {
  font: inherit;                 /* inherit your site font */
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(0,0,0,0.45);
}

/* Actions */
.form-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-submit {
  font: inherit;
  font-weight: 400;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;

  background-color: #df9263;  /* match Contact pill */
  color: #ffffff;             /* match Contact pill text */

  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn-submit:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
  filter: brightness(1.02);
}

.btn-submit:active {
  transform: scale(1.01);
  box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.8;
  font-weight: 400;
}

/* ==== Contact Page Responsiveness ==== */

/* Mobile collapse */
@media (max-width: 900px) {
  .contact-title {
      font-size: 1.7rem;
      width: 220px;
      height: 50px;
      margin: 10px auto 30px;   /* pushes it toward top, centers horizontally */
  }

  .contact-subtitle {
    text-align: center;
  }

  .contact-label {
    text-align: center;
  }

  .contact-value {
    text-align: center;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form {
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr; /* stack fields on small screens */
  }

  .form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .form-note {
    text-align: center;
    max-width: 24rem;
  }
}