#nav-links,
* {
  margin: 0;
  padding: 0;
}
#nav-links li a,
#nav-links li a:hover,
a {
  color: #fff;
}
*,
.dropdown li a {
  box-sizing: border-box;
}
main h1 {
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.site-footer a,
a {
  transition: color 0.2s;
}
.site-footer a:hover,
a:hover {
  text-decoration: underline;
}

.hero-btn,
.hero-btn-accent {
  overflow: hidden;
  position: relative;
}
:root {
  --bg-color: #f5f5f5;
  --text-color: #1a1a1a;
  --secondary-text-color: #555;
  --primary-blue: #1f3ccc;
  --secondary-blue: #1a2b81;
  --hover-blue: #576cd8;
  --card-color: #ffffff;
}

body {
  font-family: "Archivo", "Inter", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}
body,
html {
  height: 100%;
  min-height: 100vh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}
a {
  text-decoration: none;
}
nav {
  background: var(--secondary-blue);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}
.content,
main {
  margin-top: 73px;
  flex: 1;
}
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-radius: 12px;
  margin: 0 auto;
  max-width: 1200px;
}
#toggle-nav,
.dropdown {
  display: none;
}
#nav-links li a,
.contact-btn {
  border-radius: 6px;
  transition:
    background 0.2s,
    color 0.2s;
}
.navbar-container .logo-btn {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}
#nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  background: 0 0;
  box-shadow: none;
}
#nav-links li,
.dropdown-parent {
  position: relative;
}
#nav-links li a {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
}
#nav-links > li:not(.dropdown-parent) > a:not(.contact-btn),
.hero-btn {
  position: relative;
  overflow: hidden;
}
#nav-links > li:not(.dropdown-parent) > a:not(.contact-btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#nav-links > li:not(.dropdown-parent) > a:not(.contact-btn):focus::after,
#nav-links > li:not(.dropdown-parent) > a:not(.contact-btn):hover::after {
  transform: scaleX(1);
}
.dropdown-parent > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.dropdown-parent > a::after {
  content: none !important;
  display: none !important;
}
.dropdown-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  display: inline-block;
}
.dropdown-parent:hover > a .dropdown-icon,
.dropdown-parent:focus-within > a .dropdown-icon {
  transform: rotate(180deg);
}
.contact-btn {
  background: var(--primary-blue);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 191, 255, 0.08);
}
.dropdown,
.dropdown li {
  margin: 0;
  padding: 0;
}
.contact-btn:hover {
  background: var(--hover-blue);
  color: #fff;
}
.dropdown {
  position: absolute;
  background: var(--secondary-blue);
  min-width: 180px;
  top: 100%;
  left: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 200;
  list-style: none;
}
.dropdown li a {
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 0;
  font-size: 1.1rem;
  text-decoration: none !important;
  display: block;
  width: 100%;
  height: 100%;
}
.dropdown li a:hover {
  background: var(--hover-blue);
  color: #00bfff;
  padding: 0.7rem 1.2rem;
  border-left: 4px solid var(--hover-blue);
}
.dropdown-parent:focus-within > .dropdown,
.dropdown-parent:hover > .dropdown {
  display: block;
}
#toggle-nav-btn-close,
#toggle-nav-btn-open {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
#toggle-nav-btn-open {
  margin-left: 1rem;
}
#toggle-nav-btn-close {
  margin-bottom: 1rem;
  position: absolute;
  top: 1rem;
  right: 2rem;
}
@media (max-width: 1024px) {
  .navbar-container {
    padding: 1rem;
  }
  #nav-links {
    gap: 1.5rem;
  }

  #nav-links li a {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
  }
}
#bg-video,
.pattern-overlay {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: -1;
  left: 0;
}
main.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  height: 100vh;
  text-align: center;
  padding: 0 2rem;
  margin-top: 0;
}
#bg-video {
  width: 100%;
  object-fit: cover;
}
.pattern-overlay {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(31, 60, 204, 0.9),
    rgba(26, 43, 129, 0.93)
  );
}

/* ============================================
   PERSONAL HOMEPAGE DESIGN
   Professional, human, and authentic
   ============================================ */

