/* CSS Reset based on modern best practices by Josh Comeau*/
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}
/* END of CSS Reset based on modern best practices by Josh Comeau*/
/* --- Header / Navigation --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-weight: 700;
  line-height: 2rem;
  font-size: 1.4rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.primary-header {
  position: fixed;
  background-color: hsla(210, 13%, 6%, 1);
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.35s ease-in-out;
}

/* Hide header when scrolling down */
.primary-header.hide-header {
  transform: translateY(-100%) !important;
}

/* Show header when scrolling up */
.primary-header.show-header {
  transform: translateY(0) !important;
}

.company-name {
  display: block;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  margin-left: 2rem;
}

.primary-navigation {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.primary-navigation li a {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 1em;
  margin-right: 2rem;
  transition: background-color 0.3s ease;
}

.primary-navigation li a:hover,
.primary-navigation li a.active,
.primary-navigation li a:focus {
  background-color: grey;
}

.primary-navigation li a.active {
  color: yellow;
}

.mobile-nav-toggle {
  display: none;
}
.primary-navigation a > [aria-hidden="true"] {
  font-weight: 700;
  margin-inline-end: 0.75em;
}
@media (max-width: 45em) {
  .hero-text h1 {
    font-size: 1.3rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }
  .primary-header {
    height: 100px;
  }
  .primary-navigation {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 45vh;
    /* reserve space */
    width: 100vw;
    padding: min(40vh, 4rem) 1rem;
    transform: translateX(100%);
    /* hidden by default */
    transition: transform 350ms ease-out;
    background-color: hsla(210, 13%, 6%, 1);
    z-index: 1000;
  }

  .primary-navigation li a {
    margin-left: 2rem;
  }

  .company-name {
    position: absolute;
    top: 1.8em;
    font-size: 1rem;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0);
  }

  .mobile-nav-toggle {
    display: block;
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    width: 3.5rem;
    height: 3rem;
    background: transparent url(../images/menu-white.png) no-repeat;
    border: none;
    z-index: 9999;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    background-image: url(../images/close_white.png);
  }
}

main {
  min-height: 100%; /* places footer at bottom of screen all screen sizes */
}
.center {
  margin: auto;
  text-align: center;
}
.hero-base::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* adjust opacity here */
  z-index: 1;
}
/* --- Hero --- */
/* ---------- Base Hero Image ---------- */
.hero-base {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/hero480x320.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
/* Variants */
.hero-image {
  height: 100vh;
}
/* Parallax only on Home */
.hero-base.home {
  background-attachment: fixed;
}
.hero-text {
  position: absolute;
  z-index: 2;
  color: #fff;
  text-align: center;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: #000 2px 2px 4px;
}

/* Optional: mobile fallback */
@media (max-width: 768px) {
  .hero-base.home {
    background-attachment: scroll;
  }
}
/* Home page hero background */
.hero-base.home {
  background-image: url(../images/hero_welder_402.jpg);
  background-attachment: fixed; /* parallax on desktop */
}

/* Contact page hero background (optional) */
.hero-base.contact {
  background-image: url(../images/hero_welder_402.jpg);
}

@media (max-width: 768px) {
  .hero-base.home {
    background-attachment: scroll;
  }
}
.hero-text h1 {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 80vw;
  margin: 0 auto;
  padding: 0;
}

/* small screens */

.content {
  padding: 0 1em;
  margin: auto;
}
@media only screen and (min-width: 800px) {
  /* large screens */
  .content {
    max-width: 1200px;
    padding: 0 2em;
  }
}
#about h2 {
  text-align: center;
  margin: 1rem auto;
}
.home-about {
  display: flex;
  flex-direction: column;
  margin: auto;
  padding: 1.7rem;
  gap: 1rem;
  justify-content: space-between;
}
.home-about p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.tailhook-img {
  margin: auto;
  width: 320px;
  padding: 0;
  text-align: center;
}
.tailhook-img img {
  width: 300px;
}
figcaption {
  margin: auto;
  text-align: center;
}

