/* Core Homepage Styling System */

/* Global Section Spacing */
section {
  position: relative;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  overflow: hidden;
  box-sizing: border-box;
}

/* 1. Hero Section — see components/hero.css for .orbit-hero styles */

/* 1.1 Collage Section Restyling */
.collage-section {
  position: relative;
  width: 100%;
  height: clamp(500px, 65vh, 900px);
  overflow: hidden;
  background-color: var(--color-bg-dark);
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-container {
  position: relative;
  width: 100%;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
}

.collage-item {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background-color: var(--color-surface);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.collage-item:hover img {
  filter: grayscale(0.2);
}

/* Specific positions */
.collage-1 {
  width: 16%;
  height: 55%;
  left: 2%;
  top: 25%;
  z-index: 1;
}

.collage-2 {
  width: 13%;
  height: 45%;
  left: 17%;
  top: 15%;
  z-index: 2;
}

.collage-3 {
  width: 11%;
  height: 35%;
  left: 31%;
  top: 50%;
  z-index: 1;
}

.collage-4 {
  width: 24%;
  height: 80%;
  left: 41%;
  top: 10%;
  z-index: 3;
}

.collage-5 {
  width: 18%;
  height: 60%;
  left: 65%;
  top: 25%;
  z-index: 2;
}

.collage-6 {
  width: 13%;
  height: 45%;
  left: 84%;
  top: 30%;
  z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .collage-section {
    height: 400px;
  }
}
@media (max-width: 768px) {
  .collage-section {
    height: auto;
    padding: 40px var(--spacing-sm);
  }
  .collage-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    justify-content: center;
  }
  .collage-item {
    position: relative;
    width: 45%;
    height: 250px;
    left: auto !important;
    top: auto !important;
  }
  .collage-4 {
    width: 100%;
    height: 400px;
    order: -1;
  }
}

/* 2. About / Values Section */
.values-section {
  padding: 150px var(--spacing-xl);
  background-color: var(--color-bg-dark); /* Ensure dark mode */
  color: var(--color-text-light);
}

.values-container {
  max-width: 1400px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: 1.2fr 2.5fr 2fr;
  grid-template-rows: auto auto;
  column-gap: 80px;
  row-gap: 40px;
  align-items: start;
}

.vg-img {
  grid-column: 1;
  grid-row: 1 / 3;
}

.values-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
}

.values-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.values-portrait:hover img {
  filter: grayscale(0.2);
  transform: scale(1.03);
}

.vg-heading {
  grid-column: 2;
  grid-row: 1;
}

.vg-heading h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.3;
  margin: 0;
  color: var(--color-text-light);
  max-width: 90%;
}

.vg-subtitle {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  text-align: right;
  padding-top: 10px;
}

.vg-subtitle span {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(var(--ink), 0.5);
  text-transform: uppercase;
  line-height: 1.6;
  max-width: 250px;
}

.vg-text-1 {
  grid-column: 2;
  grid-row: 2;
}

.vg-text-2 {
  grid-column: 3;
  grid-row: 2;
}

.vg-text-1 p,
.vg-text-2 p {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-dim);
  font-weight: 300;
  margin: 0;
}

.values-action {
  margin-top: 100px;
  display: flex;
  justify-content: center;
}

.btn-kontakt {
  display: inline-block;
  padding: 16px 48px;
  background-color: rgba(var(--ink), 0.1);
  color: var(--color-text-light);
  font-family: var(--font-brand);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid rgba(var(--ink), 0.2);
}