/* Hero - Personal & Warm */
.hero-personal {
  max-width: 850px;
  text-align: center;
  animation: gentleFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transition:
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

@keyframes gentleFadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-greeting {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.hero-personal h1 {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.8rem;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
}

h2.hero-subtitle {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
}

h2.hero-subtitle.fade-in {
  animation: smoothFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Typografisk Mask-Reveal - Motion design timing */
.hero-personal h1::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(31, 60, 204, 0.9),
    rgba(26, 43, 129, 0.93)
  );
  transform-origin: bottom;
}

.hero-personal h1.mask-reveal::after {
  animation: maskReveal 1.4s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes maskReveal {
  to {
    transform: scaleY(0);
  }
}

/* Sequential fade-in for øvrige elementer */
.hero-greeting,
.hero-intro,
.hero-cta a {
  opacity: 0;
}

.hero-greeting.fade-in,
.hero-intro.fade-in,
.hero-cta a.fade-in {
  animation: smoothFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes smoothFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-intro {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.75;
  max-width: 750px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2.2rem;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.btn-primary {
  background: #fff;
  color: var(--primary-blue);
  box-shadow: 0 4px 15px rgba(31, 60, 204, 0.15);
}

.btn-primary:hover {
  background: var(--hover-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(31, 60, 204, 0.3);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #fff;
}

/* Scroll-Triggered Reveal Animations */
.scroll-hidden {
  opacity: 0;
}

.scroll-reveal {
  animation: sectionReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered children reveal */
.value-card,
.skill-area,
.work-card,
.scroll-reveal h2,
.scroll-reveal .lead-text,
.scroll-reveal .section-intro {
  opacity: 0;
  transform: translateY(20px);
}

.value-card.reveal,
.skill-area.reveal,
.work-card.reveal,
.scroll-reveal h2.reveal,
.scroll-reveal .lead-text.reveal,
.scroll-reveal .section-intro.reveal {
  animation: childReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes childReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Intro Section */
.about-intro {
  padding: 7rem 0;
  background: #fff;
}

.intro-content h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--text-color);
  line-height: 1.3;
  margin-bottom: 1.8rem;
  font-weight: 700;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead-text {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  line-height: 1.5;
  text-wrap: balance;
  color: var(--secondary-text-color);
  max-width: 850px;
  margin: 0 auto 4.5rem;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.value-card {
  padding: 2.5rem 2rem;
  background: var(--bg-color);
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(31, 60, 204, 0.08);
}

.value-icon {
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-bottom: 1.2rem;
}

.value-icon i {
  display: block;
}

.value-card h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.value-card p {
  font-size: 1.05rem;
  color: var(--secondary-text-color);
  line-height: 1.5;
  text-wrap: balance;
}

/* Skills Personal Section */
.skills-personal {
  padding: 7rem 0;
  background: var(--bg-color);
}

.skills-personal h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--text-color);
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.section-intro {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--secondary-text-color);
  max-width: 800px;
  margin: 0 auto 4.5rem;
  text-align: center;
}

.skills-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.skill-area {
  background: #fff;
  padding: 2.8rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-area:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(31, 60, 204, 0.1);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-header i {
  font-size: 2rem;
  color: var(--primary-blue);
}

.skill-header h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
}

.skill-area p {
  font-size: 1.05rem;
  line-height: 1.5;
  text-wrap: balance;
  color: var(--secondary-text-color);
  margin-bottom: 2rem;
}

.skill-tools {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.skill-tools img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform 0.2s ease;
  filter: grayscale(20%);
}

.skill-tools img:hover {
  transform: scale(1.15);
  filter: grayscale(0%);
}

/* ============================================
   FEATURED WORK - ELEGANT DESIGN
   ============================================ */

.featured-work {
  padding: 7rem 0;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.featured-work h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text-color);
  text-align: center;
  margin-bottom: 5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.work-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(31, 60, 204, 0.15);
  text-decoration: none;
}

.work-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #e8ecf7 0%, #f5f7fa 100%);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-image img {
  transform: scale(1.08);
}

.work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.work-category {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
}

.work-content {
  padding: 2.2rem 2rem 2rem;
  position: relative;
}

.work-content h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.work-card:hover .work-content h3 {
  color: var(--primary-blue);
}

.work-content p {
  font-size: 1.05rem;
  color: var(--secondary-text-color);
  line-height: 1.65;
  margin: 0;
}

.work-cta {
  text-align: center;
  margin-top: 4rem;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(31, 60, 204, 0.2);
}

.view-all-link:hover {
  background: var(--hover-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(31, 60, 204, 0.3);
  text-decoration: none;
  gap: 1.2rem;
  color: #fff;
}

.view-all-link i {
  transition: transform 0.3s ease;
}

.view-all-link:hover i {
  transform: translateX(4px);
}

/* ============================================
   CLOSING CTA - MODERN & CLEAN
   ============================================ */

.closing-cta {
  padding: 7rem 0;
  background: #fafafa;
  position: relative;
}

.closing-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.closing-content h2 {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.closing-text {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: var(--secondary-text-color);
  margin-bottom: 3rem;
}

.closing-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary-large {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(31, 60, 204, 0.2);
}

.btn-primary-large:hover {
  background: var(--hover-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(31, 60, 204, 0.3);
  color: #fff;
  text-decoration: none;
}

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--text-color);
  border: 2px solid rgba(26, 26, 26, 0.2);
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-text-link:hover {
  background: rgba(26, 26, 26, 0.05);
  border-color: var(--text-color);
  color: var(--text-color);
  gap: 1rem;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-text-link i {
  transition: transform 0.3s ease;
}

.btn-text-link:hover i {
  transform: translateX(4px);
}

/* Old styles preserved for compatibility */
main h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}
main .hero-title h1 {
  margin: 0 0 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.hero-btn,
.hero-btn-accent {
  padding: clamp(0.7rem, 2vw, 1.2rem) clamp(1.2rem, 5vw, 2.5rem);
  border-radius: 8px;
  background: var(--primary-blue);
  color: #fff;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.2s,
    border 0.2s,
    transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1;
}
.hero-btn-accent:focus,
.hero-btn-accent:hover,
.hero-btn:focus,
.hero-btn:hover,
.main-doc-btn-wrapper .hero-btn:focus,
.main-doc-btn-wrapper .hero-btn:hover {
  background: #f3f4f8;
  color: #1f3ccc !important;
  transform: translateY(-2px) scale(1.04);
  text-decoration: none;
}
.title {
  color: var(--primary-blue);
}
.gf2-header-wrapper,
.portfolio-header {
  padding-top: 2rem;
}
.gf2-cards,
.portfolio-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  align-items: stretch;
}
.gf2-card,
.portfolio-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem 1.5rem;
  max-width: 420px;
  min-width: 280px;
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
  margin-bottom: 2rem;
}
.gallery-card {
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.gf2-card:hover,
.portfolio-card:hover {
  box-shadow: 0 6px 32px rgba(31, 60, 204, 0.1);
}
.gf2-card-img img,
.card-image img {
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(31, 60, 204, 0.07);
  background: #f3f4f8;
}
.gf2-card-content,
.card-content {
  width: 100%;
  text-align: left;
  padding-left: 1rem;
}
.gf2-card-content h2,
.gf2-card-content p,
.card-content h2,
.card-content p {
  text-align: left;
  width: 100%;
}
.gf2-card-buttons,
.card-buttons {
  justify-content: flex-start;
  width: 100%;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.gf2-card-content h2,
.card-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--primary-blue, #233cdc);
}
.gf2-card-content p,
.card-content p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: #222;
}
.gf2-card .hero-btn,
.portfolio-card .hero-btn {
  min-width: 120px;
  text-align: center;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
}
.main-doc-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.main-doc-btn-wrapper .hero-btn {
  background: var(--primary-blue);
  color: #fff !important;
  border-radius: 8px;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
  min-width: unset;
  text-align: center;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
  display: inline-block;
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gf2-header-wrapper,
  .portfolio-header {
    padding-top: 2rem;
  }
  .gf2-cards,
  .portfolio-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 1.5rem;
    margin: 2rem auto;
  }
  .gf2-card,
  .portfolio-card {
    max-width: 100%;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  .gf2-card-img img,
  .card-image img {
    margin-bottom: 1rem;
  }
  .gf2-card-content h2,
  .card-content h2 {
    font-size: 1.25rem;
  }
  .gf2-card-content p,
  .card-content p {
    font-size: 1rem;
  }
  .gf2-card .hero-btn,
  .portfolio-card .hero-btn {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
}

/* Om Mig Page - Modern Redesign */

/* Om mig Modern Design - Helt nyt koncept */
.om-mig-modern {
  margin-top: 73px;
}

/* Simple Page Intro */
.page-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
}

.page-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 50%, #f8f9ff 100%);
  z-index: -1;
}

.intro-container h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--primary-blue);
  margin-bottom: 2rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.intro-container h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--hover-blue));
  border-radius: 2px;
}

