* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  color: #333;
  font-family: "Noto Sans", serif;
  background-color: #f2f1df;
  scroll-behavior: smooth;
  min-height: 100vh;
  
}

/* COOKIES */

.cookie-banner {
  position: fixed;
  left: 50%;
  margin:0;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 1400px;
  background: rgba(245, 245, 245, 0.9);
  color: #222;
  padding: 0.5rem 1rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  font-size: 1rem;
  text-align: center;
  z-index: 1000;
}

.cookie-banner p {
  margin: 0;
  color: #222;
  display: inline-block;
  vertical-align: middle;
}

.cookie-banner button {
  margin-left: 0.75rem;
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  vertical-align: middle;
  transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
  background-color: orange;
}

/* Read more and close details buttons look like links */
.cookie-banner button.read-more-btn {
  font-size: 0.7rem;
  font-weight: 300;
  background: #333; 
  color: whitesmoke;
}

.close-details-container {
  text-align: center;
  width: 100%;
}
.cookie-banner button.close-details-btn {
  background: #333;
  color: whitesmoke;
  font-size: 0.7rem;
  margin: 2rem;
}

.cookie-banner button.close-details-btn:hover {
  background: #333;
}


.cookie-details {
  margin-top: 1rem;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

.youtube-video.hidden {
  display: none !important;
}


header {
  background-color: #f2f1df;
  max-width: 1400px;
  width:100%;
  padding-top: env(safe-area-inset-top);
}
main {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Sans", sans-serif;
  font-weight:700;
  letter-spacing: 0.1rem;
  color: #222;
}

p {
    font-family: "Noto Sans", serif;
    color: #333;
  }

.fade-in-section {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
  }
  
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
  }


/* HEADER */
.glass-header-flow {
  position: static;
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
  background-color: #1e1e1e;
  padding: 0.1rem;
  border-radius: 0;
  transition: all 0.5s ease;
}

.glass-header-flow:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.glass-header-flow .nav-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.2rem;
}

.glass-header-flow .logo img {
  height: 3rem;
  width: auto;
  filter: grayscale(100%);
  transform: scale(1.2);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.glass-header-flow .logo img:hover {
  filter: grayscale(0%);
}

.glass-header-flow .desktop-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
}

.glass-header-flow .desktop-links a {
  text-decoration: none;
  color: whitesmoke;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0.5rem;
}

.glass-header-flow .desktop-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #bf6341;
  transition: width 0.3s ease;
}

.glass-header-flow .desktop-links a:hover::after {
  width: 100%;
}

/* === MOBILHEADER === */

.mobile-nav {
  display: none;
  position: relative;
  padding: 1rem;
  background-color: #1e1e1e;
}

.mobile-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-logo img {
  height: 5rem;
  width: auto;
}

/* Hamburgaren */
.hamburger-lines {
  width: 30px;
  height: 22px;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger-lines span {
  height: 4px;
  background: whitesmoke;
  border-radius: 2px;
  transition: 0.4s;
}

/* Animation för "öppen meny" */
.hamburger-lines.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-lines.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-lines.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobil-länkar */
#mobileLinks {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

#mobileLinks a {
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
}

#mobileLinks.active {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* === MEDIA QUERY: MOBILVERSION === */
@media (max-width: 768px) {
  .glass-header-flow {
    display: none;
  }

  .mobile-nav {
    display: block;
    justify-content: center;
    background-color: transparent;
    padding: 0; 
  }

  .mobile-logo {
    display: none;
  }
  
}



/* HERO */

