
/* ========== GLOBALT ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #191418;
  color: #ffffff;
}

strong {
  color: #ffd628;
  font-weight: 600;
}

h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #ffd628;
  margin: 0 0 20px;
}

h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: #ffd628;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

/* UL utan bullets globalt */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ========== HEADER ========== */

.site-header {
  text-align: center;
  padding: 40px 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  margin: 0;
  font-size: 36px;
}

/* ========== SELECTED WORK / PROJECT STRIP ========== */

.selected-work {
  display: flex;
  justify-content: center;
  padding: 40px 16px 80px;
}

.project-strip {
  display: flex;
  max-width: 1200px;
  width: 100%;
  height: 600px;
  border-radius: 38px;
  overflow: hidden;
}

/* Projektkort */

.project-card {
  position: relative;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition:
    flex 0.4s ease,
    filter 0.3s ease,
    transform 0.3s ease;
}

/* Dimma alla kort lite när man hovrar över raden */
.project-strip:hover .project-card {
  filter: brightness(0.7);
}

/* Aktivt kort */
.project-card:hover {
  flex: 3;
  filter: brightness(1);
  transform: scale(1.01);
}

/* Overlay med tittel + kategori */

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(
    to top,
    rgba(5, 10, 25, 0.75),
    rgba(5, 10, 25, 0.0)
  );
  color: #f9fafb;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-overlay h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.project-overlay p {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Bakgrunnsbilder */

.project-1 { background-image: url("img/project1.jpg"); }
.project-2 { background-image: url("img/project2.jpg"); }
.project-3 { background-image: url("img/project3.jpg"); }
.project-4 { background-image: url("img/project4.jpg"); }
.project-5 { background-image: url("img/project5.jpg"); }

/* ========== MODAL / LIGHTBOX (FELLES FOR PROJECT & SERVICE) ========== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 40;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #000000;
  border-radius: 20px;
  max-width: 960px;
  width: 100%;
  padding: 24px;
  display: flex;
  gap: 24px;
  position: relative;
  color: #ffffff;
}

/* Gult close-ikon + liten hover-effekt */
.close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #ffd628;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.close:hover {
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(255, 214, 40, 0.7);
}

/* Modal-bild med subtil puls */

.modal-img-wrap {
  flex: 1.1;
  border-radius: 18px;
  overflow: hidden;
  animation: softPulse 4s ease-in-out infinite;
}

@keyframes softPulse {
  0% {
    box-shadow: 0 0 8px rgba(255, 214, 40, 0.08);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 214, 40, 0.35);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 214, 40, 0.08);
  }
}

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

.modal-text {
  flex: 1;
  text-align: left;
  max-height: 420px;
  overflow-y: auto;
  color: #ffffff;
}

.modal-text h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.modal-text p {
  margin-top: 0;
  line-height: 1.5;
  font-size: 14px;
  color: #ffffff;
}

/* ========== DESIGNER SECTION (ABOUT + 3 CARDS) ========== */

.designer-section {
  padding: 80px 16px 96px;
  background: #191418;
}

.designer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Toppraden: Heading venstre, tekst høyre */

.designer-header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.designer-section h2 {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  color: #ffffff;
}

.designer-description {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #d7d3d8;
}

/* Kort-rad */

.designer-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
}

/* Selve kortene */

.designer-card {
  flex: 1 1 0;
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 214, 40, 0.45) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(11, 71, 43, 0.9) 0, #050506 65%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.card-2 {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 214, 40, 0.35) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(43, 71, 11, 0.8) 0, #050506 65%);
}

.card-3 {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 214, 40, 0.3) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(71, 55, 11, 0.8) 0, #050506 65%);
}

.designer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.9);
}

/* Tekst i kort */

.designer-card-top h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.designer-card-top p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e1dde3;
}

/* Ikoncontainer nederst i kortet */
.designer-card-bottom {
  margin-top: 32px;
  display: flex;
  align-items: flex-end;
}

/* Base for alle ikoner – gul glow + puls */
.designer-card-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 214, 40, 0.85);
  box-shadow: 0 0 10px rgba(255, 214, 40, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconPulse 2.6s ease-in-out infinite;
}

/* Litt forskjøvet timing på pulsen per kort */
.card-1 .designer-card-icon {
  animation-delay: 0s;
}
.card-2 .designer-card-icon {
  animation-delay: 0.18s;
}
.card-3 .designer-card-icon {
  animation-delay: 0.36s;
}

/* === Formene inni ikonene === */

/* Kort 1 – kryss (X) */
.card-1 .designer-card-icon::before,
.card-1 .designer-card-icon::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 2px;
  background: #ffd628;
  border-radius: 999px;
}

.card-1 .designer-card-icon::before {
  transform: rotate(45deg);
}

.card-1 .designer-card-icon::after {
  transform: rotate(-45deg);
}

/* Kort 2 – sirkel */
.card-2 .designer-card-icon::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 999px;
  border: 2px solid #ffd628;
}

/* Kort 3 – firkant (outline) */
.card-3 .designer-card-icon::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid #ffd628;
  border-radius: 4px; /* lite rundning for moderne look, ändra til 0 om du vill ha helt square */
  box-sizing: border-box;
}

/* Puls + gul glow-animasjon */
@keyframes iconPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 214, 40, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(255, 214, 40, 0.85);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 214, 40, 0.4);
  }
}

/* ========== RESPONSIVT ========== */

@media (max-width: 960px) {
  .designer-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .designer-section h2 {
    font-size: clamp(2rem, 5vw, 2.4rem);
  }

  .designer-description {
    max-width: 620px;
  }

  .designer-cards {
    flex-direction: column;
    gap: 24px;
  }

  .designer-card {
    min-height: 0;
  }
}
/* ====== 16:9 videoseksjon ====== */
.video-section {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 16px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

/* Selve videoen */
.video-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
@media (max-width: 900px) {
  .project-strip {
    flex-direction: column;
    height: auto;
  }

  .project-card {
    flex: 1 0 180px;
  }

  .project-strip:hover .project-card {
    filter: brightness(1);
  }

  .project-card:hover {
    flex: 1;
    transform: none;
  }

  .modal-content {
    flex-direction: column;
  }

  .modal-img-wrap,
  .modal-text {
    flex: none;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 24px 12px 16px;
  }

  .designer-section {
    padding: 64px 16px 80px;
  }

  .designer-section h2 {
    font-size: 1.9rem;
  }
}