.intro-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--secondary-text-color);
  margin-bottom: 1.5rem;
}

.intro-text:last-of-type {
  margin-bottom: 0;
}

.intro-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-image::before {
  content: "";
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--hover-blue));
  border-radius: 20px;
  opacity: 0.08;
  z-index: -1;
}

.intro-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.intro-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(31, 60, 204, 0.12);
}

/* Responsive */
@media (max-width: 968px) {
  .page-intro {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 2rem;
  }

  .intro-image::before {
    top: -10px;
    right: -10px;
  }
}

.intro-text {
  font-size: 1.15rem;
  line-height: 1.9;
}

/* Responsive Design */
@media (max-width: 968px) {
  .intro-text {
    text-align: left;
  }
}

.gallery-category {
  color: var(--primary-blue);
  letter-spacing: 0.5px;
}
.gallery-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  background: 0 0;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(31, 60, 204, 0.08);
  max-width: 400px;
  min-width: 280px;
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 1.5rem;
  border: 1px solid #f2f2f2;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.contact-page,
.tak-wrapper {
  box-shadow: 0 4px 16px rgba(31, 60, 204, 0.1);
}
.gallery-card:hover {
  box-shadow: 0 12px 40px rgba(31, 60, 204, 0.18);
  transform: translateY(-8px) scale(1.03);
}

