@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Miniver&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "sans-serif";
}

/* Root variables for colors, fonts, sizes, and radius */
:root {
  --whiteColour: #fff;
  --darkColour: #252525;
  --primaryColour: #000000;
  --secondaryColour: #7b0000;
  --lightGreyColor: #c9c3c4;
  --mediumGreyColor: #ccc;

  --fontSizeS: 0.9rem;
  --fontSizeN: 1rem;
  --fontSizeM: 1.12rem;
  --fontSizeL: 1.5rem;
  --fontSizeXL: 2rem;
  --fontSizeXXL: 2.3rem;

  --fontWeightNormal: 400;
  --fontWeightMedium: 500;
  --fontWeightSemiBold: 600;
  --fontWeightBold: 700;

  --borderRadiusS: 8px;
  --borderRadiusM: 30px;
  --borderRadiusCircle: 50%;

  --siteMaxWidth: 1300px;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  width: 100%;
}

/* Content section wrapper */
.sectionContent {
  max-width: var(--siteMaxWidth);
  padding: 0 20px;
  margin: 0 auto;
}

/* Section title styling */
.sectionTitle {
  text-align: center;
  padding: 60px;
  text-transform: uppercase;
  font-size: var(--fontSizeXL);
}

.sectionTitle::after {
  content: "";
  width: 80px;
  height: 5px;
  display: block;
  margin: 10px auto 0;
  border-radius: var(--borderRadiusS);
  background: var(--secondaryColour);
}

/* Header and navigation */
header {
  background: var(--primaryColour);
  position: fixed;
  z-index: 5;
  width: 100%;
}

header .navBar {
  display: flex;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
}

.navBar .navLogo .logoText {
  color: var(--whiteColour);
  font-size: var(--fontSizeXL);
  font-weight: var(--fontWeightSemiBold);
}

.navBar .navMenu {
  display: flex;
  gap: 10px;
}

.navBar .navMenu .navLink {
  padding: 10px 18px;
  color: var(--whiteColour);
  font-size: var(--fontSizeM);
  border-radius: var(--borderRadiusM);
  transition: 0.3s ease;
}

.navBar .navMenu .navLink:hover {
  color: var(--whiteColour);
  background: var(--secondaryColour);
}

/* Hero section styling */
.heroSection {
  background: var(--primaryColour);
  min-height: 100vh;
}

.heroSection .sectionContent {
  display: flex;
  align-items: center;
  min-height: 100vh;
  color: var(--whiteColour);
  justify-content: space-between;
}

.heroSection .heroDetails .title {
  font-size: var(--fontSizeXXL);
  color: var(--secondaryColour);
  font-family: "Miniver", sans-serif;
}

.heroSection .heroDetails .subtitle {
  font-size: var(--fontSizeXL);
  margin-top: 8px;
  max-width: 70%;
  font-weight: var(--fontWeightSemiBold);
}

.heroSection .heroDetails .description {
  font-size: var(--fontSizeM);
  margin: 24px 0 40px;
  max-width: 70%;
}

.heroSection .heroDetails .buttons {
  display: flex;
  gap: 23px;
}

.heroSection .heroDetails .button {
  padding: 10px 26px;
  border: 2px solid transparent;
  color: var(--primaryColour);
  background: var(--secondaryColour);
  border-radius: var(--borderRadiusM);
  font-weight: var(--fontWeightMedium);
  transition: 0.3s ease;
}

.heroSection .heroDetails .button.contact:hover,
.heroSection .heroDetails .button.contact {
  color: var(--whiteColour);
  border-color: var(--whiteColour);
  background: transparent;
}

.heroSection .heroDetails .button.contact:hover {
  color: var(--primaryColour);
  border-color: var(--secondaryColour);
  background: var(--secondaryColour);
}

/* Hero video section */
.heroSection .heroImageWrap {
  position: relative;
  top: -85px;
  width: 100%;
  height: 110vh;
  margin-right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.heroSection .heroImageWrap video {
  width: 100%;
  height: 100%;
  border-radius: var(--borderRadiusM);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.heroSection .heroImageWrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--borderRadiusM);
  pointer-events: none;
}

/* About section */
.aboutSection {
  padding: 120px 0;
  background: var(--lightGreyColor);
}

.aboutSection .sectionContent {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: space-between;
}

.aboutSection .aboutImageWrap .aboutImage {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--borderRadiusCircle);
}

.aboutSection .aboutDetails {
  max-width: 50%;
}

.aboutSection .aboutDetails .sectionTitle {
  padding: 0;
}

.aboutSection .aboutDetails .text {
  line-height: 30px;
  margin: 50px 0 30px;
  text-align: center;
  font-size: var(--fontSizeM);
}

.aboutSection .aboutDetails .socialLinkList {
  display: flex;
  gap: 25px;
  justify-content: center;
}

