
/* ABOUT */
.about-wrapper {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-wrapper h1 {
  font-family: "Noto Sans", sans-serif;
  font-size: 2.5rem;
  text-align: center;
}

.about-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-image {
  flex: 0 0 30%;
  max-width: 300px;
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

/* Högerkolumn: text + skills */
.about-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: #333;
  ;
}

/* Textblock (mission & skills-rubrik) */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: whitesmoke;
}
.about-text h2 {
  margin: 0;
}

/* CV-länk */
.cv-link {
  display: inline-block;
  width: fit-content;
  background-color: #5a5a5a;
  box-shadow: 0.9px 1.8px 1.8px hsl(0deg 0% 0% / 0.47);
  color: whitesmoke;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.cv-link:hover {
  transform: scale(1.05);
  box-shadow: 1.8px 3.7px 3.7px hsl(0deg 0% 0% / 0.44);
}

@media (max-width: 768px) {
    .cv-link:hover {
    background-color: #5a5a5a;
    color: whitesmoke;
    transform: none;
  }
}

/* Skills-lista */

.skills-section h3{
  padding-bottom: 0.5rem;
  padding-top:0.5rem;
}
.skills-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.skill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(245, 245, 245, 0.9);
  padding: 0.4rem 0.8rem;
  border-radius: 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
  font-size: 1.15rem;
  color: #333;
  word-break: break-word;
  white-space: normal;
  width: fit-content;
  max-width: 100%;
  flex: 0 1 auto;
}

/* Responsiv: stapla bild & info på små skärmar */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }
  .about-image {
    max-width: 100%;
  }
  .about-info {
    width: 100%;
  }
}

/* =======================
   MY VALUES FORMULA
======================= */

.my-values-formula {
  background-color: #A64208;
  padding: 2.5rem 1.25rem;
  text-align: center;
  font-family: "Noto Sans", sans-serif;
  color: #f2efc2;
}

.my-values-formula h2 {
  margin-bottom: 2.5rem;
  font-weight: 700;
  font-size: 2rem;
}

/* Layout */
.formula {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.value-box {
  width: 10rem;
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  background-color: transparent;
  color: #f2efc2;
}

/* Font Awesome icons */
.value-box i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Headings & Text */
.value-box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #f2f1df;
  font-weight: 600;
}

.value-box p {
  font-size: 0.8rem;
  font-weight: 300;
  color: #f2f1df;
  line-height: 1.4;
}

.operator {
  font-size: 2rem;
  font-weight: bolder;
  color: #f2f1df;
  display: inline-block;
  vertical-align: middle;
}

/* Result */
.result {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2rem;
}

.success-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.success-text i {
  font-size: 2.5rem;
  color: #f2efc2;
}

.success-text h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  color: #f2f1df;
}

/* =======================
   ANIMATION
======================= */

/* Alla element startar osynliga */
.value-box, .operator, .success-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* När JS lägger på visible */
.value-box.visible, .operator.visible, .success-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 768px) {
  .formula {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .value-box, .operator {
    width: 100%;
    max-width: 20rem;
    text-align: center;
  }

  .result {
    flex-direction: column;
    gap: 1rem;
  }
}  



/* ===========================
   KONTAKTSEKTION WRAPPER
=========================== */
.contact-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
  padding: 1rem;
  box-sizing: border-box;
  background-color: #f2e0c2;
  color: #222;
  font-family: 'Noto Sans', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-wrapper h1 {
  font-family: 'Noto Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #222;
  text-align: center;
  margin: 0 auto;
}

/* ===========================
   KONTAKTFORMULÄR
=========================== */
.contact-form {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 280px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Knapp */
.contact-form button {
  display: inline-block;       /* låter knappen krympa till text + padding */
  width: auto;
  padding: 0.75rem 1.5rem;
  background-color: #5a5a5a;
  color: whitesmoke;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: center;
  align-self: flex-start;      /* viktig: för flex-parent */
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0.9px 1.8px 1.8px hsl(0deg 0% 0% / 0.47);
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #333;
  color: whitesmoke;
}

/* ===========================
   BEKRÄFTELSEMEDDELANDE
=========================== */
.confirmation-message {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #A64208;
  color: #222;
  border-radius: 0.5rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.confirmation-message.show {
  display: block;
  opacity: 1;
  animation: fadeIn 1s ease-out forwards;
}

.confirmation-message.hide {
  opacity: 0;
  animation: fadeOut 0.5s ease-in forwards;
}

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

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

/* ===========================
   KONTAKTINFO
=========================== */
.contact-info {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  min-width: 200px;
  font-size: 1rem;
}

.contact-info h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-info a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
  color: inherit;
}

.contact-info a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background-color: #bf6341;
  opacity: 1;
  transition: height 0.3s ease;
}

.contact-info a:hover::before {
  height: 100%;
}

.contact-info a img.icon-img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

/* ===========================
   RESPONSIV DESIGN
=========================== */
@media (max-width: 768px) {
  .contact-wrapper h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .contact-wrapper {
    gap: 1.5rem;
  }

  .contact-form,
  .contact-info {
    flex: 1 1 100%;
    min-width: auto;
  }

  .contact-info {
    align-items: center;
    text-align: center;
  }

  .contact-info a {
    padding-left: 0;
  }

  .contact-info a::before {
    display: none;
  }

  .contact-form button {
    display: inline-block;
    width: auto;
    padding: 0.75rem 1.5rem;
    align-self: center; /* centrerar knappen på mobil */
  }
}