/* ALLMÄN */
html, body {
  height: 100%;
  margin: 0;
  
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  
}

main {
  flex: 1;
  background-image: url("img/background.png");
  background-size: cover;      
  background-position: center; 
}

.intro {
  display: flex;
  gap: 50px; 
  padding: 50px;
  flex-wrap: wrap;
  border-bottom: 1px solid white;
  
}

.name-card, .company-card {
  background-color: #f0f0f0; 
  padding: 20px;
  border-radius: 8px;
  flex: 1; 
  min-width: 100%; 
  font-family: 'Playfair Display', serif;
  font-weight: 400; /* elegant men inte för tjock */
  min-width: 0; 
}

.name-card:hover {
  transform: translateY(-6px);              
  box-shadow: 0 14px 30px rgba(0,0,0,0.12); 
}

.company-card:hover {
  transform: translateY(-6px);              
  box-shadow: 0 14px 30px rgba(0,0,0,0.12); 
}

/* Själva länken */
.contact-link {
  color: white;          /* eller samma färg som texten */
  text-decoration: none; /* ta bort blå underline */
  font-weight: 500;
}

/* Hover-effekt (valfri men snygg) */
.contact-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}


/* ------------------ About Section Layout ------------------ */
.about-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 100px 80px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Profilbild */
.profile-figure {
  width: 320px;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.profile-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bubblor bredvid profilbilden */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 250px;
}


/* Enskild bubbla */
.bubble {
  background-color: #f7f8fa;
  border-radius: 18px;
  padding: 30px 35px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Rubriker */
.about-text h2,
.competencies h3 {
  font-family: 'Playfair Display', serif;
  color: #225d81;
  margin-bottom: 15px;
  border-bottom: 3px solid #225d81;
  display: inline-block;
  padding-bottom: 4px;
}

/* Listor / punkter */
.about-text ul,
.competencies ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.about-text li,
.competencies li {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.about-text li::before,
.competencies li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #225d81;
  font-size: 18px;
}




.name-card h1
,
.company-card h1 {
  font-size: 36px;
  margin: 0 0 10px 0;
  border-bottom: 2px solid #225d81;
  display: inline-block;
  color:  #225d81;
  font-family: 'Playfair Display', serif;
  font-weight: 400; /* elegant men inte för tjock */
}

.name-card h2
,
.company-card  h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 15px; 
  color: #13375f;    
  font-weight: 400; /* elegant men inte för tjock */
}

.name-card2 .divider {
  display: inline-block;
  width: 2px;                /* tjocklek på linjen */
  height: 70px;              /* höjd på linjen */
  background-color: #225d81; /* färg på linjen */
}
.name-card2  {
  display: flex;
  align-items: center;       /* centrerar vertikalt */
  gap: 15px; 
}
.name-card h3
,
.company-card  h3 {
  font-size: 18px;
  margin-bottom: 15px;   
  font-family: 'Playfair Display', serif;
  font-weight: 400; /* elegant men inte för tjock */    
}

.projects {
  padding: 25px 50px;
}

.projects h2 {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  color: white;
  margin-bottom: 40px;
  border-left: 5px solid white;
  padding-left: 15px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.project-bubble {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding-top: 8px;

}

.project-bubble h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 10px;
  color: #13375f;
}

.project-bubble p {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.project-meta {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #225d81;
  border-top: 1px solid #225d81;
  padding-top: 10px;
  margin-top: auto; /* trycker ner företaget längst ner */
}

.project-bubble:hover {
  transform: translateY(-6px);              /* lyfter boxen */
  box-shadow: 0 14px 30px rgba(0,0,0,0.12); /* tydligare skugga */
}

.site-header {
  background-color: #13375f;
  color: #ffffff;
  padding: 15px 30px;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logga + text */
.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logga {
  height: 75px;
  width: auto;
}

.logo-area h1 {
  font-size: 1.4rem;
  margin: 0;
  color: #111827;
}


.site-footer {
  background-color: #13375f;
  color: #ffffff;
  padding: 50px 20px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 10px;
}

.footer-social img {
  width: 28px;
}

.footer-copy {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;   /* avstånd mellan ikon och text */
  margin-bottom: 8px;
}

.contact-item .icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.follow-row {
  display: flex;
  align-items: center; 
  gap: 20px;           
}
.follow-row .icon {
  width: 30px;  
  height: 30px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  gap: 15px;
}

.main-nav {
  display: flex;
  gap: 25px;
}

.nav-box {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 400;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

/* Hover */
.nav-box:hover {
  opacity: 0.8;
}

/* Aktiv sida */
.nav-box.active {
  border-bottom: 2px solid #38bdf8;
}

.contact-page {
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
}

.contact-page h2 {
  text-align: center;
  margin-bottom: 30px;
  color: white;
}

#kontaktForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#kontaktForm input,
#kontaktForm textarea {
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #ccc;
  font-size: 1rem;
}

#kontaktForm button {
  background: #005a96;;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

#status {
  color: white;
  margin-top: 10px;
  font-weight: 500;
}

#kontaktForm button:hover {
  background: #005a96;
}

#status {
  margin-top: 10px;
  font-weight: 500;
}

#kontaktForm label {
  color: #ffffff;      /* vit text */
  font-weight: 600;
}








@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.footer-copy{
  color: white;
}


@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
  }

  .profile-figure {
    width: 50px;   /* mindre bild på mobil */
    margin-bottom: 20px;
  }

  .about-content {
    width: 100%;
  }
}

  




@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .follow-row {
    gap: 10px;
  }

  .follow-row .icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 600px) {

  /* Intro-sektionen */
  .intro {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  /* Name & company cards */
  .name-card,
  .company-card {
    min-width: 0;          /* 🔑 detta fixar overflow */
    width: 100%;
    padding:3px;
  }

  .name-card h1,
  .company-card h1 {
    font-size: 26px;
  }

  .name-card h2,
  .company-card h2 {
    font-size: 18px;
  }
}
@media (max-width: 600px) {

  .profile-figure {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .profile-figure img {
    height: 100%;
  }
}

