/* ============================================================
   ÜBER MICH STYLES
   ============================================================
   Styles for UeberMich.html including about section,
   case studies, and profile layouts.
============================================================ */

/* About Wrap Layout */
.about-wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Case Study Layout */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "media text";
  gap: clamp(22px, 3vw, 32px);
  align-items: center;
  background: var(--glass-bg);
  padding: clamp(22px, 3vw, 32px);
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  grid-auto-rows: auto;
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.case.reverse {
  grid-template-areas: "text media";
}

.case .media {
  grid-area: media;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

.case .text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case .media img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  cursor: default;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  display: block;
}

/* About Media Section */
.about-media {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.about-media .about-photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 520px;
  max-height: 60vh;
  object-fit: cover !important;
  object-position: center -15%;
  border-radius: 14px !important;
  box-shadow: none;
}

/* Projects Grid */
body:not(.about-page) .projects-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.projects-grid .media img {
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  aspect-ratio: auto;
  width: 100%;
  max-width: 520px;
  max-height: 60vh;
  height: auto;
}

/* Profile Card */
.profile-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  max-width: 900px;
  margin-top: 18px;
  box-shadow: none;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 180px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border: 4px solid rgba(255, 255, 255, 0.03);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-meta h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.profile-meta p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.profile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.profile-tags .tag {
  background: var(--glass-bg);
  color: #e8e8e8;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inner-shadow);
}

/* Contact Card */
.contact-card {
  background: transparent;
  padding: 0;
  border-radius: 0;
  max-width: none;
  border: none;
  box-shadow: none;
}

.contact-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #eaeaea;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(8, 8, 8, 0.6);
  color: #fff;
}

.contact-card button {
  background: var(--glass-bg);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

/* Responsive */
@media (max-width: 720px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 0;
  }
  .avatar {
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
  }
  .profile-meta {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .case {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "text";
    gap: 18px;
  }
  .case.reverse {
    grid-template-areas: "media" "text";
  }
  .case .media img {
    max-width: 100%;
    max-height: 50vh;
  }
}