.btn-kontakt:hover {
  background-color: var(--color-text-light);
  border-color: var(--color-text-light);
  color: var(--color-bg-dark);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 40px;
  }
  
  .vg-img {
    grid-column: 1 / 3;
    grid-row: 1;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .vg-heading {
    grid-column: 1 / 3;
    grid-row: 2;
    text-align: center;
  }
  
  .vg-heading h2 {
    max-width: 100%;
  }
  
  .vg-subtitle {
    grid-column: 1 / 3;
    grid-row: 3;
    justify-content: center;
    text-align: center;
  }
  
  .vg-text-1 {
    grid-column: 1;
    grid-row: 4;
  }
  
  .vg-text-2 {
    grid-column: 2;
    grid-row: 4;
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .vg-text-1, .vg-text-2 {
    grid-column: 1;
  }
  
  .vg-text-1 { grid-row: 4; }
  .vg-text-2 { grid-row: 5; }
}

/* 3. Selected Split Section */
.selected-section {
  padding: 100px 0;
  background-color: var(--color-bg-dark);
}

.selected-tag {
  text-align: center;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: rgba(var(--ink), 0.4);
  margin-bottom: var(--spacing-md);
}

.selected-split-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  align-items: center;
}

.selected-text-row {
  font-size: clamp(5rem, 14vw, 15rem);
  font-family: var(--font-primary);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 0.75;
  text-transform: uppercase;
  color: var(--color-text-light);
  white-space: nowrap;
}

.selected-text-row.text-top {
  margin-bottom: -3.8vw;
  z-index: 1;
}

.selected-text-row.text-bottom {
  margin-top: -3.8vw;
  z-index: 1;
}

.selected-image-strip-container {
  width: 100vw;
  height: clamp(80px, 15vw, 180px);
  background-color: var(--color-bg-dark);
  z-index: 2;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.selected-image-strip {
  display: flex;
  gap: 15px;
  white-space: nowrap;
  width: max-content;
  padding: 0 var(--spacing-md);
  will-change: transform;
}

.strip-img-wrapper {
  width: clamp(160px, 25vw, 320px);
  height: clamp(70px, 13vw, 150px);
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}

.strip-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.4s ease;
}

.strip-img-wrapper:hover img {
  filter: grayscale(0.2) contrast(1);
}

.selected-footer {
  text-align: center;
  font-size: 0.85rem;
  font-family: var(--font-primary);
  color: var(--color-text-dim);
  max-width: 600px;
  margin: var(--spacing-lg) auto 0 auto;
  line-height: 1.5;
  letter-spacing: 0.5px;
  padding: 0 var(--spacing-md);
}

/* 4. Portfolio Grid Section */
.portfolio-section {
  padding: 120px var(--spacing-xl);
}

.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-section-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-family: var(--font-primary);
  font-weight: 800;
  margin: 0 0 var(--spacing-xl) 0;
  letter-spacing: -2px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--spacing-xl);
  row-gap: 80px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
}

/* Specific offsets for the layout in the image */
.project-card.project-a {
  grid-column: 2; /* Positioned on the right */
}

.project-card.project-b {
  grid-column: 1; /* Positioned on the left */
  margin-top: -100px; /* Offset vertically */
}

.project-card.project-c {
  grid-column: 2; /* Positioned on the right */
  margin-top: 40px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(var(--ink), 0.08);
  padding-bottom: 8px;
}

.project-tag {
  font-family: var(--font-brand);
  font-size: 0.85rem;
  color: rgba(var(--ink), 0.4);
}

.project-concept,
.project-year {
  font-family: var(--font-brand);
  font-size: 0.85rem;
  color: rgba(var(--ink), 0.4);
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-surface);
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.9) brightness(0.8);
  transition:
    filter 0.5s ease,
    transform 0.5s ease;
}

.project-card:hover .project-image-wrapper img {
  filter: grayscale(0.2) brightness(0.95);
  transform: scale(1.03);
}

.project-brand-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  letter-spacing: -1px;
  pointer-events: none;
  font-family: var(--font-primary);
  width: 90%;
  text-align: center;
}

.project-brand-overlay.paulina-brand {
  font-family: serif;
  font-style: italic;
  font-weight: 400;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--spacing-md);
  margin-top: 8px;
}