.gallery-card:hover .gallery-title {
  color: var(--primary-blue);
}

.gallery-card-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  display: block;
  transition: transform 0.2s ease;
}

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.05);
}
.gallery-card-content {
  padding: 1.5rem 1.5rem 1.7rem;
  background: #fff;
  border-radius: 0 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.gallery-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.gallery-title {
  transition: color 0.3s ease;
  text-decoration: none;
}

.gallery-card:hover .gallery-title {
  text-decoration: underline;
}

.gallery-category {
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--primary-blue);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  display: inline-block;
  margin-bottom: 0;
}

.gallery-period {
  font-weight: 600;
  font-size: 0.85rem;
  background: #f0f4ff;
  color: var(--primary-blue);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  display: inline-block;
  margin-bottom: 0;
}
.gallery-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 0 0.3rem;
  color: #222;
  line-height: 1.1;
}
.gallery-header-wrapper {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 7.5rem;
}
.gallery-intro {
  color: var(--secondary-text-color);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Search Wrapper */
.search-wrapper {
  position: relative;
  max-width: 500px;
  margin: 2rem auto 0;
}

#gallery-search {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  font-size: 1rem;
  border: 2px solid #e0e3ee;
  border-radius: 12px;
  background: #fff;
  color: var(--text-color);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  font-family: Arial, Helvetica, sans-serif;
}

/* Hide the native clear button (X) in some browsers */
#gallery-search::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

#gallery-search::-ms-clear {
  display: none;
}

#gallery-search:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(31, 60, 204, 0.1);
}

#gallery-search::placeholder {
  color: #999;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-text-color);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--secondary-text-color);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition:
    background 0.2s,
    color 0.2s;
  line-height: 1;
}

.search-clear i {
  display: block;
}

.search-clear:hover {
  background: #f0f0f0;
  color: var(--primary-blue);
}

.search-clear.visible {
  display: flex;
}

/* Filter Buttons */
.filter-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--primary-blue);
  background: transparent;
  color: var(--primary-blue);
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.2s;
  font-family: Arial, Helvetica, sans-serif;
}

