@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base Styles */
:root {
  --font-heading: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  --font-body: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;

  --color-bg-main: #aeafb2;
  --color-bg-gradient: #c4c5c8;
  --color-text-primary: #1a202c;
  --color-text-secondary: #4a5568;

  --color-accent-arch: #2d3748;
  --color-accent-atelier: #c05621;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Split Layout */
.split-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.split-left {
  flex: 6;
  /* Occupies 60% */
  padding: 4rem 8% 4rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-right {
  flex: 4;
  /* Occupies 40% */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.split-right img {
  width: 55%;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Typography & Content */
.about-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: -1px;
}

.about-subtitle {
  font-size: 1.6rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.about-intro {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-top: 2rem;
  margin-bottom: 3rem;
  color: var(--color-text-primary);
  max-width: 800px;
}

.about-philosophy {
  border-left: 1px solid var(--color-text-primary);
  padding-left: 2rem;
  margin-bottom: 3rem;
  font-style: italic;
}

/* Contact Section */
.contact-section {
  margin-top: auto;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.contact-section h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0;
  color: var(--color-text-secondary);
}

.job-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-item h3 {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.contact-item p {
  font-size: 1rem;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .split-container {
    flex-direction: column;
  }

  .split-left {
    padding: 6rem 10%;
    order: 2;
  }

  .split-right {
    height: 60vh;
    order: 1;
  }

  .about-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {
  .navigation-section {
    flex-direction: column;
  }

  .nav-card {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .hero-section {
    flex: 60;
  }

  .navigation-section {
    flex: 40;
  }
}

/* Footer */
.landing-footer {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  padding: 2rem 0;
  margin-top: auto;
}

.landing-page .landing-footer {
  position: absolute;
  bottom: 1rem;
  padding: 0;
  pointer-events: none;
}

.landing-footer a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  transition: color 0.2s;
  display: inline-block;
}

.landing-footer .footer-name {
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 1rem;
}

.landing-footer a:hover {
  color: var(--color-text-primary);
}

.separator {
  opacity: 0.5;
}

/* About Link */
.about-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-accent-arch);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.about-link:hover {
  border-bottom-color: var(--color-accent-arch);
  transform: translateX(5px);
}

/* Sub-pages (Impressum, Datenschutz, About, Atelier) */
.sub-page {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  background-color: var(--color-bg-main);
}

/* Gallery Section */
.gallery-container {
  max-width: 1400px;
  margin: 6rem auto;
  padding: 0 4%;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 3rem;
  font-weight: 300;
  text-align: center;
}

.masonry-gallery {
  column-count: 3;
  column-gap: 2rem;
  width: 100%;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.2, 1);
  z-index: 1;
}

/* Experimental: When the gallery container has a hovered item, scatter all non-hovered items */
.masonry-gallery:has(.gallery-item.hovered-active) .gallery-item:not(.hovered-active) {
  opacity: 0;
  transform: translateY(150px) scale(0.5) rotate(5deg);
  pointer-events: none;
  filter: blur(10px);
}

.gallery-item.hovered-active {
  transform: scale(1.15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry-gallery {
    column-count: 1;
  }

  .gallery-container {
    margin-top: 4rem;
  }
}

.back-home {
  position: fixed;
  top: 2rem;
  left: 2rem;
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color 0.3s;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.back-home:hover {
  color: var(--color-text-primary);
}

.content-container {
  max-width: 800px;
  margin: 4rem auto;
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.content-container h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-text-primary);
}

.content-container h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.content-container h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.content-container p {
  margin-bottom: 1rem;
  color: #4a5568;
}

/* About Page Specifics */
.about-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
}

.about-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.about-text .lead {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-primary);
  border-left: 4px solid var(--color-accent-atelier);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.about-title {
  margin-bottom: 0px !important;
}

.about-subtitle {
  margin-top: 0px !important;
  color: #6a6a6a;
}

@media (max-width: 768px) {
  .about-header {
    flex-direction: column;
    text-align: center;
  }

  .back-home {
    top: 1rem;
    left: 1rem;
  }

  .content-container {
    padding: 1.5rem;
    margin-top: 3rem;
  }
}