/* 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 */
body {
  font-family: Arial, sans-serif;
  color: var(--navy);
  background-color: var(--white);
}

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

.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;
}

/* HERO */
.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 */
main {
  padding: 0 55px 55px;
}

/* FEATURED WORK */
.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;
}

/* CLICKABLE FEATURED WORK LINKS */
.work-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: 0.3s ease;
}

.work-link:hover {
  transform: translateY(-8px);
}

.work-link:hover .work-card {
  box-shadow: 0 12px 25px rgba(20, 63, 82, 0.2);
}

/* ABOUT */
.about {
  background-color: var(--cream);
  border-radius: 28px;
  padding: 90px 60px;
  margin: 90px auto;
  display: block;
  text-align: center;
}

.about-inner {
  max-width: 900px;
  margin: auto;
}

.about-script {
  font-size: 72px;
  color: var(--pink);
  margin-bottom: -18px;
}

.about h2 {
  font-family: "Garden Delight";
  font-size: 74px;
  line-height: 0.88;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 50px;
}

.about-photos {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 42px;
}

.about-photos img {
  width: 310px;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
}

.about-tagline {
  font-family: "Inter ExtraBold";
  color: var(--gold);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  line-height: 1.7;
  margin-bottom: 34px;
}

.about-description {
  max-width: 760px;
  margin: auto;
  font-size: 17px;
  line-height: 2;
  color: var(--navy);
}

/* SERVICES */
.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);
}

/* CONNECT */
.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;
}

.linkedin-link {
  display: inline-block;
  margin-top: 28px;
  font-family: "Inter ExtraBold";
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
  transition: 0.3s ease;
}

.linkedin-link:hover {
  color: var(--pink);
  transform: translateX(6px);
}

/* CONNECT */
.connect {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;

  background-color: #acd6df;
  border-radius: 28px;

  padding: 40px 70px;
  min-height: 220px;
}

.connect-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.connect h2 {
  font-family: "Garden Delight";
  font-size: 42px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.connect p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.linkedin-link {
  display: inline-block;
  font-family: "Inter ExtraBold";
  color: var(--navy);
  text-decoration: none;
  transition: all 0.3s ease;
}

.linkedin-link:hover {
  color: var(--pink);
  transform: translateX(6px);
}

.connect img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.business-card-section {
  text-align: center;
  padding: 80px 0;
}

.business-card-section h2 {
  font-family: "Garden Delight";
  text-transform: uppercase;
  font-size: 44px;
  color: var(--navy);
  margin-bottom: 40px;
}

.flip-card {
  width: 700px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  perspective: 1200px;
  cursor: pointer;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(20, 63, 82, 0.2);
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* INDIVIDUAL PROJECT PAGES */
.project-hero {
  background-color: var(--cream);
  padding: 180px 80px 90px;
  text-align: center;
  background-image: url(../Images/works-hero.png);
}

.project-hero h1 {
  font-family: "Garden Delight";
  text-transform: uppercase;
  font-size: clamp(55px, 7vw, 95px);
  color: var(--navy);
  line-height: 0.9;
}

.project-hero p:not(.script) {
  max-width: 650px;
  margin: 20px auto;
  line-height: 1.6;
}

.project-details {
  padding: 70px 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.project-gallery img {
  width: 100%;
  display: block;
  border: 4px solid var(--navy);
  border-radius: 18px;
  background-color: white;
  transition: 0.3s ease;
}

.project-gallery img:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(20, 63, 82, 0.2);
}

/* First row: 2 screenshots */
.project-gallery img:nth-child(1) {
  grid-column: span 3;
}

.project-gallery img:nth-child(2) {
  grid-column: span 3;
}

/* Second row: 3 screenshots */
.project-gallery img:nth-child(3) {
  grid-column: span 2;
}

.project-gallery img:nth-child(4) {
  grid-column: span 2;
}

.project-gallery img:nth-child(5) {
  grid-column: span 2;
}

.project-info {
  background-color: var(--cream);
  border-radius: 28px;
  padding: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-info h2 {
  font-family: "Garden Delight";
  text-transform: uppercase;
  font-size: 44px;
  color: var(--navy);
  margin: 30px 0 15px;
}

.project-info h2:first-child {
  margin-top: 0;
}

.project-info p,
.project-info li {
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 12px;
}

.project-info ul {
  margin: 0 0 25px 25px;
}

.project-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.secondary-btn {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
  border-radius: 25px;
  background-color: var(--purple);
  color: white;
  padding: 15px 35px;
}

/* 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;
  }

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

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

  .about {
    padding: 70px 35px;
  }

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

  .about-script {
    font-size: 58px;
  }

  .about-photos {
    gap: 20px;
  }

  .about-photos img {
    width: 260px;
    height: 350px;
  }

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

  .contact-form {
    margin: 0 auto;
  }

  .connect img {
    margin: 0 auto;
  }

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

  .project-gallery img:nth-child(1),
  .project-gallery img:nth-child(2),
  .project-gallery img:nth-child(3),
  .project-gallery img:nth-child(4),
  .project-gallery img:nth-child(5) {
    grid-column: span 1;
  }

  .project-hero {
    padding: 120px 35px 70px;
  }

  .project-info {
    padding: 45px;
  }
}

/* PHONE */
@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,
  .connect h2 {
    font-size: 34px;
  }

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

  .about {
    padding: 55px 25px;
    margin: 60px auto;
  }

  .about-script {
    font-size: 46px;
    margin-bottom: -8px;
  }

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

  .about-photos {
    flex-direction: column;
    align-items: center;
  }

  .about-photos img {
    width: 100%;
    max-width: 310px;
    height: 390px;
  }

  .about-tagline {
    font-size: 11px;
  }

  .about-description {
    font-size: 15px;
  }

  .connect {
    padding: 35px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-gallery img:nth-child(1),
  .project-gallery img:nth-child(2),
  .project-gallery img:nth-child(3),
  .project-gallery img:nth-child(4),
  .project-gallery img:nth-child(5) {
    grid-column: span 1;
  }

  .project-info {
    padding: 35px;
  }

  .project-info h2 {
    font-size: 34px;
  }
}
