/* =========================
   BASE LAYOUT
========================= */

.mainPage{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
}

/* Section defaults: desktop "full screen" feel */
.firstSection,
.secondSection,
.thirdSection,
.fifthSection{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100vh - 100px);
  width: 100%;
}

/* =========================
   HERO (FIRST SECTION)
========================= */

.mainTitleAndDesc{
  display: flex;
  flex-direction: column;
  text-align: right;
  color: white;
}

.mainTitleAndDesc h1{
  margin: 15px -17px 0 0; /* keep your optical alignment on desktop */
}

.mainTitleAndDesc h5{
  margin: 0;
  letter-spacing: 8px;
}

.imageAndTypes{
  position: relative;
  top: -85px;
  height: 70%;
  z-index: -1;
}

#personalPortrait{
  z-index: -1;
  height: 100%;
  width: auto;
  display: block;
}

.types{
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-color: #9E9B96;
  padding: 25px 30px 25px 45px;
  transform: translate(-75%, 10%);
  width: 60%;
  color: white;
  letter-spacing: 6px;
}

.types h5{ margin: 0; }

.types li{ margin-bottom: 12px; }


.scroll-indicator{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  opacity: 0.8;
  pointer-events: auto;
  z-index: 1;
}

.scroll-indicator .arrow{
  width: 24px;
  height: 24px;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(-45deg);
  margin-bottom: 15px;
}

.scroll-indicator p{
  color: white;
  font-size: 12px;
  letter-spacing: 1px;
}

/* =========================
   ABOUT (SECOND SECTION)
========================= */

.secondSection{
  padding-top: 110px;
  width: 100vw;
  background-color: #9E9B96;
}

.aboutMeTitle{
  margin: 0 0 20px 0;
  color: white;
}

.aboutMe{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  color: white;
  width: 70%;
  height: 100%;
}

.portraitAndHello{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.portraitAndHello h5{
  text-align: center;
  margin: 10px 0 0 0;
  letter-spacing: 6px;
}

#personalPortrait2{
  height: 60%;
  width: auto;
  display: block;
}

.aboutText{
  margin-left: 30px;
  text-align: justify;
  letter-spacing: 1px;
}

/* =========================
   PORTFOLIO (THIRD SECTION)
========================= */

.thirdSection{
  padding-top: 110px;
  background-color: #948E83;
  width: 100%;
}

.portfolioTitle{
  margin: 0;
  color: white;
}

.portfolioGrid{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  height: 100%;
}

.portfolioCard{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #271E1B;
  color: white;
  margin: 10px 0;
  aspect-ratio: 1 / 1;
  width: 30%;
  cursor: pointer;
  text-decoration: none;
}

#portraits, #lifestyle, #events{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#portraits{ background-image: url("/images/landingPage/portraits.jpg"); }
#lifestyle{ background-image: url("/images/landingPage/lifestyle.jpg"); }
#events{ background-image: url("/images/landingPage/events.jpg"); }

.portfolioCard h2{
  margin: 0;
  padding: 15px;
}

/* =========================
   SERVICES (FOURTH SECTION)
========================= */

.fourthSection{
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 100px);
  height: auto;
  width: 100vw;
  background-color: #271E1B;
  padding-top: 100px;
  padding-bottom: 80px;
  color: white;
}

.servicesTitle{ margin: 0; }

.servicesWrap{
  width: 95%;
  max-width: 1100px;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.servicesIntro{
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.servicesIntro h4{
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.9;
}

.servicesIntro p{
  margin: 10px 0;
  letter-spacing: 0.5px;
  line-height: 1.6;
  opacity: 0.95;
}

.servicesGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: 100%;
}

.serviceCard{
  text-align: left;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.15);
  color: white;
  padding: 18px 18px 16px 18px;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.serviceCard:hover{
  transform: translateY(-3px);
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.6);
}

