/* =========================================================
   START.CSS – index.html
   Startsidan (hero) + Om mig-delen med chatten.
   ========================================================= */

/* ---------- HERO ---------- */
/* STARTSIDA - HERO */

.hero {
  padding: 90px 5% 80px;
  background-color: #faf6f0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-label {
  font-size: 13px;
  letter-spacing: 3px;
  color: #981919;
  margin-bottom: 35px;
}

.hero h1 {
  font-family: Arial, sans-serif;
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -4px;
  margin: 0 0 35px;
}

.hero h1 span {
  color: #981919;
}

.hero-description {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 35px;
}

.hero-button {
  display: inline-block;
  padding: 16px 30px;
  background-color: #111;
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}

.hero-button:hover {
  background-color: #981919;
  transform: translateY(-3px);
}

@media (max-width: 700px) {
  .hero {
    padding: 60px 6%;
  }

  .hero h1 {
    letter-spacing: -2px;
  }
}

.lia-status {
  margin-top: 35px;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 600;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #9b1c1c;
  border-radius: 50%;
  margin-right: 10px;
}

.lia-status p {
  color: #777;
  font-size: 12px;
  margin-top: 10px;
  letter-spacing: 1px;
}
/* Större text på projektknappen */
.hero-button {
  font-size: 20px;
  font-weight: 500;
}

/* Mindre mellanrum mellan startsidan och Om mig */
.hero {
  padding-bottom: 45px;
}

/* ---------- OM MIG ---------- */
/* OM MIG-SIDAN */

.about-page {
  background: #f8f5ef;
  color: #171717;
}

.about-hero {
  padding: 110px 8% 100px;
  max-width: 1400px;
  margin: auto;
}

.about-label {
  color: #921c29;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.about-hero h1 {
  font-family: Arial, sans-serif;
  font-size: clamp(55px, 9vw, 135px);
  font-weight: 900;
  letter-spacing: -5px;
  line-height: 0.95;
  margin: 0 0 55px;
}

.about-hero h1 span {
  color: #921c29;
}

.about-intro {
  max-width: 650px;
  margin-left: auto;
}

.about-intro p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.about-intro p:first-child {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 90px 8%;
  border-top: 1px solid #ded8d1;
}

.about-detail h2 {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 25px;
}

.about-detail p {
  max-width: 430px;
  line-height: 1.8;
}

.about-bottom {
  padding: 100px 8%;
  background: #e9edf2;
  text-align: center;
}

.about-bottom > p {
  color: #921c29;
  font-size: 12px;
  letter-spacing: 2px;
}

.about-bottom h2 {
  font-size: clamp(45px, 8vw, 100px);
  letter-spacing: -3px;
  margin: 20px 0 35px;
}

.about-cv-button {
  display: inline-block;
  background: #171717;
  color: white;
  text-decoration: none;
  padding: 17px 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

.about-cv-button:hover {
  background: #921c29;
}

@media (max-width: 700px) {
  .about-hero {
    padding: 70px 6%;
  }

  .about-hero h1 {
    letter-spacing: -2px;
  }

  .about-intro {
    margin-left: 0;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 65px 6%;
  }
}

.about-linkedin-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #171717;
  color: white;
  text-decoration: none;
  padding: 15px 25px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.3s ease;
}

.about-linkedin-button:hover {
  background: #921c29;
}

.linkedin-icon {
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: -1px;
}
/* FIX FÖR PROFILBILD OCH CHATTBUBBLA */

.about-intro .intro-chat {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 35px;
}

.about-intro .intro-chat .chat-avatar {
  width: 60px;
  height: 60px;
  max-width: 60px;
  min-width: 60px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  flex-shrink: 0;
}

.about-intro .intro-chat .chat-bubble {
  flex: 1;
  min-width: 0;
  background-color: #e9edf2;
  border-radius: 8px 22px 22px 22px;
  padding: 20px 25px;
}

.about-intro .intro-chat .chat-sender {
  display: block;
  color: #921c29;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 10px;
}

.about-intro .intro-chat .chat-bubble h2 {
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 10px;
  letter-spacing: 0;
}

.about-intro .intro-chat .chat-bubble p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

/* CHAT CONVERSATION */