@media only screen and (min-width: 900px) {
  /* large screens */
  .home-about {
    flex-direction: row;
    max-width: 1200px;
    margin: auto;
    gap: 1rem;
    justify-content: space-between;
  }
  .left {
    width: 450px;
  }
  .tailhook-img {
    width: 450px;
  }
  .tailhook-img img {
    width: 450px;
  }
  .skills-description {
    display: none;
  }
}

/* small screen Prowler image */
.bgimg-2 {
  background-image: url(../images/locke-402px.jpg);
  min-height: 200px;
  min-width: 100vw;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  padding: 0;
  position: relative;
  margin-bottom: 20px;
  z-index: -10;
}
@media only screen and (min-width: 800px) {
  .bgimg-2 {
    margin: 0 0 20px 0;
  }
}
.bgimg-2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -9;
}

/* larger screen image --- */
@media only screen and (min-width: 800px) {
  .bgimg-2 {
    background-image: url(../images/locke-797px.jpg);
    min-height: 300px;
  }
}

/* Small Screen - Third image (Contact)  Image by 849356 from Pixabay */
.bgimg-3 {
  background-image: url(../images/metalworking_402px.jpg);
  min-height: 200px;
  min-width: 100vw;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: 0;
  position: relative;
  margin-bottom: 20px;
  z-index: -20;
}
.bgimg-3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -19;
}
/* larger screen image --- */
@media only screen and (min-width: 800px) {
  .bgimg-3 {
    background-image: url(../images/metalworking_797px.jpg);
  }
}

/* Create a Parallax Effect */
.bgimg-2,
.bgimg-3 {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.parallex-heading,
.container {
  text-align: center;
  color: white;
  text-shadow: 1px 1px #070101;
}

/* create progress or percentage bars */
.progress-container p {
  font-size: 20px;
}

.progress-container {
  background-color: rgb(192, 192, 192);
  width: 80%;
  border-radius: 15px;
  margin-bottom: 1rem;
}

.skill {
  background-color: rgb(53, 53, 53);
  color: white;
  padding: 1%;
  text-align: right;
  font-size: 20px;
  border-radius: 15px;
}

.design {
  width: 10%;
}

.tig {
  width: 5%;
}
.mig {
  width: 85%;
}
.list-container {
  display: none;
}
@media only screen and (min-width: 800px) {
  .list-container {
    margin-top: 2rem;
    display: flex;
    justify-content: space-around;
    background-color: grey;
    text-decoration: none;
    color: white;
    margin-bottom: 0px;
  }
  .list-container li {
    padding: 1rem;
    list-style: none;
    text-shadow: #000 1px 1px 1px;
  }
}
.portfolio-container {
  display: flex;
  flex-direction: column;
  margin: auto;
  margin-top: 2rem;
  width: 95%;
}
.portfolio-image {
  border: 1px solid grey;
  padding: 10px 10px 3px 10px;
  margin: 10px;
}
.portfolio-image:hover {
  opacity: 0.8;
  cursor: pointer;
}
/* 560 px screen size and above */
@media (min-width: 35em) {
  .portfolio-container {
    flex-direction: row;
    width: 70%;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
  }
  .portfolio-image {
    width: 180px;
    height: 144px;
    border: 0;
    padding: 0;
    margin: 5px;
  }
}
/* 1000 px screen size and above */
@media (min-width: 62.5em) {
  .portfolio-container {
    max-width: 980px;
  }
  .portfolio-image {
    width: 200px;
    height: 144px;
  }
}
/* ---------- Contact Form Layout --------- - Start */
.envelope {
  text-align: center;
}
/* ---------- Contact Form Layout --------- - Start */
.form-box {
  margin-top: 120px !important;
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  background-color: #fefefe;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  font-family: "Segoe UI", sans-serif;
}
/* The input fields and recaptcha are within the class of "responsive-container-block" */
.responsive-container-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.responsive-cell-block {
  flex: 1 1 45%;
  min-width: 250px;
}
.form-title {
  display: flex;
  justify-content: center;
  font-size: 1.5rem; /* optional: adjust size */
  font-weight: bold; /* optional: emphasize */
  margin: 0.5rem auto 2rem auto;
}
input::placeholder,
textarea::placeholder {
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  opacity: 0.8;
}
.required {
  font-style: italic;
}
.center {
  text-align: center;
}
.text-center {
  margin: auto;
  text-align: center;
}

.contact-form input[type="submit"] {
  outline: none;
  background: #0d041f;
  color: #ffffff;
  padding: 0.5em 0;
  font-size: 1em;
  margin: 1em 0 0 0;
  transition: 0.5s all;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-transition: 0.5s all;
  -moz-transition: 0.5s all;
  -o-transition: 0.5s all;
  width: 50%;
  cursor: pointer;
}
.contact-form input[type="submit"]:hover {
  background: #9370db;
}
.text-success {
  color: #008000;
  text-align: center;
}
/* Error messages */
.err-msg {
  color: #d9534f;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
@media (min-width: 515px) {
  .contact-form input[type="submit"] {
    width: 27%;
  }
}

/* Labels and inputs */

label {
  font-weight: 700;
}
.input-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
}
.input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box; /* ensures padding doesn’t push width beyond 100% */
  transition: border-color 0.3s ease;
}
.textinput {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem;
  font-size: 1rem;
  box-sizing: border-box;
  resize: vertical;
}
.input:focus,
.textinput:focus {
  border-color: #0077cc;
  outline: none;
}