.aboutSection .socialLinkList .socialLink {
  color: var(--primaryColour);
  font-size: var(--fontSizeL);
  transition: 0.2s ease;
}

.aboutSection .socialLinkList .socialLink:hover {
  color: var(--secondaryColour);
}

/* Project section */
.projectSection {
  padding: 50px 0 100px;
  text-align: center;
}

.projectSection .sectionHeader {
  max-width: 900px;
  margin: 0 auto 40px;
}

.projectSection .sectionSubtitle {
  font-size: var(--fontSizeM);
  color: var(--secondaryColour);
  margin-top: 10px;
}

.projectSection .projectList {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.projectSection .projectItem {
  overflow: hidden;
  border-radius: var(--borderRadiusS);
  width: calc(100% / 3 - 32px);
  aspect-ratio: 16 / 9;
  transition: transform 0.3s ease;
}

.projectSection .projectItem .projectImageWrapper a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.projectSection .projectItem .projectImageWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.projectSection .projectItem .projectImage {
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.projectSection .projectItem:hover .projectImage {
  transform: scale(1.2);
}

.projectSection .projectItem .projectTitle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: var(--fontSizeM);
  font-weight: var(--fontWeightSemiBold);
  text-align: center;
  color: var(--whiteColour);
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 0;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.projectSection .projectItem:hover .projectTitle {
  opacity: 1;
}

/* Contact section */
.contactSection {
  padding: 50px 0 100px;
  background: var(--lightGreyColor);
}

.contactSection .sectionContent {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.contactInfoWrapper,
.formWrapper {
  flex: 1;
  min-width: 300px;
}

.contactInfoWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.contentInfoList {
  list-style-type: none;
  padding: 0;
}

.contactInfo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.contactInfo i {
  margin-right: 10px;
  font-size: var(--fontSizeL);
}

.contactInfo p {
  font-size: 1.1rem;
}

.formWrapper form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 20px;
  margin: 8px 0;
  border: 1px solid var(--mediumGreyColor);
  border-radius: var(--borderRadiusS);
  box-sizing: border-box;
  resize: vertical;
}

textarea {
  height: 120px;
}

button {
  padding: 10px 26px;
  border: 2px solid transparent;
  color: var(--whiteColour);
  background: var(--primaryColour);
  border-radius: var(--borderRadiusM);
  font-weight: var(--fontWeightMedium);
  transition: 0.3s ease;
}

button:hover {
  background: var(--secondaryColour);
  color: var(--whiteColour);
}

/* Container wrapper */
.container {
  padding: 10px;
}

/* Responsive styles for tablets and mobile */
@media screen and (max-width: 900px) {
  :root {
    --fontSizeM: 1rem;
    --fontSizeL: 1.3rem;
    --fontSizeXL: 1.5rem;
    --fontSizeXXL: 1.8rem;
  }

  body.showMobileMenu header::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.2);
    z-index: 4;
  }

  .navBar #menuCloseButton,
  .navBar #menuOpenButton {
    font-size: var(--fontSizeL);
  }

  .navBar #menuCloseButton {
    position: absolute;
    right: 30px;
    top: 30px;
  }

  .navBar #menuOpenButton {
    color: var(--whiteColour);
  }

  .navBar .navMenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    padding-top: 100px;
    background: var(--whiteColour);
    transition: left 0.3s ease;
    z-index: 5;
  }

  body.showMobileMenu .navBar .navMenu {
    left: 0;
  }

  .navBar .navMenu .navLink {
    color: var(--darkColour);
    display: block;
    margin-top: 17px;
    font-size: var(--fontSizeL);
  }

  .heroSection .sectionContent {
    gap: 50px;
    text-align: center;
    padding: 30px 20px 20px;
    flex-direction: column-reverse;
    justify-content: center;
  }

  .heroSection .heroDetails :is(.subtitle, .description) .aboutSection .aboutDetails {
    max-width: 100%;
  }

  .heroSection .heroDetails .buttons {
    justify-content: center;
  }

  .heroSection .heroImageWrap {
    height: 60vh;
  }

  .aboutSection .sectionContent {
    flex-direction: column;
    gap: 70px;
  }

  .aboutSection .aboutImageWrap .aboutImage {
    width: 100%;
    height: 100%;
    max-width: 250px;
    aspect-ratio: 1;
  }

  .projectSection .projectItem {
    width: calc(50% - 16px);
  }
}

@media screen and (max-width: 600px) {
  .projectSection .projectItem {
    width: 100%;
  }
}

@media screen and (max-width: 640px) {
  .gallerySection .galleryList .galleryItem {
    width: 10%;
  }
}

@media screen and (min-width: 901px) {

  .navBar #menuCloseButton,
  .navBar #menuOpenButton {
    display: none;
  }
}