.about-intro .chat-conversation {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.about-intro .chat-conversation .chat-avatar {
  width: 55px;
  height: 55px;
  min-width: 55px;
  max-width: 55px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.about-intro .chat-messages .chat-bubble {
  background: #e9edf2;
  padding: 18px 22px;
  border-radius: 8px 20px 20px 20px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.about-intro .chat-messages .chat-bubble p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.chat-sender {
  display: block;
  color: #921c29;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 8px;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #921c29;
  font-size: 12px;
  font-style: italic;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing-dots i {
  display: block;
  width: 5px;
  height: 5px;
  background: #921c29;
  border-radius: 50%;
  animation: typingPulse 1.2s infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingPulse {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@media (max-width: 600px) {
  .about-intro .chat-conversation {
    gap: 10px;
  }

  .about-intro .chat-conversation .chat-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
  }

  .about-intro .chat-messages .chat-bubble {
    padding: 14px 16px;
  }

  .about-intro .chat-messages .chat-bubble p {
    font-size: 15px;
  }
}

/* FIX: CHAT DESIGN */

.about-page .about-intro .chat-conversation {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}

.about-page .about-intro .chat-conversation img.chat-avatar {
  display: block;
  width: 55px !important;
  height: 55px !important;
  min-width: 55px;
  max-width: 55px !important;
  max-height: 55px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  flex-shrink: 0;
}

.about-page .about-intro .chat-messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.about-page .about-intro .chat-messages .chat-bubble {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  background-color: #e9edf2;
  border-radius: 18px;
  padding: 18px 22px;
  margin: 0;
}

.about-page .about-intro .chat-messages .chat-bubble p {
  font-family: Arial, sans-serif;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.6;
  letter-spacing: 0;
  margin: 0;
}

.about-page .about-intro .chat-messages .chat-sender {
  display: block;
  color: #921c29;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 8px;
}

.about-page .about-intro .chat-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #921c29;
  font-size: 15px;
  font-style: italic;
  margin-top: 8px;
}

.about-detail .lia-date {
  color: #921c29;
  font-weight: 600;
  margin-top: 25px;
}

/* Större text i chatten */

.about-page .chat-sender {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.about-page .chat-typing {
  font-size: 16px;
  font-weight: 400;
  margin-top: 12px;
}

/* Lite större animerade prickar */

.about-page .typing-dots i {
  width: 7px;
  height: 7px;
}

/* Större namn och typing-text */

.about-page .about-intro .chat-messages .chat-sender {
  font-size: 18px !important;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 12px;
}

.about-page .about-intro .chat-typing,
.about-page .about-intro .chat-typing span {
  font-size: 18px !important;
  font-weight: 400;
  line-height: 1.4;
}

.about-page .typing-dots i {
  width: 8px;
  height: 8px;
}

/* Behåll stora rubriken på Om mig */

.about-page .about-main-title {
  font-size: clamp(60px, 10vw, 160px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 35px 0 70px;
  color: #171717;
}

.about-page .about-main-title span {
  color: #921c29;
}

/* LIA-datum */

.about-page .lia-date {
  color: #921c29;
  font-weight: 600;
  margin-top: 25px;
}
.about-page .about-hero {
  padding-top: 55px;
}

/* ---------- RESPONSIVT (okt 2026) ---------- */
.hero h1 {
  font-size: clamp(40px, 6.7vw, 110px);
  letter-spacing: -0.045em;
  overflow-wrap: normal;
}
.about-page .about-main-title,
.about-hero h1 {
  font-size: clamp(44px, 8vw, 125px);
  letter-spacing: -0.045em;
}
.about-main-title {
  overflow-wrap: normal;
}

@media (max-width: 760px) {
  .hero {
    padding: 60px 6%;
  }
  .hero h1 {
    font-size: clamp(34px, 8.3vw, 64px);
    letter-spacing: -0.045em;
    line-height: 1.05;
  }
  .hero-description {
    font-size: 17px;
  }
  .hero-button {
    font-size: 16px;
    max-width: 100%;
  }
  .about-hero {
    padding: 55px 6%;
  }
  .about-page .about-main-title {
    font-size: clamp(43px, 10vw, 74px);
  }
  .about-details {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 60px 6%;
  }
  .about-bottom {
    padding: 65px 6%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(30px, 8vw, 40px);
  }
  .about-page .about-main-title {
    font-size: clamp(38px, 10vw, 50px);
  }
  .about-intro .chat-conversation {
    gap: 8px;
  }
  .about-intro .chat-conversation .chat-avatar {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 36px;
  }
  .about-intro .chat-messages .chat-bubble {
    padding: 13px 14px;
  }
  .about-intro .chat-messages .chat-bubble p {
    font-size: 15px;
  }
}

/* ---------- CHATTBUBBLOR – SCROLL-ANIMATION ---------- */
.chat-bubble {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-bubble.chat-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tillgänglighet */
@media (prefers-reduced-motion: reduce) {
  .chat-bubble {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
