@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;500;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders:opsz,wght@10..72,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Oxygen:wght@300;400;700&display=swap');

:root {
  --main-color: #fe8603;
  --secondary-color: #00093c;
  --highlight-color: #fe8603;
  --text-color: #111;
  --white-color: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  /* font-family: "Rubik", sans-serif;
  font-family: "Big Shoulders", sans-serif; */
  font-family: "Oxygen", sans-serif;
  color: var(--text-color); 
  scroll-behavior: smooth;
}

.btn {
  cursor: pointer;
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff;
  font-size: 1.21rem;
  text-decoration: none;
  padding: 15px;
  margin: 20px 0;
  border: 0;
  transition: all 0.3s ease-in-out;
  max-width: 275px;
  width: 100%;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
}

.btn:hover {
  background-color: var(--main-color);
}

.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 20;
}
.logo img{
    max-width: 250px;
}

h1 {
  font-size: 32px;
  line-height: 42px;
  font-weight: 600;
  color: var(--secondary-color);
}

/* NAVIGATION */
.toggle {
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--main-color)
    url("https://github.com/bradtraversy/creative-agency-website/blob/master/images/menu.png?raw=true");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 30px;
  z-index: 20;
  transition: all 0.3s ease-in-out;
  border-radius: 50px;
}

.toggle.active {
  background: var(--main-color)
    url("https://github.com/bradtraversy/creative-agency-website/blob/master/images/close.png?raw=true");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 25px;
}

.navigation {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  background: linear-gradient(-90deg, #ed7652, #e73c7e, #23a6d5, #07d45d);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

.navigation.active {
  left: 0;
}

.navigation ul {
  position: relative;
  list-style-type: none;
}

.navigation ul li {
  position: relative;
  text-align: center;
  padding-bottom: 5px;
}

.navigation ul li a {
  font-size: 2rem;
  color: var(--white-color);
  text-decoration: none;
  font-weight: 300;
  transition: all 0.3s ease-in-out;
}

.navigation ul li a:hover {
  color: var(--white-color);
  background: linear-gradient(180deg,rgba(255, 255, 255, 0) 60%, var(--highlight-color) 40%);
  padding: 0 0.25rem;
  font-weight: 300;
}

.navigation .social-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navigation .social-bar a {
  display: inline-block;
  transform: scale(0.5);
}

.navigation .email-icon {
  position: absolute;
  bottom: 20px;
}

/* SECTIONS */
section {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  padding: 100px 20px;
  margin-top: 0;
  position: relative;
  z-index: 2!important;
}

h2 {
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--secondary-color);
  text-align: center;
}

h2 span{
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--main-color);
}

p {
  margin: 20px 0 10px;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 300;
}

.description {
  max-width: 750px;
  text-align: center;
  padding: 15px 0;
  margin: 0;
}

/* HOME SECTION */
section.home {
    flex-direction: row;
    margin-top: 0;
    flex-wrap: wrap;
    height: 100vh;
    min-height: 625px;
    z-index: 1!important;
}
section.home:after {
  content: '';
  position: absolute;
  background: linear-gradient(-90deg, rgba(237, 118, 82, 1), rgba(231, 60, 126, 0.85), rgba(35, 166, 213, 1), rgba(8, 173, 202, 0.75));
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  left: -16%;
  top: 0;
  width: 72%;
  height: 100%;
  transform: skewX(21deg);
  -webkit-transform: skewX(21deg);
  opacity: 0.51;
}

.d-none{
  display: none !important;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}


.home-content {
  position: relative;
  z-index: 10;
  max-width: 500px;
}

/* Reference: https://stackoverflow.com/questions/43683187/how-can-i-create-custom-underline-or-highlight-for-text-in-html-or-css */
.highlight {
  background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, var(--main-color) 100%);
  padding: 0 0.25rem;
  color: var(--text-color);
}

.home-img {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    /* opacity: 0; */
}