/* Checkbox */
input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Submit button */
.btn-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0f4c81;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.submit-btn:hover {
  background-color: #093b66;
}

/* Hidden spam field */
.fax {
  display: none;
}
.recaptcha-wrapper {
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.recaptcha-wrapper .g-recaptcha {
  display: inline-block;
  transform: scale(1);
  transform-origin: center;
}
/* Tablet adjustments */
@media (max-width: 768px) {
  .recaptcha-wrapper .g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
  }
  .responsive-cell-block {
    flex: 1 1 100%;
  }
}
/* Mobile adjustments */
@media (max-width: 480px) {
  .responsive-container-block {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .responsive-cell-block {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .input,
  .textinput {
    width: 100%;
    box-sizing: border-box;
  }
  .form-box {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  .recaptcha-wrapper {
    padding: 0.5rem; /* tighter padding */
  }
  .recaptcha-wrapper .g-recaptcha {
    transform: scale(0.85); /* shrink widget */
    transform-origin: center;
  }
}
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
  color: #fff;
  font-family: sans-serif;
}

.loader-spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff; /* bright white */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); /* subtle shadow for contrast */
  margin-top: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.full-width {
  width: 100%;
}

.thank-you-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
  background-color: #f9f9f9;
}

.thank-you-card {
  background-color: white;
  padding: 2.5rem 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.thank-you-card h1 {
  font-size: 2rem;
  color: #0f4c81;
  margin-bottom: 1rem;
}

.thank-you-card p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #333;
}

.btn-home {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0f4c81;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-home:hover {
  background-color: #093b66;
}
footer {
  text-align: center;
  background-color: hsla(210, 13%, 6%, 1);
  color: white;
  padding-bottom: 15px;
}
footer:hover {
  background-color: #000;
}
footer a {
  text-decoration: none;
  color: rgb(5, 3, 3);
  padding: 0 12px;
}
footer p {
  margin: -2px 0;
}
.toTopLink {
  padding: 12px;
  text-decoration: underline;
  background-color: rgb(202, 199, 199);
}
.fa-arrow-up {
  margin: 2em 0;
}
.topLink:hover {
  background-color: rgb(35, 40, 44);
}
.fa-facebook {
  color: white;
}
