/* All of these font faces are fonts that I downloaded to my computer 
for this project... */

@font-face {
  font-family: "Garden Delight";
  src: url("../Fonts/Garden\ Delight\ copy.ttf");
}

@font-face {
  font-family: "Brittany Signature";
  src: url("../Fonts/Vintage\ Goods.ttf");
}

@font-face {
  font-family: "Inter ExtraBold";
  src: url("../Fonts/Inter_18pt-ExtraBold.ttf");
}

@font-face {
  font-family: "Inter SemiBold";
  src: url("../Fonts/Inter_18pt-SemiBold.ttf");
}

/* GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* COLOR PALETTE */
:root {
  --navy: #143f52;
  --pink: #a40d58;
  --gold: #9c9421;
  --blue: #acd6df;
  --cream: #fff5d9;
  --purple: #a98ca8;
  --white: #ffffff;
}

/* ------ BODY SECTION ----- */
body {
  font-family: Arial, sans-serif;
  color: var(--navy); /* grabbing from global palette */
  background-color: var(--white);
}

/* ------ HEADER SECTION ----- */

header {
  padding: 28px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  z-index: 10;
}

/* ------ NAV / LOGO SECTION ----- */

.logo-img {
  width: 115px;
  height: auto;
}

nav {
  display: flex;
  gap: 45px;
}

nav a,
.resume-btn {
  text-decoration: none;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 16px;
  font-family: "Inter ExtraBold";
}

.resume-btn {
  background-color: var(--navy);
  color: white;
  padding: 8px 28px;
  border-radius: 20px;
}

/* ------ STRIPED HERO IMAGE ----- */

.hero {
  min-height: 850px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 80px;
  background-image: url("../Images/portfolio-hero.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.script {
  font-family: "Brittany Signature";
  color: var(--pink);
  font-size: 40px;
  margin-bottom: 10px;
}

.hero h1,
.featured h2,
.about h2,
.services h2,
.connect h2 {
  font-family: "Garden Delight";
  text-transform: uppercase;
  line-height: 0.9;
}

.hero h1 {
  font-size: clamp(60px, 6.5vw, 85px);
}

.hero-p {
  max-width: 430px;
  font-size: 16px;
  margin: 25px 0;
  line-height: 1.6;
}

.main-btn,
.view-btn,
.about-btn {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
  border-radius: 25px;
}

.main-btn {
  background-color: var(--gold);
  color: white;
  padding: 15px 35px;
}

/* ------ MAIN SECTION ----- */

main {
  padding: 0 55px 55px;
}

/* ------ FEATURED WORKS SECTION ----- */

.featured {
  text-align: center;
  padding: 55px 0;
}

.featured h2,
.services h2 {
  font-size: 40px;
  margin-bottom: 45px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 35px;
}

.work-card {
  border: 4px solid;
  background-color: #eeeeee;
}

.work-card img {
  width: 100%;
  display: block;
}

.work-card h3 {
  color: white;
  font-size: 16px;
  text-transform: uppercase;
  padding-top: 8px;
}

.work-card p {
  color: white;
  font-size: 9px;
  text-transform: uppercase;
  padding-bottom: 10px;
}

.gold {
  border-color: var(--gold);
}

.gold h3,
.gold p {
  background-color: var(--gold);
}

.purple {
  border-color: var(--purple);
}

.purple h3,
.purple p {
  background-color: var(--purple);
}

.pink {
  border-color: var(--pink);
}

.pink h3,
.pink p {
  background-color: var(--pink);
}

.blue {
  border-color: #9bcbd5;
}

.blue h3,
.blue p {
  background-color: #9bcbd5;
}

.navy {
  border-color: var(--navy);
}

.navy h3,
.navy p {
  background-color: var(--navy);
}

.view-btn {
  margin-top: 55px;
  background-color: var(--navy);
  color: white;
  padding: 15px 35px;
}

/* ------ ABOUT SECTION ----- */

.about {
  background-color: var(--cream);
  border-radius: 28px;
  padding: 65px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 28px;
  display: block;
}

.about h2 {
  font-size: 42px;
}

.about p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 500px;
  margin: 25px 0;
}

.about-text .script {
  font-size: 40px;
  margin-bottom: -5px;
}

.about-btn {
  background-color: var(--purple);
  color: white;
  padding: 14px 32px;
}

/* ------ MY SERVICES SECTION ----- */

.services {
  text-align: center;
  padding: 70px 0 55px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  border: 2px solid;
  border-radius: 28px;
  padding: 38px 25px;
  min-height: 270px;
}

.icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 25px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter ExtraBold", sans-serif;
}

.service-card h3 {
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 20px;
}

.service-card p {
  font-size: 13px;
  line-height: 1.4;
}

.blue-card {
  border-color: #9bcbd5;
}

.blue-card .icon {
  background-color: #9bcbd5;
}

.gold-card {
  border-color: var(--gold);
}

.gold-card .icon {
  background-color: var(--gold);
}

.pink-card {
  border-color: var(--pink);
}

.pink-card .icon {
  background-color: var(--pink);
}

.purple-card {
  border-color: var(--purple);
}

.purple-card .icon {
  background-color: var(--purple);
}

/* ------ FOOTER FORM SECTION ----- */

.connect {
  background-color: #bfe6ee;
  border-radius: 28px;
  padding: 55px;
  display: grid;
  grid-template-columns: 1fr 1fr 220px;
  align-items: center;
  gap: 40px;
}

.connect h2 {
  font-size: 42px;
}

.connect p {
  font-size: 16px;
  margin: 15px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.contact-form input,
.contact-form textarea {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--navy);
}

.contact-form textarea {
  resize: vertical;
  min-height: 90px;
}

.contact-btn {
  background-color: var(--navy);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px;
  cursor: pointer;
  font-family: "Inter ExtraBold";
  text-transform: uppercase;
}

.contact-btn:hover {
  opacity: 0.9;
}

.connect img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
}

/* ------ MEDIA QUERIES FOR PHONE AND TABLET ----- */

@media screen and (max-width: 900px) {
  header {
    padding: 24px 30px;
  }

  .logo-img {
    width: 95px;
  }

  nav {
    gap: 24px;
  }

  nav a,
  .resume-btn {
    font-size: 14px;
  }

  .hero {
    min-height: 760px;
    padding: 130px 45px 70px;
    background-size: cover;
    background-position: 65% center;
  }

  .hero-text {
    max-width: 420px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .about,
  .connect {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about p {
    margin-left: auto;
    margin-right: auto;
  }

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

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

@media screen and (max-width: 600px) {
  header {
    position: relative;
    padding: 25px 20px;
    flex-direction: column;
    gap: 18px;
    background-color: #f5fbfb;
  }

  .logo-img {
    width: 90px;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  nav a,
  .resume-btn {
    font-size: 14px;
  }

  .resume-btn {
    padding: 8px 26px;
  }

  .hero {
    min-height: 520px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 40px 25px 70px;
    background-size: 760px auto;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .hero-text {
    max-width: 190px;
    margin: 0;
    text-align: left;
    position: relative;
    top: 40px;
    left: 0;
    z-index: 100;
  }

  .script {
    font-size: 30px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-p {
    display: none;
  }
  .main-btn {
    margin-top: 10px;
    padding: 10px 17px;
    font-size: 9px;
  }

  main {
    padding: 0 25px 40px;
  }

  .featured h2,
  .services h2,
  .about h2,
  .connect h2 {
    font-size: 34px;
  }

  .work-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .about,
  .connect {
    padding: 35px;
  }

  .connect img {
    margin: 0 auto;
  }
}