.filter-btn:hover {
  background: rgba(31, 60, 204, 0.1);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary-blue);
  color: #fff;
}

.gallery-card.hidden {
  display: none;
}

.no-results {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--secondary-text-color);
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.gallery-desc {
  color: #555;
  font-size: 1.05rem;
  margin: 0;
}
@media (max-width: 900px) {
  #nav-links,
  #toggle-nav:checked ~ #toggle-nav-btn-open {
    display: none;
  }
  .navbar-container {
    flex-direction: row;
    padding: 0.7rem 1.2rem;
    border-radius: 0;
    max-width: 100vw;
    align-items: center;
  }
  #nav-links li:last-child a.contact-btn,
  .contact-btn {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0;
    right: 0;
  }
  .navbar-container strong {
    padding-left: 0.1rem;
  }
  #toggle-nav-btn-open {
    display: block;
    margin-left: auto;
    z-index: 102;
    position: relative;
  }
  #toggle-nav-btn-close {
    display: none;
    position: fixed;
    top: 4.2rem !important;
    right: 1.5rem !important;
    font-size: 2rem;
    z-index: 9999;
    background: 0 0;
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    color: #fff;
  }
  #nav-links li,
  #nav-links li a,
  #nav-links li:last-child a.contact-btn,
  .contact-btn {
    margin: 0 !important;
    border-radius: 0 !important;
  }
  #toggle-nav:checked ~ #toggle-nav-btn-close,
  .contact-btn {
    display: block;
  }
  #nav-links {
    flex-direction: column;
    background: var(--secondary-blue);
    padding: 10.5rem 0 0;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    min-height: calc(100vh - 3.5rem);
    transform: translateY(-100%);
    opacity: 0;
    transition:
      transform 0.35s cubic-bezier(0.77, 0, 0.18, 1),
      opacity 0.25s;
    display: flex;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    z-index: 101;
    pointer-events: none;
  }
  #toggle-nav:checked ~ #nav-links {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  #nav-links li,
  #nav-links li a {
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #nav-links li a {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    font-size: 1.15rem;
  }
  #nav-links li:last-child a.contact-btn {
    padding-right: 0 !important;
  }
  .contact-btn {
    padding: 1.5rem 0 !important;
    position: relative;
    box-sizing: border-box;
    text-align: left;
    font-weight: 700;
    background: var(--primary-blue) !important;
    font-size: 1.15rem;
  }
  .contact-btn:hover {
    background: var(--hover-blue) !important;
    color: #fff !important;
  }
  .dropdown {
    position: static;
    box-shadow: none;
    background: #23272f;
    border-radius: 0;
    width: 100vw;
    display: none !important;
  }
  .dropdown-parent:focus-within > .dropdown,
  .dropdown-parent:hover > .dropdown {
    display: block !important;
  }
  .dropdown li a {
    padding-left: 2.5rem;
  }
  .dropdown-parent > a {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .gallery-cards {
    gap: 1.2rem;
  }
  .gallery-card {
    max-width: 95vw;
    min-width: 0;
  }

  /* Personal Homepage Responsive */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .value-card {
    padding: 2rem 1.5rem;
  }

  .skills-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skill-area {
    padding: 2.2rem 1.8rem;
  }

  .about-intro,
  .skills-personal {
    padding: 5rem 0;
  }

  .intro-content h2,
  .skills-personal h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.3rem;
  }

  .lead-text,
  .section-intro {
    font-size: 1.05rem;
    margin-bottom: 3rem;
  }

  /* Featured Work Responsive */
  .featured-work {
    padding: 5rem 0;
  }

  .work-image {
    height: 220px;
  }

  .work-content {
    padding: 1.8rem 1.5rem 2rem;
  }

  /* Closing CTA Responsive */
  .closing-cta {
    padding: 5rem 0;
  }

  .closing-actions {
    flex-direction: column;
    gap: 1.5rem;
  }

  .btn-primary-large,
  .btn-text-link {
    width: 100%;
    justify-content: center;
  }
}
.site-footer {
  background: #f3f4f8;
  color: #222;
  padding: 2rem 0 1.2rem;
  text-align: center;
  border-top: 1px solid #e0e3ee;

  font-size: 1rem;
}
.site-footer a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover {
  color: var(--hover-blue);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-page,
.tak-wrapper {
  text-align: center;
}

.contact-form button:hover {
  background: var(--hover-blue);
  text-decoration: none;
}

.contact-main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 1rem;
}
.contact-page {
  max-width: 800px;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
}
.contact-page h1,
.tak-wrapper h1 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}
.contact-page p,
.tak-wrapper p {
  font-size: 1.2rem;
  color: var(--secondary-text-color);
  margin-bottom: 2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.contact-form button,
.tak-wrapper a.hero-btn {
  padding: 0.8rem 1.5rem;
  background: var(--primary-blue);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
  font-family: arial, helvetica, sans-serif;
}
.contact-form button {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
@media (max-width: 768px) {
  .hero-personal h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
  }

  h2.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
  }

  .gf2-header-wrapper,
  .portfolio-header {
    padding-top: 2rem;
  }
  .gf2-header-wrapper .main-doc-btn-wrapper,
  .portfolio-header .main-doc-btn-wrapper {
    margin-top: 2rem;
  }
  .gf2-cards,
  .portfolio-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
    margin: 2rem auto;
  }
  .gf2-card,
  .portfolio-card {
    max-width: 100%;
    padding: 1.2rem 0.7rem;
    margin-bottom: 1.5rem;
  }
  .gf2-card-img img,
  .card-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }
  .gf2-card-content h2,
  .card-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .gf2-card-content p,
  .card-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .gf2-card .hero-btn,
  .portfolio-card .hero-btn {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
  .title {
    margin: 0 !important;
  }
  .contact-page {
    padding: 1.5rem;
  }
  .contact-page h1 {
    font-size: 1.8rem;
  }
  .contact-page p {
    font-size: 1rem;
  }
}
.tak-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  margin-top: 0;
  background: var(--bg-color);
}
.tak-wrapper {
  background: var(--card-color);
  padding: 2rem;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  margin: 0 auto;
}
.tak-wrapper a.hero-btn {
  display: inline-block;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.3s,
    transform 0.2s;
}
.tak-wrapper a.hero-btn:hover {
  background: #f3f4f8;
  transform: translateY(-2px);
  color: #fff;
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.out-of-view {
  opacity: 0;
  transform: translateY(20px);
}

/* Tilgængelighed: Respekter brugerens bevægelsespræferencer */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .hero-greeting,
  .hero-intro,
  .hero-cta a,
  .value-card,
  .skill-area,
  .work-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-personal h1::after {
    display: none;
  }
}
.keyframe-page .fade-in {
  opacity: 0;
  animation: 0.6s ease-out forwards fadeInKeyframes;
}
@keyframes fadeInKeyframes {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s,
    height 0.4s,
    opacity 0.6s;
  opacity: 0;
  pointer-events: none;
}
.hero-btn:active::after {
  width: 200px;
  height: 200px;
  opacity: 1;
  transition: none;
}
@media (max-width: 480px) {
  .hero-personal h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 1.2rem;
  }

  h2.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: 1rem;
  }

  .hero-intro {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    margin-bottom: 2rem;
  }

  .hero-cta {
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
  }

  .gf2-cards,
  .portfolio-cards {
    gap: 1.5rem;
  }
  .contact-page p,
  .gf2-card-content p,
  .card-content p {
    font-size: 0.95rem;
  }
  .contact-page {
    padding: 1rem;
  }
  .contact-page h1 {
    font-size: 1.6rem;
  }
  .contact-form input,
  .contact-form textarea,
  .footer-content {
    font-size: 0.9rem;
  }
  .contact-form button {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }
  .footer-content {
    text-align: center;
  }
  .container,
  .footer-content,
  .navbar-container,
  main.hero,
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  a.hero-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .gf2-cards,
  .portfolio-cards {
    gap: 1rem;
    padding: 0 1.5rem;
  }
  .gf2-card,
  .portfolio-card {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
  }
  .gf2-card-img img,
  .card-image img {
    max-width: 100%;
    height: auto;
  }
  .gf2-card-content h2,
  .card-content h2 {
    font-size: 1rem;
  }
  .gf2-card .hero-btn,
  .portfolio-card .hero-btn {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
  .gf2-main,
  .portfolio-main {
    margin-top: 80px;
  }
  .gf2-header-wrapper .main-doc-btn-wrapper,
  .portfolio-header .main-doc-btn-wrapper {
    margin-top: 1rem;
  }
  main.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    text-align: center;
  }
  .content,
  main {
    margin-top: 0;
  }

  /* Featured work responsive */
  .featured-work {
    padding: 5rem 0;
  }

  .featured-work h2 {
    margin-bottom: 3.5rem;
  }

  .work-grid {
    gap: 2rem;
  }

  .work-image {
    height: 240px;
  }

  .work-content {
    padding: 1.8rem 1.5rem 1.5rem;
  }

  .work-content h3 {
    font-size: 1.3rem;
  }

  .work-content p {
    font-size: 0.95rem;
  }

  .view-all-link {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* About/Skills sections på små skærme */
  .about-intro,
  .skills-personal,
  .closing-cta {
    padding: 4rem 0;
  }

  .value-card,
  .skill-area {
    padding: 1.8rem 1.3rem;
  }

  .value-icon {
    font-size: 1.8rem;
  }

  .value-card h3 {
    font-size: 1.2rem;
  }

  .skill-header h3 {
    font-size: 1.3rem;
  }
}
@media (max-width: 600px) {
  main h1 {
    font-size: clamp(1.1rem, 7vw, 1.9rem);
    line-height: 1.15;
    padding: 0 0.5rem;
    word-break: break-word;
    letter-spacing: 1px;
  }
  .hero-btn,
  .hero-btn-accent {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }
  .site-footer {
    font-size: 0.97rem;
    padding: 1.2rem 0 0.7rem;
  }
  .gallery-main {
    margin-top: 80px;
  }
  .gallery-header-wrapper {
    padding-top: 7rem;
    margin-bottom: 2rem;
  }
  .gallery-intro {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .search-wrapper {
    margin: 1.5rem 1rem 0;
    max-width: 100%;
  }
  #gallery-search {
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    font-size: 0.95rem;
  }
  .filter-wrapper {
    margin-top: 1.5rem;
    gap: 0.8rem;
    padding: 0 1rem;
  }
  .filter-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.95rem;
  }
  .gallery-cards {
    flex-direction: column;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 1rem;
    margin: 0 auto;
  }
  .gallery-card {
    max-width: 100%;
    border-radius: 10px;
    padding: 0;
    overflow: visible;
  }
  .gallery-card-img img {
    border-radius: 10px 10px 0 0;
    max-width: 100%;
  }
  .gallery-card-content {
    padding: 1.2rem 1rem 1.5rem;
    border-radius: 0 0 10px 10px;
    gap: 0.5rem;
  }
  .gallery-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  .gallery-desc {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #666 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 0.3rem !important;
  }
}
@media (min-width: 715px) and (max-width: 900px) {
  .gallery-cards {
    padding-left: 2rem;
    padding-right: 2rem;
    gap: 1.5rem;
  }
}
@media (min-width: 481px) and (max-width: 1024px) {
  .gallery-cards {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
.next-corner-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-blue);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: 999px 0 0 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  z-index: 9999;
}