.hero {
  position: relative;
  height: calc(100vh - 5.5rem);
  width: 100%;
  max-width:1400px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center; 
  align-items: center;   
  padding: 2rem;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('images/jessica-lewis-thepaintedsquare-DeyfdybVQhA-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 1rem;
  width: 50%;
  z-index: 1;
}

.hero-text h1 {
  font-family: "Noto Sans", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: whitesmoke;
}

.hero-text h2 {
  font-size: 1.5rem;
  line-height: 1.6;
  color: whitesmoke;
}

@media (max-width: 768px) {
  .hero-text {
    width: 100%;
    max-width: 90%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 1.5rem;
    z-index: 1;
  }
}

/*PILAR NERÅT MED BOUNCE */

.scroll-down-wrapper {
  position: absolute;   
  bottom: 0;
  left: 50%;           
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  margin-top: 0;     
}

.scroll-text {
  font-size: 1rem;
  font-family: "Noto Sans", sans-serif;
  color: whitesmoke;
  margin-bottom: 0.1rem;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  cursor: pointer
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.scroll-down-indicator {
  font-size: 2rem;
  color: whitesmoke;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  animation: bounce 2s infinite;
}

@media (max-width: 768px) {
  .scroll-down-indicator {
    font-size: 4rem;
  }

  .scroll-text {
    display: none;
  }
}

/* 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%;
  }
}

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

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

.contact-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  justify-content: space-between;
}

/* FORMULÄRET TILL VÄNSTER */
.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;
}

.contact-button {
  position: relative;
  display: inline-block;
  width: fit-content;
  padding: 1rem 2rem;
  background-color: #5a5a5a;
  color: whitesmoke;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0.9px 1.8px 1.8px hsl(0deg 0% 0% / 0.47);
  overflow: hidden;
}

.contact-button span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  pointer-events: none; /* så inte text/ikon fångar musen */
  user-select: none;
  white-space: nowrap;
}

.contact-button .icon {
  opacity: 0;
}

.contact-button:hover .text {
  opacity: 0;
}

.contact-button:hover .icon {
  opacity: 1;
  pointer-events: auto;
}


/* 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;
}

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

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

/* KONTAKTINFO TILL HÖGER */
.contact-info {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.25);
  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;               /* startar med höjd 0 */
  background-color: #bf6341;
  opacity: 1;              /* behåll synlig men höjden är 0 */
  transition: height 0.3s ease;
}

.contact-info a:hover::before {
  height: 100%;           /* väx till full höjd */
}


.contact-info i {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .contact-info {
    align-items: center;      /* centrera innehållet */
    text-align: center;
  }

  .contact-info a {
    padding-left: 0;          /* ta bort padding-left för linjen */
  }

  .contact-info a::before {
    display: none;            /* ta bort linjen */
  }

  .contact-wrapper h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .contact-form button {
    width: 100%;
    text-align: center;

  }
  .contact-form button:hover {
    transform: none;
    color: whitesmoke;
    background-color: #5a5a5a;
  }
}


/* === MY PROJECTS IN INDEX === */
.projects-section {
  background-color: #f2f1df;
  width:100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

.projects-section h1 {
  font-size: 2.5rem;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.project-card {
  background-color: whitesmoke;
  border-radius: 0.5rem;
  box-shadow: 0.9px 1.8px 1.8px hsl(0deg 0% 0% / 0.47);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 1.8px 3.7px 3.7px hsl(0deg 0% 0% / 0.44);
}

.project-card > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.2rem;
}

.project-card h3 {
  text-align: center;
}

.project-card p {
  font-size: 1rem;
  color: #444;
  margin-top: 1rem;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 0.5rem;
}


.tag {
  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;
}

.tag-icon {
  width: auto;
  height: 20px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 1.2rem;
  background-color: #444;
  color: whitesmoke;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #2e2d2d;
}

@media (max-width: 768px) {
  .project-card p {
    text-align: center;
  }

  .tag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .project-card:hover {
    transform: none;
    box-shadow: 0.9px 1.8px 1.8px hsl(0deg 0% 0% / 0.47);
  }
  
  .btn:hover {
    background-color: #444;
  }
}


/* === FOOTER === */
footer {
  background-color: #1e1e1e;
  width:100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  color: whitesmoke;
}

.social-footer a {
  color: whitesmoke;
  font-size: 1.8rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-footer a:hover {
  color: #bf6341;
}

.copyright-text {
  font-size: 0.8rem;
  color: whitesmoke;
}

/* CITAT */

.quote-carousel {
  width: 100%;
  max-width: 1400px; 
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
  padding: 2rem 1rem;
  background-color: #3b3b3b;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quote-title {
  font-family: "Noto Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: whitesmoke;
  text-align: center;
  margin-bottom: 2rem;
}


.quote-track {
  display: flex;
  align-items: center;
  text-align: center;
  transition: transform 0.5s ease-in-out;
}

.quote {
  color: whitesmoke;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 0 0 calc(100% / 3);
  padding: 0 1rem;
  box-sizing: border-box;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.quote-soft {
  font-size: 0.9rem;
  font-weight: 300;
  font-style:italic;
}
.quote.focus {
  opacity: 1;
  font-weight: bold;
}

/* === PROJEKTSIDOR (GEMENSAM DESIGN) === */
.projectpage-start {
  padding: 1rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 2rem;
  background-color: grey;
  text-align: center;
  position: relative;
  z-index: 1;

  background-image: url('foxio_images/T_Skybox_Panoramic03.png');
  background-size: cover;        
  background-position: center;  
  background-repeat: no-repeat;
}

.projectpage-title-start h1 {
  padding: 1rem 2rem;
  display: inline-block;
  min-width:60%;
  max-width: 90%;
  background-color: transparent;
  border-radius: 1.5rem;
  color: #222;
  font-weight: 1000;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.3rem;
}

.projectpage-video-start {
  width: 60%;
  margin: 0 auto;
  max-width: 1400px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}


.projectpage-video-start iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: relative;
  top: 0;
  left: 0;
}

.youtube-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  padding: 2rem;
  border: none;
  text-align: center;
  width: 100%; 
  height: 100%; 
  position: absolute;
  top: 0;
  left: 0;
}

.youtube-video-placeholder p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.youtube-video-placeholder button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}

