/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  cursor: default;
  overflow-x: hidden;
  min-height: 100vh;
}

body.hero-page { overflow: hidden; }

body.inner-page {
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

/* ============================================================
   SITE WRAPPER
   ============================================================ */
.site-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* ============================================================
   HEADER
   ============================================================ */
.default-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 60px;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.default-header .logo img {
  display: block;
  height: 40px;
  width: auto;
}

.default-header .main-menu__list {
  display: flex;
  gap: 35px;
  align-items: center;
}

.default-header .main-menu__list a,
.default-header .main-menu__list .dropdown-toggle {
  color: #878c8f;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.default-header .main-menu__list a:hover,
.default-header .main-menu__list a.active,
.default-header .main-menu__list .dropdown-toggle:hover {
  color: #eb4a4c;
}

/* Hamburger */
.mobile-nav__toggler {
  display: none;
  background: none;
  border: none;
  color: #eb4a4c;
  font-size: 22px;
  cursor: pointer;
  padding: 5px 8px;
}

/* ============================================================
   MOBILMENY
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-nav.open .mobile-nav__overlay { opacity: 1; }

.mobile-nav__content {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background: #0a0a0a;
  padding: 30px 25px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav__content { transform: translateX(0); }

.mobile-nav__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-nav__top .logo img { height: 35px; }

.mobile-nav__close {
  background: none;
  border: none;
  color: #eb4a4c;
  font-size: 22px;
  cursor: pointer;
  padding: 5px;
}

.mobile-nav .main-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav .main-menu__list li { border-bottom: 1px solid #1e1e1e; }

.mobile-nav .main-menu__list a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  color: #878c8f;
  transition: color 0.3s;
}

.mobile-nav .main-menu__list a:hover,
.mobile-nav .main-menu__list a.active { color: #eb4a4c; }

.mobile-nav__contact { margin-top: 30px; }

.mobile-nav__contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a2a2a2;
  font-size: 14px;
  padding: 10px 0;
}

.mobile-nav__contact li i { color: #eb4a4c; width: 18px; }

/* ============================================================
   HERO (forsiden)
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 120px 20px 40vh;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.hero h1 .highlight { color: #eb4a4c; }

.hero h3 {
  font-size: clamp(18px, 2vw, 25px);
  color: #a2a2a2;
  font-weight: 500;
  margin-top: 15px;
  min-height: 1.4em;
}

.cta-btn {
  background-color: #eb4a4c;
  color: #fff;
  padding: 16px 45px;
  border-radius: 50px;
  margin-top: 40px;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s;
}

.cta-btn:hover { background-color: #fff; color: #000; }

/* ============================================================
   WAVES
   ============================================================ */
.waves {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110vh;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 92%, transparent 100%);
          mask-image: linear-gradient(to top, #000 92%, transparent 100%);
}

.waves canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 2px solid #eb4a4c;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

#custom-cursor.hover {
  width: 80px;
  height: 80px;
  background-color: rgba(235, 74, 76, 0.2);
}

#magic-cursor, #ball, .circle-accent { display: none !important; }

/* ============================================================
   INNER PAGES
   ============================================================ */
body.inner-page .page-content {
  flex: 1;
  position: relative;
  z-index: 10;
  padding-top: 140px;
  padding-bottom: 0px;
  min-height: calc(100vh - 140px);
}

body.inner-page .site-footer {
  position: relative;
  z-index: 10;
  margin-top: auto;
}

.page-hero {
  text-align: center;
  padding: 30px 20px 60px;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.page-hero h1 .highlight { color: #eb4a4c; }

.page-hero p {
  color: #a2a2a2;
  font-size: 18px;
  margin-top: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============================================================
   ABOUT HOVEDSIDE
   ============================================================ */
.about-hero-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 30px 100px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-hero-img img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  border: 1px solid #1e1e1e;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  margin: 0 auto;
}

.about-hero-text h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.1;
}

.about-hero-text h1 .highlight { color: #eb4a4c; }

.about-hero-text h3 {
  font-size: 20px;
  color: #a2a2a2;
  font-weight: 500;
  margin: 0 0 25px;
}

.about-hero-text h3 .highlight { color: #eb4a4c; }

.about-hero-text p {
  color: #b0b0b0;
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 30px;
}

.about-hero-text strong { color: #fff; }

/* ============================================================
   POPUP / MODAL
   ============================================================ */
.about-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.about-popup.active {
  visibility: visible;
  opacity: 1;
}

.about-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.about-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  max-height: 800px;
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  transition: transform 0.3s;
  overflow: hidden;
}

.about-popup.active .about-popup-content {
  transform: translate(-50%, -50%) scale(1);
}

.about-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border: 1px solid #333;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.about-popup-close:hover {
  background: #eb4a4c;
  border-color: #eb4a4c;
  transform: rotate(90deg);
}

.about-popup-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 100%;
}

.about-popup-left {
  background: #151515;
  padding: 40px 30px;
  border-right: 1px solid #1e1e1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
}

.popup-profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #eb4a4c;
  margin-bottom: 20px;
}

.popup-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-popup-left h2 {
  font-size: 24px;
  margin: 0 0 5px;
}

.about-popup-left h2 .highlight { color: #eb4a4c; }

.popup-subtitle {
  color: #a2a2a2;
  font-size: 14px;
  margin-bottom: 30px;
}

.popup-contact-list {
  width: 100%;
  text-align: left;
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
}

.popup-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b0b0b0;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed #2a2a2a;
}

.popup-contact-list li:last-child { border-bottom: none; }
.popup-contact-list li i { color: #eb4a4c; width: 16px; text-align: center; }
.popup-contact-list li a { color: #b0b0b0; text-decoration: none; transition: color 0.3s; }
.popup-contact-list li a:hover { color: #eb4a4c; }

.popup-download-btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.about-popup-right {
  padding: 40px;
  overflow-y: auto;
}

.about-popup-right::-webkit-scrollbar { width: 6px; }
.about-popup-right::-webkit-scrollbar-track { background: #0e0e0e; }
.about-popup-right::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
.about-popup-right::-webkit-scrollbar-thumb:hover { background: #eb4a4c; }

.popup-section { margin-bottom: 40px; }

.popup-section h3 {
  font-size: 20px;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #333;
  font-weight: 600;
}

.popup-section h3 .highlight { color: #eb4a4c; }

.popup-section p {
  color: #a2a2a2;
  line-height: 1.7;
  font-size: 15px;
}

.popup-section strong { color: #fff; }

.service-list { display: grid; gap: 10px; margin: 0; }
.service-list li { display: flex; align-items: center; gap: 10px; color: #a2a2a2; font-size: 15px; }
.service-list li i { color: #eb4a4c; }

/* ============================================================
   PROGRAMMING SKILLS
   ============================================================ */
.skills-bars {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill-bar { width: 100%; }

.skill-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 8px;
  color: #a2a2a2;
  font-weight: 500;
}

.progress-bar {
  position: relative;
  height: 2px;
  background: #333;
  width: 100%;
}

.progress-fill {
  position: relative;
  height: 100%;
  background: #eb4a4c;
  transition: width 0.5s ease;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #eb4a4c;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #151515;
}

/* ============================================================
   LANGUAGE SKILLS
   ============================================================ */
.language-skills {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

.lang-card { flex: 1; text-align: center; }

.lang-circle {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
}

.lang-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.lang-circle .circle-bg {
  fill: none;
  stroke: #222;
  stroke-width: 6;
}

.lang-circle .circle-progress {
  fill: none;
  stroke: #eb4a4c;
  stroke-width: 6;
  stroke-linecap: round;
}

.lang-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.lang-card p {
  color: #fff;
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 1px dashed #333;
  margin-left: 15px;
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #eb4a4c;
  border-radius: 50%;
  z-index: 2;
}

.timeline-date {
  background: #1e1e1e;
  color: #a2a2a2;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 500;
  margin-top: 2px;
}

.timeline-content { flex: 1; }

.timeline-content h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 4px;
  font-weight: 600;
  line-height: 1.3;
}

.timeline-content p {
  color: #a2a2a2;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   FEEDBACK
   ============================================================ */
.feedback-grid { display: grid; gap: 15px; }
.feedback-card { background: #151515; border: 1px solid #1e1e1e; padding: 20px; border-radius: 10px; }
.feedback-card i { color: rgba(235, 74, 76, 0.4); font-size: 24px; margin-bottom: 10px; }
.feedback-card p { color: #a2a2a2; font-size: 14px; margin-bottom: 15px; font-style: italic; }
.feedback-author h4 { font-size: 15px; margin: 0 0 2px; color: #fff; }
.feedback-author span { color: #878c8f; font-size: 12px; }

/* ============================================================
   CONTACT SIDE
   ============================================================ */
.contact-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 20px 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

.contact-info-boxes {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-info-boxes li {
  background: #151515;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: border-color 0.3s;
}

.contact-info-boxes li:hover { border-color: #eb4a4c; }

.contact-info-boxes li i {
  color: #eb4a4c;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.contact-info-boxes li span { color: #fff; font-size: 15px; }

.contact-info-boxes li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info-boxes li a:hover { color: #eb4a4c; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
.form-group { display: flex; flex-direction: column; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #151515;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 3px 20px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #878c8f; }

.contact-form input:focus,
.contact-form textarea:focus { border-color: #eb4a4c; }

.submit-btn {
  align-self: center;
  margin-top: 15px;
  padding: 6px 40px;
  font-size: 14px;
}

/* Alert */
.alert {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}
.alert.success { background: rgba(76, 175, 80, 0.15); color: #4caf50; border: 1px solid #4caf50; }
.alert.error   { background: rgba(235, 74, 76, 0.15); color: #eb4a4c; border: 1px solid #eb4a4c; }
.alert.info    { background: rgba(33, 150, 243, 0.15); color: #2196f3; border: 1px solid #2196f3; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .contact-info-boxes { margin-bottom: 20px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: transparent;
  border-top: none;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
  width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.site-footer p { color: #a2a2a2; font-size: 14px; margin: 0; }

.site-footer p a {
  color: #eb4a4c;
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer p a:hover { color: #fff; }

.footer-social { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .default-header { padding: 20px 30px; }
  .default-header .main-menu__list { gap: 24px; }
}

@media (max-width: 900px) {
  .about-hero-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-hero-grid { text-align: center; }
  .about-hero-img img { max-width: 300px; }
}

@media (max-width: 768px) {
  .default-header { padding: 16px 20px; }
  .default-header .main-menu__list { display: none; }
  .mobile-nav__toggler { display: block; }
  .waves { height: 30vh; }
  .hero { padding: 100px 20px 35vh; }
  .cta-btn { padding: 14px 36px; }
  body.inner-page .page-content { padding-top: 100px; padding-bottom: 20px; }
  .page-hero { padding: 20px 20px 40px; }
  .page-hero p { font-size: 16px; }
  .about-hero-section, .contact-section { padding: 10px 20px 40px; }
  .site-footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  #custom-cursor { display: none; }

  .about-popup-content { height: 95vh; width: 95%; }
  .about-popup-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .about-popup-left {
    border-right: none;
    border-bottom: 1px solid #1e1e1e;
    padding: 25px 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 20px;
  }
  .popup-profile-img { width: 80px; height: 80px; margin-bottom: 0; }
  .about-popup-left h2 { font-size: 20px; margin-bottom: 0; }
  .popup-subtitle { width: 100%; margin-bottom: 10px; }
  .popup-contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    width: 100%;
    margin-bottom: 15px;
  }
  .popup-contact-list li { border-bottom: none; padding: 4px 0; font-size: 13px; }
  .popup-download-btn { margin-top: 0; width: auto; padding: 10px 30px; }
  .about-popup-right { padding: 25px 20px; }
  .language-skills { flex-direction: column; align-items: center; gap: 30px; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .project-item { padding: 22px 18px; }
  .contact-form .cta-btn { align-self: stretch; text-align: center; }
  .page-hero h1 { font-size: 32px; }
  .form-row { flex-direction: column; }
}

/* ============================================================
   PORTFOLIO SLIDER
   ============================================================ */
.portfolio-section-wrapper {
  width: 40%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 0 20px;
  position: relative;
}

.portfolio-slider-container {
  overflow: hidden;
  width: 100%;
}

.portfolio-track {
  display: flex;
  gap: 15px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.portfolio-card-item {
  flex: 0 0 calc((100% - 30px) / 3); /* 3 kort desktop */
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  transition: border-color 0.3s;
}

.portfolio-card-item:hover { border-color: #eb4a4c; }

.portfolio-img-wrapper {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.portfolio-card-item:hover .portfolio-img-wrapper img { transform: scale(1.08); }

.portfolio-card-info {
  padding: 10px 5px;
  background: #0e0e0e;
  text-align: center;
}

.portfolio-card-info h6 { font-size: 13px; margin: 0 0 3px; font-weight: 600; }
.portfolio-card-info h6 a { color: #fff; text-decoration: none; transition: color 0.3s; }
.portfolio-card-info h6 a:hover { color: #eb4a4c; }
.portfolio-card-info p { font-size: 11px; margin: 0; color: #a2a2a2; }
.portfolio-card-info p a { color: #a2a2a2; text-decoration: none; transition: color 0.3s; }
.portfolio-card-info p a:hover { color: #eb4a4c; }

.portfolio-slider-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.slider-btn:hover { background: #eb4a4c; border-color: #eb4a4c; }

/* --- Tablet: 2 kort --- */
@media (max-width: 900px) {
  .portfolio-section-wrapper { width: 90%; }
  .portfolio-card-item { flex: 0 0 calc((100% - 15px) / 2); }
}

/* --- Mobil: 1 kort --- */
@media (max-width: 600px) {
  .portfolio-section-wrapper { width: 92%; }
  .portfolio-card-item { flex: 0 0 100%; }
}


/* ============================================================
   DROPDOWN MENU
   ============================================================ */

/* --- Desktop: dropdown --- */
.default-header .main-menu__list li.dropdown { position: relative; }

.default-header .main-menu__list li.dropdown > a,
.default-header .main-menu__list li.dropdown > .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.default-header .main-menu__list li.dropdown > a i,
.default-header .main-menu__list li.dropdown > .dropdown-toggle i {
  font-size: 12px;
  transition: transform 0.3s;
}

.default-header .main-menu__list li.dropdown:hover > a i,
.default-header .main-menu__list li.dropdown:hover > .dropdown-toggle i,
.default-header .main-menu__list li.dropdown.open > .dropdown-toggle i {
  transform: rotate(180deg);
}

.default-header .main-menu__list li.dropdown .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 10px 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.default-header .main-menu__list li.dropdown:hover .submenu,
.default-header .main-menu__list li.dropdown.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.default-header .main-menu__list li.dropdown .submenu li { list-style: none; }

.default-header .main-menu__list li.dropdown .submenu a {
  display: block;
  padding: 10px 20px;
  color: #a2a2a2;
  font-size: 14px;
  transition: all 0.3s;
}

.default-header .main-menu__list li.dropdown .submenu a:hover,
.default-header .main-menu__list li.dropdown .submenu a.active {
  background: rgba(235, 74, 76, 0.1);
  color: #eb4a4c;
  padding-left: 26px;
}

/* --- Mobil: dropdown --- */

/* Toggle-knapp (både <a> og <span>) */
.mobile-nav .main-menu__list li.dropdown-mobile > a,
.mobile-nav .main-menu__list li.dropdown-mobile > .dropdown-toggle-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 16px;
  color: #878c8f;
  cursor: pointer;
  transition: color 0.3s;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.mobile-nav .main-menu__list li.dropdown-mobile > a:hover,
.mobile-nav .main-menu__list li.dropdown-mobile > .dropdown-toggle-mobile:hover,
.mobile-nav .main-menu__list li.dropdown-mobile.open > .dropdown-toggle-mobile,
.mobile-nav .main-menu__list li.dropdown-mobile.open > a {
  color: #eb4a4c;
}

.mobile-nav .main-menu__list li.dropdown-mobile > a i,
.mobile-nav .main-menu__list li.dropdown-mobile > .dropdown-toggle-mobile i {
  transition: transform 0.3s;
  font-size: 13px;
}

.mobile-nav .main-menu__list li.dropdown-mobile.open > a i,
.mobile-nav .main-menu__list li.dropdown-mobile.open > .dropdown-toggle-mobile i {
  transform: rotate(180deg);
}

/* Undermeny — skjult som standard */
.mobile-nav .main-menu__list li.dropdown-mobile > .submenu {
  display: none;
  padding-left: 15px;
  border-left: 2px solid #eb4a4c;
  margin: 5px 0 10px;
}

/* Undermeny — vises når .open */
.mobile-nav .main-menu__list li.dropdown-mobile.open > .submenu {
  display: block !important;
}

.mobile-nav .main-menu__list li.dropdown-mobile .submenu a {
  padding: 10px 0;
  font-size: 14px;
  color: #a2a2a2;
}

.mobile-nav .main-menu__list li.dropdown-mobile .submenu a:hover {
  color: #eb4a4c;
}

/* ============================================================
   PROSJEKTER
   ============================================================ */
.projects-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 30px 80px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-item {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 30px;
  transition: border-color 0.3s;
}

.project-item:hover { border-color: #eb4a4c; }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.ongoing { background: rgba(235, 74, 76, 0.15); color: #eb4a4c; }
.status-badge.planned { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.status-badge.done    { background: rgba(76, 175, 80, 0.15); color: #4caf50; }

.project-year { color: #666; font-size: 14px; }

.project-item h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.project-item p {
  color: #a2a2a2;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.project-progress {
  height: 8px;
  background: #1e1e1e;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 8px;
  margin-top: 15px;
}

.project-progress-fill {
  height: 100%;
  background: #eb4a4c;
  border-radius: 50px;
  transition: width 0.5s ease;
}

.progress-label {
  color: #666;
  font-size: 13px;
  display: block;
  margin-bottom: 20px;
}

/* ============================================================
   DESKTOP: Tilpass About-siden
   ============================================================ */
@media (min-width: 1025px) {
  .default-header {
    display: flex;
    justify-content: center;
    gap: 200px;
    padding: 25px 0;
  }

  .default-header .logo img { height: 35px; }

  .default-header .main-menu__list { gap: 35px; }

  .default-header .mobile-nav__toggler { display: none !important; }
}