.next-corner-btn:hover {
  background-color: #f3f4f8;
  color: #1f3ccc;
  text-decoration: none;
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .next-corner-btn {
    padding: 16px 24px;
    font-size: 0.95rem;
    bottom: 20px;
    right: 20px;
  }
}
.next-corner-btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 1s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 404 Error Page */
body:has(.error-404-main) {
  margin: 0;
  padding: 0;
}

.error-404-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 100vh;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  margin: 0;
}

.error-404-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(31, 60, 204, 0.9),
    rgba(26, 43, 129, 0.93)
  );
  z-index: 0;
}

.error-404-container {
  max-width: 750px;
  text-align: center;
  animation: gentleFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  position: relative;
  z-index: 1;
}

.error-404-number {
  font-size: clamp(8rem, 20vw, 14rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
  margin: 0 0 2rem 0;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.error-404-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.error-404-description {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.75;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.error-404-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive 404 */
@media (max-width: 768px) {
  .error-404-main {
    padding: 0 1.5rem;
  }

  .error-404-number {
    font-size: clamp(6rem, 20vw, 10rem);
    margin-bottom: 1.5rem;
  }

  .error-404-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .error-404-description {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    margin-bottom: 2.5rem;
  }

  .error-404-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 2.5rem auto 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .error-404-number {
    font-size: clamp(7rem, 18vw, 11rem);
  }
}

/* Scroll to Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(31, 60, 204, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

#scroll-to-top:hover {
  background: var(--hover-blue);
  transform: translateY(0) scale(1.1);
  box-shadow: 0 6px 25px rgba(31, 60, 204, 0.4);
}

#scroll-to-top:active {
  transform: scale(0.95);
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-to-top.scrolling {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive scroll button */
@media (max-width: 768px) {
  #scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--card-color);
  padding: 1rem 2rem;
  margin-top: 75px;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--hover-blue);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--secondary-text-color);
}

.breadcrumbs span:last-child {
  color: var(--secondary-text-color);
}

/* Project Single Page Styles */
.project-main {
  background: var(--bg-color);
}

.project-card {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-card-container {
  background: var(--card-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(31, 60, 204, 0.1);
}

.project-card-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.project-card-content {
  padding: 2rem;
}

.project-category {
  display: inline-block;
  background: var(--primary-blue);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-right: 0.5rem;
}

.project-category:nth-child(2) {
  background: #f0f4ff;
  color: var(--primary-blue);
  border: none;
}

.project-card-content h1 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.3;
  text-align: left;
}

.project-intro {
  font-size: 1rem;
  color: var(--secondary-text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.meta-tag {
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.meta-tag strong {
  color: var(--primary-blue);
  display: inline;
  margin-right: 0.5rem;
}

/* Content blocks inside project card */
.project-card-content .content-block {
  margin-bottom: 2rem;
}

.project-card-content .content-block:last-of-type {
  margin-bottom: 1.5rem;
}

.project-card-content .content-block h2 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.project-card-content .content-block p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--secondary-text-color);
  margin-bottom: 1rem;
}

.project-card-content .content-block p:last-child {
  margin-bottom: 0;
}

.project-card-content .tech-list {
  list-style: none;
  padding: 0;
}

.project-card-content .tech-list li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--secondary-text-color);
  padding: 0.4rem 0;
  border-bottom: 1px solid #e9ecef;
}

.project-card-content .tech-list li:last-child {
  border-bottom: none;
}

.project-card-content .tech-list strong {
  color: var(--primary-blue);
  font-weight: 600;
}

.project-card-content .project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.project-featured {
  padding: 0;
  background: none;
}

.project-featured .project-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 0 2rem;
}

