/* Custom font-face for Futura Cyrillic Bold */
@font-face {
  font-family: 'Futura Cyrillic Bold';
  src: url('../font/FuturaCyrillicBold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Reset av standardstilar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

/* Overlay för fade-to-black effekt */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 200;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Header med logotyp och navigationsmeny */
header {
  position: fixed;
  top: 10;
  left: 0;
  width: 100%;
  z-index: 300;
  background: rgba(31,15,11,0.7);
  display: flex;
  align-items: center;
  padding: 10px 20px;
}

header img {
  height: 50px;
  max-width: 100%;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
  margin-right: 30px;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 400;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
}

/* Navigation styling for desktop */
nav ul {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}

nav ul li {
  margin: 0 30px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s ease;
  font-family: 'Futura Cyrillic Bold', sans-serif;
  text-transform: uppercase;
}

nav ul li a:hover {
  color: #ddd;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 0 50px;
}

/* General section spacing (reduced) */
section {
  padding: 20px 0;
  scroll-margin-top: 150px; /* Increased from 120px */
}

/* Om Ulrika */
#om-ulrika {
  position: relative;
  background: url('../images/ulrikaspeaking.jpg') no-repeat left top/cover;
  color: #fff;
  text-align: left;
  padding: 100px 0;
}

#om-ulrika::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  right: 0; 
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

#om-ulrika .container {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

/* Big text style for highlighted phrase */
.big-text {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'Futura Cyrillic Bold', sans-serif;
  text-transform: uppercase;
}

/* Exempel på projekt */
#projekt {
  position: relative;
  background: url('../images/blue.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: left;
  padding: 20px 0;
}

#projekt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

#projekt .container {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

.project-item {
  flex: 1 1 300px;
  text-align: left;
}

.project-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

.project-item h3 {
  font-size: 1.4em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  margin-bottom: 0.5em;
}

.client {
  display: block;
  font-size: 0.8em;
  font-weight: normal;
  margin-top: 0.2em;
}

/* Bakgrund */
#bakgrund {
  position: relative;
  background: url('../images/dark.jpeg') no-repeat center center/cover;
  color: #fff;
  text-align: left;
  padding: 20px 0;
}

#bakgrund::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* New gradient fade at bottom for Bakgrund (fade to black) */
#bakgrund::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15%;
  background: linear-gradient(to bottom, transparent, black);
  z-index: 2;
}

#bakgrund .container {
  position: relative;
  z-index: 3;
  padding: 0 20px;
}

#bakgrund h2,
#bakgrund h3 {
  color: #fff;
}

#bakgrund p.intro {
  margin-bottom: 20px;
}

#bakgrund ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  column-count: 3;
  column-gap: 20px;
}

#bakgrund ul li {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #fff;
}

/* Kontakt */
#kontakt {
  position: relative;
  background: black;
  color: #fff;
  text-align: left;
  padding: 20px 0;
}

#kontakt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

#kontakt .container {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  text-align: left;
}

#kontakt h2 {
  font-size: 1.2em;
  margin-bottom: 5px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  text-align: left;
}

#kontakt .contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  text-align: left;
}

#kontakt p.contact-email {
  font-size: 1.6rem;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #fff;
  text-align: left;
}

#kontakt p {
  font-size: 1.6rem;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  text-align: left;
}

#kontakt p a {
  color: #fff;
  text-decoration: none;
}

.social {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.social a {
  text-decoration: none;
}

.social a img {
  height: 28px;
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }
  header img {
    height: 40px;
    margin: 0;
  }
  .hamburger {
    display: flex;
  }
  /* Position nav absolutely below header on mobile */
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
  }
  nav.active {
    display: block;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-end;
    padding: 10px 20px;
  }
  nav ul li {
    margin-bottom: 10px;
    margin-right: 0;
  }
  nav ul li a {
    text-transform: uppercase;
  }
  section {
    scroll-margin-top: 150px;
  }
  #bakgrund ul {
    column-count: 1;
    column-gap: 10px;
  }
}