.serviceCardTop{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.serviceCard h2{
  margin: 0;
  font-size: 22px;
  letter-spacing: 1px;
}

.servicePrice{
  font-size: 13px;
  letter-spacing: 1px;
  opacity: 0.9;
  white-space: nowrap;
}

.serviceTagline{
  margin: 10px 0 12px 0;
  opacity: 0.9;
  line-height: 1.5;
}

.serviceList{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  letter-spacing: 0.4px;
  line-height: 1.5;
  opacity: 0.95;
}

.serviceCardWide{ grid-column: span 2; }

.servicesExtra{
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 18px;
  text-align: center;
}

.servicesExtra h4{
  margin: 0 0 12px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.servicesExtra ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* =========================
   CONTACT (FIFTH SECTION)
========================= */

.fifthSection{
  padding-top: 100px;
  width: 100vw;
  background-color: black;
  color: white;
  justify-content: flex-start;
}

.contactTitleSmall{
  margin: 15px 0 0 0;
  font-weight: 400;
  letter-spacing: 1px;
}

.contactTitle{
  margin: 5px 0 40px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contactForm{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 500px;
}

.contactForm input,
.contactForm textarea{
  background: transparent;
  border: none;
  border-bottom: 1px solid white;
  color: white;
  width: 100%;
  padding: 10px 5px;
  margin: 15px 0;
  font-size: 16px;
  outline: none;
}

.contactForm input::placeholder,
.contactForm textarea::placeholder{
  color: white;
  opacity: 0.7;
}

.contactForm textarea{
  resize: none;
  height: 100px;
}

.contactForm button{
  margin-top: 20px;
  padding: 12px 30px;
  border: 1px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.contactForm button:hover{
  background: white;
  color: black;
}

.underlineArrow{
  position: relative;
  color: white;
  text-decoration: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.underlineArrow::after{
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: white;
  transform-origin: center;
  transform: scaleX(1);
}

.arrow{
  display: inline-block;
  transition: transform 0.3s ease;
  transform: rotate(-45deg);
}

.contactInfo{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  gap: 15px;
}

.contactInfo h5{ margin: 0; }

.contactMethods{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 15px;
  text-decoration: none;
  color: white;
}

.socialLinks{
  display: flex;
  justify-content: center;
  gap: 50px;
}

.footerNote{
  font-size: 12px;
  opacity: 0.6;
  text-align: center;
  position: absolute;
  bottom: 10px;
}

/* =========================
   RESPONSIVE: TABLET + DOWN
   (This is the "don’t break anything" section)
========================= */

@media (max-width: 1100px){

  /* Let sections grow - fixed vh breaks mobile/tablet content */
  .firstSection,
  .secondSection,
  .thirdSection,
  .fifthSection{
    height: auto;
    min-height: calc(100vh - 100px);
    padding-bottom: 70px;
  }

  /* -------- HERO -------- */
  .mainTitleAndDesc{
    text-align: center;
    align-items: center;
  }

  .mainTitleAndDesc h1{
    margin: 12px 0 0 0; /* remove negative margin hack on small screens */
  }

  .mainTitleAndDesc h5{
    letter-spacing: 4px;
  }

  .imageAndTypes{
    top: 0;
    height: auto;
    width: min(92vw, 560px);
    margin-top: 18px;
  }
  .scroll-indicator{
    position: static;
    bottom: auto;
    flex: 1;
    justify-content: center;
    margin-top: 0;
  }

  #personalPortrait{
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: cover;
  }

  /* Keep the "types" styling but make it behave like a caption panel */
  .types{
    position: relative;
    transform: none;
    width: 100%;
    margin-top: 12px;
    padding: 16px 18px;
    letter-spacing: 4px;
  }

  .types li{
    list-style: none;
    margin: 8px 0;
  }

  /* -------- ABOUT -------- */
  .aboutMe{
    flex-direction: column;
    width: min(88vw, 720px);
    height: auto;
    align-items: center;
  }

  #personalPortrait2{
    width: min(420px, 90vw);
    height: auto;
    max-height: 55vh;
    object-fit: cover;
  }

  .aboutText{
    margin-left: 0;
    margin-top: 18px;
    text-align: left; /* justify looks bad on small screens */
  }

  /* -------- PORTFOLIO -------- */
  .portfolioGrid{
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    width: min(88vw, 650px);
    gap: 16px;
    padding: 25px 0 0 0;
  }

  .portfolioCard{
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1; /* MUST stay square */
    margin: 0;
  }

  /* -------- SERVICES -------- */
  .servicesWrap{
    gap: 16px;
  }

  /* -------- CONTACT -------- */
  .socialLinks{
    gap: 26px;
    flex-wrap: wrap;
  }

  .footerNote{
    position: static;
    margin-top: 30px;
  }
}

/* =========================
   RESPONSIVE: MOBILE
========================= */

@media (max-width: 900px){
  .servicesGrid{
    grid-template-columns: 1fr;
  }
  .serviceCardWide{
    grid-column: span 1;
  }
  .serviceCardTop{
    flex-direction: column;
    align-items: flex-start;
  }
  .servicePrice{
    white-space: normal;
  }
}

@media (max-width: 600px){
  .mainPage{
    padding-top: 80px;
  }

  .secondSection,
  .thirdSection{
    padding-top: 90px;
  }

  .fourthSection,
  .fifthSection{
    padding-top: 90px;
  }

  .types{
    display: none;
  }

  .servicesWrap{
    width: 92%;
  }

  .contactMethods{
    gap: 12px;
  }
}