.project-featured img {
  width: 100%;
  border-radius: 16px 16px 0 0;
  box-shadow: none;
  display: block;
}

.project-content {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 2.5rem;
}

.content-block h2 {
  font-size: 1.6rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.content-block p {
  font-size: 1rem;
  color: var(--secondary-text-color);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.tech-list {
  list-style: none;
  padding: 0;
}

.tech-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1rem;
  color: var(--secondary-text-color);
}

.tech-list li:last-child {
  border-bottom: none;
}

.project-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.project-navigation {
  background: var(--card-color);
  padding: 3rem 2rem;
  border-top: 1px solid #e0e0e0;
}

.project-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.project-nav-back {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1rem;
  background: white;
  border: 2px solid var(--primary-blue);
  border-radius: 8px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-nav-back:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

.project-nav-item {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.project-nav-item:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(31, 60, 204, 0.15);
}

.project-nav-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--secondary-text-color);
  margin-bottom: 0.5rem;
}

.project-nav-item strong {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.project-nav-links {
  display: contents;
}

/* Responsive Project Pages */
@media (max-width: 768px) {
  .project-header h1 {
    font-size: 2rem;
  }

  .project-intro {
    font-size: 1rem;
  }

  .project-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .project-nav-grid {
    grid-template-columns: 1fr;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-actions .hero-btn {
    width: 100%;
    text-align: center;
  }
}
