@import url("colors.css");

/* ======================
   Intro Section (Top)
   ====================== */

.light-intro {
  border: 2px solid var(--pri);
  background: linear-gradient(135deg, var(--bkg2) 0%, var(--pri) 100%);
  box-shadow: 0 4px 16px var(--shadow1);
  padding: 2rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.light-intro:hover {
  border-color: var(--priAcc);
  box-shadow: 0 6px 24px var(--shadow2);
}

.info.paragraph {
  padding: 1.5rem;
  background: var(--bkg2);
  border-left: 4px solid var(--priAcc);
  margin: 0;
}

/* ======================
   Main Content Container
   ====================== */

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

/* ======================
   Portfolio Section (2-column layout)
   ====================== */

.portfolio {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

/* ======================
   Resume Column (Left)
   ====================== */

.lightResume {
  display: flex;
  flex-direction: column;
}

.lightResume h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.lightResume iframe {
  width: 100%;
  height:850px;
  border: 2px solid var(--pri);
  background: white;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

.lightResume iframe:hover {
  border-color: var(--priAcc);
}



/* ======================
   Portfolio Buttons Column (Right)
   ====================== */

.folioBtns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.portfolioBtn button {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  background: var(--bkg2);           /* fixed background, not gradient */
  border: 2px solid var(--pri);
  box-shadow: 0 4px 16px var(--shadow1);
  cursor: pointer;
  overflow: hidden;                  /* clips the image zoom */
  transition: transform 0.3s ease,   /* smooth card lift */
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.portfolioBtn img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;   /* FIXED: was "all transform" */
}

.portfolioBtn button span {
  display: block;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--pri) 0%, #1f3a56 100%);
  color: var(--titleTxt);
  font-weight: 500;
  font-size: 1.5rem;
  border-top: 2px solid var(--pri);
  transition: background 0.3s ease, /* FIXED: no "all" */
              color 0.3s ease,
              border-top-color 0.3s ease;
}

/* Hover states */
.portfolioBtn button:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px var(--shadow2);
  border-color: var(--priAcc);
}

.portfolioBtn button:hover img {
  transform: scale(1.08) translateY(-8px);
}

.portfolioBtn button:hover span {
  background: linear-gradient(135deg, var(--priAcc) 0%, #4a8fd9 100%);
  color: var(--bkg);
  border-top-color: var(--priAcc);
}

  .lightResume .btn-resume {
    align-self: center !important;
    margin: 1rem auto !important;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    display: block;
    width: fit-content;         
  }

/* ======================
   Responsive Design
   ====================== */

@media (max-width: 900px) {
  .light-intro {
    padding: 1.5rem;
  }

  .portfolio {
    grid-template-columns: 1fr;
    gap: 3rem;
    display: flow;  
  }

  .lightResume {
    display: flex;
    flex-direction: column;
  }

  .lightResume iframe {
    width: 1px !important;       /* ← iOS zoom fix */
    min-width: 100% !important;  /* ← Forces proper scaling */
    height: 66vh !important;
    max-height: 800px;
    border: 2px solid var(--pri);
    margin: 0;
    display: block;
    box-sizing: border-box;
  }


  .folioBtns {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .portfolioBtn img {
    height: 160px;
  }
}


@media (max-width: 600px) {
  .light-intro {
    padding: 1rem;
  }

  .lightResume iframe {
    height: 500px;
  }

  .portfolioBtn img {
    height: 180px;
  }

  .portfolioBtn button {
    padding: 1rem;
    font-size: 0.95rem;
  }

    .lightResume iframe {
    width: 1px !important;       /* ← iOS zoom fix */
    min-width: 100% !important;  /* ← Forces proper scaling */
    height: 66vh !important;
    max-height: 800px;
    border: 2px solid var(--pri);
    margin: 0;
    display: block;
    box-sizing: border-box;
  }
}