.youtube-video-placeholder button:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .projectpage-start {
    padding-bottom: 2rem;
  }

  .projectpage-title-start h1 {
    display: inline-block;
    width:90%;
  }

  .projectpage-video-start {
    width:90%;
  }
  
}


/* ÖVERSIKTEN */

.project-overview-area {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #f2f1df;
  z-index: 1;
  overflow: hidden;
  font-family: 'Noto Sans', sans-serif;
}

.project-overview-title {
  font-family: "Noto Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center; 
}

.project-overview-info-blocks {
  display: flex;
  gap: 1rem;
  width: 90%;
  margin: 0 auto;
  text-align: left;
  font-family: 'Noto Sans', sans-serif;
  padding:0.2rem;
  align-items: flex-start;
}

.project-overview-info-blocks h2{
  margin: 0;
}

/* GOALS ETC. */
.left-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1; 
}

/* TECHNICAL INFO */
.right-block {
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
}

/* INFO-BLOCKS */
.info-block {
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  border-radius: 0.8rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.info-block:hover {
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.info-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: whitesmoke;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-block h2 i {
  font-size: 1.5rem;
  color: whitesmoke;
}

.info-block p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: white;
  margin: 0;
}


/* ===== Box-container för ikoner + text ===== */
.box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 0.5rem;
}

/* Varje box blir flex-rad med ikon + text */
.box {
  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;
}

/* Gemensam ikon-klass för alla png-ikoner */
.box-icon {
  width: auto;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}


.project-overview-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  
}

.overview-subtitle {
  flex: 1;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.5rem;
  color: #333;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.overview-subtitle h3 {
  margin: 0;
}

