:root {
  /* Primary Colors */
  --red-400: hsl(7, 99%, 70%);
  --yellow-500: hsl(51, 100%, 49%);
  --green-800: hsl(167, 40%, 24%);
  --blue-800: hsl(198, 62%, 26%);
  --green-500: hsl(167, 34%, 41%);
  
  /* Neutral Colors */
  --grey-950: hsl(212, 27%, 19%);
  --grey-600: hsl(213, 9%, 39%);
  --grey-550: hsl(232, 10%, 55%);
  --grey-400: hsl(210, 4%, 67%);
  --white: hsl(0, 100%, 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey-600);
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  color: var(--grey-950);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* Header & Navigation */
header {
  background-image: url('./images/desktop/image-header.jpg');
  background-size: cover;
  background-position: center bottom;
  height: 100vh;
  color: var(--white);
  text-align: center;
  position: relative;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
}

.contact-btn {
  background-color: var(--white);
  color: var(--grey-950) !important;
  padding: 1rem 1.5rem;
  border-radius: 2rem;
  font-family: 'Fraunces', serif;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.contact-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
}

.hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.hero h1 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  font-size: 3rem;
  margin-bottom: 3rem;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.feature-item {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-item.text {
  padding: 0 6rem;
}

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

.feature-item h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.feature-item p {
  margin-bottom: 2rem;
}

.learn-more {
  font-family: 'Fraunces', serif;
  text-transform: uppercase;
  color: var(--grey-950);
  font-weight: 900;
  position: relative;
  display: inline-block;
}

.learn-more::after {
  content: '';
  position: absolute;
  left: -5px;
  bottom: 0;
  height: 8px;
  width: calc(100% + 10px);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.learn-more:hover::after {
  opacity: 1;
}

.learn-more.yellow::after {
  background-color: var(--yellow-500);
}

.learn-more.red::after {
  background-color: var(--red-400);
}

.feature-item.overlay {
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.feature-item.overlay h3,
.feature-item.overlay p {
  position: absolute;
  width: 60%;
  left: 50%;
  transform: translateX(-50%);
}

.feature-item.overlay h3 {
  bottom: 30%;
}

.feature-item.overlay p {
  bottom: 10%;
  font-size: 0.9rem;
}

.graphic-design {
  background-image: url('./images/desktop/image-graphic-design.jpg');
  color: var(--green-800);
}

.photography {
  background-image: url('./images/desktop/image-photography.jpg');
  color: var(--blue-800);
}

/* Testimonials Section */
.testimonials {
  padding: 8rem 2rem;
  text-align: center;
}

.testimonials h2 {
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 1.2rem;
  margin-bottom: 4rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  padding: 0 1rem;
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 2rem;
}

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

.testimonial h4 {
  margin-bottom: 0.5rem;
}

.job-title {
  color: var(--grey-400);
  font-size: 0.8rem;
}

/* Gallery Section */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

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

/* Footer */
footer {
  background-color: #90d4c5;
  padding: 4rem 2rem;
  text-align: center;
}

.footer-logo img {
  margin: 0 auto;
  filter: brightness(0) saturate(100%) invert(59%) sepia(10%) saturate(1581%) hue-rotate(118deg) brightness(95%) contrast(87%);
}

.footer-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 3rem;
  margin: 2rem 0;
}

.footer-links a {
  color: var(--green-500);
}

.footer-links a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.social-links img:hover {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

.attribution {
  font-size: 11px;
  color: var(--green-800);
}

.attribution a {
  color: var(--grey-950);
}

/* Media Queries */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    top: 100px;
    left: 5%;
    right: 5%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    z-index: 100;
    display: none;
  }

  .nav-links::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 0;
    border-width: 0 0 20px 20px;
    border-style: solid;
    border-color: transparent transparent var(--white) transparent;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--grey-600);
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature-item.text {
    padding: 4rem 2rem;
    text-align: center;
  }

  .feature-item:nth-child(1) {
    order: 2;
  }
  
  .feature-item:nth-child(2) {
    order: 1;
  }
  
  .feature-item:nth-child(3) {
    order: 3;
  }
  
  .feature-item:nth-child(4) {
    order: 4;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}