/* Layout Styling */
section {
  padding: clamp(1rem, 5%, 3rem);
}

/* Hero Styling */
.heroBlock {
  margin-top: 200px;
  width: 50%;
  max-width: 570px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.desktopOnly {
  display: none;
}
@media (min-width: 1200px) {
  .desktopOnly {
    display: block;
  }
}

.buttomAlign {
  align-self: end;
}

.boxRow {
  display: flex;
  justify-content: space-between;
}

.boxText {
  font-size: clamp(0.75rem, 100%, 1.25rem);
  font-weight: 600;
  color: var(--yellow);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--yellow);
}

/* Image Block */
.imageBlock {
  position: relative;
  border: 1px solid white;
  padding: 10px;
  width: fill-available;
  width: -webkit-fill-available;
  aspect-ratio: 1/1;
}
.imageimage {
  background-image: url("/assets/Asset1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

/* About Section */
.splitBackgroundLeft {
  background-image: linear-gradient(to right, Transparent 25%, black 25% 100%);
}
.splitBackgroundRight {
  background-image: linear-gradient(to left, Transparent 25%, black 25% 100%);
}

.aboutImageCol {
  width: 100%;
  position: relative;
}

.square {
  aspect-ratio: 1/1;
  position: absolute;
  top: 65%;
  left: 70%;
  background-color: var(--yellow);
  padding: 10px;
  color: black;
}

.squareNumber {
  font-size: 7rem;
  font-weight: 600;
  text-align: center;
}

.squareText {
  white-space: nowrap;
}

.aboutCol {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 1rem;
  padding: 1rem;
  margin-left: 4rem;
}

/* Grid Section */
.gridSection {
  display: grid;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gridSection > div {
  background-color: black;
  color: white;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 1rem;
}

.gridSectionTitle {
  font-size: 1.5rem;
  font-weight: 500;
}

.gridSection .yellowTile {
  background-color: var(--yellow);
  color: black;
}

/* Services Section */
.serviceSection {
  background-color: #272727;
}

.serviceGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 20px;
  max-width: 1200px;
}

.serviceItem {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: black;
  color: white;
  padding: 20px;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  transition: border-color 0.3s ease;
}

.serviceItem:hover {
  border-top-color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.serviceItem p:first-child {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 0;
}

.serviceItem a {
  display: inline-block;
  margin-top: 10px;
  color: var(--yellow);
  text-decoration: none;
  font-weight: bold;
}

.serviceItem a:hover {
  text-decoration: underline;
}

/* Middle Transparent Section */
.parallaxBacklground {
  background-image: url("/assets/hero1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 4rem;
}

.transparentDiv {
  width: 60%;
  background-color: #00000090;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.transparentDiv h2 {
  font-size: 3rem;
}

/* Projects Section */
.projectGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  padding: 20px;
  max-width: 1500px;
  margin: 0 auto;
}

.projectCard {
  min-height: 250px;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  border-right: 2px solid rgb(45, 45, 45);
  border-left: 2px solid rgb(45, 45, 45);
  transition: border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.projectCard:hover {
  border-top-color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.projectCardImage {
  width: 100%;
  height: 50%;
  position: absolute;
}

.projectCardTopBlock {
  background-image: url("/assets/Asset2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 75%;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.projectCardTitleBlock {
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem 1rem 0;
}

.light {
  font-size: 1rem;
  font-weight: 300;
}

.projectTitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.projectCardCopy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: black;
  padding: 1rem 1.5rem;
}

/* Media Queries */
@media (max-width: 1024px) {
  .introBlock {
    flex-direction: column;
  }
  .introBlockCol {
    width: 100%;
  }
  .testimonialCard3 {
    display: none;
  }
  .parallaxBacklground {
    padding: 3rem 1.5rem;
  }
  .transparentDiv {
    width: fit-content;
  }

  .aboutCol {
    margin-left: unset;
  }

  .twoCol {
    flex-direction: column;
  }

  .buttomAlign {
    align-self: center;
  }
}

@media (max-width: 800px) {
  .hero {
    flex-direction: column;
  }
  .heroBlock {
    width: unset;
    padding: 20px;
  }
}

@media (max-width: 1199px) {
  .heroBlock {
    width: unset;
  }
}

@media (min-width: 1024px) {
  .gridSection {
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  .gridSection > div:nth-child(1) {
    grid-column: span 6;
    grid-row: 1;
  }
  .gridSection > div:nth-child(2) {
    grid-column: span 4;
    grid-row: 1;
  }
  .gridSection > div:nth-child(3) {
    grid-column: span 4;
    grid-row: 2;
  }
  .gridSection > div:nth-child(4) {
    grid-column: span 6;
    grid-row: 2;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gridSection {
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: auto auto auto;
  }
  .gridSection > div:nth-child(1) {
    grid-column: span 10;
  }
  .gridSection > div:nth-child(2),
  .gridSection > div:nth-child(3) {
    grid-column: span 5;
  }
  .gridSection > div:nth-child(4) {
    grid-column: span 10;
  }
}

@media (max-width: 767px) {
  .gridSection {
    grid-template-columns: 1fr;
  }
  .gridSection > div {
    grid-column: span 1;
  }

  .boxText {
    padding: 0.3rem 0.6rem;
    font-size: clamp(0.5rem, 100%, 1rem);
  }

  .aboutCol {
    margin: auto;
  }

  .testimonialCard {
    padding: 1rem;
  }
}

@media (min-width: 768px) {
  .serviceGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .projectGrid {
    grid-template-columns: 1fr; /* Single column for very small screens */
    padding: 10px;
  }

  .projectCard {
    min-height: 200px;
  }

  .light {
    font-size: 0.8rem;
  }

  .projectTitle {
    font-size: 1.1rem;
  }

  .projectCardCopy {
    padding: 0.8rem 1rem;
  }

  .fakeImage {
    max-width: 300px;
  }
}

/* About Us Page Styles */
.aboutIntro {
  padding: 4rem 1rem;
  background-color: #2a2a2a;
}

.valueSection {
  padding: 4rem 1rem;
  background-color: var(--grey);
  text-align: center;
}

.valueGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 1100px) {
  .valueGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .valueGrid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.valueItem {
  background-color: #2a2a2a;
  padding: 2rem;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.valueItem h3 {
  color: var(--yellow);
  margin-bottom: 1rem;
}

.teamSection {
  padding: 4rem 1rem;
  background-color: #2a2a2a;
  text-align: center;
}

.teamGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.teamMember {
  background-color: var(--grey);
  padding: 2rem;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.teamMemberImage {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.teamMember h3 {
  margin-bottom: 0.5rem;
}

.teamMember p {
  color: var(--yellow);
}

.ctaSection {
  background-color: var(--yellow);
  color: black;
  padding: 4rem 1rem;
  text-align: center;
}

.ctaContent {
  max-width: 800px;
  margin: 0 auto;
}

.ctaContent h2 {
  margin-bottom: 1rem;
}

.ctaContent p {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .reverseOnMobile {
    flex-direction: column-reverse;
  }

  .aboutImageCol,
  .aboutCol {
    width: 100%;
  }

  .fakeImage {
    max-width: 100%;
    height: 300px;
  }

  .square {
    left: 50%;
  }
}