.overview-subtitle p {
  font-family: "Noto Serif", serif;
  font-size: 1rem;
  text-align: justify;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.overview-video-container {
  position: relative;
  flex: 2;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.overview-video-container video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .project-overview-info-blocks {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .info-block h2,
  .info-block p {
    text-align: center;
  }

  .left-blocks,
  .right-block {
    width: 100%;
    margin-bottom: 1rem;
  }

  .project-overview-bottom {
    flex-direction: column;
    max-width: 100%;
    gap: 1rem;
    margin: 0 auto;
  }

  .overview-subtitle h3 {
    text-align: left;
    padding-bottom: 0.5rem;
  }

  .overview-subtitle p {
    text-align: justify;
  }

  .overview-subtitle p {
    text-align: left;
    margin: 0 auto;
    max-width: 600px;
  }

  .overview-video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  .overview-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
  }
}




/*MY CONTRIBUTIONS */
.my-contributions-area {
  width:100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

.my-contributions-area h2 {
  font-family: "Noto Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  padding-bottom: 1.5rem;
}

.contributions-container {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.left-image {
  position: relative;
  width: 25rem;
  height: 25rem;
  overflow: hidden;
  flex-shrink: 0;
}

.left-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.left-image img.active {
  opacity: 1;
  pointer-events: auto;
}

.right-contributions {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

.contribution-block {
  background-color: whitesmoke;
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  cursor: default;
  max-width: 100%;
  flex: 1 1 calc(33.333% - 1rem); 
  min-width: 200px;              
  max-width: 100%;
  box-sizing: border-box;        
}

.contribution-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.contribution-footer p {
  color: #555;
  font-weight: 400;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  .contributions-container {
    flex-direction: column;
  }

  .left-image {
    order: -1;
    max-width: 100%; 
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .right-contributions {
    order: 0;
  }

  .contribution-footer {
    order: 1;
  }
}




/* 3D-bilder */

.images-section {
  font-family: 'Noto Sans', sans-serif;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  color: #333;
  background-color: #f2f1df;
  padding: 1rem;
}

.images-section h2 {
  font-family: "Noto Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  margin: 2rem 0 1rem 0;
  text-align: center;
}

/* Grid för 3D iframes: 4 per rad */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Grid för foton: 2 per rad */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

/* Stil för iframes och bilder i 3D-griden */
.image-grid iframe,
.image-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
  display: block;
  object-fit: cover;
  overflow: hidden;
}

/* Stil för bilder i photo-grid */
.photo-grid img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
  object-fit: contain;
  display: block;
  overflow: hidden;
}

/* Mobilanpassning */
@media (max-width: 768px) {
  .images-section {
    padding: 0.1rem;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .image-grid iframe,
  .image-grid img,
  .photo-grid img {
    width: 100%;
    max-width: 100%;
  }
}




/*BILDGALLERI-SEKTION*/

/* === Bildspelssektion: container och rubriker === */
.multi-carousel-section {
  max-width: 1400px;
  margin: 0 auto;
  font-family: "Noto Sans", sans-serif;
  text-align: center;
  padding: 1rem;
  background-color: #1e1e1e;
}

.multi-carousel-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: "Noto Sans", sans-serif;
  color: whitesmoke;
}

.multi-carousel-container {
  position: relative;
  overflow: hidden;
}

.multi-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.multi-carousel-track {
  display: flex;
  gap: 15px;
  transition: transform 0.5s ease;
}

.multi-carousel-item {
  flex: 0 0 calc(33.333% - 10px);
}

.multi-carousel-item img {
  width: 100%;
  border-radius: 1rem;
  display: block;
}

.multi-prev,
.multi-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  color: rgba(255, 255, 255, 0.4); /* Halvtransparent vit färg */
  font-size: 1.2rem; 
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  border-radius: 0.5rem;
  user-select: none;
  z-index: 10;
  transition: color 0.3s ease;
  background: transparent;
}

.multi-prev {
  left: 0.5rem;
}

.multi-next {
  right: 0.5rem;
}

.multi-prev:hover,
.multi-next:hover {
  color: rgba(255, 255, 255, 0.9);
}

.multi-carousel-viewport.dragging {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.multi-carousel-viewport {
  cursor: grab;
  cursor: -webkit-grab;
}

.multi-carousel-item img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

@media (max-width: 768px) {
  /* Behåll maxbredd och centrering men ta bort onödig padding/marginal */
  .multi-carousel-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1rem; /* Lite mindre padding för mobil */
    margin-bottom: 0;      /* Ingen extra margin under sektionen */
  }

  /* Rubriken anpassas för mindre skärm */
  .multi-carousel-section h2 {
    font-size: 1.6rem;
    margin: 0 0 1rem 0;   /* Inga toppmarginaler, men lite under */
  }

  /* Bildkarusellens items — visa 2 bilder bredvid varandra med lite gap */
  .multi-carousel-item {
    flex: 0 0 calc(50% - 10px);
    margin-right: 0;  /* Ta bort extra marginal om satt */
  }

  /* Om du har gap mellan bilder via flex-gap */
  .multi-carousel-track {
    gap: 10px;
  }

  /* Navigationsknapparna mindre och enklare på mobil */
  .multi-prev,
  .multi-next {
    font-size: 1rem;
    padding: 0.5rem;
  }
}

  /* NIGHT TO DAY TRANSITION */

.ntd-area {
  font-family: 'Noto Sans', sans-serif;
  background-color: #f2f1df;
  max-width: 1400px;
  margin: 0 auto;
  color: #333;
  padding: 1rem;
}

.ntd-area h2 {
  font-family: "Noto Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 2rem;
  text-align: center;
}

.ntd-video-iframe-container {
  position: relative;
  width: 90%;
  max-width: 1400px;
  margin: 2rem auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0.2rem;
  overflow: hidden;
}

.ntd-video-iframe-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.ntd-video-text p {
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  border-radius: 0.8rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.4rem;
  line-height: 1.5;
  text-align: center;
  font-weight: 400;
  color: whitesmoke;
  max-width: 90%;
  margin: 1rem auto 0 auto;
}


/*BRANDING-SECTION */

.branding-area {
  font-family: 'Noto Sans', sans-serif;
  max-width: 1400px;
  width:100%;
  margin: 0 auto;
  color: #333;
  padding: 1rem;
}

.branding-area h2 {
  font-family: "Noto Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 2rem;
  text-align: center;
}

.branding-images-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr 1.5fr; /* Andelar istället för fasta px */
  grid-template-rows: repeat(2, minmax(180px, auto));
  gap: 0.5rem;
  width: 100%;             /* Ta hela tillgängliga bredden */
  box-sizing: border-box;
}

.branding-images-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

/* Bildplacering */
.img1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.img2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.img3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.img4 {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}

.img5 {
  grid-column: 4 / 5;
  grid-row: 1 / 3;
}

/* Responsiv anpassning */
@media (max-width: 1024px) {
  .branding-images-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, minmax(150px, auto));
  }
  
  .img1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  
  .img2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  
  .img3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  
  .img4 {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
  }
  
  .img5 {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }
}

