/* 
=====================================================
    TABLE OF CONTENTS - STYLE.CSS (Home Page)
=====================================================
    1.  Navbar Layout
    2.  Hero Section
    3.  Selected Work (Header)
    4.  Shape Cards Projects (Main List)
    5.  "All Projects" Button
    6.  About Section (Home Version)
=====================================================
*/

html,
body {
  min-width: 1024px;
}

/* 
=====================================================
    2. Hero Section
=====================================================
*/
#hero {
  margin-left: 4rem;
  padding-top: calc(3.5rem + 4rem);
  padding-bottom: 12rem;
}

#hero .hero-text {
  border-left: 1px solid var(--My-orange);
  padding-left: 0.75rem;
  color: var(--My-gray-Text);
  color: var(--My-gray-Text);
  line-height: var(--body-height);
}

/* 
=====================================================
    3. Selected Work (Header)
=====================================================
*/
#selected-work {
  margin-left: 4rem;
  padding-bottom: 2rem;
  display: flex;
}

#selected-work h3 {
  white-space: nowrap;
  font-family: var(--font-geist);
  text-transform: uppercase;
  font-size: var(--size-subheading);
  font-weight: 500;
  letter-spacing: -0.125rem;
  margin-right: 2rem;
}

/* 
=====================================================
    4. Shape Cards Projects (Main List)
=====================================================
*/
/* Container for the card */
.shape-card {
  width: 100%;
  margin-bottom: -101vh;
  position: relative;
  transition: transform 0.85s cubic-bezier(1, 0, 0.25, 0.995);
}

.shape-card.lifted {
  transform: translateY(-200px);
  transition: transform 0.7s cubic-bezier(0.84, 0, 0.29, 1);
}

/* Tab Row (Top part of the card) */
.shape-tab-row {
  display: flex;
}

.corner-left,
.corner-right {
  width: 49px;
  height: 56px;
  display: block;
}

.corner-left {
  margin-right: -1px;
  margin-left: -1px;
}

.corner-right {
  margin-left: -1px;
  margin-right: -1px;
}

.tab-content {
  width: calc(25% - 98px);
  border-top: 1px solid var(--My-gray-Stroke);
  background-color: transparent;
  color: var(--My-gray-Text);

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-width: 150px;
  font-size: var(--size-micro);
  background-color: white;
  text-decoration: none;
}

/* Spacer Logic for offset tabs */
.tab-spacer {
  border-bottom: 1px solid var(--My-gray-Stroke);
  background-color: transparent;
}

.spacer-grow {
  flex-grow: 1;
}

.offset-1 {
  width: 25%;
}
.offset-2 {
  width: 50%;
}
.offset-3 {
  width: 75%;
}

/* Card Body (Main Visual) */
.shape-card:not(:last-of-type) .shape-body {
  width: 100%;
  height: auto;
  border: 1px solid var(--My-gray-Stroke);
  border-top: none;
  margin-top: -1px; /* Pull up to overlap tab row and fix gap */
  background-color: white;
  padding-top: 3rem; /* Space at top to push image */
}

.image {
  display: block;
  width: 95%;
  height: calc(100vh - 56px); /* Reduced height to fit under the overlap */
  background-color: rgb(229, 229, 229);
  margin: 0 auto;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* "Border" spacer for the stack */
.border {
  border: 1px solid var(--My-gray-Stroke);
  margin-top: 56px;
  height: 100vh;
  width: 100%;
}

/* 
=====================================================
    5. "All Projects" Button (Final Card)
=====================================================
*/
.final-card .shape-body {
  background-color: var(--My-white);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.btn-all-projects {
  font-family: var(--font-geist);
  font-size: var(--size-subheading-2);
  font-weight: 500;
  color: var(--My-black);
  letter-spacing: -0.64px;

  padding: 24px 64px;
  background-color: var(--My-gray);
  border: 1px solid var(--My-gray-Stroke);
  border-radius: 8px;

  cursor: pointer;
  text-decoration: none;
  margin-top: 8rem;

  position: relative;

  transition: 200ms ease-in-out;
}

.btn-all-projects:hover {
  background-color: var(--My-orange);
  color: var(--My-white);
  transform: rotate(-1deg) translateY(-8px);
  border-color: var(--My-orange-hover);
}

.btn-all-projects:hover .btn-decoration {
  border: 1px solid var(--My-white);
}

.btn-decoration {
  width: 8px;
  height: 8px;
  border-radius: 100%;
  border: 1px solid var(--My-gray-Stroke);
  position: absolute;
}

.btn-decoration.top-left {
  top: 12px;
  left: 12px;
}
.btn-decoration.top-right {
  top: 12px;
  right: 12px;
}
.btn-decoration.bottom-left {
  bottom: 12px;
  left: 12px;
}
.btn-decoration.bottom-right {
  bottom: 12px;
  right: 12px;
}

/* 
=====================================================
    6. About Section (Home Version)
=====================================================
*/
#about {
  padding: 6rem 4rem 8rem 4rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  margin-top: 101vh;
}

/* Left Column: "About me" */
.about-left {
  font-family: var(--font-mono);
  font-size: var(--size-body);
  display: flex;
  align-items: center;
  color: var(--My-black);
  white-space: nowrap;
}

.arrow-body {
  margin-right: 1rem;
  height: 14px;
}

/* Right Column: Main Content */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about-text h3 {
  font-family: var(--font-geist);
  font-size: var(--size-subheading); /* Large impact size */
  font-size: var(--size-subheading); /* Large impact size */
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--My-black);
  text-wrap: balance;
}

.about-details {
  display: flex;
  gap: 3rem;
  font-family: var(--font-mono);
  font-size: var(--size-body);
  color: var(--My-gray-Text);
  line-height: var(--body-height);
}

.detail-col {
  width: auto;
  border-left: 1px solid var(--My-gray-Stroke);
}

.detail-col p {
  margin-left: 0.75rem;
  white-space: nowrap;
}