/* SERVICES */
.services {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

.services .service .icon img {
  max-width: 100px;
}

.services .service {
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services .service h3 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-top: 20px;
  color: var(--secondary-color);
}

.services .service p {
  line-height: normal;
  font-size: 1.1rem;
  margin: 10px 0;
}

/* WORK */
.portfolio {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.portfolio .item {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 5px;
}

.portfolio .item img {
  width: 100%;
  height: 100%;
}

.portfolio .item .action {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.portfolio .item .action a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 5px 15px;
}

.portfolio .item .action:hover {
  opacity: 1;
}

/* CONTACT */
.contact {
  position: relative;
  width: 100%;
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
}

.contact-form {
  position: relative;
  background-color: #f9f9f9;
  width: 100%;
  padding: 30px 30px 20px;
}

.contact-form form {
  width: 100%;
}

.contact-form .row {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-form .input50,
.contact-form .input100 {
  width: 100%;
  margin: 0;
}

.contact-form .row input,
.contact-form .row textarea {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #111;
  background: transparent;
  width: 100%;
  padding: 10px;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 300;
  margin: 10px 0;
  resize: none;
}

.contact-form .row textarea {
  height: 150px;
}

.contact-form .row input[type="submit"] {
  background-color: var(--secondary-color);
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
  border: 0;
  cursor: pointer;
}

.contact-info {
  width: 100%;
  margin-top: 20px;
  background: #f9f9f9;
  padding: 30px 30px 20px;
}

.contact-info .info-box {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}

.contact-info .info-box .contact-icon {
  width: 20px;
  margin-right: 40px;
}

.contact-info .info-box .details h4 {
  color: var(--secondary-color);
}

.contact-info .info-box .details p,
.contact-info .info-box .details a {
  color: var(--text-color);
}

.pattern{
  background-color: #fff;
  opacity: 0.21;
  background-image:  linear-gradient(#fe8603 1.5px, transparent 1.5px), linear-gradient(to right, #fe8603 1.5px, #fff 1.5px);
  background-size: 21px 21px;
  position: fixed;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1;
  display: none;
}
section#services, section#contact {
  background: #f9f9f9;
  
}

/* MEDIA QUERIES */
@media (min-width: 768px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .services .service {
    box-shadow: none;
  }

  .services .service:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

/* animation */
.area{
    width: 100%;
    height:100vh; 
}
.circles{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.5;
}
.circles li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    animation: animate 25s linear infinite;
    bottom: -150px;
}
.circles li:nth-child(2n+1){
  background: var(--main-color);
}
.circles li:nth-child(1){
    left: 25%;
    width: 50px;
    height: 50px;
    animation-delay: 0s;
}
.circles li:nth-child(2){
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}
.circles li:nth-child(3){
    left: 70%;
    width: 30px;
    height: 30px;
    animation-delay: 4s;
}
.circles li:nth-child(4){
    left: 40%;
    width: 40px;
    height: 40px;
    animation-delay: 0s;
    animation-duration: 18s;
}
.circles li:nth-child(5){
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}
.circles li:nth-child(6){
    left: 75%;
    width: 35px;
    height: 35px;
    animation-delay: 3s;
}
.circles li:nth-child(7){
    left: 35%;
    width: 15px;
    height: 15px;
    animation-delay: 7s;
}
.circles li:nth-child(8){
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}
.circles li:nth-child(9){
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}
.circles li:nth-child(10){
  left: 85%;
  width: 11px;
  height: 11px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
    0%{
      transform: translateY(0) rotate(0deg);
      opacity: 1;
      border-radius: 0;
    }

    100%{
      transform: translateY(-1000px) rotate(720deg);
      opacity: 0;
      border-radius: 50%;
    }

}



@media (min-width: 1068px) {
  .home-img {
    display: block;
    position: absolute;
    top:0;
    right: 0;
    height: 100%;
    max-width: 100%;
    width: auto;
  }

  .logo {
    top: 20px;
    left: 100px;
  }

  .navigation ul li a {
    font-size: 2.3rem;
  }

  section {
    padding: 100px;
    z-index: 1;
  }

  .services {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact {
    flex-direction: row;
  }

  .contact-form {
    width: calc(100% - 400px);
    padding: 60px 40px 20px;
  }

  .contact-form .row {
    flex-direction: row;
  }

  .contact-form .input50 {
    width: 50%;
    margin: 0 10px;
  }

  .contact-form .input100 {
    margin: 0 10px;
  }

  .contact-info {
    width: 350px;
    margin-top: 0;
    padding: 60px 40px 20px;
  }
}

@media(max-width:767px){
  section{
    padding: 75px 20px;
  }
  section.home {
    height: 100vh;
    max-width: 100%;
    padding: 90px 20px 50px;
  }
  section.home:after {
    opacity: 0.81;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: inherit;
    -webkit-transform: inherit;
  }
  section#services, section#contact {
    background: #fff;
    border-top: 11px solid rgba(255, 170, 1, 0.25);
    border-bottom: 11px solid rgba(255, 170, 1, 0.25);
  }
  .contact-info:last-child {
    padding-bottom: 0;
  }
  .logo img{
    max-width: 225px;
  }

  .home-img {
    max-width: 550px;
    width: 100%;
    margin: 0;
    opacity: 0.51;
    position: absolute;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}
.home-content {
    margin-top: 35px;
}
}