@media (max-width: 600px) {
  .branding-images-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
  }
  
  .img1, .img2, .img3, .img4, .img5 {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
    height: 200px; /* kan justeras */
  }
}



/* USER TESTS */
.user-tests-area {
  font-family: 'Noto Sans', sans-serif;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #f2f1df;
}

.user-tests-area h2 {
  font-family: "Noto Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 2rem;
  text-align: center;
}

.user-tests-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  /* Vanlig ordning: text vänster, bilder höger */
  flex-direction: row;
}

/* Textområde till vänster */
.left-user-tests {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 250px;
  
}

.left-user-tests p {
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 400;
  color: #333;
  text-align: justify;
}

/* Bildområde till höger med två bilder i rad */
.user-tests-right-images {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  min-width: 250px;
}

.user-tests-right-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Responsiv anpassning */
@media (max-width: 768px) {
  .user-tests-container {
    flex-direction: column;
  }
  
  .left-user-tests, 
  .user-tests-right-images {
    min-width: 100%;
  }
  
  .left-user-tests {
    gap: 1.5rem;
  }
}

/* MISC GALLERY */
.misc-project-gallery {
  max-width: 1400px;
  width:100%;
  margin: 0 auto;
  color: whitesmoke;
  padding: 1rem;
  background-color: #1e1e1e;
  text-align: center;
}

.misc-project-gallery h2 {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  color: whitesmoke;
  padding-bottom: 1.5rem;
}

.misc-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.misc-gallery-grid img {
  width: 200px;
  border-radius: 0.5rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
}

.misc-gallery-grid img:hover {
  transform: scale(1.05);
}

/* Modal-stil */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  display: block;
  margin: auto;
  max-width: min(80%, 1000px);
  max-height: min(50%, 400px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  background-color: transparent;
  font-size: 1.5rem;
  padding: 0 0.5rem;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  user-select: none;
  transition: color 0.3s ease;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  color: rgba(255, 255, 255, 0.4); /* Halvtransparent vit färg */
  font-size: 1.2rem; 
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  z-index: 10;
  transition: color 0.3s ease;
  background: transparent;
}

.modal-prev {
  left: 4px;
}

.modal-next {
  right: 4px;
}

.modal-prev:hover,
.modal-next:hover,
.modal-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

/*BACK TO PROJECTS*/
.back-to-projects {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem;
}

.back-to-projects h3 {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center; 
}

.back-to-projects h3 i {
  color: #007bff;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

@keyframes bounceY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2rem); 
  }
}

.back-to-projects h3:hover {
  animation: bounce 0.4s ease;
}

.back-to-projects h3:hover i {
  transform: none;
}

@media (max-width: 480px) {
  .back-to-projects h3 {
    font-size: 1.2rem;
    gap: 0.3rem;
  }

  .back-to-projects h3 i {
    font-size: 1.4rem;
  }
}