.project-desc {
  font-size: 1rem;
  color: var(--color-text-dim);
  margin: 0;
  font-weight: 300;
  max-width: 60%;
  line-height: 1.4;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-light);
  text-decoration: none;
  font-family: serif;
  font-style: italic;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.project-link .arrow {
  font-family: var(--font-brand);
  font-style: normal;
  transition: transform 0.3s ease;
}

.project-link:hover {
  color: var(--color-accent);
}

.project-link:hover .arrow {
  transform: translateX(5px);
}

/* 5. Info, Introduction & Education Section */
.info-section {
  padding: 120px var(--spacing-xl);
  border-top: 1px solid rgba(var(--ink), 0.08);
}

.info-brand-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 120px;
}

.info-title-col {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.info-brand-title {
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-family: var(--font-primary);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.8;
  margin: 0;
}

.info-date-tag {
  font-family: var(--font-brand);
  font-size: 0.85rem;
  color: rgba(var(--ink), 0.4);
  line-height: 1.4;
  margin-top: 10px;
}

.info-meta-cols {
  display: flex;
  gap: var(--spacing-xl);
  text-align: left;
}

.info-meta-col {
  width: 140px;
}

.info-meta-col.contacts-col {
  width: 220px;
}

.meta-label {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

.meta-contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-contacts-list li {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  font-family: var(--font-primary);
  font-weight: 300;
}

/* Modular Blocks */
.info-block {
  margin-bottom: 120px;
  border-top: 1px solid rgba(var(--ink), 0.1);
  padding-top: var(--spacing-sm);
}

.info-block-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  color: rgba(var(--ink), 0.4);
  margin-bottom: var(--spacing-md);
}

.info-block-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-family: var(--font-primary);
  font-weight: 800;
  letter-spacing: -2px;
  margin: 0 0 var(--spacing-xl) 0;
}

/* Introduction layout */
.intro-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.intro-image-wrapper {
  width: 100%;
  aspect-ratio: 2.3 / 1;
  overflow: hidden;
  border-radius: 2px;
}

.intro-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.intro-image-wrapper:hover img {
  filter: grayscale(0.2);
}

.intro-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.intro-author-title {
  font-size: 2rem;
  font-family: var(--font-primary);
  font-weight: 700;
  margin: 0;
}

.intro-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dim);
  margin: 0;
  font-weight: 300;
}

/* Education Layout */
.education-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.education-columns {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.education-item {
  border-top: 1px solid rgba(var(--ink), 0.08);
  padding-top: var(--spacing-sm);
}

.edu-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  font-family: var(--font-primary);
}

.edu-year {
  font-family: var(--font-brand);
  font-size: 0.85rem;
  color: rgba(var(--ink), 0.4);
  display: block;
  margin: 4px 0 var(--spacing-xs) 0;
}

.edu-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-dim);
  margin: 0;
  font-weight: 300;
}

.education-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.edu-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
}

.edu-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.edu-image-wrapper:hover img {
  filter: grayscale(0.2);
}

.info-block-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(var(--ink), 0.08);
  padding-top: var(--spacing-sm);
  margin-top: var(--spacing-xl);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(var(--ink), 0.5);
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 992px) {
  .values-section,
  .portfolio-section,
  .info-section {
    padding: 80px var(--spacing-lg);
  }

  .values-header-grid,
  .intro-content-grid,
  .education-content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .values-portrait-card {
    width: 100%;
    max-width: 350px;
  }

  .values-portrait-wrapper {
    height: 380px;
  }

  .values-columns-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .value-col {
    min-height: auto;
    gap: var(--spacing-xs);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .project-card.project-b,
  .project-card.project-c {
    margin-top: 0;
  }

  .info-brand-header {
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: 60px;
  }

  .info-meta-cols {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .values-section,
  .portfolio-section,
  .info-section {
    padding: 60px var(--spacing-md);
  }

  .education-images {
    grid-template-columns: 1fr;
  }
}
